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
refactor: rename projections to demand forecasts
Brad Barbindef630b24ba7
diff --git a/apps/erp/app/modules/items/ui/Item/ItemReorderPolicy.tsx b/apps/erp/app/modules/items/ui/Item/ItemReorderPolicy.tsxindex 3ca29bd5b7..806e2f1a3a 100644--- a/apps/erp/app/modules/items/ui/Item/ItemReorderPolicy.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemReorderPolicy.tsx@@ -126,34 +126,74 @@ function calculateOrders({ itemPlanning, periods }: BaseOrderParams): {// If projected stock is below safety stock, create orderif (projectedStock < demandAccumulationSafetyStock) {- let orderQuantity = demandAccumulationSafetyStock - projectedStock;+ let totalOrderQuantity =+ demandAccumulationSafetyStock - projectedStock;// Apply lot sizing rules- if (lotSize > 0) {- orderQuantity = Math.min(orderQuantity, lotSize);- }if (maximumOrderQuantity > 0) {- orderQuantity = Math.min(orderQuantity, maximumOrderQuantity);+ totalOrderQuantity = Math.min(+ totalOrderQuantity,+ maximumOrderQuantity+ );}- orderQuantity = Math.max(orderQuantity, minimumOrderQuantity);+ totalOrderQuantity = Math.max(+ totalOrderQuantity,+ minimumOrderQuantity+ );if (orderMultiple > 0) {- orderQuantity =- Math.ceil(orderQuantity / orderMultiple) * orderMultiple;+ totalOrderQuantity =+ Math.ceil(totalOrderQuantity / orderMultiple) * orderMultiple;}- const dueDate = parseDate(currentPeriod.startDate);- const startDate = dueDate.subtract({ days: leadTime });-- orders.push({- startDate: startDate.toString(),- dueDate: dueDate.toString(),- quantity: orderQuantity,- periodId: currentPeriod.id,- isASAP: startDate.compare(todaysDate) < 0,- });+ // If we have a lot size and need to split orders+ if (lotSize > 0 && totalOrderQuantity > lotSize) {+ const numberOfBatches = Math.ceil(totalOrderQuantity / lotSize);+ const daysInPeriod = 7; // Assuming weekly periods++ for (let batch = 0; batch < numberOfBatches; batch++) {+ const batchQuantity = Math.min(+ lotSize,+ totalOrderQuantity - batch * lotSize+ );++ // Spread due dates evenly across the period+ const dueDateOffset = Math.floor(+ (batch * daysInPeriod) / numberOfBatches+ );+ const dueDate = parseDate(currentPeriod.startDate).add({+ days: dueDateOffset,+ });+ const startDate = dueDate.subtract({ days: leadTime });++ orders.push({+ startDate: startDate.toString(),+ dueDate: dueDate.toString(),+ quantity: batchQuantity,+ periodId: currentPeriod.id,+ isASAP: startDate.compare(todaysDate) < 0,+ });+ }+ } else {+ // Single order for the period+ const orderQuantity =+ lotSize > 0+ ? Math.min(totalOrderQuantity, lotSize)+ : totalOrderQuantity;++ const dueDate = parseDate(currentPeriod.startDate);+ const startDate = dueDate.subtract({ days: leadTime });++ orders.push({+ startDate: startDate.toString(),+ dueDate: dueDate.toString(),+ quantity: orderQuantity,+ periodId: currentPeriod.id,+ isASAP: startDate.compare(todaysDate) < 0,+ });+ }- orderedQuantity += orderQuantity;+ orderedQuantity += totalOrderQuantity;}}diff --git a/apps/erp/app/modules/production/production.models.ts b/apps/erp/app/modules/production/production.models.tsindex 8497132877..54137a0bdd 100644--- a/apps/erp/app/modules/production/production.models.ts+++ b/apps/erp/app/modules/production/production.models.ts@@ -841,7 +841,7 @@ export const scrapReasonValidator = z.object({name: z.string().min(1, { message: "Name is required" }),});-export const productionProjectionsValidator = z.object({+export const demandForecastsValidator = z.object({itemId: z.string().min(1, { message: "Item is required" }),locationId: z.string().min(1, { message: "Location is required" }),periods: z.array(z.string()).optional(),diff --git a/apps/erp/app/modules/production/types.ts b/apps/erp/app/modules/production/types.tsindex 0a3899b53b..5cd1fd2b5c 100644--- a/apps/erp/app/modules/production/types.ts+++ b/apps/erp/app/modules/production/types.ts@@ -21,6 +21,10 @@ export type ActiveProductionEvent = NonNullable<Awaited<ReturnType<typeof getActiveProductionEvents>>["data"]>[number];+export type DemandForecast = NonNullable<+ Awaited<ReturnType<typeof getProductionProjections>>["data"]+>[number];+export type Job = NonNullable<Awaited<ReturnType<typeof getJob>>["data"]>;export type JobMakeMethod = NonNullable<@@ -51,10 +55,6 @@ export type ProductionQuantity = NonNullable<Awaited<ReturnType<typeof getProductionQuantities>>["data"]>[number];-export type ProductionProjection = NonNullable<- Awaited<ReturnType<typeof getProductionProjections>>["data"]->[number];-export type Procedures = NonNullable<Awaited<ReturnType<typeof getProcedures>>["data"]>[number];diff --git a/apps/erp/app/modules/production/ui/Projections/ProductionProjectionsForm.tsx b/apps/erp/app/modules/production/ui/Forecast/DemandForecastForm.tsxsimilarity index 87%rename from apps/erp/app/modules/production/ui/Projections/ProductionProjectionsForm.tsxrename to apps/erp/app/modules/production/ui/Forecast/DemandForecastForm.tsxindex 575ab7d04e..3307940412 100644--- a/apps/erp/app/modules/production/ui/Projections/ProductionProjectionsForm.tsx+++ b/apps/erp/app/modules/production/ui/Forecast/DemandForecastForm.tsx@@ -16,24 +16,24 @@ import type { z } from "zod";import { Hidden, Item, Location, Number, Submit } from "~/components/Form";import { usePermissions } from "~/hooks";import { path } from "~/utils/path";-import { productionProjectionsValidator } from "../../production.models";+import { demandForecastsValidator } from "../../production.models";type LoaderData = {periods?: Array<{ id: string; name: string }>;- initialValues?: z.infer<typeof productionProjectionsValidator>;+ initialValues?: z.infer<typeof demandForecastsValidator>;};-type ProductionProjectionsFormProps = {- initialValues?: z.infer<typeof productionProjectionsValidator>;+type DemandForecastsFormProps = {+ initialValues?: z.infer<typeof demandForecastsValidator>;isEditing?: boolean;onClose: () => void;};-const ProductionProjectionsForm = ({+const DemandForecastsForm = ({initialValues: propInitialValues,isEditing = false,onClose,-}: ProductionProjectionsFormProps) => {+}: DemandForecastsFormProps) => {const permissions = usePermissions();const fetcher = useFetcher<{ id: string }>();const loaderData = useLoaderData<LoaderData>();@@ -67,15 +67,15 @@ const ProductionProjectionsForm = ({><DrawerContent><ValidatedForm- validator={productionProjectionsValidator}+ validator={demandForecastsValidator}method="post"action={isEditing- ? path.to.productionProjection(+ ? path.to.demandForecast(initialValues.itemId!,initialValues.locationId!)- : path.to.newProductionProjection+ : path.to.newDemandForecast}defaultValues={initialValues}fetcher={fetcher}@@ -141,4 +141,4 @@ const ProductionProjectionsForm = ({);};-export default ProductionProjectionsForm;+export default DemandForecastsForm;diff --git a/apps/erp/app/modules/production/ui/Projections/ProductionProjectionsTable.tsx b/apps/erp/app/modules/production/ui/Forecast/DemandForecastTable.tsxsimilarity index 85%rename from apps/erp/app/modules/production/ui/Projections/ProductionProjectionsTable.tsxrename to apps/erp/app/modules/production/ui/Forecast/DemandForecastTable.tsxindex a11f6cc7b3..34e40623e8 100644--- a/apps/erp/app/modules/production/ui/Projections/ProductionProjectionsTable.tsx+++ b/apps/erp/app/modules/production/ui/Forecast/DemandForecastTable.tsx@@ -28,10 +28,10 @@ import ItemThumbnail from "~/components/ItemThumbnail";import { ConfirmDelete } from "~/components/Modals";import { usePermissions } from "~/hooks";import { path } from "~/utils/path";-import type { ProductionProjection } from "../../types";+import type { DemandForecast } from "../../types";-type ProductionProjectionsTableProps = {- data: ProductionProjection[];+type DemandForecastsTableProps = {+ data: DemandForecast[];count: number;locationId: string;periods: { id: string; startDate: string; endDate: string }[];@@ -42,8 +42,8 @@ const defaultColumnPinning = {right: ["actions"],};-const ProductionProjectionsTable = memo(- ({ data, count, locationId, periods }: ProductionProjectionsTableProps) => {+const DemandForecastsTable = memo(+ ({ data, count, locationId, periods }: DemandForecastsTableProps) => {const numberFormatter = useNumberFormatter();const dateFormatter = useDateFormatter({month: "short",@@ -52,15 +52,16 @@ const ProductionProjectionsTable = memo(const [params] = useUrlParams();const permissions = usePermissions();const locations = useLocations();- const [selectedItem, setSelectedItem] =- useState<ProductionProjection | null>(null);+ const [selectedItem, setSelectedItem] = useState<DemandForecast | null>(+ null+ );- const columns = useMemo<ColumnDef<ProductionProjection>[]>(() => {- const periodColumns: ColumnDef<ProductionProjection>[] = periods.map(+ const columns = useMemo<ColumnDef<DemandForecast>[]>(() => {+ const periodColumns: ColumnDef<DemandForecast>[] = periods.map((period, index) => {const isCurrentWeek = index === 0;const weekNumber = index + 1;- const weekKey = `week${weekNumber}` as keyof ProductionProjection;+ const weekKey = `week${weekNumber}` as keyof DemandForecast;const startDate = parseDate(period.startDate).toDate(getLocalTimeZone());@@ -95,7 +96,7 @@ const ProductionProjectionsTable = memo(header: "Part ID",cell: ({ row }) => (<Hyperlink- to={path.to.productionProjection(row.original.id!, locationId)}+ to={path.to.demandForecast(row.original.id!, locationId)}><HStack className="py-1 cursor-pointer"><ItemThumbnail@@ -139,7 +140,7 @@ const ProductionProjectionsTable = memo(<DropdownMenuContent align="end"><DropdownMenuItem asChild><Link- to={path.to.productionProjection(+ to={path.to.demandForecast(row.original.id!,locationId)}@@ -166,12 +167,12 @@ const ProductionProjectionsTable = memo(return (<>- <Table<ProductionProjection>+ <Table<DemandForecast>data={data}columns={columns}count={count}defaultColumnPinning={defaultColumnPinning}- title="Projections"+ title="Demand Forecasts"table="production-planning"withSavedViewwithSelectableRows@@ -197,10 +198,7 @@ const ProductionProjectionsTable = memo({selectedItem && (<ConfirmDelete- action={path.to.deleteProductionProjections(- selectedItem.id!,- locationId- )}+ action={path.to.deleteDemandForecasts(selectedItem.id!, locationId)}name={`${selectedItem.readableIdWithRevision} forecasts`}text={`Are you sure you want to delete all forecasts for ${selectedItem.readableIdWithRevision}? This action cannot be undone.`}onCancel={() => setSelectedItem(null)}@@ -212,9 +210,9 @@ const ProductionProjectionsTable = memo(});-ProductionProjectionsTable.displayName = "ProductionProjectionsTable";-export default ProductionProjectionsTable;+DemandForecastsTable.displayName = "DemandForecastsTable";+export default DemandForecastsTable;function getLocationPath(locationId: string) {- return `${path.to.productionProjections}?location=${locationId}`;+ return `${path.to.demandForecasts}?location=${locationId}`;}diff --git a/apps/erp/app/modules/production/ui/Forecast/index.ts b/apps/erp/app/modules/production/ui/Forecast/index.tsnew file mode 100644index 0000000000..c9207cc359--- /dev/null+++ b/apps/erp/app/modules/production/ui/Forecast/index.ts@@ -0,0 +1,4 @@+import DemandForecastForm from "./DemandForecastForm";+import DemandForecastTable from "./DemandForecastTable";++export { DemandForecastForm, DemandForecastTable };diff --git a/apps/erp/app/modules/production/ui/Projections/index.ts b/apps/erp/app/modules/production/ui/Projections/index.tsdeleted file mode 100644index e4ab2d433f..0000000000--- a/apps/erp/app/modules/production/ui/Projections/index.ts+++ /dev/null@@ -1,4 +0,0 @@-import ProductionProjectionsTable from "./ProductionProjectionsTable";-import ProductionProjectionsForm from "./ProductionProjectionsForm";--export { ProductionProjectionsTable, ProductionProjectionsForm };diff --git a/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx b/apps/erp/app/modules/production/ui/useProductionSubmodules.tsxindex c36b336b20..8a2cd60ec5 100644--- a/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx+++ b/apps/erp/app/modules/production/ui/useProductionSubmodules.tsx@@ -26,18 +26,19 @@ const productionRoutes: AuthenticatedRouteGroup[] = [{name: "Plan",routes: [+ {+ name: "Forecasts",+ to: path.to.demandForecasts,+ icon: <LuChartLine />,+ table: "demand-forecast",+ },{name: "Planning",to: path.to.productionPlanning,icon: <LuSquareChartGantt />,table: "production-planning",},- {- name: "Projections",- to: path.to.productionProjections,- icon: <LuChartLine />,- table: "production-projection",- },+{name: "Schedule",to: path.to.schedule,diff --git a/apps/erp/app/routes/x+/production+/projections.$itemId.$locationId.tsx b/apps/erp/app/routes/x+/production+/forecasts.$itemId.$locationId.tsxsimilarity index 91%rename from apps/erp/app/routes/x+/production+/projections.$itemId.$locationId.tsxrename to apps/erp/app/routes/x+/production+/forecasts.$itemId.$locationId.tsxindex 9776e89fb0..322dfc3fa5 100644--- a/apps/erp/app/routes/x+/production+/projections.$itemId.$locationId.tsx+++ b/apps/erp/app/routes/x+/production+/forecasts.$itemId.$locationId.tsx@@ -6,12 +6,12 @@ import { getLocalTimeZone, startOfWeek, today } from "@internationalized/date";import { useLoaderData, useNavigate } from "@remix-run/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";import { json, redirect } from "@vercel/remix";-import { productionProjectionsValidator } from "~/modules/production/production.models";+import { demandForecastsValidator } from "~/modules/production/production.models";import {getDemandForecasts,upsertDemandForecasts,} from "~/modules/production/production.service";-import ProductionProjectionsForm from "~/modules/production/ui/Projections/ProductionProjectionsForm";+import DemandForecastsForm from "~/modules/production/ui/Forecast/DemandForecastForm";import { getPeriods } from "~/modules/shared/shared.service";import { path } from "~/utils/path";@@ -83,7 +83,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}const formData = await request.formData();- const validation = await validator(productionProjectionsValidator).validate(+ const validation = await validator(demandForecastsValidator).validate(formData);@@ -127,7 +127,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}return redirect(- path.to.productionProjections + `?location=${routeLocationId}`,+ path.to.demandForecasts + `?location=${routeLocationId}`,await flash(request, success("Demand forecasts updated successfully")));}@@ -138,7 +138,7 @@ export default function EditProjectionRoute() {const navigate = useNavigate();return (- <ProductionProjectionsForm+ <DemandForecastsForminitialValues={initialValues}isEditingonClose={() => navigate(-1)}diff --git a/apps/erp/app/routes/x+/production+/projections.delete.$itemId.$locationId.tsx b/apps/erp/app/routes/x+/production+/forecasts.delete.$itemId.$locationId.tsxsimilarity index 88%rename from apps/erp/app/routes/x+/production+/projections.delete.$itemId.$locationId.tsxrename to apps/erp/app/routes/x+/production+/forecasts.delete.$itemId.$locationId.tsxindex fb869590ea..40cafcbfd2 100644--- a/apps/erp/app/routes/x+/production+/projections.delete.$itemId.$locationId.tsx+++ b/apps/erp/app/routes/x+/production+/forecasts.delete.$itemId.$locationId.tsx@@ -15,7 +15,7 @@ export async function action({ request, params }: ActionFunctionArgs) {});const { itemId, locationId } = params;-+if (!itemId || !locationId) {return json({},@@ -37,15 +37,12 @@ export async function action({ request, params }: ActionFunctionArgs) {if (periods.error) {return json({},- await flash(- request,- error(periods.error, "Failed to load periods")- )+ await flash(request, error(periods.error, "Failed to load periods")));}// Only delete forecasts for future periods (current week and beyond)- const futurePeriodIds = periods.data?.map(p => p.id) ?? [];+ const futurePeriodIds = periods.data?.map((p) => p.id) ?? [];const result = await deleteFutureDemandForecasts(client, {itemId,@@ -65,7 +62,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}return redirect(- path.to.productionProjections + `?location=${locationId}`,+ path.to.demandForecasts + `?location=${locationId}`,await flash(request, success("Demand forecasts deleted successfully")));-}\ No newline at end of file+}diff --git a/apps/erp/app/routes/x+/production+/projections.delete.$itemId.locationId.tsx b/apps/erp/app/routes/x+/production+/forecasts.delete.$itemId.locationId.tsxsimilarity index 96%rename from apps/erp/app/routes/x+/production+/projections.delete.$itemId.locationId.tsxrename to apps/erp/app/routes/x+/production+/forecasts.delete.$itemId.locationId.tsxindex 4d2352b2d9..79ed70bc1e 100644--- a/apps/erp/app/routes/x+/production+/projections.delete.$itemId.locationId.tsx+++ b/apps/erp/app/routes/x+/production+/forecasts.delete.$itemId.locationId.tsx@@ -57,7 +57,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}return redirect(- path.to.productionProjections + `?location=${locationId}`,+ path.to.demandForecasts + `?location=${locationId}`,await flash(request, success("Demand forecasts deleted successfully")));}diff --git a/apps/erp/app/routes/x+/production+/projections.new.tsx b/apps/erp/app/routes/x+/production+/forecasts.new.tsxsimilarity index 88%rename from apps/erp/app/routes/x+/production+/projections.new.tsxrename to apps/erp/app/routes/x+/production+/forecasts.new.tsxindex 79750cf548..153387165b 100644--- a/apps/erp/app/routes/x+/production+/projections.new.tsx+++ b/apps/erp/app/routes/x+/production+/forecasts.new.tsx@@ -7,9 +7,9 @@ import { getLocalTimeZone, startOfWeek, today } from "@internationalized/date";import { useNavigate } from "@remix-run/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";import { json, redirect } from "@vercel/remix";-import { productionProjectionsValidator } from "~/modules/production/production.models";+import { demandForecastsValidator } from "~/modules/production/production.models";import { upsertDemandForecasts } from "~/modules/production/production.service";-import ProductionProjectionsForm from "~/modules/production/ui/Projections/ProductionProjectionsForm";+import DemandForecastForm from "~/modules/production/ui/Forecast/DemandForecastForm";import { getPeriods } from "~/modules/shared/shared.service";import { path } from "~/utils/path";@@ -41,7 +41,7 @@ export async function action({ request }: ActionFunctionArgs) {});const formData = await request.formData();- const validation = await validator(productionProjectionsValidator).validate(+ const validation = await validator(demandForecastsValidator).validate(formData);@@ -95,7 +95,7 @@ export async function action({ request }: ActionFunctionArgs) {}return redirect(- path.to.productionProjections + `?location=${locationId}`,+ path.to.demandForecasts + `?location=${locationId}`,await flash(request, success("Demand forecasts created successfully")));}@@ -104,7 +104,7 @@ export default function NewProjectionRoute() {const navigate = useNavigate();const routeData = useRouteData<{locationId: string;- }>(path.to.productionProjections);+ }>(path.to.demandForecasts);const initialValues = {itemId: "",@@ -115,7 +115,7 @@ export default function NewProjectionRoute() {};return (- <ProductionProjectionsForm+ <DemandForecastFormonClose={() => navigate(-1)}initialValues={initialValues}/>diff --git a/apps/erp/app/routes/x+/production+/projections.tsx b/apps/erp/app/routes/x+/production+/forecasts.tsxsimilarity index 91%rename from apps/erp/app/routes/x+/production+/projections.tsxrename to apps/erp/app/routes/x+/production+/forecasts.tsxindex 18d1d8537f..89be52d8df 100644--- a/apps/erp/app/routes/x+/production+/projections.tsx+++ b/apps/erp/app/routes/x+/production+/forecasts.tsx@@ -7,7 +7,8 @@ import { Outlet, useLoaderData } from "@remix-run/react";import type { LoaderFunctionArgs } from "@vercel/remix";import { json, redirect } from "@vercel/remix";import { getProductionProjections } from "~/modules/production";-import { ProductionProjectionsTable } from "~/modules/production/ui/Projections";+import DemandForecastsTable from "~/modules/production/ui/Forecast/DemandForecastTable";+import { getLocationsList } from "~/modules/resources";import { getPeriods } from "~/modules/shared/shared.service";import { getUserDefaults } from "~/modules/users/users.server";@@ -17,8 +18,8 @@ import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";export const handle: Handle = {- breadcrumb: "Projections",- to: path.to.productionProjections,+ breadcrumb: "Forecasts",+ to: path.to.demandForecasts,};export const WEEKS_TO_PROJECT = 12 * 4;@@ -113,12 +114,13 @@ export async function loader({ request }: LoaderFunctionArgs) {});}-export default function ProductionProjectionsRoute() {- const { projections, count, locationId, periods } = useLoaderData<typeof loader>();+export default function DemandForecastsRoute() {+ const { projections, count, locationId, periods } =+ useLoaderData<typeof loader>();return (<VStack spacing={0} className="h-full">- <ProductionProjectionsTable+ <DemandForecastsTabledata={projections}count={count}locationId={locationId}diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex e50f2e9f00..37d55e1e87 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -566,10 +566,8 @@ export const path = {generatePath(`${x}/job/methods/event/delete/${id}`),deleteProductionQuantity: (id: string) =>generatePath(`${x}/job/methods/quantity/delete/${id}`),- deleteProductionProjections: (itemId: string, locationId: string) =>- generatePath(- `${x}/production/projections/delete/${itemId}/${locationId}`- ),+ deleteDemandForecasts: (itemId: string, locationId: string) =>+ generatePath(`${x}/production/forecasts/delete/${itemId}/${locationId}`),deletePurchaseInvoice: (id: string) =>generatePath(`${x}/purchase-invoice/${id}/delete`),deletePurchaseInvoiceLine: (invoiceId: string, lineId: string) =>@@ -637,6 +635,9 @@ export const path = {generatePath(`${x}/settings/webhooks/delete/${id}`),deleteWorkCenter: (id: string) =>generatePath(`${x}/resources/work-centers/delete/${id}`),+ demandForecast: (itemId: string, locationId: string) =>+ generatePath(`${x}/production/forecasts/${itemId}/${locationId}`),+ demandForecasts: `${x}/production/forecasts`,department: (id: string) => generatePath(`${x}/people/departments/${id}`),departments: `${x}/people/departments`,document: (id: string) => generatePath(`${x}/documents/search/${id}`),@@ -889,7 +890,7 @@ export const path = {generatePath(`${x}/procedure/${id}/attributes/new`),newProcedureParameter: (id: string) =>generatePath(`${x}/procedure/${id}/parameters/new`),- newProductionProjection: `${x}/production/projections/new`,+ newDemandForecast: `${x}/production/forecasts/new`,newItemPostingGroup: `${x}/items/groups/new`,newMaterialDimension: `${x}/items/dimensions/new`,newMaterialFinish: `${x}/items/finishes/new`,@@ -1028,9 +1029,6 @@ export const path = {processes: `${x}/resources/processes`,production: `${x}/production`,productionPlanning: `${x}/production/planning`,- productionProjection: (itemId: string, locationId: string) =>- generatePath(`${x}/production/projections/${itemId}/${locationId}`),- productionProjections: `${x}/production/projections`,productionPlanningItem: (itemId: string) =>generatePath(`${x}/production/planning/${itemId}`),