From a0392584696bcbc635c578921983d2ef59bc07ac Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 29 Apr 2015 16:39:48 +0200 Subject: [PATCH] Only first item in Supplier Credit Notes had tax added. Fixed. --- purchasing/supplier_credit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } } -- 2.30.2