fix preparedValues
This commit is contained in:
parent
956180c52b
commit
f040cec7d2
@ -809,9 +809,9 @@ export async function createRequestData({
|
||||
},
|
||||
|
||||
async nmperInsurance() {
|
||||
const { insured } = insurance.values.kasko;
|
||||
const { insTerm } = insurance.values.kasko;
|
||||
|
||||
return insured === 100_000_001 ? values.leasingPeriod : 12;
|
||||
return insTerm === 100_000_001 ? values.leasingPeriod : 12;
|
||||
},
|
||||
|
||||
async npvniDelta() {
|
||||
@ -842,37 +842,12 @@ export async function createRequestData({
|
||||
},
|
||||
|
||||
async nsibBase() {
|
||||
const discount = await this.discount();
|
||||
const plPrice = await this.plPrice();
|
||||
const importProgramSum = await this.importProgramSum();
|
||||
const insuranceContract = await this.insuranceContract();
|
||||
const rats = await this.rats();
|
||||
const registration = await this.registration();
|
||||
const trackerCost = await this.trackerCost();
|
||||
const tLMCost = await this.tlmCost();
|
||||
const transportTaxGr = await this.transportTaxGr();
|
||||
const tlmCostPaymentSum = await this.tlmCostPaymentSum();
|
||||
const gpsCostPaymentSum = await this.gpsCostPaymentSum();
|
||||
const leasing0K = await this.leasing0K();
|
||||
const firstPaymentSum = await this.firstPaymentSum();
|
||||
|
||||
const value =
|
||||
(plPrice -
|
||||
importProgramSum +
|
||||
(insuranceContract +
|
||||
rats +
|
||||
registration +
|
||||
trackerCost +
|
||||
tLMCost +
|
||||
transportTaxGr +
|
||||
tlmCostPaymentSum +
|
||||
gpsCostPaymentSum) *
|
||||
leasing0K -
|
||||
firstPaymentSum -
|
||||
(values.product === 'LEASING0' ? 0 : discount)) *
|
||||
(1 + VAT);
|
||||
const value = (plPrice - firstPaymentSum) * (1 + VAT);
|
||||
|
||||
return max([NSIB_MAX, value], (v) => v) ?? NSIB_MAX;
|
||||
return max([NSIB_MAX, value]) ?? NSIB_MAX;
|
||||
},
|
||||
|
||||
async nsibBonus() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user