WOIJ#60500: aiai bij zoeken mjob console.

svn path=/Website/branches/v2019.2/; revision=45422
This commit is contained in:
Maykel Geerdink
2020-01-13 09:02:14 +00:00
parent 7b93f1b52f
commit 841080bfca

View File

@@ -824,7 +824,7 @@ ins = {checkAutLevel:
+ " AND id2.ins_deelsrtcontrole_key NOT IN (SELECT MAX(idsc2.ins_deelsrtcontrole_key)" // NOT IN (laatste). Laatste is niet altijd de insp.ins_deelsrtcontrole_key.
+ " FROM ins_deelsrtcontrole idsc2"
+ " WHERE idsc2.ins_deel_key = " + pins_deel_key
+ " AND idsc2.ins_srtcontrole_key = " + params.deelsrtcont_key
+ " AND idsc2.ins_srtcontrole_key = " + params.srtcont_key
+ " AND idsc2.ins_scenario_key = 1)) penultimate_deelsrtcontrole_key"
+ " FROM ins_deelsrtcontrole idsc"
+ " , ins_v_defined_inspect_xcp xcp"