X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Ft%2Fkivi%2Fparse_amount.js;h=8df776736021e15db7fcb0da076dd54a540dc617;hb=7f414d7b101046679e311f35c849a9ecfe60a538;hp=1c267c440b410bebff085210c217efc6faafe3e1;hpb=36d1d6a42c18b4c7743c24ff3ebf02e81c470f7b;p=kivitendo-erp.git diff --git a/js/t/kivi/parse_amount.js b/js/t/kivi/parse_amount.js index 1c267c440..8df776736 100644 --- a/js/t/kivi/parse_amount.js +++ b/js/t/kivi/parse_amount.js @@ -113,11 +113,11 @@ QUnit.test("kivi.parse_amount function numbers with leading 0 should still be pa QUnit.test("kivi.parse_amount function German number style with thousand separator & contains invalid characters", function( assert ) { kivi.setup_formats({ numbers: '1.000,00' }); - assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), 0, 'iuh !@#$% 10,00'); + assert.equal(kivi.parse_amount('iuh !@#$% 10,00'), undefined, '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'); + assert.equal(kivi.parse_amount('54--42'), undefined, '54--42'); });