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
build: remove imports from ~/modules/purchasing in supplier-quote
Brad Barbinf71445351dc8
diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsxindex 57956a16cf..31a897b096 100644--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteForm.tsx@@ -28,8 +28,8 @@ import {} from "~/components/Form";import ExchangeRate from "~/components/Form/ExchangeRate";import { usePermissions, useUser } from "~/hooks";-import { supplierQuoteValidator } from "~/modules/purchasing";import { path } from "~/utils/path";+import { supplierQuoteValidator } from "../../purchasing.models";type SupplierQuoteFormValues = z.infer<typeof supplierQuoteValidator>;diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteHeader.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteHeader.tsxindex d24af48b88..4453150cb8 100644--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteHeader.tsx+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteHeader.tsx@@ -5,14 +5,15 @@ import { LuPanelLeft, LuPanelRight } from "react-icons/lu";import { usePanels } from "~/components/Layout";import { useRouteData } from "~/hooks";++import { path } from "~/utils/path";+import type {SupplierInteraction,SupplierQuote,SupplierQuoteLine,SupplierQuoteLinePrice,-} from "~/modules/purchasing";-import { path } from "~/utils/path";-+} from "../../types";import SupplierQuoteStatus from "./SupplierQuoteStatus";const SupplierQuoteHeader = () => {diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsxindex cc94956a1a..07b7970dc0 100644--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteLineForm.tsx@@ -39,13 +39,12 @@ import {UnitOfMeasure,} from "~/components/Form";import { usePermissions, useRouteData, useUser } from "~/hooks";-import type { SupplierQuote } from "~/modules/purchasing";-import {- DeleteSupplierQuoteLine,- supplierQuoteLineValidator,-} from "~/modules/purchasing";-import type { MethodItemType } from "~/modules/shared";++import type { MethodItemType } from "~/modules/shared/types";import { path } from "~/utils/path";+import { supplierQuoteLineValidator } from "../../purchasing.models";+import type { SupplierQuote } from "../../types";+import DeleteSupplierQuoteLine from "./DeleteSupplierQuoteLine";type SupplierQuoteLineFormProps = {initialValues: z.infer<typeof supplierQuoteLineValidator> & {diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsxindex 881f2b61ed..abbafd2326 100644--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsx+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteStatus.tsx@@ -1,5 +1,5 @@import { Status } from "@carbon/react";-import type { supplierQuoteStatusType } from "~/modules/purchasing";+import type { supplierQuoteStatusType } from "../../purchasing.models";type SupplierQuoteStatusProps = {status?: (typeof supplierQuoteStatusType)[number] | null;diff --git a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsxindex e74e1b028b..d130cdfb60 100644--- a/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx+++ b/apps/carbon/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx@@ -25,15 +25,15 @@ import {import { ConfirmDelete } from "~/components/Modals";import { usePermissions } from "~/hooks";import { useCustomColumns } from "~/hooks/useCustomColumns";-import type { SupplierQuote } from "~/modules/purchasing";-import {- SupplierQuoteStatus,- supplierQuoteStatusType,-} from "~/modules/purchasing";import { usePeople, useSuppliers } from "~/stores";import { favoriteSchema } from "~/types/validators";import { path } from "~/utils/path";-import QuoteStatus from "./SupplierQuoteStatus";+import { supplierQuoteStatusType } from "../../purchasing.models";+import type { SupplierQuote } from "../../types";+import {+ default as QuoteStatus,+ default as SupplierQuoteStatus,+} from "./SupplierQuoteStatus";type SupplierQuotesTableProps = {data: SupplierQuote[];