forked from Yara724/api
Fixed insurer
This commit is contained in:
@@ -260,6 +260,19 @@ export function canFinalizeExpertResend(claim: any): boolean {
|
||||
claim?.damage?.selectedParts,
|
||||
);
|
||||
|
||||
console.log("[canFinalizeExpertResend]", {
|
||||
docKeys,
|
||||
partKeys,
|
||||
docResults: docKeys.map((k) => ({
|
||||
k,
|
||||
uploaded: isRequiredDocumentUploaded(claim, k),
|
||||
})),
|
||||
partResults: partKeys.map((k) => ({
|
||||
k,
|
||||
captured: hasDamagedPartCapture(claim, k),
|
||||
})),
|
||||
});
|
||||
|
||||
if (docKeys.length === 0 && partKeys.length === 0) {
|
||||
return String(r.resendDescription || "").trim() !== "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user