This commit is contained in:
@@ -361,13 +361,26 @@ CURRENTLY DOING: workorder round two electric boogaloo
|
|||||||
basics first then increasingly esoteric features
|
basics first then increasingly esoteric features
|
||||||
|
|
||||||
Biggies
|
Biggies
|
||||||
todo 3: actual inventory (see below)
|
todo 3: actual inventory
|
||||||
1961 / 3752- auto remove from inventory immediately when wo saved and re-instate if changed
|
1961 / 3752- auto remove from inventory immediately when wo saved and re-instate if changed
|
||||||
see PO back end for example of exactly this
|
see PO back end for example of exactly this
|
||||||
|
SEEDER
|
||||||
|
make sure generated inventory and workorders are going to work with enough quantity etc
|
||||||
todo: No inventory setting *IMPORTANT* must test with inventory turned off for this and for PO system as well or whatever is necessary
|
todo: No inventory setting *IMPORTANT* must test with inventory turned off for this and for PO system as well or whatever is necessary
|
||||||
make it work like v7
|
make it work like v7
|
||||||
todo 3: service bank (see below)
|
NOTE: In v7 selecting serial copied to description field for some reason, but v8 has dedicated serial field so this is probably an import issue i.e. make sure import copies serials to serials
|
||||||
todo 3: notification (see below)
|
|
||||||
|
NEED:
|
||||||
|
on WO must hide all serial number selection elements if useinventory is off
|
||||||
|
but it seems reasonable to leave the field to just hand enter them in if desired
|
||||||
|
WO part selection: if useinventory then must run CheckIfEnoughInventory and offer to request or set to zero
|
||||||
|
in v7 when useinventory=true you cannot enter a quantity that is more than is in stock, you either initiate a request or it sets it to zero and won't allow any other value
|
||||||
|
so this must be replicated in v8 exactly and dynamically, not from server itself, but server must still check at last moment of save and return error if unavailable
|
||||||
|
See v7 project workorderform.cs line 8878 for the code in question
|
||||||
|
|
||||||
|
|
||||||
|
todo 3: service bank
|
||||||
|
todo 3: notification
|
||||||
|
|
||||||
todo 3: signature: report helper display signature and form ui control to capture /display signature
|
todo 3: signature: report helper display signature and form ui control to capture /display signature
|
||||||
for both tech and customer
|
for both tech and customer
|
||||||
|
|||||||
@@ -148,7 +148,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col
|
<v-col
|
||||||
v-if="form().showMe(this, 'WorkOrderItemPartPartWarehouseID')"
|
v-if="
|
||||||
|
pvm.useInventory &&
|
||||||
|
form().showMe(this, 'WorkOrderItemPartPartWarehouseID')
|
||||||
|
"
|
||||||
cols="12"
|
cols="12"
|
||||||
sm="6"
|
sm="6"
|
||||||
lg="4"
|
lg="4"
|
||||||
@@ -387,7 +390,7 @@ export default {
|
|||||||
description: null,
|
description: null,
|
||||||
serials: null,
|
serials: null,
|
||||||
partId: 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,
|
quantity: 1,
|
||||||
taxPartSaleId: null,
|
taxPartSaleId: null,
|
||||||
price: 0,
|
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({
|
headers.push({
|
||||||
text: this.$ay.t("WorkOrderItemPartPartWarehouseID"),
|
text: this.$ay.t("WorkOrderItemPartPartWarehouseID"),
|
||||||
align: "left",
|
align: "left",
|
||||||
|
|||||||
@@ -428,7 +428,8 @@
|
|||||||
<v-col
|
<v-col
|
||||||
cols="12"
|
cols="12"
|
||||||
v-if="
|
v-if="
|
||||||
value.items[activeItemIndex].partRequests.length > 0 &&
|
pvm.useInventory &&
|
||||||
|
value.items[activeItemIndex].partRequests.length > 0 &&
|
||||||
pvm.subRights.partRequests.visible &&
|
pvm.subRights.partRequests.visible &&
|
||||||
form().showMe(this, 'WorkOrderItemPartRequestList')
|
form().showMe(this, 'WorkOrderItemPartRequestList')
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -327,6 +327,9 @@ export default {
|
|||||||
completed: false,
|
completed: false,
|
||||||
locked: false
|
locked: false
|
||||||
};
|
};
|
||||||
|
},
|
||||||
|
useInventory() {
|
||||||
|
return window.$gz.store.state.globalSettings.useInventory;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user