update the culprit licenses chnged and ActualPremium

This commit is contained in:
2026-09-19 13:09:28 +03:30
parent 85576e7c5e
commit be06bfe1b5
6 changed files with 36 additions and 6 deletions

View File

@@ -3341,9 +3341,10 @@ export class ExpertClaimService {
const carPriceWasProvided = reply.carPrice != null;
let normalizedCurrentCarPrice: string | undefined;
let parsedCurrentCarPrice: number | undefined;
if (blame.type === BlameRequestType.CAR_BODY) {
const parsedCurrentCarPrice = parseMoneyAmountToman(reply.carPrice);
parsedCurrentCarPrice = parseMoneyAmountToman(reply.carPrice) ?? undefined;
if (
parsedCurrentCarPrice == null ||
!Number.isSafeInteger(parsedCurrentCarPrice) ||
@@ -3600,8 +3601,11 @@ export class ExpertClaimService {
"evaluation.ownerInsurerApproval": "",
"evaluation.ownerPricedPartsApproval": "",
},
...(normalizedCurrentCarPrice
? { "vehicle.price": normalizedCurrentCarPrice }
...(normalizedCurrentCarPrice && parsedCurrentCarPrice != null
? {
"vehicle.price": normalizedCurrentCarPrice,
"vehicle.carPrice": parsedCurrentCarPrice,
}
: {}),
"workflow.currentStep": currentStep,
"workflow.nextStep": nextWorkflowStep,