14 lines
434 B
C#
14 lines
434 B
C#
using System.Linq;
|
|
using EvoCalculator.Core.Calculation.Columns;
|
|
using EvoCalculator.Core.Models.Calculation.Models.Prepared;
|
|
|
|
namespace EvoCalculator.Core.Calculation.Post
|
|
{
|
|
public class PriceUP : BasePostValue<decimal>
|
|
{
|
|
public void ComputeValue(PreparedValues preparedValues, SumColumn sumColumn)
|
|
{
|
|
Value = sumColumn.Values.Skip(1).Sum(x => x) - preparedValues.PriceUpTotal;
|
|
}
|
|
}
|
|
} |