mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-13 08:21:26 +00:00
[React] Order tables (#5860)
* Factor out custom component for displaying project code information in a table * Bump API version * Update order serializers - Annotate 'completed_lines' to each order type * Build out columns for ReturnOrderTable * Improvements to PurchaseOrderTable * Building out SalesOrderTable * Column tweaks * Factor out project code column * Factor out status column * Factor out description column * Factor out more columns * More refactoring * Center status labels * Fix for PurchaseOrderLineItemTable * Improve rendering * Remove unused imports * Refactor TotalPriceColumn * Add generic currency column for rendering currency / money values
This commit is contained in:
@ -8,6 +8,7 @@ import { useTableRefresh } from '../../../hooks/TableRefresh';
|
||||
import { ApiPaths, apiUrl } from '../../../states/ApiState';
|
||||
import { Thumbnail } from '../../images/Thumbnail';
|
||||
import { TableColumn } from '../Column';
|
||||
import { DescriptionColumn, LinkColumn } from '../ColumnRenderers';
|
||||
import { TableFilter } from '../Filter';
|
||||
import { InvenTreeTable, InvenTreeTableProps } from '../InvenTreeTable';
|
||||
import { TableHoverCard } from '../TableHoverCard';
|
||||
@ -42,11 +43,7 @@ function partTableColumns(): TableColumn[] {
|
||||
sortable: true,
|
||||
title: t`Units`
|
||||
},
|
||||
{
|
||||
accessor: 'description',
|
||||
title: t`Description`,
|
||||
sortable: true
|
||||
},
|
||||
DescriptionColumn(),
|
||||
{
|
||||
accessor: 'category',
|
||||
title: t`Category`,
|
||||
@ -155,10 +152,7 @@ function partTableColumns(): TableColumn[] {
|
||||
return '-- price --';
|
||||
}
|
||||
},
|
||||
{
|
||||
accessor: 'link',
|
||||
title: t`Link`
|
||||
}
|
||||
LinkColumn()
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user