forked from Yara724/api
update the culprit licenses chnged and ActualPremium
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user