mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 14:55:44 +00:00
feat(FE-218,212,213): implement PurchaseOrderDetail component and update related types
This commit is contained in:
@@ -206,15 +206,13 @@ const PurchaseOrderAcceptApprovalForm = ({
|
||||
if (initialValues?.items) {
|
||||
return initialValues.items.map((item) => ({
|
||||
value: item.id,
|
||||
label: `${item.product.name} (${item.quantity} ${item.product.uom.name})`,
|
||||
label: `${item.product.name} (${item.quantity} ${item.product.uom?.name || 'unit'})`,
|
||||
id: item.id,
|
||||
quantity: item.quantity,
|
||||
product: {
|
||||
name: item.product.name,
|
||||
product_category: item.product.product_category,
|
||||
uom: {
|
||||
name: item.product.uom.name,
|
||||
},
|
||||
uom: item.product.uom,
|
||||
},
|
||||
warehouse: {
|
||||
name: item.warehouse?.name || '',
|
||||
|
||||
@@ -44,7 +44,7 @@ const PurchaseOrderStaffApprovalForm = ({
|
||||
product: {
|
||||
name: string;
|
||||
type?: string;
|
||||
uom: {
|
||||
uom?: {
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
@@ -170,15 +170,13 @@ const PurchaseOrderStaffApprovalForm = ({
|
||||
if (initialValues?.items) {
|
||||
return initialValues.items.map((item) => ({
|
||||
value: item.id,
|
||||
label: `${item.product.name} (${item.quantity} ${item.product.uom.name})`,
|
||||
label: `${item.product.name} (${item.quantity} ${item.product.uom?.name || 'unit'})`,
|
||||
id: item.id,
|
||||
quantity: item.quantity,
|
||||
product: {
|
||||
name: item.product.name,
|
||||
product_category: item.product.product_category,
|
||||
uom: {
|
||||
name: item.product.uom.name,
|
||||
},
|
||||
uom: item.product.uom,
|
||||
},
|
||||
warehouse: {
|
||||
name: item.warehouse?.name || '',
|
||||
|
||||
Reference in New Issue
Block a user