From 5cf8c8a885e3e972a5cac38259041e1320f9b1af Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 1 Mar 2011 01:08:06 +0100 Subject: [PATCH] [0000588] Inability to create recurrent invoice --- CHANGELOG.txt | 2 ++ sales/manage/recurrent_invoices.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 32d8e4be..2123f76b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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. diff --git a/sales/manage/recurrent_invoices.php b/sales/manage/recurrent_invoices.php index a595815e..785c2a44 100644 --- a/sales/manage/recurrent_invoices.php +++ b/sales/manage/recurrent_invoices.php @@ -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'); } -- 2.30.2