2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-27 19:16:44 +00:00

Filter fix (#8652)

* Allow ordering  by IPN

* Update table
This commit is contained in:
Oliver 2024-12-11 15:44:00 +11:00 committed by GitHub
parent ad6bd635e6
commit 1adc42d422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -580,6 +580,7 @@ class PurchaseOrderLineItemList(
ordering_field_aliases = {
'MPN': 'part__manufacturer_part__MPN',
'SKU': 'part__SKU',
'IPN': 'part__part__IPN',
'part_name': 'part__part__name',
'order': 'order__reference',
'status': 'order__status',
@ -594,6 +595,7 @@ class PurchaseOrderLineItemList(
'received',
'reference',
'SKU',
'IPN',
'total_price',
'target_date',
'order',

View File

@ -129,12 +129,14 @@ export function PurchaseOrderLineItemTable({
accessor: 'part',
title: t`Part`,
sortable: true,
ordering: 'part_name',
switchable: false,
render: (record: any) => PartColumn({ part: record.part_detail })
},
{
accessor: 'part_detail.IPN',
sortable: false
sortable: true,
ordering: 'IPN'
},
{
accessor: 'part_detail.description',