Table of Contents

Class DepreciationVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("Depreciation", 20220511)]
[AttTableVOInfo(typeof(DepreciationAttInfo))]
[AttTableProducts(new Products[] { Products.Assets })]
[AttTableFlags(new TableFlags[] { TableFlags.TableForJorge, TableFlags.UseDimensions })]
[AttTableOrderBy("[Depreciation].[depreciationnumber]")]
public class DepreciationVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IGenericVO, IParent<AssetVO>, IParent
Inheritance
DepreciationVO

Properties

GetFieldStampName

Use only field name without table name

public override string GetFieldStampName { get; }

Property Value

string

GetStampValue

public override string GetStampValue { get; }

Property Value

string

IsLockedByGeneralLedger

If depreciation is linked to general ledger (DoVO) done or draft

public bool IsLockedByGeneralLedger { get; }

Property Value

bool

accountingvalue

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal accountingvalue { get; set; }

Property Value

decimal

assetcategorysubsuffix

[AttVirtualField]
[AttLenght(1)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_MZ })]
public int assetcategorysubsuffix { get; }

Property Value

int

assetcategorysuffix

[AttVirtualField]
[AttLenght(1)]
public int assetcategorysuffix { get; }

Property Value

int

assetcode

[AttVirtualField]
[AttLenght(60)]
public string assetcode { get; set; }

Property Value

string

assetname

[AttVirtualField]
[AttLenght(60)]
public string assetname { get; set; }

Property Value

string

assetnaturesuffix

[AttVirtualField]
[AttLenght(1)]
public int assetnaturesuffix { get; }

Property Value

int

assetnaturesuffixdep

[AttVirtualField]
[AttLenght(1)]
public int assetnaturesuffixdep { get; }

Property Value

int

assetstamp

Connects to assetstamp that contains this line.

[AttForeignKey(typeof(AssetVO))]
[AttLenght(25)]
[AttIndex]
public string assetstamp { get; set; }

Property Value

string

assettaxcode

Código de acordo com a tabela anexa ao DR n.º 25/2009

public string assettaxcode { get; set; }

Property Value

string

assetvalue

Valor contabilístico registado.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal assetvalue { get; set; }

Property Value

decimal

depperiod

Peíodo de depreciação.

[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public DepPeriod depperiod { get; set; }

Property Value

DepPeriod

depreciablevalue

Valor depreciavel.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal depreciablevalue { get; set; }

Property Value

decimal

depreciationmonth

Mês depreciado

[AttLenght(2)]
public int depreciationmonth { get; set; }

Property Value

int

depreciationnumber

Número da depreciação

[AttLenght(3)]
public int depreciationnumber { get; set; }

Property Value

int

depreciationstamp

Stamp

[AttLenght(25)]
public string depreciationstamp { get; set; }

Property Value

string

depreciationyear

Ano depreciado

[AttLenght(4)]
public int depreciationyear { get; set; }

Property Value

int

depvalue

Depreciações contabilizadas no período

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal depvalue { get; set; }

Property Value

decimal

depvalueacc

Depreciações e amortizações acumuladas

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal depvalueacc { get; set; }

Property Value

decimal

fiscalacceptance

[AttVirtualField]
[AttLenght(1)]
public int fiscalacceptance { get; }

Property Value

int

imprecvalue

Perdas por imparidade recuperadas no período

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal imprecvalue { get; set; }

Property Value

decimal

impvalue

Perdas por imparidade contabilizadas no período

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal impvalue { get; set; }

Property Value

decimal

impvalueacc

Perdas por imparidade de periodos anteriores.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal impvalueacc { get; set; }

Property Value

decimal

lifecycle

Número de anos de utilidade esperada

[AttLenght(4)]
public int lifecycle { get; set; }

Property Value

int

operationproperty

[AttVirtualField]
[AttLenght(1)]
public int operationproperty { get; }

Property Value

int

residualvalue

Valor residual.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal residualvalue { get; set; }

Property Value

decimal

startdateofuse

Data de inicio de utilização

[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime startdateofuse { get; set; }

Property Value

DateTime

tax

Taxa %

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal tax { get; set; }

Property Value

decimal

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string

Explicit Interface Implementations

CanIntegrate()

Returns true if integration is available

bool CanIntegrate()

Returns

bool

CleanIntegrationErrors()

Cleans the accounting integration errors

void CleanIntegrationErrors()

GetIntegrationConfig(int)

Returns a specific accounting integration config if is setted on series of document otherwise returns nothing

PHCResult GetIntegrationConfig(int year)

Parameters

Nome Tipo Descrição
year int

Returns

PHCResult

GetParent(string)

GenericVO GetParent(string rowStamp)

Parameters

Nome Tipo Descrição
rowStamp string

Returns

GenericVO

GetPendingIntegrationsCommands(int)

PHCCmdSql GetPendingIntegrationsCommands(int year = 0)

Parameters

Nome Tipo Descrição
year int

Returns

PHCCmdSql

GetRow(Type, string)

IAccountingIntegration GetRow(Type rowType, string rowStamp)

Parameters

Nome Tipo Descrição
rowType Type
rowStamp string

Returns

IAccountingIntegration

HasAccountingIntegration()

Mostly used on document configurations It retrieves the permission to integrated document of a given nature

bool HasAccountingIntegration()

Returns

bool

LogIntegrationErrors(List<MessageVO>)

Logs the accounting integration errors

void LogIntegrationErrors(List<MessageVO> errorMessages)

Parameters

Nome Tipo Descrição
errorMessages List<MessageVO>

ParentVO

AssetVO ParentVO { get; set; }

Returns

AssetVO

accounted

Mark document as accounted

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool accounted { get; set; }

Returns

bool

adate

Accounting Date

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
DateTime adate { get; set; }

Returns

DateTime

depreciationdate

DateTime depreciationdate { get; set; }

Returns

DateTime

docarchivalnumber

ID: Journal + Period + DocNumber

[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string docarchivalnumber { get; set; }

Returns

string

documentdescription

Description of the document type (DC)

[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string documentdescription { get; set; }

Returns

string

documentid

Id of the accounting document (DC)

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
decimal documentid { get; set; }

Returns

decimal

integrationErrors

Accounting integrations message errors

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string integrationErrors { get; set; }

Returns

string

isaccounting

Is true if the document is in integrating process

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool isaccounting { get; set; }

Returns

bool

journaldescription

Description of the journal (DI)

[AttLenght(200)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string journaldescription { get; set; }

Returns

string

journalid

Journal code (DI).

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
decimal journalid { get; set; }

Returns

decimal

year

Year of Document (PCY).

[AttLenght(4)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
int year { get; set; }

Returns

int