From 0029093f827492e912f5f5b60a49df0047afdd70 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 27 May 2022 00:42:53 +0000 Subject: [PATCH] --- ayanova/src/components/pm-item-parts.vue | 8 ++++---- ayanova/src/components/quote-item-parts.vue | 8 ++++---- ayanova/src/components/work-order-item-parts.vue | 10 ++++++---- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/ayanova/src/components/pm-item-parts.vue b/ayanova/src/components/pm-item-parts.vue index 14dc165c..cdd702e7 100644 --- a/ayanova/src/components/pm-item-parts.vue +++ b/ayanova/src/components/pm-item-parts.vue @@ -967,7 +967,7 @@ export default { pmItemId: this.value.items[this.activeWoItemIndex].id, uid: Date.now(), partWarehouseViz: null, - partViz: z.partViz, + partNameViz: z.partNameViz, taxCodeViz: null }); }); @@ -1015,7 +1015,7 @@ export default { partId: this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex ].partId, - partViz: selectedPart, + partNameViz: selectedPart, partWarehouseId: this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex ].partWarehouseId, @@ -1048,7 +1048,7 @@ export default { partChange(newName) { this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex - ].partViz = newName; + ].partNameViz = newName; }, taxCodeChange(newName) { this.value.items[this.activeWoItemIndex].parts[ @@ -1078,7 +1078,7 @@ export default { pmItemId: this.value.items[this.activeWoItemIndex].id, uid: Date.now(), partWarehouseViz: null, - partViz: null, + partNameViz: null, taxCodeViz: null }); this.$emit("change"); diff --git a/ayanova/src/components/quote-item-parts.vue b/ayanova/src/components/quote-item-parts.vue index d249413b..d02775ed 100644 --- a/ayanova/src/components/quote-item-parts.vue +++ b/ayanova/src/components/quote-item-parts.vue @@ -886,7 +886,7 @@ export default { quoteItemId: this.value.items[this.activeWoItemIndex].id, uid: Date.now(), partWarehouseViz: null, - partViz: z.partViz, + partNameViz: z.partNameViz, taxCodeViz: null }); }); @@ -934,7 +934,7 @@ export default { partId: this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex ].partId, - partViz: selectedPart, + partNameViz: selectedPart, partWarehouseId: this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex ].partWarehouseId, @@ -967,7 +967,7 @@ export default { partChange(newName) { this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex - ].partViz = newName; + ].partNameViz = newName; }, taxCodeChange(newName) { this.value.items[this.activeWoItemIndex].parts[ @@ -996,7 +996,7 @@ export default { quoteItemId: this.value.items[this.activeWoItemIndex].id, uid: Date.now(), partWarehouseViz: null, - partViz: null, + partNameViz: null, taxCodeViz: null }); this.$emit("change"); diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index 17d9c1d5..abeb181e 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -847,6 +847,8 @@ export default { this.activeItemIndex != null && this.hasData && this.canAdd && + this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex] != + null && this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex] .suggestedQuantity > 0 ); @@ -989,7 +991,7 @@ export default { workOrderItemId: this.value.items[this.activeWoItemIndex].id, uid: Date.now(), partWarehouseViz: null, - partViz: z.partViz, + partNameViz: z.partNameViz, taxCodeViz: null }); }); @@ -1037,7 +1039,7 @@ export default { partId: this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex ].partId, - partViz: selectedPart, + partNameViz: selectedPart, partWarehouseId: this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex ].partWarehouseId, @@ -1069,7 +1071,7 @@ export default { partChange(newName) { this.value.items[this.activeWoItemIndex].parts[ this.activeItemIndex - ].partViz = newName; + ].partNameViz = newName; }, taxCodeChange(newName) { this.value.items[this.activeWoItemIndex].parts[ @@ -1098,7 +1100,7 @@ export default { workOrderItemId: this.value.items[this.activeWoItemIndex].id, uid: Date.now(), partWarehouseViz: null, - partViz: null, + partNameViz: null, taxCodeViz: null }); this.$emit("change");