AADS#51569: Bevindingen AAFM-DSM mbt inspecties en MJOB.
svn path=/Website/branches/v2017.2/; revision=36338
This commit is contained in:
@@ -478,6 +478,7 @@ function ins_list (pautfunction, params)
|
||||
|
||||
if (inspDone) return lclass;
|
||||
var ins_deelsrtcontrole_plandatum = oRs("ins_deelsrtcontrole_plandatum").Value;
|
||||
var ins_srtcontroledl_xcp_startdat = oRs("ins_srtcontroledl_xcp_startdat").Value;
|
||||
if (ins_deelsrtcontrole_plandatum == null)
|
||||
var dt = new Date(oRs("inspectie_next").Value);
|
||||
else
|
||||
@@ -492,7 +493,10 @@ function ins_list (pautfunction, params)
|
||||
// Als de eerste controle is ingepland (en eventueel gestart) dan staat de plandatum in beeld en is undetermined false.
|
||||
var nonext = oRs("nonext").Value == 1;
|
||||
var ctr_controle_type = oRs("ctr_controle_type").Value;
|
||||
var undetermined = (nonext && ctr_controle_type == 1 && ins_deelsrtcontrole_plandatum == null); // Eerste Controle(1) nog niet ingepland en uitgevoerd.
|
||||
var undetermined = (nonext &&
|
||||
ctr_controle_type == 1 &&
|
||||
ins_deelsrtcontrole_plandatum == null &&
|
||||
ins_srtcontroledl_xcp_startdat == null); // Eerste Controle(1) nog niet ingepland en uitgevoerd.
|
||||
|
||||
if (dt >= dtsoon && !undetermined)
|
||||
return lclass; // meer dan S("ins_inspect_soon_days") dagen in de toekomst
|
||||
|
||||
Reference in New Issue
Block a user