This commit is contained in:
2026-03-15 16:40:25 -05:00
parent 15116807ce
commit 59754c7657
33 changed files with 1620 additions and 49 deletions

View File

@@ -68,6 +68,7 @@ import type {
} from "@mrp/shared/dist/projects/types.js";
import type {
SalesCustomerOptionDto,
DemandPlanningRollupDto,
SalesDocumentDetailDto,
SalesDocumentInput,
SalesOrderPlanningDto,
@@ -635,6 +636,9 @@ export const api = {
getSalesOrderPlanning(token: string, orderId: string) {
return request<SalesOrderPlanningDto>(`/api/v1/sales/orders/${orderId}/planning`, undefined, token);
},
getDemandPlanningRollup(token: string) {
return request<DemandPlanningRollupDto>("/api/v1/sales/planning-rollup", undefined, token);
},
createSalesOrder(token: string, payload: SalesDocumentInput) {
return request<SalesDocumentDetailDto>("/api/v1/sales/orders", { method: "POST", body: JSON.stringify(payload) }, token);
},