CWTD#45308 Capaciteit aan overzicht reserveerbare ruimten toegevoegd

svn path=/Website/branches/v2017.2/; revision=35608
This commit is contained in:
Ruud Lipper
2017-10-09 11:16:43 +00:00
parent d850579eb3
commit b95a4b99e8
2 changed files with 3 additions and 8 deletions

View File

@@ -249,13 +249,7 @@ function model_res_ruimte()
"dbs": "res_ruimte_extern_id",
"label": L("res_ruimte_extern_id"),
"typ": "varchar"
},
"capacity": {
"dbs": "nn_config",
"sql": "(SELECT CASE MAX (res_ruimte_opstel_bezoekers) WHEN MIN (res_ruimte_opstel_bezoekers) THEN TO_CHAR(MAX (res_ruimte_opstel_bezoekers)) ELSE MIN (res_ruimte_opstel_bezoekers) || '-' || MAX (res_ruimte_opstel_bezoekers) END FROM res_ruimte_opstelling rro WHERE res_ruimte_opstel_verwijder IS NULL AND rro.res_ruimte_key = res_ruimte.res_ruimte_key GROUP BY res_ruimte_key)",
"label": L("res_ruimte_opstel_bezoekers"),
"typ": "varchar"
}
}
};
// veld "res_ruimte_extern_id" alleen te wijzigen met PRSSYS rechten.

View File

@@ -28,8 +28,9 @@ scaffolding(model_res_ruimte,
"description",
"bookingdiscipline",
"bookingconfigurations.bookingconfiguration",
"bookingconfigurations.capacity",
"physicalrooms.ruimtekey"
]
]
},
"show": {
"js": ["./mgt_tools.js"],