projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixt #281 Fertigen nicht transaktionssicher
[kivitendo-erp.git]
/
js
/
t
/
kivi
/
parse_amount.js
diff --git
a/js/t/kivi/parse_amount.js
b/js/t/kivi/parse_amount.js
index
1ef2b11
..
1c267c4
100644
(file)
--- a/
js/t/kivi/parse_amount.js
+++ b/
js/t/kivi/parse_amount.js
@@
-115,3
+115,9
@@
QUnit.test("kivi.parse_amount function German number style with thousand separat
assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), 0, 'iuh !@#$% 10,00');
});
assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), 0, 'iuh !@#$% 10,00');
});
+
+QUnit.test("kivi.parse_amount function German number style with thousand separator & invalid math expression", function( assert ) {
+ kivi.setup_formats({ numbers: '1.000,00' });
+
+ assert.equal(kivi.parse_amount('54--42'), 0, '54--42');
+});