Additional fix after removal of bank account report parameter
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 19 Sep 2009 20:18:07 +0000 (20:18 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 19 Sep 2009 20:18:07 +0000 (20:18 +0000)
reporting/rep107.php
sales/create_recurrent_invoices.php

index 2c5449445d86c2ff2c102b48c4138da13a92fafb..5d181090fe02a27242deaa06525bb61a51d1b79a 100644 (file)
@@ -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;
index f1897335ba88887d9bf9f835b8d0212c00959ea9..cdd656bd38ba75144726285c3b777d13fb9b0251 100644 (file)
@@ -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);
        }
 }