Table of Contents

Class PoVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Payment

[AttTable("Po", 20230709)]
[AttTableOrderBy("poano,rno,rdata,nome", "D,D,D,A")]
[AttTableVOInfo(typeof(POAttInfo))]
[AttTableGama(Gamas.Corporate)]
[AttRelationShip(typeof(FlVO), RelationShipTypes.OneToOne, new string[] { "[Po].[no]", "[Fl].[no]", "[Po].[estab]", "[Fl].[estab]" })]
[AttTableProducts(new Products[] { Products.COMPRAS })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.UseInternalRef, TableFlags.FullTextSearchable, TableFlags.TableForJorge, TableFlags.AddOnNotDeployable, TableFlags.UseDimensions })]
public class PoVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
PoVO

Remarks

Esta entidade é composta por uma colecção principal de linhas de pagamentos PlVO. .

Properties

BlVO

Conta associada a este pagamento

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

Property Value

BlVO

Remarks

Data type BlVO.

Não é enviado para o Frontend.

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

FLVO

Fornecedor associado a este pagamento.

[AttExternalCollection(typeof(FlVO), new string[] { "fl.no", "no", "fl.estab", "estab" })]
public FlVO FLVO { get; }

Property Value

FlVO

Remarks

Data type FlVO.

Field not sent to the 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

OcVO

Código de Tesouraria associado a este pagamento.

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

Property Value

OcVO

Remarks

Data type OcVO.

Field not sent to the frontend.

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

accruedtype

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

Property Value

int

adoc

Número do documento original do pagamento.

[AttLenght(50)]
[AttList(Inactive = true)]
public string adoc { get; set; }

Property Value

string

Remarks

Length 50.

approvedByName

The name of person who approve the document

[AttLenght(100)]
[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string approvedByName { get; set; }

Property Value

string

approvedByStamp

The stamp of person who approve the document

[AttLenght(25)]
[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string approvedByStamp { get; set; }

Property Value

string

approvedDate

The date when was approved

[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public DateTime approvedDate { get; set; }

Property Value

DateTime

approvedHour

The hour when was approved

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

Property Value

string

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

blsupplytype

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

Property Value

string

cm

Código do Documento.

[AttLenght(6)]
[AttMandatory]
[AttDocType(typeof(Cm1VO))]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList(Hidden = true)]
public int cm { get; set; }

Property Value

int

Remarks

Length 6.

cmdesc

Payment methods.

[AttLenght(25)]
[AttMandatory]
[AttList(Inactive = true)]
[AttLogInfo(0)]
public string cmdesc { get; set; }

Property Value

string

Remarks

Length 20.

Required field.

contado

Número da Conta de Tesouraria.

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

Property Value

int

Remarks

Length 4.

diaplano

Dia da data de contabilização.

[AttLenght(2)]
[AttFieldType(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(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)]
[AttHidden(HiddenParameter = new string[] { "ge_usacontabilidade" }, HiddenParameterValue = new object[] { false })]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string dinoplano { get; set; }

Property Value

string

Remarks

Data type String.

Length 50.

downloadedInPortal

Check if document already downloaded by supplier

[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

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.

ebasei

Valor da Base de Incidência.

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

Property Value

decimal

efinv

Valor do Desconto Financeiro em Euros.

[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

Estabelecimento do Fornecedor.

[AttLenght(6)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList]
[AttSmartField]
public int estab { get; set; }

Property Value

int

Remarks

Length 3.

etotal

Total value, not including the IRS amount. to retain.

[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.

Research field.

Field available in the basic search results list.

ettivaliq

Total do valor do IVA Liquidado

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

Property Value

decimal

evirs

Valor do IRS.

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

Property Value

decimal

Remarks

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

fin

Percent of Financial Discount.

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

flstamp

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

Property Value

string

incometaxcode

Fixed income tax

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

Property Value

int

isSEPAfileSentToBank

Indicate if the SEPA file was sent to bank

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool isSEPAfileSentToBank { 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

Movimento ao abrigo do regime de IVA de Caixa

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

Property Value

bool

madein

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

Property Value

string

market

Market.

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

Property Value

int

masterTiposaft

[AttVirtualField]
public string masterTiposaft { get; }

Property Value

string

moeda

Moeda

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

[AttLenght(3)]
[AttEntityAvailable(typeof(CbVO))]
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

no

Supplier Number.

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

Property Value

decimal

Remarks

Length 10.

Required field.

nome

Supplier's name.

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

Property Value

string

Remarks

Length 55.

Research field.

Field available in the basic search results list.

Required field.

ocLabelField

From OcVO.LabelField

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

Property Value

string

ollocal

Treasury Account for this payment.

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

Property Value

string

Remarks

Length 50.

Required field.

paymentoptions

Fixed value for payment options in account variables

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

Property Value

int

plano

Indica se o documento está contabilizado.

[AttFieldType(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.

pls

Collection of the lines of this document.

[AttCollection(typeof(PlVO))]
public List<PlVO> pls { get; set; }

Property Value

List<PlVO>

Remarks

Collection of type elements. PlVO.

poPaymentTypes

Document Payment Types

[AttCollection(typeof(PoPaymentTypeVO))]
public List<PoPaymentTypeVO> poPaymentTypes { get; set; }

Property Value

List<PoPaymentTypeVO>

poano

Year of Payment.

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

Property Value

int

Remarks

Primary key.

Length 4.

postamp

Single registration field, used to link others to this entity.

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

Property Value

string

Remarks

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

Length 25.

procdata

Data de Processamento.

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

Property Value

DateTime

process

Indica se o documento se encontra processado.

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

Property Value

bool

refInt

Referência interna

Contains the value of the user's internal reference that created the record.

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

Property Value

string

Remarks

Length 50 .

rno

Payment Number.

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

Property Value

decimal

Remarks

Primary key.

Length 10.

Required field.

Research field.

Field available in the basic search results list.

supplieroperation

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

Property Value

int

suppliertermoperation

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

Property Value

int

taxasIVA

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

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

Property Value

List<PoTxIvaVO>

Remarks

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

PoTxIvaVO

textoCertificacao

Regime de IVA

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

Property Value

string

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.

textoCertificacaoParcialNaoServeFactura

Certification: Partial Text - Not for invoice.

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

Property Value

string

Remarks

This field doesn’t physically exist in the database. Its value results from an expression of calculation with the help of other fields of the entity. It is made available with the intention of hiding the complexity of this calculation, thus providing the value in a simple way.

Due to the nature of your calculation the field is not available to be included in searches, but able to be included in listings or reports. Another particularity is that this field because it is virtual will never appear within the collection of Modified Fields of the itself entity.

textoCertificacaoParcialNomeSoftware

Certificação: Texto Parcial - Nome do software

[AttVirtualField]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public string textoCertificacaoParcialNomeSoftware { 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.

textoCertificacaoParcialNumeroCertificacao

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

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

Property Value

string

Remarks

Este campo não existe fisicamente na base de dados. O seu valor resulta de uma expressão de calculo com o auxilio de outros campos da entidade. É disponibilizado com o intuito de esconder a complexidade desse calculo fornecendo assim o valor de uma forma simples.

Devido á natureza do seu calculo o campo não se encontra disponível para ser incluído em procuras, mas sim para ser incluído em listagens ou relatórios. Outra particularidade é que este campo por ser virtual nunca irá figurar dentro da colecção de Campos Modificados da própria entidade.

textoCertificacaoParcialProcessadoPor

Certification: Partial Text - Processed for

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

Property Value

string

Remarks

This field doesn’t physically exist in the database. Its value results from an expression of calculation with the help of other fields of the entity. It is made available with the intention of hiding the complexity of this calculation, thus providing the value in a simple way.

Due to the nature of your calculation the field is not available to be included in searches, but able to be included in listings or reports. Another particularity is that this field because it is virtual will never appear within the collection of Modified Fields of the itself entity.

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 PO no longer post exchange difference through this field in FC now, the exchange difference instead of being launched in full in the FC movement of the payment is partially released by each PL in its corresponding FC.

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.

usaRecargoIva

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

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

Property Value

bool

viewedInPortal

Check if document already viewed by supplier

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

Property Value

bool

wsbankResults

Result of each attempt to communicate with the bank.

[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string wsbankResults { get; set; }

Property Value

string

Remarks

Non Duplicable Field.

Methods

GetSeriesName()

public override string GetSeriesName()

Returns

string

GetSeriesValue()

public override decimal GetSeriesValue()

Returns

decimal

GetTipoSaft()

public override string GetTipoSaft()

Returns

string

IsSupplier()

public override bool IsSupplier()

Returns

bool

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

GetSepaFields()

SepaFields GetSepaFields()

Returns

SepaFields

HasAccountingIntegration()

Check for permission to integrate document

bool HasAccountingIntegration()

Returns

bool

LogIntegrationErrors(List<MessageVO>)

Logs the accounting integration errors

void LogIntegrationErrors(List<MessageVO> errorMessages)

Parameters

Nome Tipo Descrição
errorMessages List<MessageVO>

accounted

Mark document as accounted

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool accounted { get; set; }

Returns

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

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

isApproved

Field to know if the document was approved

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttGama(Gamas.Advanced)]
[AttList(Inactive = true)]
bool isApproved { get; set; }

Returns

bool

isDocNeedsApproval

We use this field to know if the document needs approval

[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList(Inactive = true)]
bool isDocNeedsApproval { 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

olcodigo

Treasury Account Code.

[AttLenght(12)]
[AttMandatory]
string olcodigo { get; set; }

Returns

string

Remarks

Length 12.

Required field.

rdata

Date of document.

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

Returns

DateTime

Remarks

Research field.

Field available in the basic search results list.

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