X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep307.php;h=18cfc6ea064852c614116de5700e5d9038f79164;hb=a31195793c023906ab5da62f06ab84aefed445c3;hp=19db40997a4ba6b9485a043a695be1afe9548f91;hpb=a9d55e1c13cbd6a6305b9322ec8621a06516f9f3;p=fa-stable.git diff --git a/reporting/rep307.php b/reporting/rep307.php index 19db4099..18cfc6ea 100644 --- a/reporting/rep307.php +++ b/reporting/rep307.php @@ -37,7 +37,7 @@ function fetch_items($category=0) units, cat.description FROM ".TB_PREF."stock_master stock LEFT JOIN ".TB_PREF."stock_category cat ON stock.category_id=cat.category_id - WHERE mb_flag <> 'D'"; + WHERE mb_flag <> 'D' AND mb_flag <>'F'"; if ($category != 0) $sql .= " AND cat.category_id = ".db_escape($category); $sql .= " ORDER BY stock.category_id, stock_id"; @@ -155,11 +155,11 @@ function inventory_movements() $inward += trans_qty($myrow['stock_id'], $location, $from_date, $to_date); $outward += trans_qty($myrow['stock_id'], $location, $from_date, $to_date, false); - $rep->AmountCol(3, 4, $qoh_start, get_qty_dec($myrow['stock_id'])); - $rep->AmountCol(4, 5, $inward, get_qty_dec($myrow['stock_id'])); - $rep->AmountCol(5, 6, $outward, get_qty_dec($myrow['stock_id'])); - $rep->AmountCol(6, 7, $qoh_end, get_qty_dec($myrow['stock_id'])); - + $stock_qty_dec = get_qty_dec($myrow['stock_id']); + $rep->AmountCol(3, 4, $qoh_start, $stock_qty_dec); + $rep->AmountCol(4, 5, $inward, $stock_qty_dec); + $rep->AmountCol(5, 6, $outward, $stock_qty_dec); + $rep->AmountCol(6, 7, $qoh_end, $stock_qty_dec); $rep->NewLine(0, 1); } $rep->Line($rep->row - 4);