changes for duration kasko value

This commit is contained in:
Chika 2021-08-02 16:29:04 +03:00
parent 18bd2d562f
commit 39bab51403

View File

@ -59,7 +59,10 @@ export default function (this: ICalculationStore) {
engineType = mapEngineType[engineTypeValue];
}
const duration = this.getValue('leasingPeriod');
let duration = this.getValue('leasingPeriod');
if (duration < 12) {
duration = 12;
}
const cost =
this.getValue('leaseObjectPrice') - this.getValue('supplierDiscountRub');