forked from Yara724/api
daghi + expert and damage expert name in decision +
signature required added
This commit is contained in:
@@ -1173,13 +1173,14 @@ export class RequestManagementService {
|
||||
? req.workflow.completedSteps
|
||||
: [];
|
||||
if (!completed.includes(stepKey)) completed.push(stepKey);
|
||||
if (!completed.includes(WorkflowStep.COMPLETED as any)) {
|
||||
completed.push(WorkflowStep.COMPLETED as any);
|
||||
// Same as post–field-expert reply: guilt phase is satisfied without an expert; parties must still sign.
|
||||
if (!completed.includes(WorkflowStep.WAITING_FOR_GUILT_DECISION)) {
|
||||
completed.push(WorkflowStep.WAITING_FOR_GUILT_DECISION);
|
||||
}
|
||||
req.workflow.completedSteps = completed;
|
||||
req.workflow.currentStep = WorkflowStep.COMPLETED;
|
||||
req.workflow.currentStep = WorkflowStep.WAITING_FOR_SIGNATURES;
|
||||
req.workflow.nextStep = undefined;
|
||||
req.status = CaseStatus.COMPLETED;
|
||||
req.status = CaseStatus.WAITING_FOR_SIGNATURES;
|
||||
closedByMutualAgreement = true;
|
||||
}
|
||||
}
|
||||
@@ -1219,7 +1220,11 @@ export class RequestManagementService {
|
||||
metadata: {
|
||||
role,
|
||||
...(closedByMutualAgreement
|
||||
? { mutualAgreementCaseComplete: true, closedWithoutExpert: true }
|
||||
? {
|
||||
mutualAgreementWithoutExpert: true,
|
||||
closedWithoutExpert: true,
|
||||
awaitingSignatures: true,
|
||||
}
|
||||
: {}),
|
||||
},
|
||||
} as any);
|
||||
|
||||
Reference in New Issue
Block a user