X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep306.php;h=51806bf6bf669517812898212d044233f00342ae;hb=927ebef2443b6dda544056e33ec84b71d2bdb6c2;hp=8f635653b361a7da7969c1d649e5ef06f98fbd26;hpb=00e36f831d8ed0f754a3698185de25071316dd90;p=fa-stable.git diff --git a/reporting/rep306.php b/reporting/rep306.php index 8f635653..51806bf6 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(); @@ -299,4 +298,3 @@ function print_inventory_purchase() $rep->End(); } -?> \ No newline at end of file