From 1b58f5dac1365a81044fd066ed9efc8f2da64f3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 27 Apr 2022 14:25:36 +0200 Subject: [PATCH] Auftrags-Controller: Fix: Preisquellenermittlung: js-Funktion richtig aufrufen ist eben kaputt gegangen --- js/kivi.Order.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 8815d9b29..b0960e7be 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -591,7 +591,7 @@ namespace('kivi.Order', function(ns) { }; ns.update_price_source = function(item_id, source, descr, price_str, price_editable) { - ns.set_price_source_text(item_id, source, descr, price_str, price_editable); + ns.set_price_and_source_text(item_id, source, descr, price_str, price_editable); if (price_str) ns.recalc_amounts_and_taxes(); kivi.io.close_dialog(); @@ -630,6 +630,8 @@ namespace('kivi.Order', function(ns) { }; ns.update_discount_source = function(item_id, source, descr, discount_str, price_editable) { + ns.set_discount_and_source_text(item_id, source, descr, discount_str, price_editable); + if (discount_str) ns.recalc_amounts_and_taxes(); kivi.io.close_dialog(); }; -- 2.20.1