Merged in hotfix/tunai-add-timestamp (pull request #223)
fix nobaucer handle if null
This commit is contained in:
@@ -108,8 +108,8 @@
|
||||
let yyyy = String(today.getFullYear());
|
||||
|
||||
let yy = yyyy.substring(2, 4);
|
||||
|
||||
let baucerno = 'B' + yy + mm + dd + '-' + String(data.recno).padStart(4, '0');
|
||||
let recno = data.recno ?? 0;
|
||||
let baucerno = 'B' + yy + mm + dd + '-' + String(recno).padStart(4, '0');
|
||||
|
||||
$('#' + e.currentTarget.id + ' .baucer').val(baucerno);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user