kivi.js: parse_amount darf "00" nicht ablehnen.
[kivitendo-erp.git] / js / kivi.js
index 4215a2e..ca9c1cb 100644 (file)
@@ -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 {