From 9df361a378993aca8bc81a8944d15de8d79a3cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristia=CC=81n=20Feldsam?= Date: Sat, 4 May 2019 13:07:49 +0200 Subject: [PATCH] invoice items - processVariables - fix year increments in JS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristián Feldsam --- resources/assets/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/script.js b/resources/assets/js/script.js index effe59bbed2b..e208d81cfcfd 100644 --- a/resources/assets/js/script.js +++ b/resources/assets/js/script.js @@ -71,7 +71,7 @@ function processVariables(str) { var match = matches[j]; var offset = 0; if (match.split('+').length > 1) { - offset = match.split('+')[1]; + offset = parseInt(match.split('+')[1]); } else if (match.split('-').length > 1) { offset = parseInt(match.split('-')[1]) * -1; }