From: Joe Hunt Date: Wed, 29 Apr 2015 14:39:48 +0000 (+0200) Subject: Only first item in Supplier Credit Notes had tax added. Fixed. X-Git-Tag: 2.3-final~48 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=a0392584696bcbc635c578921983d2ef59bc07ac Only first item in Supplier Credit Notes had tax added. Fixed. --- diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index b4f31966..f4982933 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -209,7 +209,8 @@ function check_data() $stock = get_item($item->item_code); display_error(_("The return cannot be processed because there is an insufficient quantity for item:") . " " . $stock['stock_id'] . " - " . $stock['description'] . " - " . - _("Quantity On Hand") . " = " . number_format2($qoh, get_qty_dec($stock['stock_id']))); + _("Quantity On Hand") . " = " . number_format2(get_qoh_on_date($stock['stock_id'], null, + $_SESSION['supp_trans']->tran_date), get_qty_dec($stock['stock_id']))); return false; } } @@ -275,6 +276,7 @@ function commit_item_data($n) $_POST['prev_quantity_inv'.$n], input_num('This_QuantityCredited'.$n), $_POST['order_price'.$n], input_num('ChgPrice'.$n), $_POST['std_cost_unit'.$n], ""); + reset_tax_input(); } }