PostCalculation: fix costInsurance Current.SumColumn & Next.SumIRRColumn
This commit is contained in:
parent
83c040a779
commit
d110be14e1
@ -33,7 +33,7 @@ public class SumColumn : BaseColumnWithXIRR
|
||||
|
||||
|
||||
Values = Array<decimal>.Concat(
|
||||
new[] { -preparedValues.BaseCost - preparedValues.FuelCardSum + costInsurances.Sum() }
|
||||
new[] { -preparedValues.BaseCost - preparedValues.FuelCardSum + Math.Abs(costInsurances.Sum()) }
|
||||
, new[] { currentTablePayments[0].SumPayment + preparedValues.SubsidySum }
|
||||
, currentTablePayments.Skip(1).Select(x => x.SumPayment)
|
||||
, costInsurances
|
||||
|
||||
@ -52,7 +52,7 @@ namespace EvoCalculator.Core.PostCalculation.v2.Columns.Next
|
||||
}
|
||||
|
||||
Values = Array<decimal>.Concat(
|
||||
new[] { -_nextValues.BaseCost - _preparedValues.FuelCardSum + costInsurances.Sum() },
|
||||
new[] { -_nextValues.BaseCost - _preparedValues.FuelCardSum + Math.Abs(costInsurances.Sum()) },
|
||||
_sumColumn.Values.Skip(1),
|
||||
costInsurances
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user