fix(mm check): correction to know if a machine is required to have mm or not

This commit is contained in:
2025-07-25 07:32:09 -05:00
parent d40ed30f55
commit 39d0768d50

View File

@@ -8,26 +8,26 @@ export const isMainMatStaged = async (lot: any) => {
// make staged false by deefault and error logged if theres an issue // make staged false by deefault and error logged if theres an issue
let isStaged = false; let isStaged = false;
// const { data, error } = (await tryCatch( const { data, error } = (await tryCatch(
// query( query(
// machineCheck.replace("where Active = 1 and [Location] = [loc]", ""), machineCheck.replace("where Active = 1 and [Location] = [loc]", ""),
// "check machine needs mm" "check machine needs mm"
// ) )
// )) as any; )) as any;
// const machine = data.data.filter( const machine = data.data.filter(
// (m: any) => m.HumanReadableId === lot.machineID (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 // we have a check on ksc side to ignore the tetra machine for now as its not updating in 2.0
// if (!machine.StagingMainMaterialMandatory) { if (machine.StagingMainMaterialMandatory === 0) {
// createLog( createLog(
// "info", "info",
// "mainMaterial", "mainMaterial",
// "ocp", "ocp",
// `The machine dose not require mm to print and book in.` `The machine dose not require mm to print and book in.`
// ); );
// return true; return true;
// } }
// strangly the lot is not always sending over in slc so adding this in for now to see what line is cauing this issue // strangly the lot is not always sending over in slc so adding this in for now to see what line is cauing this issue
if (!lot) { if (!lot) {