Post: SumRepaymentColumnVT1 fix interpolation

This commit is contained in:
vchikalkin 2024-03-04 17:03:42 +03:00
parent ecadf10699
commit 2aaf6ae5c8

View File

@ -47,7 +47,7 @@ public class SumRepaymentColumnVT1 : BaseSumRepaymentColumn
.GetValues(1)
.Select((x, i) => -x * (1 + (decimal)constants.VatValue)
* (preparedValues.TypeRepayment == 100_000_000
? interpolation.Interpolate(i) / 100
? interpolation.Interpolate(i + 1) / 100
: (decimal)preparedValues.Repayment)))
);