From 2d586b8b6946ba269b14e728ceba8148a406ef10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 25 Nov 2021 16:35:27 +0100 Subject: [PATCH] Auftrags-Controller: Neuberechnung nur anfordern, wenn form valide ist. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sonst führen z.B. falsche Datumsformate zu Fehlermeldungen bei der Berechnung. --- js/kivi.Order.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/kivi.Order.js b/js/kivi.Order.js index 7b1524e93..7c97a97e4 100644 --- a/js/kivi.Order.js +++ b/js/kivi.Order.js @@ -234,6 +234,8 @@ namespace('kivi.Order', function(ns) { }; ns.recalc_amounts_and_taxes = function() { + if (!kivi.validate_form('#order_form')) return; + var data = $('#order_form').serializeArray(); data.push({ name: 'action', value: 'Order/recalc_amounts_and_taxes' }); -- 2.20.1