mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix: add type_formatted in item detail.
This commit is contained in:
@@ -34,7 +34,7 @@ export default function ItemDetailHeader() {
|
|||||||
</DetailsMenu>
|
</DetailsMenu>
|
||||||
|
|
||||||
<DetailsMenu direction={'horizantal'}>
|
<DetailsMenu direction={'horizantal'}>
|
||||||
<DetailItem label={intl.get('item_type')} children={item.type} />
|
<DetailItem label={intl.get('item_type')} children={item.type_formatted} />
|
||||||
<DetailItem
|
<DetailItem
|
||||||
label={intl.get('item_code')}
|
label={intl.get('item_code')}
|
||||||
children={defaultTo(item.code, '-')}
|
children={defaultTo(item.code, '-')}
|
||||||
|
|||||||
@@ -69,9 +69,9 @@ export const SellPriceCell = ({ cell: { value } }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const ItemTypeAccessor = (row) => {
|
export const ItemTypeAccessor = (row) => {
|
||||||
return row.type ? (
|
return row.type_formatted ? (
|
||||||
<Tag minimal={true} round={true} intent={Intent.NONE}>
|
<Tag minimal={true} round={true} intent={Intent.NONE}>
|
||||||
{intl.get(row.type)}
|
{row.type_formatted}
|
||||||
</Tag>
|
</Tag>
|
||||||
) : null;
|
) : null;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user