From 81570e2cdadb0d81485974ad9192a8704d3aaeb7 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 12 Jun 2021 00:21:07 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 9 ++------- .../components/work-order-item-outside-services.vue | 11 ++++++++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 484a86dc..d61d60aa 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -383,17 +383,12 @@ todo: many biz objects are not using new PUT methodology -CURRENTLY DOING: Work order notifications - PartRequested +CURRENTLY DOING: Work order notifications - weird new object below then finish off rest of notifications + -todo: add unit required rule to backend woitemunits selection -todo: search workorder tree for front end required and other rules then replicate at back end, some are missing and moer will be missing after below blocks of new wo issues fixed todo: wokrorderitemloand and possible others have weird NEW object with items from other objects due to copy and paste, clean that shit up, don't need to send it over the wire every time Go through each and make sure there are exactly the same keys of a fetched record in there (minus viz of course) -bugbug: new wokrorder adding new item of any kind doesn't trigger dirty - -bugubg: completely fresh workorder riddled with errors when attempting to create one of each type of record - Steps to test notifications: plain in app delivery diff --git a/ayanova/src/components/work-order-item-outside-services.vue b/ayanova/src/components/work-order-item-outside-services.vue index 59864865..1b46b983 100644 --- a/ayanova/src/components/work-order-item-outside-services.vue +++ b/ayanova/src/components/work-order-item-outside-services.vue @@ -662,7 +662,7 @@ export default { this.value.items[this.activeWoItemIndex].outsideServices.push({ id: 0, concurrency: 0, - unitId: 0, + unitId: 0, //zero to break rule on new notes: null, vendorSentToId: null, vendorSentViaId: null, @@ -683,6 +683,15 @@ export default { this.$emit("change"); this.selectedRow = [{ index: newIndex }]; this.activeItemIndex = newIndex; + //trigger rule breaking / validation + this.$nextTick(() => { + this.value.items[this.activeWoItemIndex].outsideServices[ + this.activeItemIndex + ].unitId = null; + this.fieldValueChanged( + `Items[${this.activeWoItemIndex}].outsideServices[${this.activeItemIndex}].unitId` + ); + }); }, unDeleteItem() { this.value.items[this.activeWoItemIndex].outsideServices[