EarlyRedemption: fix (Приведение копеек под сумму досрочки в графике ДЛ)

This commit is contained in:
vchikalkin 2024-04-01 12:02:18 +03:00
parent 6653d0a162
commit cfc2948b7d

View File

@ -38,13 +38,13 @@ public class BaseSumWithVATColumn : BaseColumnWithSum
Values[0] = Sum;
}
/**
* Приведение копеек под сумму досрочки в графике ДЛ
*/
public void FixValues()
{
if (_preparedValues.LastPaymentFix == false)
if (_preparedValues.ChangeRepayment == false && _preparedValues.LastPaymentFix == false)
{
var difference = _preparedValues.SumRepayment - Values[_preparedValues.EditPaymentNumber];
if (difference != 0.0m)