validatePlanIntegrity
chainalign-backend / services/planIntegrityService / validatePlanIntegrity
Function: validatePlanIntegrity()
validatePlanIntegrity(
cycleId,productId,period):Promise<{details?:any;message:string;status:string; }>
Defined in: services/planIntegrityService.js:11
Validates the mathematical integrity of the S&OP plan data for a given period. Enforces: Previous_Period_Backlog + Current_Period_Bookings - Current_Period_Shipments = Current_Period_Backlog
Parameters
cycleId
string
The ID of the S&OP cycle.
productId
string
The ID of the product.
period
string
The planning period (e.g., 'YYYY-MM-DD').
Returns
Promise<{ details?: any; message: string; status: string; }>
Result of the integrity check.