feat(ocp): materials contorls and transfer to next lot logic
This commit is contained in:
@@ -170,20 +170,15 @@ export const labelingProcess = async ({
|
||||
};
|
||||
}
|
||||
|
||||
// check mm is good
|
||||
// check the material... mm,color (auto and manual combined), pkg
|
||||
const mmStaged = await isMainMatStaged(filteredLot[0]);
|
||||
|
||||
if (!mmStaged) {
|
||||
createLog(
|
||||
"error",
|
||||
"labeling",
|
||||
"ocp",
|
||||
`Main material is not prepaired for lot ${filteredLot[0].lot}`
|
||||
);
|
||||
if (!mmStaged.success) {
|
||||
createLog("error", "labeling", "ocp", mmStaged.message);
|
||||
|
||||
return {
|
||||
success: false,
|
||||
message: `Main material is not prepaired for lot ${filteredLot[0].lot}`,
|
||||
message: mmStaged.message,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user