X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep305.php;h=8b71e0fb37fdee4812068dc8a139cfa09981a3be;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=8ce820d8faf9d3d9ea0ecd1dc1d9d9931f98cda8;hpb=dcdaed552c94303ca6145d898a8365f6cccec072;p=fa-stable.git diff --git a/reporting/rep305.php b/reporting/rep305.php index 8ce820d8..8b71e0fb 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']); @@ -194,4 +194,3 @@ function print_grn_valuation() $rep->End(); } -?> \ No newline at end of file