diff --git a/APPL/INS/ins.inc b/APPL/INS/ins.inc index cd1e665137..83ff38d6ce 100644 --- a/APPL/INS/ins.inc +++ b/APPL/INS/ins.inc @@ -6057,7 +6057,9 @@ ins = {checkAutLevel: + " WHERE idsc2.ins_deel_key = xcp.ins_deel_key" + " AND idsc2.ins_srtcontrole_key = xcp.ins_srtcontrole_key" + " AND idsc2.ins_scenario_key = xcp.ins_scenario_key)" - + " AND idsc1.ins_deelsrtcontrole_status IN (2" + (finish? ", 3" : "") + "))"); + + " AND idsc1.ins_deelsrtcontrole_status IN (2" + (finish? ", 3" : "") + ")" + + " AND EXTRACT(YEAR FROM idsc1.ins_deelsrtcontrole_freezedate) <= " + mjb_freeze_or_sys_year + + " )"); if (pricechange) mjblist_sql += " AND (xcp.ins_srtcontroledl_xcp_eind IS NULL OR xcp.ins_srtcontroledl_xcp_eind >= SYSDATE)"; // 1) Prijswijziging: Niet vervallen.