X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.Order.js;h=b0960e7be0de30ad54c5343da0dda4b93f772485;hb=1b58f5dac1365a81044fd066ed9efc8f2da64f3f;hp=8815d9b29ebf0222c978272054bbb693ca40a611;hpb=73f7989fcf23410ebd879d5150f6a13913ca2b90;p=kivitendo-erp.git 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(); };