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