FSN#36624 tellen of er meerdere inspecties op een object zijn verbeterd

svn path=/Website/branches/v2016.1/; revision=29522
This commit is contained in:
Ruud Lipper
2016-05-25 14:31:46 +00:00
parent 9979a831c7
commit 8c576409b8

View File

@@ -74,7 +74,6 @@ if (srtcontrole_key < 0)
var sql = "SELECT COUNT (isc.ins_srtcontrole_key) aantal_srtcontoles"
+ " , MIN(isc.ins_srtcontrole_key) min_srtcontrole_key"
+ " , id.ins_deel_omschrijving"
+ " , fac.nextcyclusdatedeel (id.ins_deel_key, isc.ins_srtcontrole_key, 1)"
+ " FROM ins_deel id"
+ " , ins_srtdeel s"
+ " , ins_srtcontrole isc"
@@ -96,9 +95,8 @@ if (srtcontrole_key < 0)
+ " AND idsc2.ins_srtcontrole_key = isc.ins_srtcontrole_key)) < 6"
+ " )"
: "")
+ " GROUP BY id.ins_deel_omschrijving"
+ " , id.ins_deel_key"
+ " , isc.ins_srtcontrole_key";
+ " GROUP BY id.ins_deel_omschrijving";
var oRs = Oracle.Execute(sql);
if (oRs.Eof) // er is niets over
{