EvoKasko: поправили некоторые формулы

This commit is contained in:
Chika 2022-11-01 18:56:55 +03:00
parent fb98cbf6fd
commit 1eda3e2b3a
2 changed files with 3 additions and 5 deletions

View File

@ -26,9 +26,7 @@ public class PostValues : v2.PostValues
+ Math.Abs(tlmGrColumn.Values[0]) + Math.Abs(gpsGrColumn.Values[0]) + _preparedValues.Rats +
_preparedValues.Registration + _preparedValues.TrackerCost +
_preparedValues.TLMCost + _preparedValues.TransportTaxGr +
_preparedValues.InsuranceFinGAPNmper +
_preparedValues.InsuranceEvoKasko / 12 * _preparedValues.Nmper +
_preparedValues.InsuranceBonusLoss / 12 * _preparedValues.Nmper) *
_preparedValues.InsuranceFinGAPNmper) *
(decimal) _preparedValues.Leasing0K +
_preparedValues.NsibBrutto;
}

View File

@ -113,8 +113,8 @@ public class NextValues
var nextCostInsurance = 0m;
if (nextTableInsurance != null)
nextCostInsurance = nextTableInsurance
.Where(x => x.TypeRiskInsurance is "KASKO" or "OSAGO" or "GAP" or "EvoKASKO")
.Sum(x => x.CostInsurance + x.InsuranceBonusLoss);
.Where(x => x.TypeRiskInsurance is "KASKO" or "OSAGO" or "GAP")
.Sum(x => x.CostInsurance);
BaseCost = (preparedValues.PlPrice.Next
+ nextCostInsurance