refactor(FE-208,213): update PurchaseOrderDetail and PurchaseOrderInvoice components for improved warehouse and supplier details

This commit is contained in:
rstubryan
2025-11-18 14:58:49 +07:00
parent 00c432a918
commit 75e7b9a6de
2 changed files with 67 additions and 50 deletions
@@ -499,7 +499,7 @@ const PurchaseOrderDetail = ({
</span>
<span className='text-gray-900 ml-3 break-all'>
:{' '}
{purchaseData.items?.[0]?.warehouse?.type !== 'AREA' &&
{purchaseData.items?.[0]?.warehouse?.type === 'LOKASI' &&
purchaseData.items?.[0]?.warehouse?.location?.name
? purchaseData.items[0].warehouse.location.name
: '-'}