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 +
|
+ Math.Abs(tlmGrColumn.Values[0]) + Math.Abs(gpsGrColumn.Values[0]) + _preparedValues.Rats +
|
||||||
_preparedValues.Registration + _preparedValues.TrackerCost +
|
_preparedValues.Registration + _preparedValues.TrackerCost +
|
||||||
_preparedValues.TLMCost + _preparedValues.TransportTaxGr +
|
_preparedValues.TLMCost + _preparedValues.TransportTaxGr +
|
||||||
_preparedValues.InsuranceFinGAPNmper +
|
_preparedValues.InsuranceFinGAPNmper) *
|
||||||
_preparedValues.InsuranceEvoKasko / 12 * _preparedValues.Nmper +
|
|
||||||
_preparedValues.InsuranceBonusLoss / 12 * _preparedValues.Nmper) *
|
|
||||||
(decimal) _preparedValues.Leasing0K +
|
(decimal) _preparedValues.Leasing0K +
|
||||||
_preparedValues.NsibBrutto;
|
_preparedValues.NsibBrutto;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,8 +113,8 @@ public class NextValues
|
|||||||
var nextCostInsurance = 0m;
|
var nextCostInsurance = 0m;
|
||||||
if (nextTableInsurance != null)
|
if (nextTableInsurance != null)
|
||||||
nextCostInsurance = nextTableInsurance
|
nextCostInsurance = nextTableInsurance
|
||||||
.Where(x => x.TypeRiskInsurance is "KASKO" or "OSAGO" or "GAP" or "EvoKASKO")
|
.Where(x => x.TypeRiskInsurance is "KASKO" or "OSAGO" or "GAP")
|
||||||
.Sum(x => x.CostInsurance + x.InsuranceBonusLoss);
|
.Sum(x => x.CostInsurance);
|
||||||
|
|
||||||
BaseCost = (preparedValues.PlPrice.Next
|
BaseCost = (preparedValues.PlPrice.Next
|
||||||
+ nextCostInsurance
|
+ nextCostInsurance
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user