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.

Merge branch 'main' into feat/quote-prices

Brad Barbin73fbca3caf7c
diff --cc apps/carbon/app/modules/accounting/accounting.service.ts
index 722fa89a2f,72248820a3..7b543128f2
--- a/apps/carbon/app/modules/accounting/accounting.service.ts
+++ b/apps/carbon/app/modules/accounting/accounting.service.ts
@@@ -375,7 -383,7 +383,9 @@@ export async function getCurrencies
query = query.ilike("name", `%${args.name}%`);
}
- query = setGenericQueryFilters(query, args, "isBaseCurrency", false);
- query = setGenericQueryFilters(query, args);
++ query = setGenericQueryFilters(query, args, [
++ { column: "isBaseCurrency", ascending: false },
++ ]);
return query;
}
diff --cc www/pages/develop/core-concepts/fetching.mdx
index 569a01a840,569a01a840..f021b5f2cb
--- a/www/pages/develop/core-concepts/fetching.mdx
+++ b/www/pages/develop/core-concepts/fetching.mdx
@@@ -3,7 -3,7 +3,7 @@@ title: Data Fetching in Carbon ER
description: Conventions for fetching data in Carbon ERP
---
--import { Callout, Tabs, Tab } from "nextra-theme-docs";
++import { Callout, Tab, Tabs } from "nextra-theme-docs";
# Fetching
@@@ -106,7 -106,7 +106,9 @@@ export async function getPartners
if (args) {
// sort by supplier name by default
-- query = setGenericQueryFilters(query, args, "supplier(name)");
++ query = setGenericQueryFilters(query, args, [
++ { column: "supplier(name)", ascending: false },
++ ]);
}
return query;