ELT(Kasko): category C*
This commit is contained in:
parent
4c28e6a6ba
commit
dccf6fd12f
@ -29,7 +29,7 @@ const mapVehicleUsage = {
|
||||
const mapCategory = {
|
||||
100000000: 'A',
|
||||
100000001: 'B',
|
||||
100000002: 'C2',
|
||||
// 100000002: 'C2',
|
||||
100000003: 'D',
|
||||
100000004: 'E1',
|
||||
};
|
||||
@ -75,6 +75,7 @@ export default function (this: ICalculationStore) {
|
||||
this.getValue('leaseObjectPrice') - this.getValue('supplierDiscountRub');
|
||||
|
||||
const leaseObjectCategory = this.getValue('leaseObjectCategory');
|
||||
|
||||
let notConfirmedGlassesDamages,
|
||||
notConfirmedGlassesDamagesSpecified = false,
|
||||
notConfirmedDamages,
|
||||
@ -113,7 +114,7 @@ export default function (this: ICalculationStore) {
|
||||
const sexSpecified = getSpecified(sex);
|
||||
|
||||
let maxAllowedMass = 0;
|
||||
if (this.getValue('leaseObjectCategory') === 100000002) {
|
||||
if (leaseObjectCategory === 100000002) {
|
||||
maxAllowedMass = this.getValue('maxMass');
|
||||
}
|
||||
const maxAllowedMassSpecified = getSpecified(maxAllowedMass);
|
||||
@ -132,12 +133,28 @@ export default function (this: ICalculationStore) {
|
||||
const vehicleUsageSpecified = getSpecified(vehicleUsage);
|
||||
|
||||
let seatingCapacity = 0;
|
||||
if (this.getValue('leaseObjectCategory') === 100000003) {
|
||||
if (leaseObjectCategory === 100000003) {
|
||||
seatingCapacity = this.getValue('countSeats');
|
||||
}
|
||||
const seatingCapacitySpecified = getSpecified(seatingCapacity);
|
||||
|
||||
const category = mapCategory[this.getValue('leaseObjectCategory')];
|
||||
let category = mapCategory[leaseObjectCategory];
|
||||
const leaseObjectType = this.getOption('selectLeaseObjectType');
|
||||
if (leaseObjectCategory === 100000002)
|
||||
switch (leaseObjectType?.evo_id) {
|
||||
case '7': {
|
||||
category = 'C1';
|
||||
break;
|
||||
}
|
||||
case '3': {
|
||||
category = 'C3';
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
category = 'C2';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const classification = [100000002, 100000003, 100000004].includes(
|
||||
this.getValue('leaseObjectCategory'),
|
||||
|
||||
Reference in New Issue
Block a user