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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: add links to documents on customer and supplier sidebars
Brad Barbincb7addfd03c0
diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsxindex ebcce1e4f9..20e2e683a4 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx@@ -1,5 +1,12 @@import { useParams } from "@remix-run/react";-import { LuBuilding, LuContact, LuCreditCard, LuMapPin } from "react-icons/lu";+import {+ LuBuilding,+ LuContact,+ LuCreditCard,+ LuLayoutList,+ LuMapPin,+ LuPackageSearch,+} from "react-icons/lu";import { TbRoute } from "react-icons/tb";import { usePermissions } from "~/hooks";import type { Role } from "~/types";@@ -52,6 +59,22 @@ export function useSupplierSidebar({ contacts, locations }: Props) {icon: <TbRoute />,shortcut: "Command+Shift+r",},+ {+ name: "Quotes",+ to: `${path.to.supplierQuotes}?filter=supplierId:eq:${supplierId}`,++ icon: <LuPackageSearch />,+ },+ {+ name: "Orders",+ to: `${path.to.purchaseOrders}?filter=supplierId:eq:${supplierId}`,+ icon: <LuLayoutList />,+ },+ {+ name: "Invoices",+ to: `${path.to.purchaseInvoices}?filter=supplierId:eq:${supplierId}`,+ icon: <LuCreditCard />,+ },// {// name: "Shipping",// to: path.to.supplierShipping(supplierId),diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsxindex ffc269a835..e20ffbf5da 100644--- a/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx@@ -6,6 +6,11 @@ import {LuMapPin,LuTruck,} from "react-icons/lu";+import {+ RiProgress2Line,+ RiProgress4Line,+ RiProgress8Line,+} from "react-icons/ri";import { usePermissions } from "~/hooks";import type { Role } from "~/types";import { path } from "~/utils/path";@@ -56,6 +61,24 @@ export function useCustomerSidebar({ contacts, locations }: Props) {icon: <LuTruck />,shortcut: "Command+Shift+s",},+ {+ name: "RFQs",+ to: `${path.to.salesRfqs}?filter=customerId:eq:${customerId}`,+ role: ["employee"],+ icon: <RiProgress2Line />,+ },+ {+ name: "Quotes",+ to: `${path.to.quotes}?filter=customerId:eq:${customerId}`,+ role: ["employee"],+ icon: <RiProgress4Line />,+ },+ {+ name: "Orders",+ to: `${path.to.salesOrders}?filter=customerId:eq:${customerId}`,+ role: ["employee"],+ icon: <RiProgress8Line />,+ },// {// name: "Accounting",// to: path.to.customerAccounting(customerId),