ARBO#38510: RES: Ik kan opeens geen verbruiksartikelen meer opslaan.

svn path=/Website/branches/v2016.2/; revision=31634
This commit is contained in:
Maykel Geerdink
2016-11-23 11:29:29 +00:00
parent 7b8417c713
commit 79834e62d8
3 changed files with 5 additions and 5 deletions

View File

@@ -723,7 +723,7 @@ res = {
var expireCV = res.discipline_expire(oRs("res_discipline_key").Value, 0);
var expire = expireCV;
var expire_cancel = res.discipline_expire(oRs("res_discipline_key").Value, 1);
if (hasCV || params.check_hasCV)
if (hasCV)
{ // Wijzig earliest_expire_change, earliest_expire_changeCV en earliest_expire_cancel alleen als voor deze discipline ook echt catering/voorziening aanwezig is
if (expireCV > earliest_expire_changeCV) earliest_expire_changeCV = expireCV;
if (expire > earliest_expire_change) earliest_expire_change = expireCV;
@@ -758,7 +758,7 @@ res = {
// Na de disciplines van de voorzieningen nu als laatste de discipline van de ruimte van de reservering.
var canWrite_ruimte = true;
var res_ruimte_extern = false;
if (alg_ruimte_key == null && typeof pdisc_key == "undefined")
if (alg_ruimte_key == null && typeof pdisc_key == "undefined" && pdisc_key != null)
{ // "R" reservering, bepaal *ook* discipline van de ruimte en alg_ruimte_key
var sql = "SELECT MIN (alg_ruimte_key) alg_ruimte_key"
+ " , rr.res_discipline_key"

View File

@@ -30,7 +30,7 @@ var urole = getQParamSafe("urole");
var rsv_ruimte_key = getQParamInt("rsv_ruimte_key");
var verynew = getQParamInt("verynew",0);
var this_res = res.func_enabled(rsv_ruimte_key, null, {check_hasCV: true}); // Wat heb ik zoal aan rechten op deze specifieke reservering
var this_res = res.func_enabled(rsv_ruimte_key); // Wat heb ik zoal aan rechten op deze specifieke reservering
user.auth_required_or_abort(this_res.canChangeCV); // dat is toch wel het minste
res.res_set_dialect(rsv_ruimte_key);

View File

@@ -175,11 +175,11 @@ var resdeleted = this_res.rsv_ruimte_verwijder != null;
{
data.eLendOut = oRs("ins_alg_ruimte_key_org").value == null;
data.eReceive = !data.eLendOut;
if (oRs("bewerkbaar").Value == 1)
{
data.eAdapt = data.eReceive;
}
}
}
}