1
0
forked from Yara724/api
This commit is contained in:
SepehrYahyaee
2026-07-11 11:25:42 +03:30
parent e59058520c
commit 2c8fd3960f

View File

@@ -263,8 +263,6 @@ export function buildClaimDetailsV2OwnerGuidance(
shape.mixedFactorAndPrice && shape.mixedFactorAndPrice &&
!claim.evaluation?.ownerPricedPartsApproval?.signedAt !claim.evaluation?.ownerPricedPartsApproval?.signedAt
) { ) {
const ow = objectionWindowForOwner(claim);
const allowObj = ow.pricingEligible;
return { return {
phaseKey: "SIGN_PRICED_LINES", phaseKey: "SIGN_PRICED_LINES",
headline: "Sign acceptance of priced lines", headline: "Sign acceptance of priced lines",
@@ -278,13 +276,12 @@ export function buildClaimDetailsV2OwnerGuidance(
"Multipart sign + agree + branchId", "Multipart sign + agree + branchId",
), ),
], ],
objectionAllowed: allowObj, objectionAllowed,
objectionHint: objectionHintWhen(allowObj), objectionHint,
}; };
} }
/** NEEDS_REVISION at INSURER_REVIEW without mixed gate — all-factor initial sign not used; fallback */ /** NEEDS_REVISION at INSURER_REVIEW without mixed gate — all-factor initial sign not used; fallback */
const allowObj = objectionWindowForOwner(claim).pricingEligible;
return { return {
phaseKey: "INSURER_REVIEW_NEEDS_REVISION", phaseKey: "INSURER_REVIEW_NEEDS_REVISION",
headline: "Insurer approval — action pending", headline: "Insurer approval — action pending",
@@ -298,13 +295,12 @@ export function buildClaimDetailsV2OwnerGuidance(
"Sign if prompted by app state", "Sign if prompted by app state",
), ),
], ],
objectionAllowed: allowObj, objectionAllowed,
objectionHint: objectionHintWhen(allowObj), objectionHint,
}; };
} }
if (cs === ClaimStatus.APPROVED && !claim.evaluation?.ownerInsurerApproval?.signedAt) { if (cs === ClaimStatus.APPROVED && !claim.evaluation?.ownerInsurerApproval?.signedAt) {
const allowObj = objectionWindowForOwner(claim).pricingEligible;
return { return {
phaseKey: "FINAL_SIGN_OR_REJECT", phaseKey: "FINAL_SIGN_OR_REJECT",
headline: "Accept or reject final pricing", headline: "Accept or reject final pricing",
@@ -323,8 +319,8 @@ export function buildClaimDetailsV2OwnerGuidance(
"Dispute priced lines before signing", "Dispute priced lines before signing",
), ),
], ],
objectionAllowed: allowObj, objectionAllowed,
objectionHint: objectionHintWhen(allowObj), objectionHint,
}; };
} }
} }