From 517e50fdf1481b8ad2128c8a494b1053271eab6c Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Thu, 7 Dec 2023 17:06:55 +0100 Subject: [PATCH] Bug 35514: Fix total cost update when adding multiple items to order MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test plan: 1) Create a basket and add an order line to go on neworderempty.pl (the new order form) 2) Choose to add one item and repeat the operation 3) See on form that the total cost is updated without update vendor price 4) Now add multiple items, for example, "2" you will see that the total cost is not updated 5) Apply this patch, refresh form and repeat steps 3 to 5 Signed-off-by: Michał Dudzik Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer (cherry picked from commit 45c4b936f5109acb9860562de7fde7ee1182c117) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/js/additem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/additem.js b/koha-tmpl/intranet-tmpl/prog/js/additem.js index c1191ab5f0..099c32d6cc 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/additem.js +++ b/koha-tmpl/intranet-tmpl/prog/js/additem.js @@ -66,7 +66,7 @@ function addMulti( count, node, unique_item_fields){ $("#" + cloneIndex).find("input[name='multiValue']").remove(); $("#" + cloneIndex).hide(); current_qty++; - $('#quantity').val( current_qty ); + $('#quantity').val( current_qty ).change(); }); } } -- 2.39.5