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:
commit
2e3d79a700
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue