From 2b3196ef930b8f7be712a020109e0eb65a45149f Mon Sep 17 00:00:00 2001 From: Maykel Geerdink Date: Wed, 7 Sep 2016 06:19:06 +0000 Subject: [PATCH] AKZA#36031: Object actief/inactief kunnen maken (taken automatisch deactiveren). svn path=/Website/trunk/; revision=30596 --- APPL/INS/ins.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APPL/INS/ins.inc b/APPL/INS/ins.inc index 5af6788808..56ad99492a 100644 --- a/APPL/INS/ins.inc +++ b/APPL/INS/ins.inc @@ -1030,7 +1030,7 @@ ins = {checkAutLevel: + " FROM ins_deelsrtcontrole idsc2" + " WHERE idsc2.ins_deel_key = di.ins_deel_key" + " AND idsc2.ins_srtcontrole_key = di.ins_srtcontrole_key" - + " AND idsc2.ins_deelsrtcontrole_status = 6))" + + " AND idsc2.ins_deelsrtcontrole_status IN (5, 6)))" + " ins_controlemode_success" + " , di.ctr_discipline_key ctr_disc_key" + " , (SELECT ins_discipline_omschrijving" @@ -1056,7 +1056,7 @@ ins = {checkAutLevel: + " FROM ins_deelsrtcontrole idsc2" + " WHERE idsc2.ins_deel_key = di.ins_deel_key" + " AND idsc2.ins_srtcontrole_key = di.ins_srtcontrole_key" - + " AND idsc2.ins_deelsrtcontrole_status = 6))" + (insSuccessY? " = 1" : " IS NULL")) + + " AND idsc2.ins_deelsrtcontrole_status IN (5, 6)))" + (insSuccessY? " = 1" : " IS NULL")) + " AND di.ctr_discipline_key IN (SELECT w.ins_discipline_key" + " FROM fac_v_webgebruiker w" + " , fac_functie f"