Class BiVO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
Rows of Internal Document
[AttTable("Bi", 20250117)]
[AttTableVOInfo(typeof(BiAttInfo))]
[AttTableMaintenance(typeof(BiMaintenance))]
[AttTableOrderBy("[Bi].[lordem]")]
[AttTableFlags(new TableFlags[] { TableFlags.AddOnCustomizable, TableFlags.UseDimensions })]
public class BiVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent<BoVO>, IParent, IGenericVO
- Inheritance
-
BiVO
Remarks
Esta entidade representa um value object que mapea a tabela BI na base de dados, e que tem como função armazenar a informação referente às linhas do Dossier Interno. .
É com base nessa informação (valores, quantidades, descontos, etc) que são calculados os totais do dossier. .
A ligação à Entidade de Dossiers Internos é feita através do campo bostamp. .
Properties
BiMas
[AttVirtualField]
public List<BiMaVO> BiMas { get; }
Property Value
BiVO
[AttExternalCollection(typeof(BiVO), new string[] { "Bi.obistamp", "Bi.bistamp" })]
public BiVO BiVO { get; }
Property Value
GetFieldStampName
Use only field name without table name
public override string GetFieldStampName { get; }
Property Value
GetStampValue
Return the property and not the private field
public override string GetStampValue { get; }
Property Value
HasTaxRelevance
The line should go to the saft ?
[AttVirtualField]
public bool HasTaxRelevance { get; }
Property Value
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
LotVO
[AttExternalCollection(typeof(LotVO), new string[] { "Bi.ref", "Lot.ref", "Bi.lote", "Lot.lote" })]
public LotVO LotVO { get; }
Property Value
MiseimpVO
[AttExternalCollection(typeof(MiseimpVO), new string[] { "[Miseimp].[miseimpstamp]", "[Bi].[miseimpstamp]" })]
public MiseimpVO MiseimpVO { get; }
Property Value
Sa2VO
[AttExternalCollection(typeof(SaVO), new string[] { "[Sa].[ref]", "[Bi].[ref]", "[Sa].[armazem]", "[Bi].[ar2mazem]" })]
public SaVO Sa2VO { get; }
Property Value
SaVO
[AttExternalCollection(typeof(SaVO), new string[] { "[Sa].[ref]", "[Bi].[ref]", "[Sa].[armazem]", "[Bi].[armazem]" })]
public SaVO SaVO { get; }
Property Value
StVO
[AttExternalCollection(typeof(StVO), new string[] { "[ST].[ref]", "[Bi].[ref]" })]
public StVO StVO { get; }
Property Value
StfamiVO
[AttExternalCollection(typeof(StfamiVO), new string[] { "[STFAMI].[ref]", "[Bi].[familia]" })]
public StfamiVO StfamiVO { get; }
Property Value
TaxRelevanceInvalid
Is the line invalid to be included in the saft ?
[AttVirtualField]
public bool TaxRelevanceInvalid { get; }
Property Value
Remarks
If the line has fiscal relevance to the AT, this property determines if it is invalid to be included in the saft
TaxaIVAVO
[AttExternalCollection(typeof(TaxasIVAVO), new string[] { "[TaxasIva].[codigo]", "[Bi].[tabiva]" })]
public TaxasIVAVO TaxaIVAVO { get; }
Property Value
actqtt2
Update the Quantity satisfied?
[AttHidden]
public bool actqtt2 { get; set; }
Property Value
Remarks
It contains an indication if the quantity satisfied is updated as they are issued invoicing documents, starting from the dossier.
Non Duplicable Field.
Unavailable to the FX Engine.
alternativeQtt
[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal alternativeQtt { get; set; }
Property Value
alternativeUnit
Alternative unit
[AttLenght(4)]
[AttGama(Gamas.Advanced)]
public string alternativeUnit { get; set; }
Property Value
Remarks
Length 4.
ar2mazem
Destiny Warehouse
[AttLenght(5)]
public int ar2mazem { get; set; }
Property Value
Remarks
armazem
Warehouse
[AttLenght(5)]
public int armazem { get; set; }
Property Value
Remarks
articleAutoCreationCode
[AttVirtualField]
[AttHidden]
public AutoCreationCodes articleAutoCreationCode { get; }
Property Value
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.
Devido á natureza do seu calculo o campo nao se encontra disponível para ser incluído em procuras, mas sim para ser incluído em listagens ou relatórios. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.
bostamp
Connects to bostamp that contains this line.
[AttForeignKey(typeof(BoVO))]
[AttLenght(25)]
public string bostamp { get; set; }
Property Value
caneditlotrefdate
[AttVirtualField]
[AttHidden]
public bool caneditlotrefdate { get; set; }
Property Value
codigo
Code Bars
[AttLenght(25)]
public string codigo { get; set; }
Property Value
Remarks
This field contains code bars of article.
Length 25 .
desc2
Discount 2
[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desc2 { get; set; }
Property Value
Remarks
This field contains discount 2 percentage.
Length total de 5, where the units are 3 and decimals are 2.
desc3
Discount 3
[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desc3 { get; set; }
Property Value
Remarks
This field contains discount 3 percentage.
Length total de 5, where the units are 3 and decimals are 2.
desc4
Discount 4
[AttLenght(5, 2)]
public decimal desc4 { get; set; }
Property Value
Remarks
This field contains discount 4 percentage.
Length total de 5, where the units are 3 and decimals are 2.
desc5
Discount 5
[AttLenght(5, 2)]
public decimal desc5 { get; set; }
Property Value
Remarks
This field contains discount 5 percentage.
Length total de 5, where the units are 3 and decimals are 2.
desc6
Discount 6
[AttLenght(5, 2)]
public decimal desc6 { get; set; }
Property Value
Remarks
This field contains discount 6 percentage.
Length total de 5, where the units are 3 and decimals are 2.
desconto
Discount 1
[AttLenght(6, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal desconto { get; set; }
Property Value
Remarks
This field contains discount 1 percentage.
Length total de 5, where the units are 3 and decimals are 2.
design
Design.
[AttFieldType(AttFieldType.InputTypes.memo)]
public string design { get; set; }
Property Value
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
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
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
edebito
Unit Price
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal edebito { get; set; }
Property Value
Remarks
This field contains unit price of row.
Length total de 18, where the units are 12 and decimals are 6.
edebitoWithoutPromotion
Epv from st without applying the promotion
[AttVirtualField]
[AttHidden]
public decimal edebitoWithoutPromotion { get; set; }
Property Value
elucro
Lucro da linha
[AttVirtualField]
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal elucro { get; set; }
Property Value
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.
Devido á natureza do seu calculo o campo nao se encontra disponível para ser incluído em procuras, mas sim para ser incluído em listagens ou relatórios. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.
emargem
[AttVirtualField(typeof(BiAttInfo))]
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
[AttInterfaces(new Type[] { typeof(IChange) })]
public decimal emargem { get; set; }
Property Value
epcusto
Unit Price Cost
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal epcusto { get; set; }
Property Value
Remarks
This field contains unit price cost of row.
Length total de 18, where the units are 12 and decimals are 6.
ettdeb
Total of row
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal ettdeb { get; set; }
Property Value
Remarks
This field contains Total of row (unit price * quantity), this already have all discounts.
Length total de 18, where the units are 12 and decimals are 6.
ettiva
Total de IVA da linha
[AttVirtualField]
[AttLenght(19, 6)]
public decimal ettiva { get; set; }
Property Value
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.
Devido á natureza do seu calculo o campo nao se encontra disponível para ser incluído em procuras, mas sim para ser incluído em listagens ou relatórios. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.
familia
Article family
[AttLenght(50)]
public string familia { get; set; }
Property Value
Remarks
This field contains article/service family of row.
Length 50 .
fullmotiseimp
Code and Reason for VAT exemption
[AttVirtualField]
[AttLenght(64)]
public string fullmotiseimp { get; set; }
Property Value
isToUptParts2
[AttHidden]
public bool isToUptParts2 { get; set; }
Property Value
iseregrecargo
[AttHidden]
public bool iseregrecargo { get; set; }
Property Value
iva
VAT table rate
[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage)]
public decimal iva { get; set; }
Property Value
ivaincl
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool ivaincl { get; set; }
Property Value
ivarec
IVA of Surcharge.
[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public decimal ivarec { get; set; }
Property Value
Remarks
Contains the IVA value of the line surcharge.
Total length - 5, where 2 are for units and 2 for decimals.
labelField
VAT table label
[AttVirtualField]
public string labelField { get; set; }
Property Value
listBima
[AttVirtualField]
public string listBima { get; }
Property Value
litem
Alphanumeric field 1.
[AttLenght(40)]
public string litem { get; set; }
Property Value
Remarks
Contains a description for alphanumeric value field, free filling type.
Length 40 .
litem2
Alphanumeric field 2.
[AttLenght(40)]
public string litem2 { get; set; }
Property Value
Remarks
Contains a description for alphanumeric value field, free filling type.
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
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
lottype
[AttEntityAvailable(typeof(LotVO))]
public LotTypes lottype { get; set; }
Property Value
lottypename
Name of lot type.
[AttLenght(50)]
[AttLocale(typeof(BiAttInfo), new string[] { "[Bi].[lottype]" })]
public string lottypename { get; set; }
Property Value
measurementType
[AttLenght(2)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttGama(Gamas.Advanced)]
public MeasurementTypes measurementType { get; set; }
Property Value
measurementTypeName
Name of lot type.
[AttLenght(50)]
[AttLocale(typeof(BiAttInfo), new string[] { "[Bi].[measurementType]" })]
public string measurementTypeName { get; set; }
Property Value
nvol
Número de Volumes
[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal nvol { get; set; }
Property Value
Remarks
Length: 14.4
obistamp
Connects to bistamp from which this line was copied.
[AttForeignKey(typeof(BiVO))]
[AttLenght(25)]
public string obistamp { get; set; }
Property Value
obostamp
Connects to bostamp from which this line was copied.
[AttForeignKey(typeof(BoVO))]
[AttLenght(25)]
public string obostamp { get; set; }
Property Value
ofistamp
Connects to fistamp from which this line was copied.
[AttForeignKey(typeof(FiVO))]
[AttLenght(25)]
public string ofistamp { get; set; }
Property Value
ofnstamp
Connects to fnstamp from which this line was copied.
[AttForeignKey(typeof(FnVO))]
[AttLenght(25)]
public string ofnstamp { get; set; }
Property Value
ofostamp
Connects to fostamp from which this line was copied.
[AttForeignKey(typeof(FoVO))]
[AttLenght(25)]
public string ofostamp { get; set; }
Property Value
oftstamp
Connects to ftstamp from which this line was copied.
[AttForeignKey(typeof(FtVO))]
[AttLenght(25)]
public string oftstamp { get; set; }
Property Value
orderDate
[AttLenght(25)]
public DateTime orderDate { get; set; }
Property Value
oref
Original Reference
[AttLenght(18)]
public string oref { get; set; }
Property Value
Remarks
Original reference of article/service in row. Length 18.
Non Duplicable Field.
originatingOn
[AttLenght(60)]
public string originatingOn { get; set; }
Property Value
parts
[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal parts { get; set; }
Property Value
parts2
[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.measurements)]
public decimal parts2 { get; set; }
Property Value
pbuni
Peso Bruto Unitário
[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
public decimal pbuni { get; set; }
Property Value
Remarks
Length: 14.4
pluni
Peso Líquido Unitário
[AttLenght(14, 4)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal pluni { get; set; }
Property Value
Remarks
Length: 14.4
promotionName
Promotion Name
[AttVirtualField]
[AttHidden]
public string promotionName { get; set; }
Property Value
promotionstamp
Promotion Stamp
[AttForeignKey(typeof(PromotionsVO))]
[AttLenght(25)]
[AttEntityAvailable(typeof(PromotionsVO))]
public string promotionstamp { get; set; }
Property Value
proposelot
[AttVirtualField]
[AttHidden]
public bool proposelot { get; set; }
Property Value
qtporsatisfazer
Contém a indicação da quantidade da linha por satisfazer.
[AttVirtualField(typeof(BiAttInfo))]
[AttLenght(19, 6)]
public decimal qtporsatisfazer { get; set; }
Property Value
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.
Devido á natureza do seu calculo o campo nao se encontra disponível para ser incluído em procuras, mas sim para ser incluído em listagens ou relatórios. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.
qtt
Quantity
[AttLenght(14, 4)]
[AttFieldType(AttFieldType.InputTypes.quantity)]
public decimal qtt { get; set; }
Property Value
Remarks
Quantity of row in internal document. Length 14: unit (9) and decimals (4).
qtt2
Used quantity
[AttLenght(14, 4)]
[AttFieldType(AttFieldType.InputTypes.quantity)]
public decimal qtt2 { get; set; }
Property Value
Remarks
This field contain quantity of row already used in another invoice document
Length of 14, where the units are 9 and decimals are 4.
Non Duplicable Field.
rdata
Data
[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime rdata { get; set; }
Property Value
Remarks
Contains the description for a date field, free filling type, on the row. When fulfilled allows you to add an extra date on the lines.
ref
Reference
[AttLenght(18)]
public string @ref { get; set; }
Property Value
Remarks
Reference of article in row(used in copy of internal document). Length 18.
referencia
[AttVirtualField]
[AttLenght(18)]
public string referencia { get; set; }
Property Value
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.
Devido á natureza do seu calculo o campo nao se encontra disponível para ser incluído em procuras, mas sim para ser incluído em listagens ou relatórios. Another feature is that this field by being virtual will never appear in the collection Campos Modificadosof the entity itself.
rescli
Client reservation?
[AttHidden]
public bool rescli { get; set; }
Property Value
Remarks
This field contains if data of rows is a reservation of clients.
Campo indisponível para o FX Engine.
resfor
Reservation of suppliers?
[AttHidden]
public bool resfor { get; set; }
Property Value
Remarks
Contains the indication if the row data is a supplier reserve.
Field unavailable to the FX Engine.
showqtt
[AttVirtualField]
public bool showqtt { get; }
Property Value
sourceid
[AttHidden]
public bool sourceid { get; set; }
Property Value
stns
Is a service ?
[AttLenght(1)]
[AttEntityAvailable(typeof(SlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public bool stns { get; set; }
Property Value
Remarks
This field indicates if row is article or service.
tabiva
VAT table code
[AttLenght(3)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int tabiva { get; set; }
Property Value
tnvol
Total Número de Volumes
[AttLenght(18, 4)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal tnvol { get; set; }
Property Value
Remarks
- Length: 18.4
- Virtual
tpbrut
Total Peso Bruto
[AttLenght(18, 4)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal tpbrut { get; set; }
Property Value
Remarks
- Length: 18.4
- Virtual
tpliq
Total Peso Líquido
[AttLenght(18, 4)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.decimal)]
public decimal tpliq { get; set; }
Property Value
Remarks
- Length: 18.4
- Virtual
ttmoeda
Foreign currency of total row
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal ttmoeda { get; set; }
Property Value
Remarks
This field contains foreign currency of total row (unit price * quantity), this already have all discounts.
Length total de 18, where the units are 12 and decimals are 6.
tvol
Total Volume
[AttLenght(18, 6)]
[AttGama(Gamas.Advanced)]
[AttVirtualField]
[AttFieldType(AttFieldType.InputTypes.volumes)]
public decimal tvol { get; set; }
Property Value
Remarks
- Length: 18.4
- Virtual
unidade
Unit of measurement
[AttLenght(4)]
public string unidade { get; set; }
Property Value
Remarks
This field contains unit of measurement of article/service.
Length 4 .
usaRecargoIva
Indicates whether the document uses the surcharge of VAT.
[AttVirtualField]
[AttHidden]
public bool usaRecargoIva { get; set; }
Property Value
Remarks
Virtual field.
Field not available for the user.
uselot
[AttEntityAvailable(typeof(LotVO))]
public bool uselot { get; set; }
Property Value
usr1
Brand
[AttLenght(20)]
public string usr1 { get; set; }
Property Value
Remarks
This field contains brand of article/service.
Length 20 .
usr2
Model
[AttLenght(20)]
public string usr2 { get; set; }
Property Value
Remarks
This field contains model of article/service.
Length 20 .
validlot
[AttVirtualField]
[AttHidden]
public bool validlot { get; set; }
Property Value
vumoeda
Foreign currency to unit price
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal vumoeda { get; set; }
Property Value
Remarks
This field contains foreign currency to unit price of row.
Length total de 18, where the units are 12 and decimals are 6.
vuni
Volume Unitário
[AttLenght(14, 6)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.volumes)]
public decimal vuni { get; set; }
Property Value
Remarks
Length: 14.4
wasAppliedIdiom
Field to know if was applied a idiom
[AttVirtualField]
public bool wasAppliedIdiom { get; set; }
Property Value
Methods
SetStampValue(string)
Set the property and not the private field
public override void SetStampValue(string stampID)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
stampID |
string |
Explicit Interface Implementations
ParentVO
BoVO ParentVO { get; set; }
Returns
bistamp
Unique ID
[AttLenght(25)]
string bistamp { get; set; }
Returns
codmotiseimp
Code for VAT exemption Reason
[AttVirtualField]
[AttLenght(4)]
string codmotiseimp { get; set; }
Returns
componente
Controls whether the product is composed.
[AttGama(Gamas.Advanced)]
bool componente { get; set; }
Returns
Remarks
It’s a Logical type property.
compound
Define se o artigo é composto por outros artigos
[AttEntityAvailable(typeof(ScVO))]
bool compound { get; set; }
Returns
lordem
Sequence of the line.
[AttLenght(10)]
[AttHidden]
decimal lordem { get; set; }
Returns
Remarks
Contains a sequence of creating the rows of the dossier.
Length 10 .
Field unavailable for FX Engine
lrecno
Guarda o stamp da linha BI do produto composto
[AttLenght(25)]
[AttEntityAvailable(typeof(ScVO))]
[AttHidden]
string lrecno { get; set; }
Returns
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
motiseimp
Reason for VAT exemption
[AttVirtualField]
[AttLenght(60)]
string motiseimp { get; set; }
Returns
previousLineID
[AttVirtualField]
[AttHidden]
string previousLineID { get; set; }
Returns
treestamp
[AttLenght(25)]
string treestamp { get; set; }