From 81b1ac39c03c67ec0404476df83a5b41017911bc Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 19 Sep 2009 20:18:07 +0000 Subject: [PATCH] Additional fix after removal of bank account report parameter --- reporting/rep107.php | 2 +- sales/create_recurrent_invoices.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reporting/rep107.php b/reporting/rep107.php index 2c544944..5d181090 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -73,7 +73,7 @@ function print_invoices() { for ($j = ST_SALESINVOICE; $j <= ST_CUSTCREDIT; $j++) { - if (isset($_POST['PARAM_7']) && $_POST['PARAM_7'] != $j) + if (isset($_POST['PARAM_6']) && $_POST['PARAM_6'] != $j) continue; if (!exists_customer_trans($j, $i)) continue; diff --git a/sales/create_recurrent_invoices.php b/sales/create_recurrent_invoices.php index f1897335..cdd656bd 100644 --- a/sales/create_recurrent_invoices.php +++ b/sales/create_recurrent_invoices.php @@ -88,10 +88,10 @@ if (isset($_GET['recurrent'])) display_notification(sprintf(_("%s recurrent invoice(s) created, # $min - # $max."), count($invs))); if (count($invs) > 0) { - $ar = array('PARAM_0' => $min, 'PARAM_1' => $max, 'PARAM_2' => "", 'PARAM_3' => get_first_bank_account(), - 'PARAM_4' => 0, 'PARAM_5' => 0, 'PARAM_6' => "", 'PARAM_7' => ST_SALESINVOICE); + $ar = array('PARAM_0' => $min, 'PARAM_1' => $max, 'PARAM_2' => "", + 'PARAM_3' => 0, 'PARAM_4' => 0, 'PARAM_5' => "", 'PARAM_6' => ST_SALESINVOICE); display_note(print_link(_("&Print Recurrent Invoices # $min - # $max"), 107, $ar), 0, 1); - $ar['PARAM_4'] = 1; + $ar['PARAM_3'] = 1; display_note(print_link(_("&Email Recurrent Invoices # $min - # $max"), 107, $ar), 0, 1); } } -- 2.30.2