This commit is contained in:
2021-06-23 15:29:58 +00:00
parent 2daf1468c2
commit 99cd8c9f62
4 changed files with 9 additions and 8 deletions

View File

@@ -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)

View File

@@ -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 }];

View File

@@ -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 }];

View File

@@ -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,