Table of Contents

Class AccountingValue

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
public class AccountingValue
Inheritance
AccountingValue

Constructors

AccountingValue()

public AccountingValue()

AccountingValue(decimal)

public AccountingValue(decimal value)

Parameters

Nome Tipo Descrição
value decimal

AccountingValue(decimal, bool)

public AccountingValue(decimal value, bool mustRound)

Parameters

Nome Tipo Descrição
value decimal
mustRound bool

Properties

CreditAmount

public decimal CreditAmount { get; }

Property Value

decimal

DebitAmount

public decimal DebitAmount { get; }

Property Value

decimal

MustRound

public bool MustRound { get; set; }

Property Value

bool

PositiveValue

public decimal PositiveValue { get; }

Property Value

decimal

Rounded

public bool Rounded { get; set; }

Property Value

bool

Value

public decimal Value { get; set; }

Property Value

decimal

ValueType

public AccountingValueTypeEnum ValueType { get; set; }

Property Value

AccountingValueTypeEnum

VarType

public AccountingVarTypeEnum VarType { get; set; }

Property Value

AccountingVarTypeEnum

Methods

ChangeSide()

public AccountingValue ChangeSide()

Returns

AccountingValue

ChangeSide(bool)

public AccountingValue ChangeSide(bool value)

Parameters

Nome Tipo Descrição
value bool

Returns

AccountingValue

HaveValue()

public bool HaveValue()

Returns

bool

RoundValue(int)

public bool RoundValue(int decimals)

Parameters

Nome Tipo Descrição
decimals int

Returns

bool

Operators

operator +(AccountingValue, AccountingValue)

public static AccountingValue operator +(AccountingValue first, AccountingValue second)

Parameters

Nome Tipo Descrição
first AccountingValue
second AccountingValue

Returns

AccountingValue

operator +(AccountingValue, decimal)

public static AccountingValue operator +(AccountingValue first, decimal second)

Parameters

Nome Tipo Descrição
first AccountingValue
second decimal

Returns

AccountingValue

operator -(AccountingValue, AccountingValue)

public static AccountingValue operator -(AccountingValue first, AccountingValue second)

Parameters

Nome Tipo Descrição
first AccountingValue
second AccountingValue

Returns

AccountingValue