This commit is contained in:
@@ -177,14 +177,7 @@ todo: how to add locale keys in future after release without erasing all data?
|
|||||||
|
|
||||||
CURRENTLY DOING: PurchaseOrder - restock required
|
CURRENTLY DOING: PurchaseOrder - restock required
|
||||||
|
|
||||||
todo: currently working on datatable to emit full row selections since there is no ID to select items in restocklist as it has no id
|
todo: have restock list, now need to figure out selections and copy to po button
|
||||||
can't ever work because server only sends columns asked for, there is no concept of a hidden column but available
|
|
||||||
so instead either need to abandon the extension for this and do it in the form as before or
|
|
||||||
I have a crazy idea of server putting all the relevant data in the ID column somehow, maybe as part of query?
|
|
||||||
If this is a one off then I'm wasting too much time on this and should just put it into the form
|
|
||||||
but if will use elsewhere (besides woitempartrequest) for stuff then maybe...
|
|
||||||
what is going to need a list for an extension but is *not* based on some data with id's?? accounting plugins? No they deal with records. Hmm...
|
|
||||||
|
|
||||||
|
|
||||||
todo: restock required feature
|
todo: restock required feature
|
||||||
Next step is to create an extension to copy to existing or new workorder for selected items
|
Next step is to create an extension to copy to existing or new workorder for selected items
|
||||||
@@ -197,11 +190,8 @@ todo: restock required feature
|
|||||||
todo: if poitem has woitempartrequest (is a part request)
|
todo: if poitem has woitempartrequest (is a part request)
|
||||||
quantity can not be any different than the requested amount, that entire line item must be dedicated to the part request which makes
|
quantity can not be any different than the requested amount, that entire line item must be dedicated to the part request which makes
|
||||||
restock reports etc much easier to handle
|
restock reports etc much easier to handle
|
||||||
|
can code this now even though the wo is not there yet as potiem already has that field, in fact I think it's done already but double check
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
todo: MIGRATE_OUTSTANDING note for part requests feature
|
|
||||||
maybe add UI button etc for it even with no actual list / form or whatever
|
|
||||||
todo: can edit po number but if I set an existing po number 4 to 23 for example and the last autogenerated is 22 it will happily make another 23 so there are now two
|
todo: can edit po number but if I set an existing po number 4 to 23 for example and the last autogenerated is 22 it will happily make another 23 so there are now two
|
||||||
what I want to happen is it skips existing numbers
|
what I want to happen is it skips existing numbers
|
||||||
Research this method and how I can work with it and give it a good think because it maybe a dangerous thing to expose or just fuckery
|
Research this method and how I can work with it and give it a good think because it maybe a dangerous thing to expose or just fuckery
|
||||||
|
|||||||
@@ -59,6 +59,7 @@
|
|||||||
>
|
>
|
||||||
{{ $ay.t("NoData") }}
|
{{ $ay.t("NoData") }}
|
||||||
</div>
|
</div>
|
||||||
|
{{ records }}
|
||||||
<!--
|
<!--
|
||||||
################################################################################################################################################
|
################################################################################################################################################
|
||||||
WIDE TABLE VIEW
|
WIDE TABLE VIEW
|
||||||
|
|||||||
@@ -726,16 +726,20 @@
|
|||||||
<v-row justify="center">
|
<v-row justify="center">
|
||||||
<v-dialog v-model="restockSelectDialog">
|
<v-dialog v-model="restockSelectDialog">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title> restock title here </v-card-title>
|
<v-card-title> title {{ selectedRestocks }} </v-card-title>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<v-data-table
|
<v-data-table
|
||||||
:headers="restockHeaderList"
|
:headers="restockHeaderList"
|
||||||
:items="restockItemList"
|
:items="restockItemList"
|
||||||
|
item-key="index"
|
||||||
|
v-model="selectedRestocks"
|
||||||
class="elevation-1"
|
class="elevation-1"
|
||||||
disable-pagination
|
disable-pagination
|
||||||
disable-filtering
|
disable-filtering
|
||||||
show-select
|
:show-select="true"
|
||||||
|
:single-select="false"
|
||||||
|
selectable-key="index"
|
||||||
hide-default-footer
|
hide-default-footer
|
||||||
data-cy="restockTable"
|
data-cy="restockTable"
|
||||||
dense
|
dense
|
||||||
@@ -754,8 +758,8 @@
|
|||||||
<v-btn
|
<v-btn
|
||||||
color="blue darken-1"
|
color="blue darken-1"
|
||||||
text
|
text
|
||||||
@click="restockSelectDialog = false"
|
@click="appendSelectedRestocks()"
|
||||||
>{{ $ay.t("Save") }}</v-btn
|
>{{ $ay.t("PurchaseOrderUICopyToPurchaseOrder") }}</v-btn
|
||||||
>
|
>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
@@ -868,6 +872,7 @@ export default {
|
|||||||
editPoItemIndex: 0,
|
editPoItemIndex: 0,
|
||||||
restockSelectDialog: false,
|
restockSelectDialog: false,
|
||||||
restockItems: [],
|
restockItems: [],
|
||||||
|
selectedRestocks: [],
|
||||||
requestSelectDialog: false,
|
requestSelectDialog: false,
|
||||||
selectLists: {
|
selectLists: {
|
||||||
status: []
|
status: []
|
||||||
@@ -1212,6 +1217,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
appendSelectedRestocks() {
|
||||||
|
console.log("restocks: ", this.selectedRestocks);
|
||||||
|
|
||||||
|
this.selectedRestocks.forEach(z => {
|
||||||
|
console.log("restock", z);
|
||||||
|
});
|
||||||
|
this.restockSelectDialog = false;
|
||||||
|
},
|
||||||
|
|
||||||
async showRestockSelectDialog() {
|
async showRestockSelectDialog() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
|
|
||||||
@@ -1746,6 +1760,7 @@ async function fetchTranslatedText(vm) {
|
|||||||
"PartByWarehouseInventoryQuantityOnOrder",
|
"PartByWarehouseInventoryQuantityOnOrder",
|
||||||
"PartByWarehouseInventoryReorderQuantity",
|
"PartByWarehouseInventoryReorderQuantity",
|
||||||
"WorkOrderItemPartRequestList",
|
"WorkOrderItemPartRequestList",
|
||||||
|
"PurchaseOrderUICopyToPurchaseOrder",
|
||||||
"PurchaseOrderCustom1",
|
"PurchaseOrderCustom1",
|
||||||
"PurchaseOrderCustom2",
|
"PurchaseOrderCustom2",
|
||||||
"PurchaseOrderCustom3",
|
"PurchaseOrderCustom3",
|
||||||
|
|||||||
Reference in New Issue
Block a user