EvoKasko: поправили некоторые формулы
This commit is contained in:
parent
fb98cbf6fd
commit
1eda3e2b3a
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user