Table of Contents

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

BlVO

Remarks

Data type BlVO.

Will not sent to Frontend.

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

TreasuryDocumentLines

Line expeseses

[AttCollection(typeof(TreasuryDocumentLineVO))]
public List<TreasuryDocumentLineVO> TreasuryDocumentLines { get; set; }

Property Value

List<TreasuryDocumentLineVO>

Remarks

This field is a collection of type List (Of TreasuryDocumentLineVO).

TreasuryDocumentLineVO

blLabelField

From BlVO.labelField

[AttVirtualField]
[AttHidden]
public string blLabelField { get; set; }

Property Value

string

blsupplytype

[AttVirtualField]
[AttLenght(1)]
[AttProducts(new Products[] { Products.Accounting })]
[AttDynamicIntegrationValue(typeof(SupplyTypeVO))]
public string blsupplytype { get; }

Property Value

string

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

int

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

string

description

Description field

[AttLenght(60)]
[AttMandatory]
[AttList]
[AttLogInfo(0)]
public string description { get; set; }

Property Value

string

etotalcred

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal etotalcred { get; set; }

Property Value

decimal

etotaldeb

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal etotaldeb { get; set; }

Property Value

decimal

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

decimal

refInt

Internal Reference.

[AttLenght(50)]
[AttEntityAvailable(typeof(RefInternaVO))]
[AttList(Inactive = true)]
public string refInt { get; set; }

Property Value

string

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

decimal

totalcoindeb

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal totalcoindeb { get; set; }

Property Value

decimal

treasurydocumentstamp

This field uniquely identifies the record (primary key by default).

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

Property Value

string

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

bool

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

GetPendingIntegrationsCommands(int)

PHCCmdSql GetPendingIntegrationsCommands(int year = 0)

Parameters

Nome Tipo Descrição
year int

Returns

PHCCmdSql

HasAccountingIntegration()

Check for permission to integrate document

bool HasAccountingIntegration()

Returns

bool

IsProducedRecord()

bool IsProducedRecord()

Returns

bool

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

bool

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

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

docdate

Date field

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMandatory]
[AttList]
[AttLogInfo(2)]
DateTime docdate { get; set; }

Returns

DateTime

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

isArchived

[AttFieldType(AttFieldType.InputTypes.boolean)]
bool isArchived { get; set; }

Returns

bool

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