1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

invoice items - processVariables - fix year increments in JS

Signed-off-by: Kristián Feldsam <feldsam@gmail.com>
This commit is contained in:
Kristián Feldsam 2019-05-04 13:07:49 +02:00
parent f9021b4102
commit 9df361a378

View File

@ -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;
}