From 8315845d85d798772ecf12a219eb73e49b53da4e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 4 Jun 2021 18:38:48 +0000 Subject: [PATCH] --- ayanova/src/components/work-order-item-parts.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index 1a63449b..10fac5c4 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -517,6 +517,21 @@ export default { ].isDirty = true; window.$gz.form.fieldValueChanged(this.pvm, ref); } + + //reset part request if part, qty or warehouse is changed + if ( + this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex] + .requestAmountViz != null + ) { + if ( + ref.endsWith("partWarehouseId") || + ref.endsWith("partId") || + ref.endsWith("quantity") + ) + this.value.items[this.activeWoItemIndex].parts[ + this.activeItemIndex + ].requestAmountViz = null; + } }, itemRowClasses: function(item) { let ret = "";