ELT: fix OSAGO vehiclePower
This commit is contained in:
parent
c0f0c3ced3
commit
4c28e6a6ba
@ -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}`)) {
|
||||
|
||||
Reference in New Issue
Block a user