Add order sorting for sales order allocation tables (#12468)

This commit is contained in:
Oliver
2026-07-26 18:49:44 +10:00
committed by GitHub
parent 2a24dcfad9
commit 1bc758624e
2 changed files with 3 additions and 0 deletions
@@ -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,