Class DisposalVO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
Assets disposal (Abates)
[AttTable("Disposal", 20230807)]
[AttTableVOInfo(typeof(DisposalAttInfo))]
[AttTableProducts(new Products[] { Products.Assets })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.FullTextSearchable })]
public class DisposalVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
- Inheritance
-
DisposalVO
Properties
annulmentHour
[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string annulmentHour { get; set; }
Property Value
Remarks
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
description
Description of the disposal (Descrição do abate)
[AttLenght(60)]
[AttMandatory]
[AttList]
public string description { get; set; }
Property Value
disposalid
ID of the disposal
[AttLenght(50)]
[AttMandatory]
[AttPrimaryKey]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public int disposalid { get; set; }
Property Value
disposalstamp
Single registration field
[AttLenght(25)]
public string disposalstamp { get; set; }
Property Value
dls
[AttCollection(typeof(DlVO))]
public List<DlVO> dls { get; set; }
Property Value
fiscalacceptance
[AttVirtualField]
[AttLenght(1)]
public int fiscalacceptance { get; }
Property Value
obs
Comments.
[AttFieldType(AttFieldType.InputTypes.memo)]
public string obs { get; set; }
Property Value
totalamount
Total amount of the disposal
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal totalamount { get; set; }
Property Value
Remarks
Lenght of 19, where the units are 12 and decimals are 6.
Methods
ValidLinesForAccountingIntegration(int)
public bool ValidLinesForAccountingIntegration(int year)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
year |
int |
Returns
Explicit Interface Implementations
CanIntegrate()
Returns true if integration is available
bool CanIntegrate()
Returns
CleanIntegrationErrors()
Cleans the accounting integration errors
void CleanIntegrationErrors()
GetIntegrationConfig(int)
Get Accounting configuration if exists
PHCResult GetIntegrationConfig(int year)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
year |
int |
Returns
GetPendingIntegrationsCommands(int)
PHCCmdSql GetPendingIntegrationsCommands(int year = 0)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
year |
int |
Returns
HasAccountingIntegration()
Check for permission to integrate document
bool HasAccountingIntegration()
Returns
LogIntegrationErrors(List<MessageVO>)
Logs the accounting integration errors
void LogIntegrationErrors(List<MessageVO> errorMessages)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
errorMessages |
List<MessageVO> |
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
annulled
Indica se o desreconhecimento está anulado.
[AttList(Inactive = true)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
bool annulled { get; set; }
Returns
annulmentDate
[AttFieldType(AttFieldType.InputTypes.fullDate, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
DateTime annulmentDate { get; set; }
Returns
Remarks
Is the date of the field anulada filled.
Non Duplicable Field.
disposaldate
Disposal date (Data do abate)
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList]
DateTime disposaldate { 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; }