MARX#87850 Zonder ORDNEW geen rode driehoek maar "Zonder gebeurtenissen wordt automatisch ORDNEW ondersteund"

svn path=/Website/branches/v2025.1/; revision=68304
This commit is contained in:
Jos Groot Lipman
2025-03-06 14:46:18 +00:00
parent ada9ed35a9
commit bc27b6bb7f
2 changed files with 14 additions and 0 deletions

View File

@@ -44,12 +44,21 @@ if (adres_type)
switch (adres_type)
{
case "B": model.includes.srtnotifications.model.fields.srtnotification.foreign.where += " AND fac_srtnotificatie_xmlnode = 'bestelling'";
// Met 2025.2 willen we ondersteunen dat de BES2NE enz. wel automatisch/standaard aanwezig zijn.
// Dan kunnen onderstaande 2 regels een paar keer verwijderd worden
model.includes.srtnotifications.required = false;
model.includes.srtnotifications.emptySetString = "Zonder gebeurtenissen wordt automatisch BES2NE ondersteund";
break;
case "C": model.includes.srtnotifications.model.fields.srtnotification.foreign.where += " AND fac_srtnotificatie_xmlnode = 'contract'";
model.includes.srtnotifications.required = false;
model.includes.srtnotifications.emptySetString = "Zonder gebeurtenissen wordt automatisch CNTNEW ondersteund";
break;
case "O": model.includes.srtnotifications.model.fields.srtnotification.foreign.where += " AND fac_srtnotificatie_xmlnode = 'opdracht'";
model.includes.srtnotifications.required = false;
model.includes.srtnotifications.emptySetString = "Zonder gebeurtenissen wordt automatisch ORDNEW ondersteund";
break;
case "R": model.includes.srtnotifications.model.fields.srtnotification.foreign.where += " AND fac_srtnotificatie_xmlnode = 'reservering'";
model.includes.srtnotifications.emptySetString = "Voeg hier RESSND toe";
break;
case "G": // generiek mag alles
break;

View File

@@ -364,6 +364,11 @@ function scaffolding_list(model, scf_params)
rs_params.required = true;
rs_params.emptySetString = L("lcl_scf_add_required").format(model.records_title);
}
if (scf_params.incsetting && scf_params.incsetting.emptySetString)
{
rs_params.emptySetString = scf_params.incsetting.emptySetString;
}
var rst = new ResultsetTable(rs_params);
function fnfncolCheck(fld)
{