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: fix bug in company creation with baseCurrencyCode

Rob Carrington60bae74c08a7
diff --git a/apps/carbon/app/routes/x+/settings+/company.new.tsx b/apps/carbon/app/routes/x+/settings+/company.new.tsx
index f59cabe0cb..3629d32876 100644
--- a/apps/carbon/app/routes/x+/settings+/company.new.tsx
+++ b/apps/carbon/app/routes/x+/settings+/company.new.tsx
@@ -47,9 +47,10 @@ export async function action({ request }: ActionFunctionArgs) {
}
// TODO: move all of this to transaction
+ const { baseCurrencyCode, ...locationData } = validation.data;
const [locationInsert] = await Promise.all([
upsertLocation(client, {
- ...validation.data,
+ ...locationData,
name: "Headquarters",
companyId,
timezone: getLocalTimeZone(),