This commit is contained in:
2021-07-14 17:44:14 +00:00
parent dc76d9e3d1
commit 2ea68e76c2
2 changed files with 11 additions and 0 deletions

View File

@@ -492,8 +492,13 @@ export default {
].taxCodeViz = newName;
},
newItem() {
let newIndex = this.value.items[this.activeWoItemIndex].expenses.length;
//#################################### IMPORTANT ##################################################
//NOTE: default values are critical and must match server validation ExpenseValidateAsync for restricted users
//so that they are in agreement otherwise restricted users will never be able to create new records
this.value.items[this.activeWoItemIndex].expenses.push({
id: 0,
concurrency: 0,