This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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 }];
|
||||
|
||||
@@ -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 }];
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user