From: Joe Hunt Date: Thu, 9 May 2013 19:51:35 +0000 (+0200) Subject: Inventory Purchasing Report. Variable, $stock_dec, not in scope. Fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ae53f0f0fcc791f8a1807122bbb4d6654c1bf97a;p=textcart.git Inventory Purchasing Report. Variable, $stock_dec, not in scope. Fixed. --- diff --git a/reporting/rep306.php b/reporting/rep306.php index 8f63565..94bca60 100644 --- a/reporting/rep306.php +++ b/reporting/rep306.php @@ -170,14 +170,13 @@ function print_inventory_purchase() { if ($stock_description != '') { - $stock_dec = get_qty_dec($stock_id); if ($supplier_name != '') { $rep->NewLine(2, 3); $rep->TextCol(0, 1, _('Total')); $rep->TextCol(1, 4, $stock_description); $rep->TextCol(4, 5, $supplier_name); - $rep->AmountCol(5, 7, $total_qty, $stock_dec); + $rep->AmountCol(5, 7, $total_qty, get_qty_dec($stock_id)); $rep->AmountCol(7, 8, $total_supp, $dec); $rep->Line($rep->row - 2); $rep->NewLine(); @@ -197,7 +196,7 @@ function print_inventory_purchase() $rep->TextCol(0, 1, _('Total')); $rep->TextCol(1, 4, $stock_description); $rep->TextCol(4, 5, $supplier_name); - $rep->AmountCol(5, 7, $total_qty, $stock_dec); + $rep->AmountCol(5, 7, $total_qty, get_qty_dec($stock_id)); $rep->AmountCol(7, 8, $total_supp, $dec); $rep->Line($rep->row - 2); $rep->NewLine(); @@ -262,7 +261,7 @@ function print_inventory_purchase() $rep->TextCol(0, 1, _('Total')); $rep->TextCol(1, 4, $stock_description); $rep->TextCol(4, 5, $supplier_name); - $rep->AmountCol(5, 7, $total_qty, $stock_dec); + $rep->AmountCol(5, 7, $total_qty, get_qty_dec($stock_id)); $rep->AmountCol(7, 8, $total_supp, $dec); $rep->Line($rep->row - 2); $rep->NewLine(); @@ -277,7 +276,7 @@ function print_inventory_purchase() $rep->TextCol(0, 1, _('Total')); $rep->TextCol(1, 4, $stock_description); $rep->TextCol(4, 5, $supplier_name); - $rep->AmountCol(5, 7, $total_qty, $stock_dec); + $rep->AmountCol(5, 7, $total_qty, get_qty_dec($stock_id)); $rep->AmountCol(7, 8, $total_supp, $dec); $rep->Line($rep->row - 2); $rep->NewLine();