forked from Yara724/api
YARA-957
This commit is contained in:
@@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user