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
GetStampValue
public override string GetStampValue { get; }
Property Value
IsLockedByGeneralLedger
If depreciation is linked to general ledger (DoVO) done or draft
public bool IsLockedByGeneralLedger { get; }
Property Value
accountingvalue
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal accountingvalue { get; set; }
Property Value
assetcategorysubsuffix
[AttVirtualField]
[AttLenght(1)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_MZ })]
public int assetcategorysubsuffix { get; }
Property Value
assetcategorysuffix
[AttVirtualField]
[AttLenght(1)]
public int assetcategorysuffix { get; }
Property Value
assetcode
[AttVirtualField]
[AttLenght(60)]
public string assetcode { get; set; }
Property Value
assetname
[AttVirtualField]
[AttLenght(60)]
public string assetname { get; set; }
Property Value
assetnaturesuffix
[AttVirtualField]
[AttLenght(1)]
public int assetnaturesuffix { get; }
Property Value
assetnaturesuffixdep
[AttVirtualField]
[AttLenght(1)]
public int assetnaturesuffixdep { get; }
Property Value
assetstamp
Connects to assetstamp that contains this line.
[AttForeignKey(typeof(AssetVO))]
[AttLenght(25)]
[AttIndex]
public string assetstamp { get; set; }
Property Value
assettaxcode
Código de acordo com a tabela anexa ao DR n.º 25/2009
public string assettaxcode { get; set; }
Property Value
assetvalue
Valor contabilístico registado.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal assetvalue { get; set; }
Property Value
depperiod
Peíodo de depreciação.
[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public DepPeriod depperiod { get; set; }
Property Value
depreciablevalue
Valor depreciavel.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal depreciablevalue { get; set; }
Property Value
depreciationmonth
Mês depreciado
[AttLenght(2)]
public int depreciationmonth { get; set; }
Property Value
depreciationnumber
Número da depreciação
[AttLenght(3)]
public int depreciationnumber { get; set; }
Property Value
depreciationstamp
Stamp
[AttLenght(25)]
public string depreciationstamp { get; set; }
Property Value
depreciationyear
Ano depreciado
[AttLenght(4)]
public int depreciationyear { get; set; }
Property Value
depvalue
Depreciações contabilizadas no período
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal depvalue { get; set; }
Property Value
depvalueacc
Depreciações e amortizações acumuladas
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal depvalueacc { get; set; }
Property Value
fiscalacceptance
[AttVirtualField]
[AttLenght(1)]
public int fiscalacceptance { get; }
Property Value
imprecvalue
Perdas por imparidade recuperadas no período
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal imprecvalue { get; set; }
Property Value
impvalue
Perdas por imparidade contabilizadas no período
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal impvalue { get; set; }
Property Value
impvalueacc
Perdas por imparidade de periodos anteriores.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal impvalueacc { get; set; }
Property Value
lifecycle
Número de anos de utilidade esperada
[AttLenght(4)]
public int lifecycle { get; set; }
Property Value
operationproperty
[AttVirtualField]
[AttLenght(1)]
public int operationproperty { get; }
Property Value
residualvalue
Valor residual.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal residualvalue { get; set; }
Property Value
startdateofuse
Data de inicio de utilização
[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime startdateofuse { get; set; }
Property Value
tax
Taxa %
[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal tax { get; set; }
Property Value
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
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
GetParent(string)
GenericVO GetParent(string rowStamp)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
rowStamp |
string |
Returns
GetPendingIntegrationsCommands(int)
PHCCmdSql GetPendingIntegrationsCommands(int year = 0)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
year |
int |
Returns
GetRow(Type, string)
IAccountingIntegration GetRow(Type rowType, string rowStamp)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
rowType |
Type | |
rowStamp |
string |
Returns
HasAccountingIntegration()
Mostly used on document configurations It retrieves the permission to integrated document of a given nature
bool HasAccountingIntegration()
Returns
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
accounted
Mark document as accounted
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool accounted { get; set; }
Returns
adate
Accounting Date
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
DateTime adate { get; set; }
Returns
depreciationdate
DateTime depreciationdate { get; set; }
Returns
docarchivalnumber
ID: Journal + Period + DocNumber
[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string docarchivalnumber { get; set; }
Returns
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
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
integrationErrors
Accounting integrations message errors
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string integrationErrors { get; set; }
Returns
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
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
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
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; }