Inventory Purchasing Report. Variable, $stock_dec, not in scope. Fixed.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 9 May 2013 19:51:35 +0000 (21:51 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 9 May 2013 19:51:35 +0000 (21:51 +0200)
reporting/rep306.php

index 8f635653b361a7da7969c1d649e5ef06f98fbd26..94bca60ab18f1515dd9143fa8860bef09cf574c5 100644 (file)
@@ -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();