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 location to sales order table
Brad Barbin5c03b9e193fe
diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsxindex 2e2cd964b7..1d3fdcaad6 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx@@ -25,6 +25,7 @@ import {LuEllipsisVertical,LuFactory,LuLoader,+ LuMapPin,LuPencil,LuQrCode,LuSquareUser,@@ -53,6 +54,7 @@ import {parseDate,today,} from "@internationalized/date";+import { useLocations } from "~/components/Form/Location";import { usePaymentTerm } from "~/components/Form/PaymentTerm";import { useShippingMethod } from "~/components/Form/ShippingMethod";import type { jobStatus } from "~/modules/production/production.models";@@ -82,6 +84,7 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {const [customers] = useCustomers();const shippingMethods = useShippingMethod();const paymentTerms = usePaymentTerm();+ const locations = useLocations();const todaysDate = useMemo(() => today(getLocalTimeZone()), []);const { edit } = useSalesOrder();@@ -345,6 +348,28 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {icon: <LuTruck />,},},+ {+ accessorKey: "locationId",+ header: "Location",+ cell: ({ row }) => (+ <Enumerable+ value={+ locations.find((l) => l.value === row.original.locationId)+ ?.label ?? null+ }+ />+ ),+ meta: {+ icon: <LuMapPin />,+ filter: {+ type: "static",+ options: locations.map((l) => ({+ value: l.value,+ label: <Enumerable value={l.label} />,+ })),+ },+ },+ },{accessorKey: "paymentTermId",header: "Payment Method",@@ -432,6 +457,7 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {}, [customers,people,+ locations,customColumns,todaysDate,currencyFormatter,diff --git a/apps/university/app/components/Share.tsx b/apps/university/app/components/Share.tsxindex 4281047791..2a5423f1f0 100644--- a/apps/university/app/components/Share.tsx+++ b/apps/university/app/components/Share.tsx@@ -33,6 +33,7 @@ const Share = ({variant="secondary"aria-label="Copy"className={cn(+ "text-white",isCopied && "text-emerald-500 hover:text-emerald-500",className)}diff --git a/apps/university/app/config.tsx b/apps/university/app/config.tsxindex 53e240a199..ec183ecc5e 100644--- a/apps/university/app/config.tsx+++ b/apps/university/app/config.tsx@@ -666,15 +666,6 @@ export const modules: Config = ["Learn how to manage quote revisions and track changes throughout the quoting process.",duration: 66,},- {- id: "converting-quotes-orders",- loomUrl:- "https://www.loom.com/share/51e0c6dd053b4a3e904fc795d4fc298f?sid=0bb2081d-6bc4-4efb-8361-d2717dda9781",- name: "Converting Quotes to Orders",- description:- "Master the process of converting approved quotes into sales orders.",- duration: 0,- },],},{@@ -700,20 +691,20 @@ export const modules: Config = [{id: "quote-methods",loomUrl:- "https://www.loom.com/share/51e0c6dd053b4a3e904fc795d4fc298f?sid=0bb2081d-6bc4-4efb-8361-d2717dda9781",+ "https://www.loom.com/share/41958983c4b1449ca3c40e583e0daf65?sid=9d310e66-2e6d-4e6f-acc2-b8fcfd41eb63",name: "Quote Methods",description:"Learn how to use different quote methods to standardize your estimation process and ensure consistency.",- duration: 0,+ duration: 202,},{id: "quote-costing",loomUrl:- "https://www.loom.com/share/51e0c6dd053b4a3e904fc795d4fc298f?sid=0bb2081d-6bc4-4efb-8361-d2717dda9781",+ "https://www.loom.com/share/ac92c17f4937456681e52a413858d8ed?sid=1ed44514-06e8-4c3a-9b8b-d3c8d892ef0d",name: "Quote Costing and Pricing",description:"Master the art of calculating accurate costs for quotes including materials, labor, and overhead.",- duration: 0,+ duration: 186,},],},