PNBR#54700: Aiai! melding bij Objecten onder Discipline 66 - transport.

svn path=/Website/trunk/; revision=39512
This commit is contained in:
Maykel Geerdink
2018-10-25 09:04:42 +00:00
parent e3f3d8e6e3
commit d24752a060

View File

@@ -682,8 +682,10 @@ checker("Controle queries die geen records mogen opleveren",
sql: "SELECT isc.ins_srtcontrole_key"
+ " FROM ins_srtcontrole isc"
+ " WHERE isc.ins_srtcontrole_mode = 0"
+ " AND (COALESCE(BITAND(isc.ins_srtcontrole_bits, 127), 0) = 0 OR" // Waarde in de eerste 7 bits.
+ " COALESCE(BITAND(isc.ins_srtcontrole_bits, 256 + 512 + 1024) / 256, 0) = 0)" // Waarde in bits 9 t/m 11.
+ " AND ((isc.ins_srtcontrole_eenheid = 2 AND COALESCE(BITAND(isc.ins_srtcontrole_bits, 127), 0) = 0)" // Wekelijks, waarde in de eerste 7 bits.
+ " OR (isc.ins_srtcontrole_eenheid = 3 AND (COALESCE(BITAND(isc.ins_srtcontrole_bits, 127), 0) = 0" // Maandelijks, waarde in de eerste 7 bits en
+ " OR COALESCE(BITAND(isc.ins_srtcontrole_bits, 256 + 512 + 1024), 0) = 0))" // waarde in bits 9 t/m 11.
+ " OR (isc.ins_srtcontrole_eenheid = 4 AND COALESCE(BITAND(isc.ins_srtcontrole_bits, 4095), 0) = 0))" // Jaarlijks, waarde in de eerste 11 bits.
},
{ msg: "Afdelingen die niet terugkomen in prs_v_afdeling (zichzelf als parent_key?)",
sql: "SELECT prs_afdeling_key"