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.

refactor: show accounting module and currencies submodule in UI

Rob Carringtone0d27c6bde34
diff --git a/apps/carbon/app/components/Layout/Navigation/useModules.tsx b/apps/carbon/app/components/Layout/Navigation/useModules.tsx
index b9c496b484..9ff5f03cf9 100644
--- a/apps/carbon/app/components/Layout/Navigation/useModules.tsx
+++ b/apps/carbon/app/components/Layout/Navigation/useModules.tsx
@@ -4,6 +4,7 @@ import {
LuCrown,
LuFactory,
LuFiles,
+ LuLandmark,
LuSettings,
LuShield,
LuShoppingCart,
@@ -56,12 +57,12 @@ export function useModules() {
// to: path.to.messaging,
// icon: BiMessage,
// },
- // {
- // permission: "accounting",
- // name: "Accounting",
- // to: path.to.chartOfAccounts,
- // icon: LuLandmark,
- // },
+ {
+ permission: "accounting",
+ name: "Accounting",
+ to: path.to.currencies,
+ icon: LuLandmark,
+ },
{
permission: "invoicing",
name: "Invoicing",
diff --git a/apps/carbon/app/modules/accounting/ui/useAccountingSubmodules.tsx b/apps/carbon/app/modules/accounting/ui/useAccountingSubmodules.tsx
index afd195e2af..de238634a6 100644
--- a/apps/carbon/app/modules/accounting/ui/useAccountingSubmodules.tsx
+++ b/apps/carbon/app/modules/accounting/ui/useAccountingSubmodules.tsx
@@ -3,79 +3,79 @@ import type { AuthenticatedRouteGroup } from "~/types";
import { path } from "~/utils/path";
const accountingRoutes: AuthenticatedRouteGroup[] = [
+ // {
+ // name: "Manage",
+ // routes: [
+ // {
+ // name: "Chart of Accounts",
+ // to: path.to.chartOfAccounts,
+ // role: "employee",
+ // },
+ // // {
+ // // name: "Journals",
+ // // to: path.to.accountingJournals,
+ // // role: "employee",
+ // // },
+ // ],
+ // },
+ // {
+ // name: "Posting Groups",
+ // routes: [
+ // // {
+ // // name: "Bank Account Groups",
+ // // to: path.to.accountingGroupsBankAccount,
+ // // role: "employee",
+ // // },
+ // // {
+ // // name: "Fixed Asset Groups",
+ // // to: path.to.accountingGroupsFixedAsset,
+ // // role: "employee",
+ // // },
+ // {
+ // name: "Inventory Groups",
+ // to: path.to.accountingGroupsInventory,
+ // role: "employee",
+ // },
+ // {
+ // name: "Purchasing Groups",
+ // to: path.to.accountingGroupsPurchasing,
+ // role: "employee",
+ // },
+ // {
+ // name: "Sales Groups",
+ // to: path.to.accountingGroupsSales,
+ // role: "employee",
+ // },
+ // ],
+ // },
{
- name: "Manage",
+ name: "Configure",
routes: [
+ // {
+ // name: "Account Categories",
+ // to: path.to.accountingCategories,
+ // role: "employee",
+ // },
{
- name: "Chart of Accounts",
- to: path.to.chartOfAccounts,
+ name: "Currencies",
+ to: path.to.currencies,
role: "employee",
},
// {
- // name: "Journals",
- // to: path.to.accountingJournals,
+ // name: "Default Accounts",
+ // to: path.to.accountingDefaults,
// role: "employee",
// },
- ],
- },
- {
- name: "Posting Groups",
- routes: [
// {
- // name: "Bank Account Groups",
- // to: path.to.accountingGroupsBankAccount,
+ // name: "Fiscal Year",
+ // to: path.to.fiscalYears,
// role: "employee",
// },
// {
- // name: "Fixed Asset Groups",
- // to: path.to.accountingGroupsFixedAsset,
+ // name: "Payment Terms",
+ // to: path.to.paymentTerms,
// role: "employee",
// },
- {
- name: "Inventory Groups",
- to: path.to.accountingGroupsInventory,
- role: "employee",
- },
- {
- name: "Purchasing Groups",
- to: path.to.accountingGroupsPurchasing,
- role: "employee",
- },
- {
- name: "Sales Groups",
- to: path.to.accountingGroupsSales,
- role: "employee",
- },
- ],
- },
- {
- name: "Configure",
- routes: [
- {
- name: "Account Categories",
- to: path.to.accountingCategories,
- role: "employee",
- },
- {
- name: "Currencies",
- to: path.to.currencies,
- role: "employee",
- },
- {
- name: "Default Accounts",
- to: path.to.accountingDefaults,
- role: "employee",
- },
- {
- name: "Fiscal Year",
- to: path.to.fiscalYears,
- role: "employee",
- },
- {
- name: "Payment Terms",
- to: path.to.paymentTerms,
- role: "employee",
- },
],
},
];