Table of Contents

Class AccountingFormulaResult

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
public class AccountingFormulaResult
Inheritance
AccountingFormulaResult

Properties

Code

public string Code { get; }

Property Value

string

Context

public AccountingFormulasContext Context { get; }

Property Value

AccountingFormulasContext

Decimals

public int Decimals { get; }

Property Value

int

DependenciesFormulas

public ConcurrentDictionary<string, object> DependenciesFormulas { get; }

Property Value

ConcurrentDictionary<string, object>

Description

public string Description { get; }

Property Value

string

HasValue

public bool HasValue { get; }

Property Value

bool

Id

public string Id { get; }

Property Value

string

Operations

public List<IAccountingOperationResult> Operations { get; }

Property Value

List<IAccountingOperationResult>

UserCanChange

public bool UserCanChange { get; }

Property Value

bool

Value

public decimal Value { get; set; }

Property Value

decimal

ValueChanged

protected bool ValueChanged { get; }

Property Value

bool

Methods

GetDetail()

public FormulaHelpVO GetDetail()

Returns

FormulaHelpVO

GetLastOperations()

public IEnumerable<IAccountingOperationResult> GetLastOperations()

Returns

IEnumerable<IAccountingOperationResult>

MustRecalculate(bool)

public void MustRecalculate(bool onlyDependencies = false)

Parameters

Nome Tipo Descrição
onlyDependencies bool

ResetValue()

public void ResetValue()

ResetValueChanged()

public void ResetValueChanged()

SetValue(decimal)

public bool SetValue(decimal newValue)

Parameters

Nome Tipo Descrição
newValue decimal

Returns

bool

SetValueAndGetResults(decimal)

Value changed by the user. To calculate the original value again must call ResetValue()

public IEnumerable<AccountingFormulaResult> SetValueAndGetResults(decimal newValue)

Parameters

Nome Tipo Descrição
newValue decimal

Returns

IEnumerable<AccountingFormulaResult>