[0000588] Inability to create recurrent invoice
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 1 Mar 2011 00:08:06 +0000 (01:08 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 1 Mar 2011 00:08:06 +0000 (01:08 +0100)
CHANGELOG.txt
sales/manage/recurrent_invoices.php

index 32d8e4be020d4e096c06cc6671259a1b26aebe28..2123f76b957af1c15845b57b6415f5e0521d7d40 100644 (file)
@@ -26,6 +26,8 @@ $ /includes/references.inc
 $ /inventory/includes/db/items_adjust_db.inc
 # [0000587] Converted currencies are not rounded when using Funds transfers 
 $ /gl/includes/db/gl_db_bank_trans.inc
+# [0000588] Inability to create recurrent invoice
+$ /sales/manage/recurrent_invoices.php
 
 21-Feb-2011 Janusz Dobrowolski
 ! Hiden warning in open_basedir/save_mode on rate retrieval.
index a595815e0a10558350c8550e7bc135a1720d0af6..785c2a44d0203d4c8ed32fc12a79a07cce7f6089 100644 (file)
@@ -41,13 +41,13 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
        {
        if ($selected_id != -1) 
        {
-               update_recurrent_invoice($selected_id, $_POST['description'], $_POST['order_no'], $_POST['debtor_no']
-                       $_POST['group_no'], input_num('days', 0), input_num('monthly', 0), $_POST['begin'], $_POST['end']);
+               update_recurrent_invoice($selected_id, $_POST['description'], $_POST['order_no'], input_num('debtor_no')
+                       input_num('group_no'), input_num('days', 0), input_num('monthly', 0), $_POST['begin'], $_POST['end']);
                        $note = _('Selected recurrent invoice has been updated');
        } 
        else 
        {
-               add_recurrent_invoice($_POST['description'], $_POST['order_no'], $_POST['debtor_no'], $_POST['group_no'],
+               add_recurrent_invoice($_POST['description'], $_POST['order_no'], input_num('debtor_no'), input_num('group_no'),
                        input_num('days', 0), input_num('monthly', 0), $_POST['begin'], $_POST['end']);
                        $note = _('New recurrent invoice has been added');
        }