Merge pull request #2818 from FELDSAM-INC/fix/invoice-item-vars-year-inc

invoice items - processVariables - fix year increments in JS
This commit is contained in:
Hillel Coren 2019-05-04 21:58:53 +03:00 committed by GitHub
commit 2e3d79a700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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