This commit is contained in:
@@ -201,7 +201,7 @@ todo: can edit po number but if I set an existing po number 4 to 23 for example
|
||||
Should this operation require a special role?
|
||||
i.e. if logged in as a bizadmin full then can edit serials
|
||||
|
||||
|
||||
todo: PO number should show in page title, missing that setting that controls this from gzmenu or whatever, see customer for how it's done but use serial instead
|
||||
todo: test add / remove serials via any and all updates changes to po items
|
||||
todo: test reports, tagging etc
|
||||
todo: review PO cases and see what I missed
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
>
|
||||
{{ $ay.t("NoData") }}
|
||||
</div>
|
||||
{{ records }}
|
||||
|
||||
<!--
|
||||
################################################################################################################################################
|
||||
WIDE TABLE VIEW
|
||||
|
||||
@@ -726,7 +726,9 @@
|
||||
<v-row justify="center">
|
||||
<v-dialog v-model="restockSelectDialog">
|
||||
<v-card>
|
||||
<v-card-title> title {{ selectedRestocks }} </v-card-title>
|
||||
<v-card-title
|
||||
>{{ $ay.t("PartRestockRequiredByVendorList") }}
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<v-col cols="12">
|
||||
<v-data-table
|
||||
@@ -1143,7 +1145,7 @@ export default {
|
||||
headers.push({
|
||||
text: vm.$ay.t("Part"),
|
||||
align: "left",
|
||||
value: "partnumber"
|
||||
value: "partNumber"
|
||||
});
|
||||
|
||||
if (vm.obj.hasSelectableWarehouses) {
|
||||
@@ -1218,12 +1220,35 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
appendSelectedRestocks() {
|
||||
console.log("restocks: ", this.selectedRestocks);
|
||||
|
||||
let itemAdded = false;
|
||||
this.selectedRestocks.forEach(z => {
|
||||
console.log("restock", z);
|
||||
this.obj.items.push({
|
||||
id: 0,
|
||||
purchaseOrderId: 0,
|
||||
partId: z.partId,
|
||||
partWarehouseId: z.partWarehouseId,
|
||||
quantityOrdered: z.requiredQuantity,
|
||||
quantityReceived: 0,
|
||||
purchaseOrderCost: 0,
|
||||
receivedCost: 0.0,
|
||||
receivedDate: null,
|
||||
partRequestedById: null,
|
||||
workorderItemPartRequestId: null,
|
||||
purchaseTaxCodeId:
|
||||
window.$gz.store.state.globalSettings.defaultTaxPartPurchaseId,
|
||||
vendorPartNumber: null
|
||||
});
|
||||
|
||||
if (!this.itemAdded) {
|
||||
this.formState.dirty = true;
|
||||
itemAdded = true;
|
||||
}
|
||||
});
|
||||
this.restockSelectDialog = false;
|
||||
if (itemAdded) {
|
||||
this.selectedRestocks = [];
|
||||
this.submit();
|
||||
}
|
||||
},
|
||||
|
||||
async showRestockSelectDialog() {
|
||||
@@ -1761,6 +1786,7 @@ async function fetchTranslatedText(vm) {
|
||||
"PartByWarehouseInventoryReorderQuantity",
|
||||
"WorkOrderItemPartRequestList",
|
||||
"PurchaseOrderUICopyToPurchaseOrder",
|
||||
"PartRestockRequiredByVendorList",
|
||||
"PurchaseOrderCustom1",
|
||||
"PurchaseOrderCustom2",
|
||||
"PurchaseOrderCustom3",
|
||||
|
||||
Reference in New Issue
Block a user