Class TreasuryDocumentVO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
[AttTable("TreasuryDocument", 20240602)]
[AttTableGama(Gamas.Advanced)]
[AttTableProducts(new Products[] { Products.TESOURARIA })]
[AttTableVOInfo(typeof(TreasuryDocumentAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.UseInternalRef, TableFlags.UseDimensions })]
public class TreasuryDocumentVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
- Inheritance
-
TreasuryDocumentVO
Properties
BlVO
Account associated with this treasury
[AttExternalCollection(typeof(BlVO), new string[] { "[Bl].[noconta]", "[TreasuryDocument].[contado]" })]
public BlVO BlVO { get; }
Property Value
Remarks
Data type BlVO.
Will not sent to Frontend.
GetFieldStampName
Use only field name without table name
public override string GetFieldStampName { get; }
Property Value
GetStampValue
public override string GetStampValue { get; }
Property Value
TreasuryDocumentLines
Line expeseses
[AttCollection(typeof(TreasuryDocumentLineVO))]
public List<TreasuryDocumentLineVO> TreasuryDocumentLines { get; set; }
Property Value
Remarks
This field is a collection of type List (Of TreasuryDocumentLineVO).
TreasuryDocumentLineVOblLabelField
From BlVO.labelField
[AttVirtualField]
[AttHidden]
public string blLabelField { get; set; }
Property Value
blsupplytype
[AttVirtualField]
[AttLenght(1)]
[AttProducts(new Products[] { Products.Accounting })]
[AttDynamicIntegrationValue(typeof(SupplyTypeVO))]
public string blsupplytype { get; }
Property Value
contado
Internal bank account No.
[AttLenght(4)]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMandatory]
public int contado { get; set; }
Property Value
currency
Currency
Contains the abbreviated name of the currency used in this document.
[AttLenght(3)]
[AttEntityAvailable(typeof(CbVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string currency { get; set; }
Property Value
description
Description field
[AttLenght(60)]
[AttMandatory]
[AttList]
[AttLogInfo(0)]
public string description { get; set; }
Property Value
etotalcred
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal etotalcred { get; set; }
Property Value
etotaldeb
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal etotaldeb { get; set; }
Property Value
no
Document Number.
[AttPrimaryKey]
[AttLenght(10)]
[AttMandatory]
[AttLogInfo(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal no { get; set; }
Property Value
refInt
Internal Reference.
[AttLenght(50)]
[AttEntityAvailable(typeof(RefInternaVO))]
[AttList(Inactive = true)]
public string refInt { get; set; }
Property Value
Remarks
Lenght 50.
totalcoincred
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal totalcoincred { get; set; }
Property Value
totalcoindeb
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal totalcoindeb { get; set; }
Property Value
treasurydocumentstamp
This field uniquely identifies the record (primary key by default).
[AttLenght(25)]
public string treasurydocumentstamp { get; set; }
Property Value
Methods
SetStampValue(string)
public override void SetStampValue(string stampID)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
stampID |
string |
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)
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
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
IsProducedRecord()
bool IsProducedRecord()
Returns
LogIntegrationErrors(List<MessageVO>)
Logs the accounting integration errors
void LogIntegrationErrors(List<MessageVO> errorMessages)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
errorMessages |
List<MessageVO> |
ReadyForArchival()
bool ReadyForArchival()
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
docarchivalnumber
ID: Journal + Period + DocNumber
[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string docarchivalnumber { get; set; }
Returns
docdate
Date field
[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMandatory]
[AttList]
[AttLogInfo(2)]
DateTime docdate { 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
isArchived
[AttFieldType(AttFieldType.InputTypes.boolean)]
bool isArchived { 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; }