fix 450eb18

This commit is contained in:
Chika 2022-09-29 16:35:12 +03:00
parent 450eb18f24
commit c6f8d2d2ca

View File

@ -867,12 +867,12 @@ const reactionEffects: IReactionEffect[] = [
calculationStore.setFilter('selectLeasingWithoutKasko', options =>
options.filter(
x =>
x?.evo_max_period &&
x?.evo_min_period &&
x?.evo_max_period !== undefined &&
x?.evo_min_period !== undefined &&
x.evo_max_period >= leasingPeriod &&
x.evo_min_period <= leasingPeriod &&
x?.evo_max_price &&
x?.evo_min_price &&
x?.evo_max_price !== undefined &&
x?.evo_min_price !== undefined &&
x.evo_max_price >=
plPriceRub - discountRub - importProgramSum + addEquipmentPrice &&
x.evo_min_price <=
@ -881,9 +881,9 @@ const reactionEffects: IReactionEffect[] = [
x => x.evo_leasingobject_typeid === leaseObjectType,
) &&
x.evo_visible_calc &&
x.evo_min_first_payment_perc &&
x.evo_min_first_payment_perc !== undefined &&
x.evo_min_first_payment_perc <= firstPaymentPerc &&
x.evo_max_first_payment_perc &&
x.evo_max_first_payment_perc !== undefined &&
x.evo_max_first_payment_perc >= firstPaymentPerc &&
!x.evo_models?.map(x => x.evo_modelid).includes(modelId),
),