FA 2.4.9 Purchase Order pdf printout won't work. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 17 Dec 2020 15:15:38 +0000 (16:15 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 17 Dec 2020 15:15:38 +0000 (16:15 +0100)
reporting/rep209.php

index 2ed8cb8fe6162f825cdb59620334b79315f5d877..5a08217168009fb8a0c8c933aef3be4daa16bdf5 100644 (file)
@@ -31,7 +31,7 @@ include_once($path_to_root . "/taxes/tax_calc.inc");
 print_po();
 
 //----------------------------------------------------------------------------------------------------
-function get_po($order_no)
+function get_supp_po($order_no)
 {
        $sql = "SELECT po.*, supplier.supp_name, supplier.supp_account_no,supplier.tax_included,
                supplier.gst_no AS tax_id,
@@ -91,7 +91,7 @@ function print_po()
 
        for ($i = $from; $i <= $to; $i++)
        {
-               $myrow = get_po($i);
+               $myrow = get_supp_po($i);
                if ($currency != ALL_TEXT && $myrow['curr_code'] != $currency) {
                        continue;
                }