Table of Contents

Class RdVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Client Advances

[AttTable("Rd", 20250115)]
[AttTableOrderBy("rdano,rno,rdata,nome", "D,D,D,A")]
[AttTableGama(Gamas.Advanced)]
[AttTableProducts(new Products[] { Products.VENDAS })]
[AttTableVOInfo(typeof(RdAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MandatorySaveLog, TableFlags.MasterEntity, TableFlags.UseInternalRef, TableFlags.TableForJorge, TableFlags.AddOnNotDeployable, TableFlags.UseDimensions })]
[AttRelationShip(typeof(ClVO), RelationShipTypes.OneToOne, new string[] { "[Rd].[no]", "[Cl].[no]", "[Rd].[estab]", "[Cl].[estab]" })]
public class RdVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
RdVO

Remarks

Esta classe tem como função . .

Properties

BlVO

[AttExternalCollection(typeof(BlVO), new string[] { "bl.noconta", "contado" })]
public BlVO BlVO { get; }

Property Value

BlVO

CanIntegrateAndRunTriggers

[AttVirtualField]
[AttHidden]
public bool CanIntegrateAndRunTriggers { get; set; }

Property Value

bool

CatIvaTaxRetentionVO

[AttExternalCollection(typeof(TaxRetentionVO), new string[] { "[TaxRetention].[codstamp]", "[Rd].[codcativastamp]" })]
public TaxRetentionVO CatIvaTaxRetentionVO { get; }

Property Value

TaxRetentionVO

CertificacaoHashCode

[AttVirtualField]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public string CertificacaoHashCode { get; set; }

Property Value

string

ClVO

[AttExternalCollection(typeof(ClVO), new string[] { "cl.no", "no", "cl.estab", "estab" })]
public ClVO ClVO { get; }

Property Value

ClVO

Cm1LabelField

From Cm1.LabelField

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

Property Value

string

Cm1VO

[AttExternalCollection(typeof(Cm1VO), new string[] { "cm1.cm", "cm" })]
public Cm1VO Cm1VO { get; }

Property Value

Cm1VO

MiseimpVO

[AttExternalCollection(typeof(MiseimpVO), new string[] { "[Miseimp].[miseimpstamp]", "[Rd].[miseimpstamp]" })]
public MiseimpVO MiseimpVO { get; }

Property Value

MiseimpVO

ModalidadVO

[AttExternalCollection(typeof(ModalidadVO), new string[] { "[Modalidad].[modalidadstamp]", "[Rd].[modalidadstamp]" })]
public ModalidadVO ModalidadVO { get; }

Property Value

ModalidadVO

OcVO

[AttExternalCollection(typeof(OcVO), new string[] { "oc.olcodigo", "olcodigo" })]
public OcVO OcVO { get; }

Property Value

OcVO

OlVO

The treasury movement created in OL

[AttExternalCollection(typeof(OlVO))]
public OlVO OlVO { get; }

Property Value

OlVO

OwnerEmail

[AttHidden]
public string OwnerEmail { get; }

Property Value

string

RdVO

[AttExternalCollection(typeof(RdVO), new string[] { "rd.rdstamp", "rdstamp" })]
public RdVO RdVO { get; }

Property Value

RdVO

TaxaIVAVO

[AttExternalCollection(typeof(TaxasIVAVO), new string[] { "[TaxasIva].[codigo]", "[Rd].[tabiva]" })]
public TaxasIVAVO TaxaIVAVO { get; }

Property Value

TaxasIVAVO

TsrdVO

[AttExternalCollection(typeof(TsrdVO))]
public TsrdVO TsrdVO { get; }

Property Value

TsrdVO

accruedtype

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

Property Value

int

assinatura

Assinatura digital de documento certificado.

[AttLenght(200)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string assinatura { get; set; }

Property Value

string

Remarks

Length 200.

atWsDocStatus

Document status in AT.

[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttHidden(HiddenParameter = new string[] { "ge_atinvwebcommunication" }, HiddenParameterValue = new object[] { false })]
public Saft.AtWsDocStatus atWsDocStatus { get; set; }

Property Value

Saft.AtWsDocStatus

Remarks

Non Duplicable Field.

atcodeid

Document ID code attributed by AT

[AttLenght(200)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string atcodeid { get; set; }

Property Value

string

Remarks

Length 200.

Non Duplicable Field.

The documents provided in Decree-Law Number 147/2003 of 11 July, and other susceptible documents to present to customer for delivery of conference goods or provision of services, when communicated to the AT receives an identifier that is stored in this field, this server identifier to print along with the document to be submitted to the competent authorities when required.

atcudUniqueID

[AttLenght(80)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string atcudUniqueID { get; set; }

Property Value

string

atcudUniqueIDForReports

atcudUniqueID to be used in reports (ATCUD:AAJFF7FJXK-140).

[AttVirtualField]
[AttLenght(90)]
public string atcudUniqueIDForReports { get; }

Property Value

string

Remarks

Virtual field.

atwebatcudready

[AttVirtualField]
[AttHidden]
public bool atwebatcudready { get; set; }

Property Value

bool

atwebinvoiceready

Indicates if the record is ready to be reported as transport document via webservice with AT.

[AttVirtualField]
[AttHidden]
public bool atwebinvoiceready { get; set; }

Property Value

bool

Remarks

Virtual field.

Field not available for the user.

basemoeda

Valor base em moeda estrangeira.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
[AttList(Inactive = true)]
public decimal basemoeda { get; set; }

Property Value

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

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

bostamp

Connects to bostamp from which this line was copied.

[AttForeignKey(typeof(BoVO))]
[AttLenght(25)]
public string bostamp { get; set; }

Property Value

string

cativandoctax

{#P:ge_iva#} captivation rate series

[AttLenght(18)]
[AttHidden]
[AttVirtualField]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public decimal cativandoctax { get; set; }

Property Value

decimal

cativataxa

{#P:ge_iva#} captivation fee

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public decimal cativataxa { get; set; }

Property Value

decimal

cativataxname

Captivation fee of {#P:ge_iva#}

[AttVirtualField]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public string cativataxname { get; set; }

Property Value

string

cativataxstamp

{#P:ge_iva#} captivation fee code

[AttLenght(25)]
[AttHidden]
[AttVirtualField]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public string cativataxstamp { get; set; }

Property Value

string

clientoperation

Fixed accounting variable for fixed Customer Advance

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

Property Value

int

clstamp

Customer stamp

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

Property Value

string

cm

Código do Documento.

[AttLenght(6)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public int cm { get; set; }

Property Value

int

Remarks

Length 6.

cmdesc

Nome do Documento

[AttLenght(20)]
[AttLogInfo(0)]
[AttMandatory]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
[AttList]
public string cmdesc { get; set; }

Property Value

string

Remarks

Length 20.

Field available in the basic search results list.

Searchable field.

codcativastamp

{#P:ge_iva#} captivation fee type code

[AttLenght(25)]
[AttEntityAvailable(typeof(TaxRetentionVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public string codcativastamp { get; set; }

Property Value

string

codigo4041

Type of settlement

[AttLenght(30)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string codigo4041 { get; set; }

Property Value

string

Remarks

Code corresponding to the amount to be included in the 1-A table of model 40 (Format: Code Subparagraph).

Non Duplicable Field.

Length 30.

codigo4041desc

Name of the settlement.

[AttVirtualField]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public string codigo4041desc { get; set; }

Property Value

string

Remarks

Virtual field.

codigo4041reg

Regularizações - favor sujeito passivo

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

Property Value

int

contado

Número interno da conta bancária

[AttLenght(4)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
public int contado { get; set; }

Property Value

int

Remarks

Length 4.

customerAutoCreationCode

[AttVirtualField]
[AttHidden]
public AutoCreationCodes customerAutoCreationCode { get; }

Property Value

AutoCreationCodes

Remarks

Virtual field.

Field not available for the user.

descricao

Descrição do adiantamento

[AttLenght(50)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string descricao { get; set; }

Property Value

string

Remarks

Length 50.

descriptionori

[AttLenght(50)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string descriptionori { get; set; }

Property Value

string

diaplano

Dia da data de contabilização.

[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttHidden(HiddenParameter = new string[] { "ge_usacontabilidade" }, HiddenParameterValue = new object[] { false })]
public int diaplano { get; set; }

Property Value

int

Remarks

Data type Numeric.

Length 2.

dilnoplano

Nº lançamento no Diário de contabilização.

[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttHidden(HiddenParameter = new string[] { "ge_usacontabilidade" }, HiddenParameterValue = new object[] { false })]
public int dilnoplano { get; set; }

Property Value

int

Remarks

Data type Numeric.

Length 10.

dinoplano

Diário de contabilização.

[AttLenght(50)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttHidden(HiddenParameter = new string[] { "ge_usacontabilidade" }, HiddenParameterValue = new object[] { false })]
public string dinoplano { get; set; }

Property Value

string

Remarks

Data type String.

Length 50.

dplano

Document accounting date.

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttHidden(HiddenParameter = new string[] { "ge_usacontabilidade" }, HiddenParameterValue = new object[] { false })]
public DateTime dplano { get; set; }

Property Value

DateTime

Remarks

Data type DateTime.

Non Duplicable Field.

ecativa

Cativation vat value in base currency

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public decimal ecativa { get; set; }

Property Value

decimal

email

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

Property Value

string

epayable

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public decimal epayable { get; set; }

Property Value

decimal

estab

Número que identifica o Estabelecimento do Cliente.

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
[AttMinValue(0)]
[AttList(Inactive = true)]
[AttSmartField]
public int estab { get; set; }

Property Value

int

Remarks

Length 3.

From what range of software this field is available: Max.

Searchable field.

Field available in the basic search results list.

etotal

Total do recibo em Euros

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

Property Value

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

firstPrintDate

Date of first print (original document)

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public DateTime firstPrintDate { get; set; }

Property Value

DateTime

Remarks

Non Duplicable Field.

firstPrintRepStamp

Reportstamp used on first print (original document)

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string firstPrintRepStamp { get; set; }

Property Value

string

Remarks

Non Duplicable Field.

formapag

Forma de pagamento.

[AttLenght(55)]
[AttFieldType(AttFieldType.InputTypes.string)]
public string formapag { get; set; }

Property Value

string

Remarks

Length 55.

formapagDesc

From PaymentTypeVO.name

[AttVirtualField]
public string formapagDesc { get; set; }

Property Value

string

fullmotiseimp

Code and Reason for VAT exemption

[AttVirtualField]
[AttLenght(64)]
public string fullmotiseimp { get; set; }

Property Value

string

impUniqueID

Unique identifier for imports.

[AttLenght(60)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string impUniqueID { get; set; }

Property Value

string

Remarks

This field is used when the respective series of the receipt is configured as an import series, which indicates that the documents of this series were made in other software, in these cases it is necessary to keep the number of the original document.

impcae

Imported CAE (Economic activity code) of the company

[AttLenght(5)]
[AttFieldType(AttFieldType.InputTypes.string)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public string impcae { get; set; }

Property Value

string

impousrdata

Imported ousrdata

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public virtual DateTime impousrdata { get; set; }

Property Value

DateTime

impousrhora

Imported ousrhora

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public virtual string impousrhora { get; set; }

Property Value

string

impousrinis

Imported ousrinis

[AttLenght(30)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string impousrinis { get; set; }

Property Value

string

impusrdata

Imported usrdata

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public virtual DateTime impusrdata { get; set; }

Property Value

DateTime

impusrhora

Imported usrhora

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public virtual string impusrhora { get; set; }

Property Value

string

impusrinis

Imported usrinis

[AttLenght(30)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string impusrinis { get; set; }

Property Value

string

integrado

Indica se o documento está integrado em algum documento de facturação.

[AttVirtualField]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool integrado { get; set; }

Property Value

bool

labelField

VAT table label

[AttVirtualField]
public string labelField { get; set; }

Property Value

string

market

Market.

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

Property Value

int

marketwithregion

Market with region

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

Property Value

int

masterTiposaft

[AttVirtualField]
public string masterTiposaft { get; }

Property Value

string

mcativa

Cativation vat value in base currency

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public decimal mcativa { get; set; }

Property Value

decimal

mivav

Valor do IVA em moeda estrangeira.

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

Property Value

decimal

modalidaddescription

[AttVirtualField]
[AttEntityAvailable(typeof(ModalidadVO))]
public string modalidaddescription { get; set; }

Property Value

string

modalidadstamp

[AttLenght(25)]
[AttEntityAvailable(typeof(ModalidadVO))]
[AttMandatory(new languages[] { languages.es_ES })]
public string modalidadstamp { get; set; }

Property Value

string

moeda

Moeda do adiantamento

[AttLenght(11)]
[AttEntityAvailable(typeof(CbVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
[AttList(Inactive = true)]
public string moeda { get; set; }

Property Value

string

Remarks

Length 50.

mpayable

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public decimal mpayable { get; set; }

Property Value

decimal

ncReason

[AttLenght(50)]
public string ncReason { get; set; }

Property Value

string

ndoc

Document number.

[AttPrimaryKey(CanDuplicate = true)]
[AttLenght(3)]
[AttMandatory]
[AttDocType(typeof(TsrdVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList(Hidden = true)]
public int ndoc { get; set; }

Property Value

int

Remarks

This field is primary key.

It identifies the type of Document defined in the field ndoc by Billing Document Setup.

Length 3.

nmdoc

Nome do Documento.

[AttLenght(20)]
[AttMandatory]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string nmdoc { get; set; }

Property Value

string

Remarks

Length 20.

Searchable field.

no

Número do Cliente.

[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
[AttMinValue(0)]
[AttList(Inactive = true)]
[AttSmartField]
public decimal no { get; set; }

Property Value

decimal

Remarks

Length 10.

Searchable field.

Field available in the basic search results list.

Mandatory field.

nome

Nome do Cliente.

[AttLenght(100)]
[AttMandatory]
[AttLogInfo(3)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
[AttList]
[AttSmartField]
public string nome { get; set; }

Property Value

string

Remarks

Length 55.

Searchable field.

Field available in the basic search results list.

Mandatory field.

nullifyHour

Time of nullify.

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public string nullifyHour { get; set; }

Property Value

string

Remarks

Is the hour of the field anulada filled.

Lenght 8.

Non Duplicable Field.

nullifyReason

Time of nullify.

[AttLenght(50)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public string nullifyReason { get; set; }

Property Value

string

Remarks

Is the reason why the field anulada filled.

Lenght 50

Non Duplicable Field.

ocLabelField

From OcVO.LabelField

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

Property Value

string

ollocal

Conta de tesouraria

[AttLenght(50)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string ollocal { get; set; }

Property Value

string

Remarks

Length 50.

Mandatory field.

oristamp

[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string oristamp { get; set; }

Property Value

string

percentagem

Percentage of total internal document

[AttLenght(6, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMaxValue(100)]
public decimal percentagem { get; set; }

Property Value

decimal

Remarks

Lenght of 6, where the units are 2 and decimals are 2.

plano

Indica se o documento está contabilizado.

[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttHidden(HiddenParameter = new string[] { "ge_usacontabilidade" }, HiddenParameterValue = new object[] { false })]
public bool plano { get; set; }

Property Value

bool

Remarks

Data type Boolean.

printCounter

Number of prints for this document

[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList(Hidden = true)]
public int printCounter { get; set; }

Property Value

int

Remarks

Non Duplicable Field.

Length 2.

producttype

Fixed variable - Tipo de bem - IVA

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

Property Value

int

qrcode

[AttVirtualField]
public string qrcode { get; }

Property Value

string

rdano

Receipt Year

[AttPrimaryKey(CanDuplicate = true)]
[AttLenght(4)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public int rdano { get; set; }

Property Value

int

Remarks

Length 4.

Primary key.

rdstamp

Advance Payment Stamp

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

Property Value

string

Remarks

Contains the unique identification key for the Down Payment that is used to link to other tables. .

Length 25 .

This field is primary key.

refInt

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

Property Value

string

rno

Número do documento.

[AttPrimaryKey]
[AttLenght(10)]
[AttLogInfo(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
[AttList]
public decimal rno { get; set; }

Property Value

decimal

Remarks

This field is primary key.

Length 10.

Searchable field.

Field available in the basic search results list.

Non Duplicable Field.

serieuniqueid

[AttVirtualField]
[AttLenght(5)]
public string serieuniqueid { get; set; }

Property Value

string

signatureDate

Date of signature.

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public DateTime signatureDate { get; set; }

Property Value

DateTime

Remarks

This is the date when the field Signature was completed.

signatureHour

Signature Hour.

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string signatureHour { get; set; }

Property Value

string

Remarks

This is the time (hour) when the field Signature was completed.

skipimporttriggers

Identifies if triggers and accounting should be skipped in an import document.

[AttLenght(1)]
public bool skipimporttriggers { get; set; }

Property Value

bool

taxregularizations

Tipo de regularização de iva.

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

Property Value

int

textoCertificacao

Texto com nº de certificação para Relatórios

[AttVirtualField]
public string textoCertificacao { get; }

Property Value

string

Remarks

This field does not physically exist in the database. Its value results from a calculation expression with the help of other fields of the entity. Is provided in order to hide the complexity of calculating the value thus providing in a simple way.

Due to the nature of their calculation the field is not available to be included in queries, but to be included in listings or reports. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.

textoCertificacaoParcialDemo

Certificação: Texto Parcial - Base de dados de demonstração

[AttVirtualField]
public string textoCertificacaoParcialDemo { get; set; }

Property Value

string

Remarks

This field does not physically exist in the database. Its value results from a calculation expression with the help of other fields of the entity. Is provided in order to hide the complexity of calculating the value thus providing in a simple way.

Due to the nature of their calculation the field is not available to be included in queries, but to be included in listings or reports. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.

textoCertificacaoParcialNaoServeFacturaAgregado

[AttVirtualField]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public string textoCertificacaoParcialNaoServeFacturaAgregado { get; set; }

Property Value

string

textoCertificacaoParcialNomeSoftware

Certificação: Texto Parcial - Nome do software

[AttVirtualField]
public string textoCertificacaoParcialNomeSoftware { get; }

Property Value

string

Remarks

This field does not physically exist in the database. Its value results from a calculation expression with the help of other fields of the entity. Is provided in order to hide the complexity of calculating the value thus providing in a simple way.

Due to the nature of their calculation the field is not available to be included in queries, but to be included in listings or reports. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.

textoCertificacaoParcialNumeroCertificacao

Certificação: Texto Parcial - Número da certificação

[AttVirtualField]
public string textoCertificacaoParcialNumeroCertificacao { get; }

Property Value

string

Remarks

This field does not physically exist in the database. Its value results from a calculation expression with the help of other fields of the entity. Is provided in order to hide the complexity of calculating the value thus providing in a simple way.

Due to the nature of their calculation the field is not available to be included in queries, but to be included in listings or reports. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.

textoCertificacaoParcialProcessadoPor

Certificação: Texto Parcial - Processado por

[AttVirtualField]
public string textoCertificacaoParcialProcessadoPor { get; }

Property Value

string

Remarks

This field does not physically exist in the database. Its value results from a calculation expression with the help of other fields of the entity. Is provided in order to hide the complexity of calculating the value thus providing in a simple way.

Due to the nature of their calculation the field is not available to be included in queries, but to be included in listings or reports. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.

texto_anulado

Texto a ser exibido caso o documento esteja anulado.

[AttVirtualField]
public string texto_anulado { get; }

Property Value

string

texto_formapag

Texto usado para exibir a forma de pagamento

[AttVirtualField]
public string texto_formapag { get; }

Property Value

string

tiposaft

Type SAF-T

[AttLenght(2)]
[AttHidden]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string tiposaft { get; set; }

Property Value

string

Remarks

Length 2.

It serves to identify which code to use for SAF-T production. .

totalmoeda

Total do recibo em moeda estrangeira

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
[AttList(Inactive = true)]
public decimal totalmoeda { get; set; }

Property Value

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

uniqueID

Unique record identifier

[AttLenght(60)]
[AttList(Inactive = true)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string uniqueID { get; set; }

Property Value

string

Remarks

In a normal recording this field should not be filled, the application has the function of filling it with a valid value for the record in question. If in the recording of this field is completed, the application will accept its value but if it is not valid, if it is a single value, being this responsibility of the algorithm that filled the value in the field before ordering to record the entity.

The function of this field is identical to the field ftstamp with the difference that the value it contains in a human readable and understandable form. It consists of the following values: .

.

For example a document recorded in 2013 of series 50 set to Type for SAF-T equal to GT that has been assigned the annual sequential number of 15 will have the following value in this field:

  • GT 2013RD50/15
.

The documents that were previously written to the existence of this field, the application will fill automatically with a similar value, at the time of installation and maintenance of the DB, with the difference that will not include the RD element nor the year of the document, taking the example above, it would read: .

  • GT 50/15
.

The value of this field is used for example to compose the digital signature of the document and for production of the SAF-T-PT file used in communications with the AT.

vatoperation

Fixed variable - Operações com IVA - Liquidado

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

Property Value

int

vatsalesoperation

Fixed variable - Operações IVA - Vendas e prestações de serviços

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

Property Value

int

vattype

Vat type.

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

Property Value

int

versaochave

Key edition of the digital signature.

[AttLenght(40)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string versaochave { get; set; }

Property Value

string

wsinvoiceresults

Stores the AT response

[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string wsinvoiceresults { get; set; }

Property Value

string

Remarks

Lenght 500.

wsinvoicesent

Identifies if the ft was sent to AT with success

[AttLenght(1)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool wsinvoicesent { get; set; }

Property Value

bool

Remarks

Lenght 1.

Methods

GetCodigoEspacoFiscal(string)

protected string GetCodigoEspacoFiscal(string espacoFiscal)

Parameters

Nome Tipo Descrição
espacoFiscal string

Returns

string

GetSeriesName()

public override string GetSeriesName()

Returns

string

GetSeriesValue()

public override decimal GetSeriesValue()

Returns

decimal

Explicit Interface Implementations

CanIntegrate()

Returns true if integration is available

bool CanIntegrate()

Returns

bool

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

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

anulado

Indica se o documento está anulado.

[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttList(Inactive = true)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
bool anulado { get; set; }

Returns

bool

codmotiseimp

Code for VAT exemption Reason

[AttVirtualField]
[AttLenght(4)]
string codmotiseimp { get; set; }

Returns

string

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

ebase

Valor base em Euros.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
[AttList(Inactive = true)]
decimal ebase { get; set; }

Returns

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

eivav

Valor do IVA em Euros.

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

Returns

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

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

miseimpstamp

StampID for VAT exemption Reason

[AttForeignKey(CanDuplicate = true, ForeignType = typeof(MiseimpVO), HiddenField = false)]
[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
string miseimpstamp { get; set; }

Returns

string

motiseimp

Reason for VAT exemption

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

Returns

string

nullifyDate

Date of nullify

[AttFieldType(AttFieldType.InputTypes.fullDate, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
DateTime nullifyDate { get; set; }

Returns

DateTime

Remarks

Is the date of the field anulada filled.

Non Duplicable Field.

olcodigo

Código de tesouraria

[AttLenght(12)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
string olcodigo { get; set; }

Returns

string

Remarks

Length 12.

Mandatory field.

rdata

Data do Documento.

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

Returns

DateTime

Remarks

Length 1.

Field available in the basic search results list.

Searchable field.

Mandatory field.

tabiva

VAT table code

[AttLenght(3)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
int tabiva { get; set; }

Returns

int

taxa

VAT table rate

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
decimal taxa { 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