This commit is contained in:
@@ -148,7 +148,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemPartPartWarehouseID')"
|
||||
v-if="
|
||||
pvm.useInventory &&
|
||||
form().showMe(this, 'WorkOrderItemPartPartWarehouseID')
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -387,7 +390,7 @@ export default {
|
||||
description: null,
|
||||
serials: null,
|
||||
partId: null,
|
||||
partWarehouseId: null,
|
||||
partWarehouseId: 1, //important always default to "default" warehouse id 1 as even with inventory turned off it's required
|
||||
quantity: 1,
|
||||
taxPartSaleId: null,
|
||||
price: 0,
|
||||
@@ -495,7 +498,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemPartPartWarehouseID")) {
|
||||
if (
|
||||
this.pvm.useInventory &&
|
||||
this.form().showMe(this, "WorkOrderItemPartPartWarehouseID")
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemPartPartWarehouseID"),
|
||||
align: "left",
|
||||
|
||||
@@ -428,7 +428,8 @@
|
||||
<v-col
|
||||
cols="12"
|
||||
v-if="
|
||||
value.items[activeItemIndex].partRequests.length > 0 &&
|
||||
pvm.useInventory &&
|
||||
value.items[activeItemIndex].partRequests.length > 0 &&
|
||||
pvm.subRights.partRequests.visible &&
|
||||
form().showMe(this, 'WorkOrderItemPartRequestList')
|
||||
"
|
||||
|
||||
@@ -327,6 +327,9 @@ export default {
|
||||
completed: false,
|
||||
locked: false
|
||||
};
|
||||
},
|
||||
useInventory() {
|
||||
return window.$gz.store.state.globalSettings.useInventory;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user