ELT: fix OSAGO vehiclePower

This commit is contained in:
Chika 2021-09-15 15:19:57 +03:00
parent c0f0c3ced3
commit 4c28e6a6ba

View File

@ -61,10 +61,9 @@ export default function (this: ICalculationStore, company: IAccount) {
const model = this.getOption('selectGPSModel')?.evo_id;
const vehicleYear = this.getValue('leaseObjectYear') + '';
const leaseObjectCategory = this.getValue('leaseObjectCategory');
const vehiclePower =
leaseObjectCategory === 100000001
? parseFloat(this.getValue('leaseObjectMotorPower') || '0')
: '0';
const vehiclePower = parseFloat(
this.getValue('leaseObjectMotorPower') || '0',
);
let category = '0';
if (Object.keys(mapCategory).includes(`${leaseObjectCategory}`)) {