diff --git a/Haas_Lathes_BIDC/Bechtel ST-20.cps b/Haas_Lathes_BIDC/Bechtel ST-20.cps index 3020843..d5048de 100644 --- a/Haas_Lathes_BIDC/Bechtel ST-20.cps +++ b/Haas_Lathes_BIDC/Bechtel ST-20.cps @@ -2179,6 +2179,10 @@ function onSection() { writeRetract(currentSection, true); // retract in Z also } + if (hasParameter("notes") && getParameter("notes").toUpperCase().indexOf("APPROVED") <= -1) { + throw "Operation \"" + getParameter("operation-comment") + "\" not approved. See a Peer Mentor." + } + if (staticProperties.showNotes && hasParameter("notes")) { var notes = getParameter("notes"); if (notes) { diff --git a/Haas_Lathes_BIDC/Bechtel ST-20Y.cps b/Haas_Lathes_BIDC/Bechtel ST-20Y.cps index 6b1fb35..1a3baf0 100644 --- a/Haas_Lathes_BIDC/Bechtel ST-20Y.cps +++ b/Haas_Lathes_BIDC/Bechtel ST-20Y.cps @@ -2263,6 +2263,11 @@ function onSection() { writeRetract(currentSection, true); // retract in Z also } + if (hasParameter("notes") && getParameter("notes").toUpperCase().indexOf("APPROVED") <= -1) { + throw "Operation \"" + getParameter("operation-comment") + "\" not approved. See a Peer Mentor." + } + + if (staticProperties.showNotes && hasParameter("notes")) { var notes = getParameter("notes"); if (notes) {