PCHA#54724 INS: Opvragen melding geeft foutmelding
svn path=/Website/branches/v2018.2/; revision=40338
This commit is contained in:
@@ -457,6 +457,7 @@ function parentButton()
|
||||
|
||||
ROFIELDTR("fld", L("lcl_vakgroup_type"), mld_melding.srtdisc_oms);
|
||||
|
||||
var valid_kto_key = true;
|
||||
if (mld_melding.meldbron_key != S("mld_meldbron_key")) { // niet lastigvallen met defaultwaarde
|
||||
sql = "SELECT "+lcl.xsqla('mld_meldbron_omschrijving', 'mld_meldbron_key')
|
||||
+ " FROM mld_meldbron"
|
||||
@@ -476,6 +477,8 @@ function parentButton()
|
||||
// De controle moet aanwezig zijn.
|
||||
ROFIELDTR("fld", L("lcl_mld_frozen_costs") + " " + L("lcl_valutasign"), oRs("ins_deelsrtcontrole_freezecost").Value, {suppressEmpty: true, datatype: "currency"});
|
||||
}
|
||||
else
|
||||
valid_kto_key = false;
|
||||
oRs.close();
|
||||
}
|
||||
}
|
||||
@@ -515,8 +518,13 @@ function parentButton()
|
||||
|
||||
ROCHECKBOXTR("fldkto", L("lcl_mld_kto_invite"), mld_melding.kto, { suppressEmpty: true });
|
||||
|
||||
if (mld_melding.kto_type && mld_melding.kto_key > 0)
|
||||
mld.referentielink(mld_melding.kto_type, mld_melding.kto_key, L("lcl_mld_kto"), { tooltip: true });
|
||||
if (mld_melding.kto_type && mld_melding.kto_key > 0 && valid_kto_key)
|
||||
{
|
||||
if (valid_kto_key)
|
||||
mld.referentielink(mld_melding.kto_type, mld_melding.kto_key, L("lcl_mld_kto"), { tooltip: true });
|
||||
else
|
||||
ROFIELDTR("fld", L("lcl_mld_kto"), mld_melding.kto_type);
|
||||
}
|
||||
|
||||
if (mld_melding.mldgroup_key > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user