This commit is contained in:
@@ -434,6 +434,12 @@ Subcontractor / tech limited modifications
|
|||||||
|
|
||||||
- Do not send work order items that don't have restricted user scheduled in them and also some other subitems as per below
|
- Do not send work order items that don't have restricted user scheduled in them and also some other subitems as per below
|
||||||
- At server have biz rules that prevent changes to fields / objects that are restricted as per below
|
- At server have biz rules that prevent changes to fields / objects that are restricted as per below
|
||||||
|
- Server: NEW task and expenses allow partial field edits
|
||||||
|
must default to defaults for new record if new item to prevent edits
|
||||||
|
or compare to defaults expected on new record
|
||||||
|
so need client and server to agree on defaults for non allowed fields for new records
|
||||||
|
or else user will never be able to save those records
|
||||||
|
|
||||||
- Server Controller workorder* routes add blocking code so can't fetch things they aren't allowed etc
|
- Server Controller workorder* routes add blocking code so can't fetch things they aren't allowed etc
|
||||||
level one blocking
|
level one blocking
|
||||||
|
|
||||||
|
|||||||
@@ -492,8 +492,13 @@ export default {
|
|||||||
].taxCodeViz = newName;
|
].taxCodeViz = newName;
|
||||||
},
|
},
|
||||||
newItem() {
|
newItem() {
|
||||||
|
|
||||||
let newIndex = this.value.items[this.activeWoItemIndex].expenses.length;
|
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({
|
this.value.items[this.activeWoItemIndex].expenses.push({
|
||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user