elt cringe
This commit is contained in:
parent
3446ac8502
commit
8341f79d9c
@ -6,8 +6,8 @@ export async function getKPData({ quote }: GetQuoteInputData): Promise<GetQuoteP
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
quote?.evo_kasko_accountid &&
|
quote?.evo_kasko_accountid &&
|
||||||
quote?.evo_id_elt_kasko &&
|
((quote?.evo_id_elt_kasko && quote?.evo_id_kasko_calc) ||
|
||||||
quote?.evo_id_kasko_calc &&
|
quote.evo_kasko_insurance_rulesidData?.evo_id) &&
|
||||||
quote?.evo_kasko_price &&
|
quote?.evo_kasko_price &&
|
||||||
quote?.evo_franchise !== null
|
quote?.evo_franchise !== null
|
||||||
) {
|
) {
|
||||||
@ -15,19 +15,23 @@ export async function getKPData({ quote }: GetQuoteInputData): Promise<GetQuoteP
|
|||||||
insuranceCondition:
|
insuranceCondition:
|
||||||
quote.evo_kasko_insurance_rulesidData?.evo_id ?? defaultRow.insuranceCondition,
|
quote.evo_kasko_insurance_rulesidData?.evo_id ?? defaultRow.insuranceCondition,
|
||||||
key: quote?.evo_kasko_accountid,
|
key: quote?.evo_kasko_accountid,
|
||||||
requestId: quote?.evo_id_elt_kasko,
|
requestId: quote?.evo_id_elt_kasko ?? defaultRow.requestId,
|
||||||
skCalcId: quote?.evo_id_kasko_calc,
|
skCalcId: quote?.evo_id_kasko_calc ?? defaultRow.skCalcId,
|
||||||
sum: quote?.evo_kasko_price,
|
sum: quote?.evo_kasko_price,
|
||||||
totalFranchise: quote?.evo_franchise,
|
totalFranchise: quote?.evo_franchise,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quote?.evo_osago_accountid && quote?.evo_id_elt_osago && quote?.evo_osago_price) {
|
if (
|
||||||
|
quote?.evo_osago_accountid &&
|
||||||
|
(quote?.evo_id_elt_osago || quote.evo_osago_insurance_rulesiddData?.evo_id) &&
|
||||||
|
quote?.evo_osago_price
|
||||||
|
) {
|
||||||
elt.osago = {
|
elt.osago = {
|
||||||
insuranceCondition:
|
insuranceCondition:
|
||||||
quote.evo_osago_insurance_rulesiddData?.evo_id ?? defaultRow.insuranceCondition,
|
quote.evo_osago_insurance_rulesiddData?.evo_id ?? defaultRow.insuranceCondition,
|
||||||
key: quote?.evo_osago_accountid,
|
key: quote?.evo_osago_accountid,
|
||||||
numCalc: quote?.evo_id_elt_osago,
|
numCalc: quote?.evo_id_elt_osago ?? defaultRow.numCalc,
|
||||||
sum: quote?.evo_osago_price,
|
sum: quote?.evo_osago_price,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user