fix(mainmaterial check): if the machine dose not require mm to be staged properly ignore

This commit is contained in:
2025-07-31 11:54:40 -05:00
parent f574645b44
commit 0d17fef1a1

View File

@@ -19,7 +19,7 @@ export const isMainMatStaged = async (lot: any) => {
(m: any) => m.HumanReadableId === lot.machineID
);
// we have a check on ksc side to ignore the tetra machine for now as its not updating in 2.0
if (machine.StagingMainMaterialMandatory === 0) {
if (!machine[0].StagingMainMaterialMandatory) {
createLog(
"info",
"mainMaterial",