mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-28 01:17:21 +00:00
Add order sorting for sales order allocation tables (#12468)
This commit is contained in:
@@ -42,6 +42,8 @@ export default function PartSalesAllocationsTable({
|
|||||||
accessor: 'order',
|
accessor: 'order',
|
||||||
title: t`Sales Order`,
|
title: t`Sales Order`,
|
||||||
switchable: false,
|
switchable: false,
|
||||||
|
sortable: true,
|
||||||
|
ordering: 'order',
|
||||||
render: (record: any) => (
|
render: (record: any) => (
|
||||||
<Group wrap='nowrap' gap='xs'>
|
<Group wrap='nowrap' gap='xs'>
|
||||||
<RowExpansionIcon
|
<RowExpansionIcon
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ export default function SalesOrderAllocationTable({
|
|||||||
return [
|
return [
|
||||||
ReferenceColumn({
|
ReferenceColumn({
|
||||||
accessor: 'order_detail.reference',
|
accessor: 'order_detail.reference',
|
||||||
|
ordering: 'order',
|
||||||
title: t`Sales Order`,
|
title: t`Sales Order`,
|
||||||
switchable: false,
|
switchable: false,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user