mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE-212): add warehouse information to PurchaseOrderAcceptApprovalForm
This commit is contained in:
@@ -195,6 +195,9 @@ const PurchaseOrderAcceptApprovalForm = ({
|
||||
product_category: item.product.product_category || '',
|
||||
uom: item.product.uom || { name: 'unit' },
|
||||
},
|
||||
warehouse: {
|
||||
name: item.warehouse?.name || '',
|
||||
},
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -330,6 +333,7 @@ const PurchaseOrderAcceptApprovalForm = ({
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Produk</th>
|
||||
<th>Gudang</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Satuan</th>
|
||||
<th>
|
||||
@@ -388,6 +392,18 @@ const PurchaseOrderAcceptApprovalForm = ({
|
||||
value={purchaseItem?.value || 0}
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<TextInput
|
||||
name={`items.${idx}.warehouse`}
|
||||
type='text'
|
||||
value={purchaseItem?.warehouse?.name || ''}
|
||||
readOnly={true}
|
||||
className={{
|
||||
wrapper: 'min-w-40 md:min-w-52 lg:min-w-64',
|
||||
}}
|
||||
disabled={true}
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<TextInput
|
||||
name={`items.${idx}.quantity`}
|
||||
|
||||
Reference in New Issue
Block a user