SumWithVATColumnVT3: fix: берем платеж из SumWithVATPayment

This commit is contained in:
Chika 2022-06-29 14:16:02 +03:00
parent b468219f4f
commit 663a17a048

View File

@ -13,7 +13,7 @@ public class SumWithVATColumnVT3 : BaseColumnWithSum
, Constants.Calculation constants) , Constants.Calculation constants)
{ {
Values = new decimal[] {0} Values = new decimal[] {0}
.Concat(currentTablePayments.Select(x => x.SumPayment)).ToArray(); .Concat(currentTablePayments.Select(x => x.SumWithVATPayment)).ToArray();
Values[1] = currentTablePayments[0].SumWithVATPayment + Values[1] = currentTablePayments[0].SumWithVATPayment +
preparedValues.SubsidySum * (decimal) (1 + constants.VatValue); preparedValues.SubsidySum * (decimal) (1 + constants.VatValue);