Table of Contents

Class FiVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Rows of Invoice Document

[AttTable("Fi", 20250118)]
[AttTableOrderBy("[Fi].[lordem]")]
[AttTableVOInfo(typeof(FiAttInfo))]
[AttTableMaintenance(typeof(FiMaintenance))]
[AttTableFlags(new TableFlags[] { TableFlags.AddOnCustomizable, TableFlags.UseDimensions })]
public class FiVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent<FtVO>, IParent, IGenericVO
Inheritance
FiVO

Properties

AccountingStVO

Just for accounting usage

[AttHidden]
public StVO AccountingStVO { get; }

Property Value

StVO

AssetVO

[AttExternalCollection(typeof(AssetVO), new string[] { "[Asset].[assetcode]", "[Fi].[asset]" })]
public AssetVO AssetVO { get; }

Property Value

AssetVO

AvencaVO

[AttExternalCollection(typeof(AvencaVO), new string[] { "avenca.avencastamp", "avencastamp" })]
public AvencaVO AvencaVO { get; }

Property Value

AvencaVO

BiVO

[AttExternalCollection(typeof(BiVO), new string[] { "Fi.bistamp", "Bi.bistamp" })]
public BiVO BiVO { get; }

Property Value

BiVO

FiMas

[AttVirtualField]
public List<FiMaVO> FiMas { get; }

Property Value

List<FiMaVO>

FiVO

[AttExternalCollection(typeof(FiVO), new string[] { "Fi.ofistamp", "Fi.fistamp" })]
public FiVO FiVO { get; }

Property Value

FiVO

FnVO

[AttExternalCollection(typeof(FnVO), new string[] { "Fi.ofnstamp", "Fi.ofnstamp" })]
public FnVO FnVO { get; }

Property Value

FnVO

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

HasTaxRelevance

The line should go to the saft ?

[AttVirtualField]
public bool HasTaxRelevance { get; }

Property Value

bool

Remarks

For a line to have fiscal relevance to AT, first the line should not be a component, then just have one of the following fields non-zero, note that this property only indicates that the line should go to the saft, does not indicate that it is valid for inclusion in the saft.

IsDescription

Is it a line that should not be included in saft ?

[AttVirtualField]
public bool IsDescription { get; }

Property Value

bool

LotVO

[AttExternalCollection(typeof(LotVO), new string[] { "Fi.ref", "Lot.ref", "Fi.lote", "Lot.lote" })]
public LotVO LotVO { get; }

Property Value

LotVO

MiseimpVO

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

Property Value

MiseimpVO

ModalidadVO

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

Property Value

ModalidadVO

OriFtVO

[AttExternalCollection(typeof(FtVO), new string[] { "ft.ftstamp", "oftstamp" })]
public FtVO OriFtVO { get; }

Property Value

FtVO

SaVO

[AttExternalCollection(typeof(SaVO), new string[] { "sa.ref", "ref", "sa.armazem", "armazem" })]
public SaVO SaVO { get; }

Property Value

SaVO

SlVO

[AttExternalCollection(typeof(SlVO), new string[] { "sl.fistamp", "fistamp" })]
public SlVO SlVO { get; }

Property Value

SlVO

StVO

[AttExternalCollection(typeof(StVO), new string[] { "st.ref", "ref" })]
public StVO StVO { get; }

Property Value

StVO

TaxRelevanceInvalid

Is the line invalid to be included in the saft ?

[AttVirtualField]
public bool TaxRelevanceInvalid { get; }

Property Value

bool

Remarks

If the line has fiscal relevance to the AT, this property determines if it is invalid to be included in the saft

TaxRetentionVO

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

Property Value

TaxRetentionVO

TaxaIVAVO

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

Property Value

TaxasIVAVO

accountingref

Accounting ref for integration

[AttLenght(18)]
[AttProducts(new Products[] { Products.Accounting })]
public string accountingref { get; set; }

Property Value

string

Remarks

Length 18.

Non Duplicable Field.

acquisitionValue

Unit Cost

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
[AttHidden(HiddenParameter = new string[] { "ft_specialScheme" }, HiddenParameterValue = new object[] { false })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public decimal acquisitionValue { get; set; }

Property Value

decimal

actqtt2

Se esta linha actualiza o campo qtt2 da linha do Dossier Interno de onde foi copiada.

[AttHidden]
public bool actqtt2 { get; set; }

Property Value

bool

Remarks

Field not available to the user.

Non Duplicable Field.

alternativeQtt

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal alternativeQtt { get; set; }

Property Value

decimal

alternativeUnit

Alternative unit

[AttLenght(4)]
[AttGama(Gamas.Advanced)]
public string alternativeUnit { get; set; }

Property Value

string

Remarks

Length 4.

amostra

Indica se o Artigo ou Serviço é um amostra

[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttGama(Gamas.Advanced)]
public bool amostra { get; set; }

Property Value

bool

armazem

Armazém onde se encontra o Artigo ou Serviço.

[AttLenght(5)]
[AttEntityAvailable(typeof(SaVO))]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int armazem { get; set; }

Property Value

int

Remarks

Length 5.

articleAutoCreationCode

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

Property Value

AutoCreationCodes

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 Modified Fields of the entity itself.

asset

Referência do ativo.

[AttLenght(18)]
[AttProducts(new Products[] { Products.Assets })]
public string asset { get; set; }

Property Value

string

assetcategorysubsuffix

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

Property Value

int

assetcategorysuffix

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

Property Value

int

assetnaturesuffix

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

Property Value

int

avencano

Número da avença.

[AttLenght(10)]
public decimal avencano { get; set; }

Property Value

decimal

Remarks

Length 10.

avencastamp

Connects to avencastamp

[AttForeignKey(typeof(AvencaVO))]
[AttLenght(25)]
public string avencastamp { get; set; }

Property Value

string

bistamp

Connects to bistamp from which this line was copied.

[AttLenght(25)]
[AttForeignKey(typeof(BiVO))]
public string bistamp { get; set; }

Property Value

string

caneditlotrefdate

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

Property Value

bool

ccstamp

Connects to ccstamp

[AttForeignKey(typeof(CcVO))]
[AttLenght(25)]
public string ccstamp { get; set; }

Property Value

string

cliref

Referência do Cliente.

[AttLenght(18)]
public string cliref { get; set; }

Property Value

string

Remarks

Length 18.

codigo

Código de Barras

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

Property Value

string

Remarks

Length 25.

codstamp

[AttLenght(25)]
[AttEntityAvailable(typeof(TaxRetentionVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string codstamp { get; set; }

Property Value

string

commissionConfigLabel

Commission of this ST.

[AttVirtualField]
[AttGama(Gamas.Advanced)]
public string commissionConfigLabel { get; set; }

Property Value

string

cpoc

Código SNC

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
public int cpoc { get; set; }

Property Value

int

Remarks

Data type Numeric.

Length 6.

davencaft

Data de facturação ao qual respeita a avença.

public DateTime davencaft { get; set; }

Property Value

DateTime

desc2

Discount Percentage Value 2.

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desc2 { get; set; }

Property Value

decimal

Remarks

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

desc3

Valor percentual do Desconto 3

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desc3 { get; set; }

Property Value

decimal

Remarks

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

desc4

Valor percentual do Desconto 4

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desc4 { get; set; }

Property Value

decimal

Remarks

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

desc5

Valor percentual do Desconto 5

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desc5 { get; set; }

Property Value

decimal

Remarks

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

desc6

Valor percentual do Desconto 6

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desc6 { get; set; }

Property Value

decimal

Remarks

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

desconto

Discount Percentage Value 1.

[AttLenght(6, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desconto { get; set; }

Property Value

decimal

Remarks

Total length: 6 - where 3 are for units and 2 for decimals.

design

Designação.

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

Property Value

string

dim1

This field will store the first dimension

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal dim1 { get; set; }

Property Value

decimal

dim2

This field will store the second dimension

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal dim2 { get; set; }

Property Value

decimal

dim3

This field will store the third dimension

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal dim3 { get; set; }

Property Value

decimal

disposalstamp

Disposal connection.

[AttLenght(25)]
[AttProducts(new Products[] { Products.Assets })]
[AttEntityAvailable(typeof(AssetVO))]
public string disposalstamp { get; set; }

Property Value

string

ebasein

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal ebasein { get; set; }

Property Value

decimal

ecusto

Unit Cost

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

Property Value

decimal

eivain

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal eivain { get; set; }

Property Value

decimal

elucro

Valor em Euros do Lucro.

[AttVirtualField]
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal elucro { 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.

emargem

[AttVirtualField(typeof(FiAttInfo))]
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
[AttInterfaces(new Type[] { typeof(IChange) })]
public decimal emargem { get; set; }

Property Value

decimal

epv

Unit Price

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal epv { get; set; }

Property Value

decimal

epvWithoutPromotion

Epv from st without applying the promotion

[AttVirtualField]
public decimal epvWithoutPromotion { get; set; }

Property Value

decimal

etaxtot

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal etaxtot { get; set; }

Property Value

decimal

etaxvatsuj

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal etaxvatsuj { get; set; }

Property Value

decimal

etiliquido

Total = (epv * qtt) - discount

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal etiliquido { get; set; }

Property Value

decimal

etotal

Total value = epvbase + ettiva + etaxtot

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

Property Value

decimal

ettdesc

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal ettdesc { get; set; }

Property Value

decimal

ettiva

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal ettiva { get; set; }

Property Value

decimal

evalcomissao

Valor de comissão.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal evalcomissao { get; set; }

Property Value

decimal

Remarks

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

expeditionDate

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

Property Value

DateTime

facturaFt

Se esta linha causa marca como Facturada a factura de onde foi copiada.

[AttHidden]
public bool facturaFt { get; set; }

Property Value

bool

Remarks

Field not available to the user.

Non Duplicable Field.

familia

Família do Artigo ou Serviço.

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

Property Value

string

Remarks

Length 50.

ftstamp

Connects to ftstamp that contains this line.

[AttForeignKey(typeof(FtVO))]
[AttLenght(25)]
[AttIndex]
public string ftstamp { get; set; }

Property Value

string

fullmotiseimp

Code and Reason for VAT exemption

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

Property Value

string

haveIStax

Have IS tax

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

Property Value

bool

invoiceoperationtype

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

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

Property Value

int

isToUptParts2

[AttHidden]
public bool isToUptParts2 { get; set; }

Property Value

bool

isdisposal

Identifies whether the record was automatically created by a disposal movement.

[AttProducts(new Products[] { Products.Assets })]
[AttEntityAvailable(typeof(AssetVO))]
public bool isdisposal { get; set; }

Property Value

bool

iseregrecargo

[AttHidden]
public bool iseregrecargo { get; set; }

Property Value

bool

ivadata

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

Property Value

DateTime

ivaincl

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

Property Value

bool

ivarec

Recargo VAT

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

Property Value

decimal

labelField

VAT table label

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

Property Value

string

listFima

[AttVirtualField]
public string listFima { get; }

Property Value

string

listTaxes

[AttVirtualField]
public string listTaxes { get; }

Property Value

string

litem

Título para a primeira coluna do item.

[AttLenght(40)]
public string litem { get; set; }

Property Value

string

Remarks

Length 40.

litem2

Título para a segunda coluna do item.

[AttLenght(40)]
public string litem2 { get; set; }

Property Value

string

Remarks

Length 40.

lote

Lot

[AttLenght(40)]
[AttForeignKey(true, typeof(LotVO), HiddenField = false)]
[AttEntityAvailable(typeof(LotVO))]
[AttHidden(HiddenParameter = new string[] { "allowlot" }, HiddenParameterValue = new object[] { false })]
public string lote { get; set; }

Property Value

string

Remarks

ForeignKey to lote

lotrefdate

Expiration date for FEFO

[AttEntityAvailable(typeof(LotVO))]
[AttFieldType(AttFieldType.InputTypes.date)]
[AttHidden(HiddenParameter = new string[] { "allowlot" }, HiddenParameterValue = new object[] { false })]
public DateTime lotrefdate { get; set; }

Property Value

DateTime

lottype

[AttEntityAvailable(typeof(LotVO))]
public LotTypes lottype { get; set; }

Property Value

LotTypes

lottypename

Name of lot type.

[AttLenght(50)]
[AttLocale(typeof(FiAttInfo), new string[] { "[FI].[lottype]" })]
public string lottypename { get; set; }

Property Value

string

marketwithregion

Market with region

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

Property Value

int

maxQttRefund

Max quantity of a product to refund by copy To be used when creation Refund documents from another record

[AttVirtualField]
public decimal maxQttRefund { get; set; }

Property Value

decimal

Remarks

This field will be used to validate the limit quantity of a product to be refunded. The Fi may be in multiple FTs but we have to establish a limit for refunds

mbasein

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal mbasein { get; set; }

Property Value

decimal

measurementType

[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttGama(Gamas.Advanced)]
public MeasurementTypes measurementType { get; set; }

Property Value

MeasurementTypes

measurementTypeName

Name of lot type.

[AttLenght(50)]
[AttLocale(typeof(FiAttInfo), new string[] { "[Fi].[measurementType]" })]
public string measurementTypeName { get; set; }

Property Value

string

merchandisetype

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

Property Value

int

mivain

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal mivain { get; set; }

Property Value

decimal

modalidaddescription

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

Property Value

string

modalidadstamp

[AttLenght(25)]
[AttEntityAvailable(typeof(ModalidadVO))]
public string modalidadstamp { get; set; }

Property Value

string

mtaxtot

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal mtaxtot { get; set; }

Property Value

decimal

mtaxvatsuj

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal mtaxvatsuj { get; set; }

Property Value

decimal

mtotal

Total value in currency = mpvbase + mttiva + mtaxtot

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal mtotal { get; set; }

Property Value

decimal

mttdesc

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal mttdesc { get; set; }

Property Value

decimal

mttiva

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal mttiva { get; set; }

Property Value

decimal

nvol

Número de Volumes

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal nvol { get; set; }

Property Value

decimal

Remarks

Length: 14.4

obostamp

Connects to bostamp from which this line was copied.

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

Property Value

string

ofistamp

Connects to fistamp from which this line was copied.

[AttForeignKey(typeof(FiVO))]
[AttLenght(25)]
public string ofistamp { get; set; }

Property Value

string

ofnstamp

Connects to fnstamp from which this line was copied.

[AttForeignKey(typeof(FnVO))]
[AttLenght(25)]
public string ofnstamp { get; set; }

Property Value

string

ofostamp

Connects to fostamp from which this line was copied.

[AttForeignKey(typeof(FoVO))]
[AttLenght(25)]
public string ofostamp { get; set; }

Property Value

string

oftstamp

Connects to ftstamp from which this line was copied.

[AttForeignKey(typeof(FtVO))]
[AttLenght(25)]
public string oftstamp { get; set; }

Property Value

string

operationtype

Sales type.

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

Property Value

int

orderDate

[AttLenght(25)]
public DateTime orderDate { get; set; }

Property Value

DateTime

oref

Referência do artigo ou serviço (se origem já movimentou).

[AttLenght(18)]
public string oref { get; set; }

Property Value

string

Remarks

Length 18.

Non Duplicable Field.

originalMaxQttRefund

Max quantity of a product to refund To be used when consulting an Record

[AttVirtualField]
public decimal originalMaxQttRefund { get; set; }

Property Value

decimal

Remarks

To get the maxQtt to refund of an Fi original, it means that we will see only the original

originatingOn

[AttLenght(60)]
public string originatingOn { get; set; }

Property Value

string

oristamp

key to document of origin - only by integration

[AttLenght(25)]
[AttIndex(new string[] { "oritable", "oristamp" }, new OrderTypes[] { OrderTypes.Ascending, OrderTypes.Descending })]
public string oristamp { get; set; }

Property Value

string

oristampLine

key to the document line of origin - only by integration

[AttLenght(25)]
[AttIndex(new string[] { "oritableLine", "oristampLine" }, new OrderTypes[] { OrderTypes.Ascending, OrderTypes.Descending })]
public string oristampLine { get; set; }

Property Value

string

oritable

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

Property Value

string

oritableLine

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

Property Value

string

parts

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal parts { get; set; }

Property Value

decimal

pbuni

Peso Bruto Unitário

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal pbuni { get; set; }

Property Value

decimal

pluni

Peso Líquido Unitário

[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal pluni { get; set; }

Property Value

decimal

producttype

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

Property Value

int

promotionName

Promotion Name

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

Property Value

string

promotionstamp

Promotion Stamp

[AttForeignKey(typeof(PromotionsVO))]
[AttLenght(25)]
[AttEntityAvailable(typeof(PromotionsVO))]
public string promotionstamp { get; set; }

Property Value

string

proposelot

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

Property Value

bool

pvmoeda

Unit price in foreign currency

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal pvmoeda { get; set; }

Property Value

decimal

qtt

Quantity of the Article or Service.

[AttLenght(14, 4)]
[AttFieldType(AttFieldType.InputTypes.quantity)]
public decimal qtt { get; set; }

Property Value

decimal

Remarks

Length 14 for the units and 4 for the decimals.

rdata

Data.

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime rdata { get; set; }

Property Value

DateTime

Remarks

Length 1.

rdstamp

Connects to rdstamp

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

Property Value

string

ref

Referencia do Artigo ou Serviço.

[AttLenght(18)]
[AttIndex]
public string @ref { get; set; }

Property Value

string

Remarks

Length 18.

referencia

[AttVirtualField]
[AttLenght(18)]
public string referencia { 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.

retentionTax

[AttLenght(6, 2)]
public decimal retentionTax { get; set; }

Property Value

decimal

saleopervatfree

Tipo de operações isentas

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

Property Value

int

servicetype

Tipo de serviço

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

Property Value

int

servicetypestamp

Tipo de serviço stamp

[AttVirtualField]
[AttLenght(25)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_MZ })]
[AttDynamicIntegrationValue(typeof(SupplyTypeVO))]
public string servicetypestamp { get; }

Property Value

string

showqtt

[AttVirtualField]
public bool showqtt { get; }

Property Value

bool

sourceid

[AttHidden]
public bool sourceid { get; set; }

Property Value

bool

stns

Indica que a referência é um serviço.

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

Property Value

bool

Remarks

Length 1.

ststamp

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

Property Value

string

subcategoryaccounting

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

Property Value

int

sujirs

Indica se o Artigo ou Serviço está sujeito a I.R.S.

[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public bool sujirs { get; set; }

Property Value

bool

taxLabelField

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

Property Value

string

taxes

Taxes collection

[AttCollection(typeof(FiTaxesVO))]
public List<FiTaxesVO> taxes { get; set; }

Property Value

List<FiTaxesVO>

Remarks

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

tmoeda

Total in currency = (pvmoeda * qtt) - discount

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal tmoeda { get; set; }

Property Value

decimal

tnvol

Total Número de Volumes

[AttLenght(18, 4)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
public decimal tnvol { get; set; }

Property Value

decimal

Remarks

  • Length: 18.4
  • Virtual

tpbrut

Total Peso Bruto

[AttLenght(18, 4)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
public decimal tpbrut { get; set; }

Property Value

decimal

Remarks

  • Length: 18.4
  • Virtual

tpliq

Total Peso Líquido

[AttLenght(18, 4)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
public decimal tpliq { get; set; }

Property Value

decimal

Remarks

  • Length: 18.4
  • Virtual

tvol

Total Volume

[AttLenght(18, 6)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.volumes)]
public decimal tvol { get; set; }

Property Value

decimal

Remarks

  • Length: 18.4
  • Virtual

unidade

Tipo de Unidade a ser usada no Artigo ou Serviço.

[AttLenght(4)]
public string unidade { get; set; }

Property Value

string

Remarks

Length 4.

usaRecargoIva

Indicates whether the document uses the surcharge of VAT.

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

Property Value

bool

Remarks

Virtual field.

Field not available for the user.

uselot

[AttEntityAvailable(typeof(LotVO))]
public bool uselot { get; set; }

Property Value

bool

usr1

Marca do Artigo ou Serviço

[AttLenght(20)]
public string usr1 { get; set; }

Property Value

string

Remarks

Length 20.

usr2

Modelo do Artigo ou Serviço

[AttLenght(20)]
public string usr2 { get; set; }

Property Value

string

Remarks

Length 20.

validlot

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

Property Value

bool

vatHasTaxes

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

Property Value

bool

vatsalesoperation

Operações com 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

vuni

Volume Unitário

[AttLenght(14, 6)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.volumes)]
public decimal vuni { get; set; }

Property Value

decimal

Remarks

Length: 14.4

wasAppliedIdiom

Field to know if was applied a idiom

[AttVirtualField]
public bool wasAppliedIdiom { get; set; }

Property Value

bool

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string

Explicit Interface Implementations

ParentVO

FtVO ParentVO { get; set; }

Returns

FtVO

codmotiseimp

Code for VAT exemption Reason

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

Returns

string

componente

Define se o artigo é um componente

[AttGama(Gamas.Advanced)]
bool componente { get; set; }

Returns

bool

compound

Define se o artigo é composto por outros artigos

[AttEntityAvailable(typeof(ScVO))]
bool compound { get; set; }

Returns

bool

fistamp

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

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

Returns

string

Remarks

Length 25.

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

iva

VAT table rate

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
decimal iva { get; set; }

Returns

decimal

lordem

Indica a ordem da linha no documento.

[AttLenght(10)]
[AttHidden]
decimal lordem { get; set; }

Returns

decimal

Remarks

Length 10.

Field not available to the user.

lrecno

Guarda o stamp da linha FI do produto composto

[AttLenght(25)]
[AttEntityAvailable(typeof(ScVO))]
string lrecno { get; set; }

Returns

string

Remarks

Length 25.

Foreign Key field to another table.

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 })]
string miseimpstamp { get; set; }

Returns

string

motiseimp

Reason for VAT exemption

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

Returns

string

previousLineID

[AttVirtualField]
[AttHidden]
string previousLineID { get; set; }

Returns

string

tabiva

VAT table code

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

Returns

int

treestamp

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

Returns

string