This commit is contained in:
2021-03-01 17:52:31 +00:00
parent e041977c4c
commit 787d27ff1f
2 changed files with 17 additions and 11 deletions

View File

@@ -187,15 +187,6 @@ todo: how to add locale keys in future after release without erasing all data?
CURRENTLY DOING: PurchaseOrder - restock required
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
extension then will create a po, add all the selected items and then return the po id
client will then open the PO for editing
also See notes case 3849
not going to do this inside the po itself
same process for part requests as well
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

View File

@@ -361,12 +361,22 @@
:size="60"
></v-progress-circular>
</template>
<!-- #########################################################################################-->
<!-- ########################## PURCHASE ORDER ITEM EDIT FORM ###############################-->
<!-- #########################################################################################-->
<template v-if="obj.items.length">
<v-row justify="center">
<v-dialog v-model="editPoItemDialog">
<v-card>
<v-card-title> </v-card-title>
<v-card-title>
<span
class="accent--text"
v-if="
obj.items[editPoItemIndex].workorderItemPartRequestId != null
"
>{{ $ay.t("WorkOrderItemPartRequest") }}</span
></v-card-title
>
<v-card-text>
<v-row>
<v-col cols="12" sm="6" lg="4" xl="3">
@@ -419,7 +429,11 @@
<v-col cols="12" sm="6" lg="4" xl="3">
<gz-decimal
v-model="obj.items[editPoItemIndex].quantityOrdered"
:readonly="formState.readOnly"
:readonly="
formState.readOnly ||
obj.items[editPoItemIndex].workorderItemPartRequestId !=
null
"
:label="$ay.t('PurchaseOrderItemQuantityOrdered')"
ref="Items.QuantityOrdered"
data-cy="Items.QuantityOrdered"
@@ -1787,6 +1801,7 @@ async function fetchTranslatedText(vm) {
"PartByWarehouseInventoryQuantityOnOrder",
"PartByWarehouseInventoryReorderQuantity",
"WorkOrderItemPartRequestList",
"WorkOrderItemPartRequest",
"PurchaseOrderUICopyToPurchaseOrder",
"PartRestockRequiredByVendorList",
"PurchaseOrderCustom1",