Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(reports): the General Ledger account column is not sortable; the cursor drops the account.number sort

aashueaf5b99c8ce6
diff --git a/apps/erp/app/modules/accounting/ui/Reports/GeneralLedgerTable.tsx b/apps/erp/app/modules/accounting/ui/Reports/GeneralLedgerTable.tsx
index 33138e312d..4feeeeebeb 100644
--- a/apps/erp/app/modules/accounting/ui/Reports/GeneralLedgerTable.tsx
+++ b/apps/erp/app/modules/accounting/ui/Reports/GeneralLedgerTable.tsx
@@ -107,10 +107,12 @@ const GeneralLedgerTable = memo(
accessorKey: "accountId",
header: t`Account`,
cell: ({ row }) => accountLabel(row.original) || "—",
+ // The journal line view has no account number to sort by, and
+ // sorting by accountId would order by the id, not the number
+ enableSorting: false,
meta: {
mobile: "P3",
icon: <LuLandmark />,
- sortBy: "account.number",
exportValue: accountLabel,
filter: {
type: "static",