NYBU#38977 bij groepering op ruimte tellen de ruimtes nu 1x mee voor de totale beschikbaarheid, ipv 1x per catalogus.
svn path=/Website/trunk/; revision=37514
This commit is contained in:
@@ -176,8 +176,8 @@ function forhours(fn)
|
||||
+ " , beschik.res_discipline_key"
|
||||
+ (dayschedule
|
||||
? " ," + forhours(function (h) { return "b" + String(h); })
|
||||
: " , ROUND(bezetting,2) bezetting")
|
||||
+ " , ROUND(beschikbaar,2) beschikbaar"
|
||||
: " , ROUND(NVL(bezetting, 0), 2) bezetting")
|
||||
+ " , ROUND(NVL(beschikbaar, 0), 2) beschikbaar"
|
||||
+ " , di.alg_regio_key"
|
||||
+ " , l.alg_district_key"
|
||||
+ " , l.alg_locatie_key"
|
||||
@@ -698,8 +698,9 @@ function forhours(fn)
|
||||
|
||||
var tot_aantal_ruimten = 0;
|
||||
var tot_gebruik_uren = 0;
|
||||
var tot_beschikbaar_uren =0;
|
||||
var tot_beschikbaar_uren = 0;
|
||||
var totaal = [];
|
||||
var doneRoom = [];
|
||||
forhours(function (h) { totaal[h] = 0; })
|
||||
|
||||
function fntotalCalc(oRs)
|
||||
@@ -721,11 +722,20 @@ function forhours(fn)
|
||||
else
|
||||
{
|
||||
if (groupres == 14)
|
||||
{
|
||||
tot_aantal_ruimten++;
|
||||
if (!inArray(oRs("res_keycolumn").value, doneRoom)) // Is deze ruimte al geteld?
|
||||
{
|
||||
tot_beschikbaar_uren += oRs("beschikbaar_uren").value;
|
||||
doneRoom.push(oRs("res_keycolumn").value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tot_aantal_ruimten += oRs("aantal_ruimten").value;
|
||||
tot_gebruik_uren += (oRs("gebruik_uren").value? oRs("gebruik_uren").value : 0);
|
||||
tot_beschikbaar_uren += (oRs("beschikbaar_uren").value? oRs("beschikbaar_uren").value : 0);
|
||||
tot_beschikbaar_uren += oRs("beschikbaar_uren").value;
|
||||
}
|
||||
tot_gebruik_uren += oRs("gebruik_uren").value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user