fix: BIG-140Reordering sell, cost and inventory account on item details.

This commit is contained in:
a.bouhuolia
2021-10-31 13:40:10 +02:00
parent 6c663eb8a0
commit a0fc25a250

View File

@@ -54,6 +54,10 @@ export default function ItemDetailHeader() {
label={intl.get('category_name')}
children={defaultTo(item.category?.name, '-')}
/>
<DetailItem
label={intl.get('sell_account_id')}
children={defaultTo(item?.sell_account?.name, '-')}
/>
<DetailItem
label={intl.get('cost_account_id')}
children={defaultTo(item.cost_account?.name, '-')}
@@ -64,10 +68,6 @@ export default function ItemDetailHeader() {
children={defaultTo(item?.inventory_account?.name, '-')}
/>
</If>
<DetailItem
label={intl.get('sell_account_id')}
children={defaultTo(item?.sell_account?.name, '-')}
/>
<DetailItem
label={intl.get('item.sell_description')}
children={defaultTo(item.sell_description, '-')}