Table of Contents

Class ReVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Receipts

[AttTable("Re", 20240702)]
[AttTableProducts(new Products[] { Products.VENDAS })]
[AttTableOrderBy(OrderFields = "case when re.rno<0 then re.rno else -9999999999 end,\r\n                               case when re.rno<0 then 0 else re.rno end", COrderType = "D,D")]
[AttTableVOInfo(typeof(ReAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MandatorySaveLog, TableFlags.MasterEntity, TableFlags.UseInternalRef, TableFlags.FullTextSearchable, TableFlags.TableForJorge, TableFlags.AddOnNotDeployable, TableFlags.UseDimensions })]
[AttTableMaintenance(typeof(ReMaintenance))]
[AttRelationShip(typeof(ClVO), RelationShipTypes.OneToOne, new string[] { "[Re].[no]", "[Cl].[no]", "[Re].[estab]", "[Cl].[estab]" })]
public class ReVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
ReVO

Remarks

This body is composed of two main collections of documents slip lines RlVO.

Properties

BlVO

Conta associada a este recibo

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

Property Value

BlVO

Remarks

Data type BlVO.

Não é enviado para o Frontend.

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

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

IvaFieldsRelation

hide iva fields when zero

[AttVirtualField]
public Dictionary<string, List<string>> IvaFieldsRelation { get; }

Property Value

Dictionary<string, List<string>>

OcVO

[AttExternalCollection(typeof(OcVO), new string[] { "[Oc].[olcodigo]", "[Re].[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

RePaymentTypes

Document Payment Types

[AttCollection(typeof(RePaymentTypeVO))]
[AttEntityAvailable(typeof(RePaymentTypeVO))]
public List<RePaymentTypeVO> RePaymentTypes { get; set; }

Property Value

List<RePaymentTypeVO>

TsreVO

[AttExternalCollection(typeof(TsreVO), new string[] { "tsre.ndoc", "ndoc" })]
public TsreVO TsreVO { get; }

Property Value

TsreVO

assinatura

Signature.

[AttLenght(200)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
[AttList(Hidden = true)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string assinatura { get; set; }

Property Value

string

atWsDocResults

Stores the AT response

[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttHidden(HiddenParameter = new string[] { "ge_atinvwebcommunication" }, HiddenParameterValue = new object[] { false })]
public string atWsDocResults { get; set; }

Property Value

string

Remarks

Lenght 500.

atWsDocSent

Identifies if the doc was sent to AT with success

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

Property Value

bool

Remarks

Lenght 1.

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.

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

atwebdocready

Indicates if the record is ready to be reported as working doc via webservice with AT.

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

Property Value

bool

Remarks

Virtual field.

Field not available for the user.

baseim

Valor da Base de Incidência em Moeda Estrangeira.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim { get; set; }

Property Value

decimal

blLabelField

From BlVO.labelField

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

Property Value

string

blMoeda

From BlVO.moeda

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

Property Value

string

blsupplytype

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

Property Value

string

cbblstamp

Collection line Stamp Via Bank Receipt of this

[AttLenght(25)]
[AttForeignKey(typeof(CbblVO))]
public string cbblstamp { get; set; }

Property Value

string

clientoperation

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

Property Value

int

clstamp

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

Property Value

string

contado

Internal bank account No.

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

Property Value

int

Remarks

Length 4.

Mandatory field.

diaplano

Posting day

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

Property Value

int

Remarks

Data type Numeric.

Length 2.

dilnoplano

Number created in the invoicing journal

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

Property Value

int

Remarks

Data type Numeric.

Length 10.

dinoplano

Invoicing journal

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

Property Value

string

Remarks

Data type String.

Length 50.

downloadedInPortal

Check if document already downloaded by customer

[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Documents })]
public bool downloadedInPortal { get; set; }

Property Value

bool

dplano

Posting date

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

Property Value

DateTime

Remarks

Data type DateTime.

Non Duplicable Field.

ebasei

Valor da Base de Incidência.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei { get; set; }

Property Value

decimal

efinv

Financial discount in Amount

[AttLenght(19, 6)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal efinv { get; set; }

Property Value

decimal

Remarks

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

email

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

Property Value

string

estab

Customer establishment

[AttLenght(6)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange, AttFieldType.FieldFlags.NotEditLoop })]
[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.

etotal

Total

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

Property Value

decimal

Remarks

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

ettivaliq

Total do valor do IVA Liquidado

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ettivaliq { get; set; }

Property Value

decimal

evirs

Personal Income Tax

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

Property Value

decimal

Remarks

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

fin

Financial discount percentage

[AttLenght(6, 2)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.percentage, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMaxValue(100)]
[AttMinValue(0)]
public decimal fin { get; set; }

Property Value

decimal

Remarks

Length: 6 for units and 2 for decimals.

finvmoeda

Valor do Desconto Financeiro em Moeda Estrangeira.

[AttLenght(19, 6)]
[AttEntityAvailable(typeof(CbVO))]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal finvmoeda { 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.

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

incometaxcode

Fixed income tax

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

Property Value

int

incomewithholdingscode

Fixed value for Withholdings made by third parties (value 2)

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

Property Value

int

introfin

Calculation origin of financial discount

[AttHidden]
[AttGama(Gamas.Advanced)]
public FinancialDiscountTypes introfin { get; set; }

Property Value

FinancialDiscountTypes

isSigned

If the requiresSign field is true if the signature field is filled To find out if a document that does not need a signature is finalized, you should check if the draftRecord field is false

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

Property Value

bool

ivaBase1

Valor de base de incidência da primeira linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase1 { get; set; }

Property Value

decimal

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.

ivaBase1MoedaEstrangeira

Primeira linha IVA - Incidência em moeda estrangeira.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase1MoedaEstrangeira { get; }

Property Value

decimal

ivaBase2

Valor de base de incidência da segunda linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase2 { get; set; }

Property Value

decimal

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.

ivaBase2MoedaEstrangeira

Segunda linha IVA - Incidência em moeda estrangeira.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase2MoedaEstrangeira { get; }

Property Value

decimal

ivaBase3

Valor de base de incidência da terceira linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase3 { get; }

Property Value

decimal

Remarks

Virtual field.

ivaBase3MoedaEstrangeira

Terceira linha IVA - Incidência em moeda estrangeira.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase3MoedaEstrangeira { get; }

Property Value

decimal

ivaBase4

4º line - VAT base

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase4 { get; }

Property Value

decimal

ivaBase4MoedaEstrangeira

4º line - VAT base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase4MoedaEstrangeira { get; }

Property Value

decimal

ivaBase5

5º line - VAT base

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase5 { get; }

Property Value

decimal

ivaBase5MoedaEstrangeira

5º line - VAT base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase5MoedaEstrangeira { get; }

Property Value

decimal

ivaBase6

6º line - VAT base

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase6 { get; }

Property Value

decimal

ivaBase6MoedaEstrangeira

6º line - VAT base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaBase6MoedaEstrangeira { get; }

Property Value

decimal

ivaTaxa1

Taxa da primeira linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaTaxa1 { get; set; }

Property Value

decimal

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.

ivaTaxa2

Taxa da segunda linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaTaxa2 { get; set; }

Property Value

decimal

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.

ivaTaxa3

Taxa da terceira linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaTaxa3 { get; }

Property Value

decimal

Remarks

Virtual field.

ivaTaxa4

4º line - VAT rate

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaTaxa4 { get; }

Property Value

decimal

ivaTaxa5

5º line - VAT rate

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaTaxa5 { get; }

Property Value

decimal

ivaTaxa6

6º line - VAT rate

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaTaxa6 { get; }

Property Value

decimal

ivaTaxaRec1

Valor da taxa de I.V.A. da primeira linha de recargo.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaTaxaRec1 { get; set; }

Property Value

decimal

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.

ivaTaxaRec2

Valor da taxa de I.V.A. da segunda linha de recargo.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaTaxaRec2 { get; set; }

Property Value

decimal

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.

ivaTaxaRec3

Valor da taxa de I.V.A. da terceira linha de recargo.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaTaxaRec3 { get; }

Property Value

decimal

Remarks

Virtual field.

ivaTaxaRec4

4º line - VAT surcharge rate

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaTaxaRec4 { get; }

Property Value

decimal

ivaTaxaRec5

5º line - VAT surcharge rate

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaTaxaRec5 { get; }

Property Value

decimal

ivaTaxaRec6

6º line - VAT surcharge rate

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaTaxaRec6 { get; }

Property Value

decimal

ivaValor1

Valor do I.V.A. da primeira linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor1 { get; set; }

Property Value

decimal

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.

ivaValor1MoedaEstrangeira

Primeira linha IVA - Valor IVA em moeda estrangeira.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor1MoedaEstrangeira { get; }

Property Value

decimal

ivaValor2

Valor do I.V.A. da segunda linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor2 { get; set; }

Property Value

decimal

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.

ivaValor2MoedaEstrangeira

Segunda linha IVA - Valor IVA em moeda estrangeira.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor2MoedaEstrangeira { get; }

Property Value

decimal

ivaValor3

Valor do I.V.A. da terceira linha de I.V.A.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor3 { get; }

Property Value

decimal

Remarks

Virtual field.

ivaValor3MoedaEstrangeira

Terceira linha IVA - Valor IVA em moeda estrangeira.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor3MoedaEstrangeira { get; }

Property Value

decimal

ivaValor4

4º line - VAT amount

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor4 { get; }

Property Value

decimal

ivaValor4MoedaEstrangeira

4º line - VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor4MoedaEstrangeira { get; }

Property Value

decimal

ivaValor5

5º line - VAT amount

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor5 { get; }

Property Value

decimal

ivaValor5MoedaEstrangeira

5º line - VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor5MoedaEstrangeira { get; }

Property Value

decimal

ivaValor6

6º line - VAT amount

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor6 { get; }

Property Value

decimal

ivaValor6MoedaEstrangeira

6º line - VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ivaValor6MoedaEstrangeira { get; }

Property Value

decimal

ivaValorRec1

Valor de recargo da primeira linha de recargo.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaValorRec1 { get; set; }

Property Value

decimal

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.

ivaValorRec2

Valor de recargo da segunda linha de recargo.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaValorRec2 { get; set; }

Property Value

decimal

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.

ivaValorRec3

Valor de recargo da terceira linha de recargo.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaValorRec3 { get; }

Property Value

decimal

Remarks

Virtual field.

ivaValorRec4

4º line - VAT surcharge amount.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaValorRec4 { get; }

Property Value

decimal

ivaValorRec5

5º line - VAT surcharge amount.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaValorRec5 { get; }

Property Value

decimal

ivaValorRec6

6º line - VAT surcharge amount.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal ivaValorRec6 { get; }

Property Value

decimal

ivacaixa

[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public bool ivacaixa { get; set; }

Property Value

bool

madein

Field to know which origin was created.

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

Property Value

string

market

Market.

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

Property Value

int

moeda

Moeda

Contém o nome abreviado da moeda usada neste documento .

[AttLenght(3)]
[AttEntityAvailable(typeof(CbVO))]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string moeda { get; set; }

Property Value

string

Remarks

Length 3 .

EUR, USD, GBP

mttivaliq

Total do valor do IVA Liquidado

[AttVirtualField]
[AttLenght(19, 6)]
public decimal mttivaliq { get; set; }

Property Value

decimal

ndoc

Internal number of the receipt series

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

Property Value

int

Remarks

Length 3.

Primary Key.

nmdoc

Receipt Series

[AttLenght(20)]
[AttLogInfo(0)]
[AttList(Inactive = true)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string nmdoc { get; set; }

Property Value

string

Remarks

Length 20.

Searchable field.

no

Client Number

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

Property Value

decimal

Remarks

Length 10.

Mandatory field.

nome

Client Name

[AttMandatory]
[AttLenght(100)]
[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.

Mandatory field.

Searchable field.

nullifyHour

Time of nullify.

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

Property Value

string

nullifyReason

Reason of nullify.

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

Property Value

string

obs

Comments

[AttFieldType(AttFieldType.InputTypes.memo)]
public string obs { get; set; }

Property Value

string

Remarks

Long text field.

ocLabelField

From OcVO.LabelField

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

Property Value

string

ollocal

Bank

[AttLenght(50)]
[AttEntityAvailable(typeof(BlVO))]
public string ollocal { get; set; }

Property Value

string

Remarks

Length 50.

paymentRefNo

[AttVirtualField]
[AttHidden]
public string paymentRefNo { get; }

Property Value

string

plano

Integrated accounting document

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttHidden(HiddenParameter = new string[] { "ge_usacontabilidade" }, HiddenParameterValue = new object[] { false })]
[AttGama(Gamas.Grow)]
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.

procdata

Processing date

[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime procdata { get; set; }

Property Value

DateTime

process

Indicates if the receipt is Processed

[AttLenght(1)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool process { get; set; }

Property Value

bool

qrcode

QRCODE

[AttVirtualField]
public string qrcode { get; }

Property Value

string

reano

Receipt Year

[AttPrimaryKey]
[AttLenght(4)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public int reano { get; set; }

Property Value

int

Remarks

Length 4.

Primary Key.

reasonToDeleteInAT

[AttLenght(50)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly, AttFieldType.FieldFlags.NotEditLoop })]
public string reasonToDeleteInAT { get; set; }

Property Value

string

refInt

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

Property Value

string

refmbdate

Data do pagamento da referência multibanco

[AttVirtualField]
public DateTime refmbdate { get; set; }

Property Value

DateTime

refmcdate

Data do pagamento da referência multicaixa

[AttVirtualField]
public DateTime refmcdate { get; set; }

Property Value

DateTime

requiresSign

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

Property Value

bool

restamp

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

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

Property Value

string

Remarks

Length 25.

rlTaxasIVA

A group collection by Tax for each receipt line. Only usable in reports. Should not be used anywherelse

[AttExternalCollection(typeof(RlTxIvaVO))]
public List<RlTxIvaVO> rlTaxasIVA { get; set; }

Property Value

List<RlTxIvaVO>

rls

Collection of the lines of this Receipt

[AttCollection(typeof(RlVO))]
public List<RlVO> rls { get; set; }

Property Value

List<RlVO>

Remarks

Collection of type elements. RlVO.

rno

Receipt Number. The value of this field is automatically incremented based on the value of the last record created.

[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

Length 10.

Primary Key.

Searchable field.

serieuniqueid

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

Property Value

string

signatureDate

Date of signature

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

Property Value

DateTime

signatureHour

Time of signature.

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

Property Value

string

taxasIVA

Colecção das diversas taxas de I.V.A. presentes no documento.

[AttCollection(typeof(ReTxIvaVO))]
public List<ReTxIvaVO> taxasIVA { get; set; }

Property Value

List<ReTxIvaVO>

Remarks

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

ReTxIvaVO

taxcategorycode

Tax category for mapping accounts variables

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

Property Value

int

textGeneratedByCBB

Texto para indicar se o recibo foi gerado via Cobrança Bancária

[AttVirtualField]
public string textGeneratedByCBB { get; }

Property Value

string

textoCertificacao

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

Property Value

string

textoCertificacaoParcialCopiadeDoc

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

Property Value

string

textoCertificacaoParcialDemo

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

Property Value

string

textoCertificacaoParcialNaoServeFactura

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

Property Value

string

textoCertificacaoParcialNaoServeFacturaAgregado

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

Property Value

string

textoCertificacaoParcialNomeSoftware

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

Property Value

string

textoCertificacaoParcialNumeroCertificacao

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

Property Value

string

textoCertificacaoParcialProcessadoPor

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

Property Value

string

textoCertificacaoParcialRegimeIVA

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

Property Value

string

texto_anulado

[AttVirtualField]
public string texto_anulado { get; }

Property Value

string

tipocbb

Bank collection type applied to the receipt

[AttLenght(1)]
public CBBTipo tipocbb { get; set; }

Property Value

CBBTipo

Remarks

Length 1.

totalDifCambial

Exchange difference.

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

Property Value

decimal

Remarks

Attention, starting from task 46080 the RE ceased to post exchange difference through this field in the CC now, the exchange difference instead of being released in full in the CC movement of the receipt is released partially by each RL in its corresponding CC.

totalmb

Total do pagamento da referência multibanco

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalmb { get; set; }

Property Value

decimal

totalmc

Total do pagamento da referência multicaixa

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalmc { get; set; }

Property Value

decimal

totalmoeda

Valor total do documento em Moeda Estrangeira.

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

Property Value

decimal

Remarks

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

uniqueID

Identifying only the record

[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 to fulfill the function with a valid value for this register. If recording this field comes completed the application will accept its value but does not validate if it is a single value, getting this algorithm responsibility who completed the value in the field before sending the entity record.

The function of this field is identical to the field restamp with the difference that the value that is contains a readable and human-perceivable form. It comprises the following values: .

    This identification is made sequentially of: the internal code of the type of receipt assigned by the application, a space, the identifier of the receipt number, a slash (/) and the sequence number of receipt within this series.
  • RE
  • Espaço
  • Identifying only the record
  • /
  • Receipt Number
.

For example a purchase recorded in 2013 50 series set to type for SAF-T equal to GT has been awarded the annual sequence number 15 will get the following value in this field: .

  • RE /15
.

Purchases that were previously recorded to the existence of this field, the application will automatically fill with a similar value at the time of installation and maintenance of BD, with the difference that will not include the FO element or the year of purchase, taking the example above , would: .

  • GT 50/15
.

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

usaRecargoIva

Indica se o documento usa o recargo de I.V.A.

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

Property Value

bool

Remarks

Virtual field.

Field not available to the user.

versaochave

Key edition of the digital signature.

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

Property Value

string

viewedInPortal

Check if document already viewed by customer

[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Documents })]
public bool viewedInPortal { get; set; }

Property Value

bool

Methods

GetCodigoEspacoFiscal(string)

protected string GetCodigoEspacoFiscal(string espacoFiscal)

Parameters

Nome Tipo Descrição
espacoFiscal string

Returns

string

GetRegimesIvaFiscal(List<ReTxIvaVO>, List<string>)

protected void GetRegimesIvaFiscal(List<ReTxIvaVO> ri, List<string> itens)

Parameters

Nome Tipo Descrição
ri List<ReTxIvaVO>
itens List<string>

GetSeriesName()

public override string GetSeriesName()

Returns

string

GetSeriesValue()

public override decimal GetSeriesValue()

Returns

decimal

GetTipoSaft()

public override string GetTipoSaft()

Returns

string

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

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

anulada

Indicates whether the receipt was canceled

[AttList]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.en_US, languages.es_ES, languages.pt_AO })]
bool anulada { get; set; }

Returns

bool

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

draftRecord

Indicates if the record is in draft mode (TRUE) or final version (FALSE).

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
bool draftRecord { get; set; }

Returns

bool

Remarks

The default value is (TRUE) and all new records are in draft mode, however the recording of a document in the application runs the validation rule that checks if the series to which the document belongs is configured to allow draft, if not, is ignored and this value registration is recorded in the final version.

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

nullifyDate

Date of nullify

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

Returns

DateTime

olcodigo

Banking Code

[AttLenght(12)]
[AttEntityAvailable(typeof(BlVO))]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
string olcodigo { get; set; }

Returns

string

Remarks

Length 12.

Mandatory field.

rdata

Receipt date

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

Returns

DateTime

Remarks

Mandatory field.

Searchable field.

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