X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Frep204.php;h=cc8b536298e88c629e4dc30accd80d68c0b62746;hb=fabc8d3e9dbd0ebeb28cefcdf85c5abf90a3496f;hp=51fbf012d66c5182f1752500694e54818bbf2f1b;hpb=f44132511cc91b83f20f91af0625d4b112b4c26e;p=fa-stable.git diff --git a/reporting/rep204.php b/reporting/rep204.php index 51fbf012..cc8b5362 100644 --- a/reporting/rep204.php +++ b/reporting/rep204.php @@ -37,7 +37,6 @@ function getTransactions($fromsupp) item.description, qty_recd, quantity_inv, - std_cost_unit, act_price, unit_price FROM ".TB_PREF."grn_items item, @@ -102,7 +101,7 @@ function print_outstanding_GRN() $SuppTot_Val=0; $res = getTransactions($fromsupp); - While ($GRNs = db_fetch($res)) + while ($GRNs = db_fetch($res)) { $dec2 = get_qty_dec($GRNs['item_code']); if ($Supplier != $GRNs['supplier_id']) @@ -126,9 +125,9 @@ function print_outstanding_GRN() $rep->AmountCol(3, 4, $GRNs['qty_recd'], $dec2); $rep->AmountCol(4, 5, $GRNs['quantity_inv'], $dec2); $QtyOstg = $GRNs['qty_recd'] - $GRNs['quantity_inv']; - $Value = ($GRNs['qty_recd'] - $GRNs['quantity_inv']) * $GRNs['act_price']; + $Value = ($GRNs['qty_recd'] - $GRNs['quantity_inv']) * $GRNs['unit_price']; $rep->AmountCol(5, 6, $QtyOstg, $dec2); - $rep->AmountCol(6, 7, $GRNs['act_price'], $dec); + $rep->AmountCol(6, 7, $GRNs['unit_price'], $dec); $rep->AmountCol(7, 8, $Value, $dec); $Tot_Val += $Value; $SuppTot_Val += $Value;