Skip to content

Commit

Permalink
Update <SupplierPartDetail>
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Dec 3, 2024
1 parent 528fc0a commit 783352d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/frontend/src/pages/company/SupplierPartDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ export default function SupplierPartDetail() {
copy: true,
icon: 'stock'
},
{
type: 'string',
name: 'on_order',
label: t`On Order`,
copy: true,
icon: 'purchase_orders'
},
{
type: 'string',
name: 'available',
Expand Down Expand Up @@ -376,6 +383,12 @@ export default function SupplierPartDetail() {
color={'red'}
visible={supplierPart.active && supplierPart.in_stock == 0}
key='no_stock'
/>,
<DetailsBadge
label={`${t`On Order`}: ${supplierPart.on_order}`}
color='blue'
visible={supplierPart.on_order > 0}
key='on_order'
/>
];
}, [supplierPart]);
Expand Down

0 comments on commit 783352d

Please sign in to comment.