FSN#36600 KPI: zonder werkplek kan het rapport niet gedraaid worden

svn path=/Website/branches/v2018.2/; revision=39909
This commit is contained in:
Alex Tiehuis
2018-11-21 15:28:14 +00:00
parent 7f873d24ac
commit c7473797b1

View File

@@ -34,10 +34,9 @@ if (freeze == 1)
var sql_l = " SELECT DISTINCT l.alg_locatie_key"
+ " , " + S("alg_loc_string")
+ " FROM alg_v_my_location ml"
+ " FROM kpi_v_kpi_scores sc"
+ " , alg_locatie l"
+ " WHERE ml.alg_locatie_key = l.alg_locatie_key" // moet hier een functie bij?
+ " AND ml.prs_perslid_key = " + user_key
+ " WHERE sc.alg_locatie_key = l.alg_locatie_key"
+ " ORDER BY 2";
var sql_p = "SELECT DISTINCT to_char(kpi_score_datum, 'YYYYMM'), to_char(kpi_score_datum, 'YYYY-MM')"