projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f967085
)
Auftrags-Controller: Neuberechnung nur anfordern, wenn form valide ist.
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 25 Nov 2021 15:35:27 +0000
(16:35 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 25 Nov 2021 15:39:15 +0000
(16:39 +0100)
Sonst führen z.B. falsche Datumsformate zu Fehlermeldungen bei der Berechnung.
js/kivi.Order.js
patch
|
blob
|
history
diff --git
a/js/kivi.Order.js
b/js/kivi.Order.js
index
7b1524e
..
7c97a97
100644
(file)
--- 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' });