PLAT#47707: Bulkactie 'Voltooien' hangt niet af van instelling.

svn path=/Website/branches/v2017.2/; revision=35801
This commit is contained in:
Maykel Geerdink
2017-10-24 11:50:16 +00:00
parent 13bea3b054
commit 8382d52ffc

View File

@@ -778,7 +778,7 @@ ins = {checkAutLevel:
(ins_deelsrtcontrole_status == -1 || ins_deelsrtcontrole_status == 6) &&
actief && iresult.hasCTRWrite &&
((isc_options & 1) == 1);
iresult.canInspPlan = iresult.canInspPlanReq && ((isc_options & 1) == 1) && !ctr_ismjob;
iresult.canInspPlan = iresult.canInspPlanReq && !ctr_ismjob;
iresult.canInspPlanMjb = iresult.canInspPlanReq && ctr_ismjob;
// Bij eerste inspectie, geplande inspectie of verwerkte inspectie kan er gestart worden.
iresult.canInspStartReq = iresult.readuse && invoerAfterNext && !vervallen &&
@@ -800,8 +800,9 @@ ins = {checkAutLevel:
// Afronden kan vanuit elke status. Alleen vanuit status Gereed gemeld/Afgemeld(5) kan het zonder gegevens in te vullen.
iresult.canInspFinishReq = iresult.readuse && invoerAfterNext &&
actief && iresult.hasCTRWrite &&
((isc_options & 8) == 8) &&
!isScenario;
iresult.canInspFinish = iresult.canInspFinishReq && ((isc_options & 8) == 8) && !ctr_ismjob;
iresult.canInspFinish = iresult.canInspFinishReq && !ctr_ismjob;
iresult.canInspFinishMjb = iresult.canInspFinishReq && ins_deelsrtcontrole_status == 2 && ctr_ismjob;
// Alleen als de inspectie gereedgemeld is kan SNEL afgerond worden zonder gegevens in te vullen.
iresult.canInspFastFinish = iresult.canInspFinish && ins_deelsrtcontrole_status == 5;