forked from Yara724/api
merge upstream
This commit is contained in:
@@ -423,6 +423,14 @@ export class ClaimRequestManagementService {
|
||||
: this.isRequiredDocumentUploadedOnClaim(claimCase, k);
|
||||
if (!ok) return false;
|
||||
}
|
||||
if (isCarBody) {
|
||||
const g = ClaimRequiredDocumentType.CAR_GREEN_CARD;
|
||||
const ok =
|
||||
assumeUploadedKey === g
|
||||
? true
|
||||
: this.isRequiredDocumentUploadedOnClaim(claimCase, g);
|
||||
if (!ok) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -439,6 +447,14 @@ export class ClaimRequestManagementService {
|
||||
: this.isRequiredDocumentUploadedOnClaim(claimCase, k);
|
||||
if (!ok) n++;
|
||||
}
|
||||
if (isCarBody) {
|
||||
const g = ClaimRequiredDocumentType.CAR_GREEN_CARD;
|
||||
const ok =
|
||||
assumeUploadedKey === g
|
||||
? true
|
||||
: this.isRequiredDocumentUploadedOnClaim(claimCase, g);
|
||||
if (!ok) n++;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
@@ -7990,8 +8006,8 @@ export class ClaimRequestManagementService {
|
||||
);
|
||||
}
|
||||
|
||||
// Initial flow: each document once. Expert resend: allow replacement.
|
||||
if (!isResendUpload) {
|
||||
// Initial flow: each document once. Expert resend and v3 in-person: allow replacement.
|
||||
if (!isResendUpload && !options?.v3InPersonFlow) {
|
||||
const existingDoc =
|
||||
(claimCase.requiredDocuments as any)?.get?.(body.documentKey) ??
|
||||
(claimCase.requiredDocuments as any)?.[body.documentKey];
|
||||
|
||||
Reference in New Issue
Block a user