PostCalculation/SumColumnVT3: добавили пояснения

This commit is contained in:
Chika 2022-09-29 15:55:56 +03:00
parent 135fcc8ff9
commit 9577dcd2ed

View File

@ -41,8 +41,10 @@ public class SumColumnVT3 : BaseSumColumn
Values[i] = techNextSumRepaymentColumn.GetValue(i) / (decimal) (1 + _constants.VatValue); Values[i] = techNextSumRepaymentColumn.GetValue(i) / (decimal) (1 + _constants.VatValue);
if (_preparedValues.LastPaymentFix) if (_preparedValues.LastPaymentFix)
// вычитает последний платеж из того что посчитали выше
Values[i] -= _currentTablePayments[^1].SumPayment; Values[i] -= _currentTablePayments[^1].SumPayment;
} }
// if(i>_preparedValues.EditPaymentNumber)
else if (_preparedValues.LastPaymentFix) else if (_preparedValues.LastPaymentFix)
{ {
Values[i] = _currentTablePayments[^1].SumPayment; Values[i] = _currentTablePayments[^1].SumPayment;