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 = "";