From: Sven Schöling Date: Fri, 13 Oct 2017 13:20:56 +0000 (+0200) Subject: kivi.js: parse_amount darf "00" nicht ablehnen. X-Git-Tag: release-3.5.4~702 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3791f8959dc73c3b991bf736fb0017640deeb742;p=kivitendo-erp.git kivi.js: parse_amount darf "00" nicht ablehnen. --- diff --git a/js/kivi.js b/js/kivi.js index 4215a2e4a..ca9c1cb32 100644 --- a/js/kivi.js +++ b/js/kivi.js @@ -103,7 +103,7 @@ namespace("kivi", function(ns) { if (!amount.match(/^[0-9 ()\-+*/.]*$/)) return 0; - amount = amount.replace(/^0+/, ''); + amount = amount.replace(/^0+(\d+)/, '$1'); /* jshint -W061 */ try {