From: Bernd Bleßmann Date: Wed, 27 Apr 2022 12:25:36 +0000 (+0200) Subject: Auftrags-Controller: Fix: Preisquellenermittlung: js-Funktion richtig aufrufen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~39 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1b58f5dac1365a81044fd066ed9efc8f2da64f3f;p=kivitendo-erp.git Auftrags-Controller: Fix: Preisquellenermittlung: js-Funktion richtig aufrufen ist eben kaputt gegangen --- 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(); };