X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Ft%2Fkivi%2Fparse_amount.js;h=1c267c440b410bebff085210c217efc6faafe3e1;hb=66bea0e44358fa5442f457225de625708f35f76c;hp=1ef2b119350e212612f05039f4361be5c8733d93;hpb=0cd51f70d2676569387f5f6a9047eb9553fea708;p=kivitendo-erp.git diff --git a/js/t/kivi/parse_amount.js b/js/t/kivi/parse_amount.js index 1ef2b1193..1c267c440 100644 --- 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'); }); + +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'); +});