X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep305.php;h=2c75640b85f40ce2f69517a8fb7cb5f6cb629f38;hb=1571869d54be48452fdbe08f25130972ff0a7b5a;hp=8ce820d8faf9d3d9ea0ecd1dc1d9d9931f98cda8;hpb=327bdb5d6f9a11274f0bedd20e6c9d39276a5f8f;p=fa-stable.git diff --git a/reporting/rep305.php b/reporting/rep305.php index 8ce820d8..2c75640b 100644 --- a/reporting/rep305.php +++ b/reporting/rep305.php @@ -33,7 +33,7 @@ function getTransactions($from, $to) { $from = date2sql($from); $to = date2sql($to); - + $sql = "SELECT ".TB_PREF."grn_batch.id batch_no, ".TB_PREF."grn_batch.supplier_id, ".TB_PREF."purch_order_details.*, @@ -53,7 +53,7 @@ function getTransactions($from, $to) AND ".TB_PREF."grn_batch.delivery_date>='$from' AND ".TB_PREF."grn_batch.delivery_date<='$to' ORDER BY ".TB_PREF."stock_master.stock_id, ".TB_PREF."grn_batch.delivery_date"; - + return db_query($sql,"No transactions were returned"); } @@ -139,7 +139,7 @@ function print_grn_valuation() $rep->TextCol(2, 3, $trans['order_no']); $qdec = get_qty_dec($trans['item_code']); $rep->TextCol(3, 4, $trans['batch_no']); - + if ($trans['quantity_inv']) { $suppinv = getSuppInvDetails($trans['grn_item_id']);