diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 5197fe07..99bf8877 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -387,12 +387,6 @@ todo: many biz objects are not using new PUT methodology CURRENTLY DOING: misc items below MISC WO ITEMS that came up - scheduled user conflict is triggering error properly on initial create and save but NOT when edited and saved - possible fuckiness with errors on update rather than initial save (hidden extra ID column?) - it *is* showing on woitem part that there is an error and it is showing in top for error alert box - but not showing for exact field or row in grid - This is likely occurring with other things, may not have tested this scenario of update and error properly - so replicate the fix whatever it is or look for the same issue Scheduled user selecting rate on new isn't populating rate-viz, (server is on save though) diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index 6a2a7152..71b6b43f 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -504,7 +504,10 @@ export default { priceOverride: null, isDirty: true, workOrderItemId: this.value.items[this.activeWoItemIndex].id, - uid: Date.now() //used for error tracking / display + uid: Date.now(), + userViz: null, + serviceRateViz: null, + taxCodeViz: null }); this.$emit("change"); this.selectedRow = [{ index: newIndex }]; diff --git a/ayanova/src/components/work-order-item-units.vue b/ayanova/src/components/work-order-item-units.vue index edd26a8b..a0731d1e 100644 --- a/ayanova/src/components/work-order-item-units.vue +++ b/ayanova/src/components/work-order-item-units.vue @@ -296,7 +296,8 @@ export default { serviceRateId: null, isDirty: true, workOrderItemId: this.value.items[this.activeWoItemIndex].id, - uid: Date.now() //used for error tracking / display + uid: Date.now(), //used for error tracking / display + unitViz: null }); this.$emit("change"); this.selectedRow = [{ index: newIndex }]; diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index b0411b84..ca5e2916 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -980,6 +980,8 @@ async function saveScheduledUsers(vm, woItemIndex) { for (let i = 0; i < vm.obj.items[woItemIndex].scheduledUsers.length; i++) { if (vm.obj.items[woItemIndex].scheduledUsers[i].isDirty) { + // console.log("BEFORE", vm.obj.items[woItemIndex].scheduledUsers[i].uid); + //clone and skip viz and other fields const o = window.$gz.util.deepCopySkip( vm.obj.items[woItemIndex].scheduledUsers[i], @@ -991,6 +993,7 @@ async function saveScheduledUsers(vm, woItemIndex) { o ); if (res.error) { + //console.log("ERROR", vm.obj.items[woItemIndex].scheduledUsers[i].uid); handleSaveError(vm, { error: res.error, itemUid: vm.obj.items[woItemIndex].uid,