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
|
||||
|
||||
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
|
||||
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: have restock list, now need to figure out selections and copy to po button
|
||||
|
||||
todo: restock required feature
|
||||
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)
|
||||
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
|
||||
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
|
||||
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
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
>
|
||||
{{ $ay.t("NoData") }}
|
||||
</div>
|
||||
{{ records }}
|
||||
<!--
|
||||
################################################################################################################################################
|
||||
WIDE TABLE VIEW
|
||||
|
||||
@@ -726,16 +726,20 @@
|
||||
<v-row justify="center">
|
||||
<v-dialog v-model="restockSelectDialog">
|
||||
<v-card>
|
||||
<v-card-title> restock title here </v-card-title>
|
||||
<v-card-title> title {{ selectedRestocks }} </v-card-title>
|
||||
<v-card-text>
|
||||
<v-col cols="12">
|
||||
<v-data-table
|
||||
:headers="restockHeaderList"
|
||||
:items="restockItemList"
|
||||
item-key="index"
|
||||
v-model="selectedRestocks"
|
||||
class="elevation-1"
|
||||
disable-pagination
|
||||
disable-filtering
|
||||
show-select
|
||||
:show-select="true"
|
||||
:single-select="false"
|
||||
selectable-key="index"
|
||||
hide-default-footer
|
||||
data-cy="restockTable"
|
||||
dense
|
||||
@@ -754,8 +758,8 @@
|
||||
<v-btn
|
||||
color="blue darken-1"
|
||||
text
|
||||
@click="restockSelectDialog = false"
|
||||
>{{ $ay.t("Save") }}</v-btn
|
||||
@click="appendSelectedRestocks()"
|
||||
>{{ $ay.t("PurchaseOrderUICopyToPurchaseOrder") }}</v-btn
|
||||
>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
@@ -868,6 +872,7 @@ export default {
|
||||
editPoItemIndex: 0,
|
||||
restockSelectDialog: false,
|
||||
restockItems: [],
|
||||
selectedRestocks: [],
|
||||
requestSelectDialog: false,
|
||||
selectLists: {
|
||||
status: []
|
||||
@@ -1212,6 +1217,15 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
appendSelectedRestocks() {
|
||||
console.log("restocks: ", this.selectedRestocks);
|
||||
|
||||
this.selectedRestocks.forEach(z => {
|
||||
console.log("restock", z);
|
||||
});
|
||||
this.restockSelectDialog = false;
|
||||
},
|
||||
|
||||
async showRestockSelectDialog() {
|
||||
let vm = this;
|
||||
|
||||
@@ -1746,6 +1760,7 @@ async function fetchTranslatedText(vm) {
|
||||
"PartByWarehouseInventoryQuantityOnOrder",
|
||||
"PartByWarehouseInventoryReorderQuantity",
|
||||
"WorkOrderItemPartRequestList",
|
||||
"PurchaseOrderUICopyToPurchaseOrder",
|
||||
"PurchaseOrderCustom1",
|
||||
"PurchaseOrderCustom2",
|
||||
"PurchaseOrderCustom3",
|
||||
|
||||
Reference in New Issue
Block a user