diff --git a/APPL/RES/res_list_ppi.inc b/APPL/RES/res_list_ppi.inc index b6ba71fe5f..7b756fabf8 100644 --- a/APPL/RES/res_list_ppi.inc +++ b/APPL/RES/res_list_ppi.inc @@ -219,7 +219,7 @@ function forhours(fn) + ", ((fac.Count_Work_Days(" + ora_date1 + "-1 , " + ora_date2 + "))" + (dayschedule ? "" - : " * (LEAST(COALESCE(rr1.res_ruimte_eindtijd, " + S("res_t2") + ")," + S("res_rap_t2") + ")) - GREATEST(COALESCE(rr1.res_ruimte_begintijd, " + S("res_t1") + ")," + S("res_rap_t1") + ")") + ") beschikbaar" + : " * (LEAST(COALESCE(rr1.res_ruimte_eindtijd, " + S("res_t2") + ")," + S("res_rap_t2") + ") - GREATEST(COALESCE(rr1.res_ruimte_begintijd, " + S("res_t1") + ")," + S("res_rap_t1") + ")") + ")) beschikbaar" + " FROM res_ruimte rr1, res_alg_ruimte ra " + " WHERE rr1.res_ruimte_key = ra.res_ruimte_key " + " AND ra.res_alg_ruimte_aanmaak <= " + ora_date2