Class TdVO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
Invoicing Document Series Configuration
[AttTable("Td", 20240219, AttTable.MaintenanceOrders.Td)]
[AttTableProducts(new Products[] { Products.VENDAS, Products.POS })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.RequiresAdminAccess, TableFlags.TableForJorge, TableFlags.UseImagePicker })]
[AttTableOrderBy(OrderFields = "[Td].[inactivo],[Td].[nmdoc],[Td].[ndoc]", COrderType = "A,A,D")]
[AttTableVOInfo(typeof(TdAttInfo))]
[AttTableMaintenance(typeof(TdMaintenance))]
public class TdVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
- Inheritance
-
TdVO
Remarks
This class has the configuration template to serve function to set the behavior of a determinado Invoicing Document.
Properties
Atcuds
[AttVirtualField]
public List<AtcudVO> Atcuds { get; set; }
Property Value
BaseReportVO
[AttExternalCollection(typeof(BaseReportVO))]
public BaseReportVO BaseReportVO { get; }
Property Value
BlVO
[AttExternalCollection(typeof(BlVO), new string[] { "[Bl].[noconta]", "[Td].[vdcontado]" })]
public BlVO BlVO { get; }
Property Value
Cm1VO
[AttExternalCollection(typeof(Cm1VO), new string[] { "[Cm1].[cm]", "[Td].[cmcc]" })]
public Cm1VO Cm1VO { get; }
Property Value
Cm2VO
[AttExternalCollection(typeof(Cm2VO), new string[] { "[CM2].[cm]", "[Td].[cmsl]" })]
public Cm2VO Cm2VO { get; }
Property Value
GruaxVO
[AttExternalCollection(typeof(GruaxVO), new string[] { "[Gruax].[gruaxstamp]", "[Td].[gruaxstamp]" })]
public GruaxVO GruaxVO { get; }
Property Value
OcVO
[AttExternalCollection(typeof(OcVO), new string[] { "[Oc].[olcodigo]", "[Td].[olcodigo]" })]
public OcVO OcVO { get; }
Property Value
SzVO
[AttExternalCollection(typeof(SzVO), new string[] { "[Sz].[szstamp]", "[Td].[szstamp]" })]
public SzVO SzVO { get; }
Property Value
altollocal
Change Bank Location
[AttEntityAvailable(typeof(BlVO))]
public bool altollocal { get; set; }
Property Value
amostra
Shows Sample Column
[AttGama(Gamas.Advanced)]
public bool amostra { get; set; }
Property Value
anexodocuments
Issues in Account P/R
[AttProducts(new Products[] { Products.Documents })]
public bool anexodocuments { get; set; }
Property Value
armazem
Default Warehouse
[AttLenght(5)]
[AttMinValue(0)]
[AttEntityAvailable(typeof(SaVO))]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public int armazem { get; set; }
Property Value
assinaimp
Signs when printed
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO, languages.pt_MZ })]
public bool assinaimp { get; set; }
Property Value
atmnodays
Indicate how many days of validity a ATM reference has, from the date of creation
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
[AttLenght(3)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO, languages.pt_PT })]
public int atmnodays { get; set; }
Property Value
atmvaliditydate
This field is used to to indicate the expiration date of the ATM reference
[AttLenght(100)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO, languages.pt_PT })]
public TdVO.ATMValidityDateType atmvaliditydate { get; set; }
Property Value
autofat
Série para registo manual ou importação de documentos autofaturados
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool autofat { get; set; }
Property Value
autoregcc
Auto regularizes the current account
public bool autoregcc { get; set; }
Property Value
blLabelField
[AttVirtualField]
public string blLabelField { get; set; }
Property Value
cae
CAE (Economic activity code) of the company
[AttLenght(5)]
[AttFieldType(AttFieldType.InputTypes.string)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public string cae { get; set; }
Property Value
cfintCode
Accounting integration config code
[AttLenght(25)]
[AttProducts(new Products[] { Products.Accounting })]
public string cfintCode { get; set; }
Property Value
cfintLabel
[AttVirtualField]
public string cfintLabel { get; set; }
Property Value
changepcp
Change cost price
public bool changepcp { get; set; }
Property Value
ciusReportStamp
This field is to use to store the stamp report to create the pdf
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttProducts(new Products[] { Products.UBLESPAP2_1 })]
public string ciusReportStamp { get; set; }
Property Value
cm1LabelField
C/C transaction title
[AttVirtualField]
public string cm1LabelField { get; set; }
Property Value
cm2LabelField
Stock transaction code title
[AttVirtualField]
public string cm2LabelField { get; set; }
Property Value
cmcc
C/C transaction code
[AttLenght(5)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int cmcc { get; set; }
Property Value
cmccn
C/C transaction description
[AttLenght(25)]
public string cmccn { get; set; }
Property Value
cmsl
Stock transaction code
[AttLenght(5)]
[AttEntityAvailable(typeof(SlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public int cmsl { get; set; }
Property Value
cmsln
Stock transaction code description
[AttLenght(20)]
[AttEntityAvailable(typeof(SlVO))]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public string cmsln { get; set; }
Property Value
composto
Uses Compounds
[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool composto { get; set; }
Property Value
costPriceType
Type of cost price
[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public CostPriceTypes costPriceType { get; set; }
Property Value
costPriceTypename
Name of Type of cost price
[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[costPriceType]" })]
public string costPriceTypename { get; set; }
Property Value
datafecho
[AttHidden]
public DateTime datafecho { get; set; }
Property Value
daysNumber
Indica o número de dias que o cliente dispoe para fazer uma troca
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttProducts(new Products[] { Products.POS })]
[AttMinValue(0)]
[AttLenght(3)]
public int daysNumber { get; set; }
Property Value
disableIntegration
[AttProducts(new Products[] { Products.Accounting })]
public bool disableIntegration { get; set; }
Property Value
dividas
Controls credit over limit.
[AttGama(Gamas.Advanced)]
public bool dividas { get; set; }
Property Value
Remarks
If active it prevents saving invoicing documents where customers have unsettled debts in accounts payable/receivable and due dates over the limit.
docimport
Import series
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO, languages.pt_MZ })]
public bool docimport { get; set; }
Property Value
docmanual
Manual Series
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public bool docmanual { get; set; }
Property Value
docmanualext
External Series
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public bool docmanualext { get; set; }
Property Value
docrecovery
Series to recover data
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public bool docrecovery { get; set; }
Property Value
draftSerie
Allows drafts
public bool draftSerie { get; set; }
Property Value
dupliSourceId
Obsolete after S#203607
[AttLenght(25)]
[AttHidden]
public string dupliSourceId { get; set; }
Property Value
dyntransportdir
[AttVirtualField]
public TransportDirectionEnum dyntransportdir { get; set; }
Property Value
editafno
Allows to change the Document Number
public bool editafno { get; set; }
Property Value
excluianalises
Exclude from analytics
public bool excluianalises { get; set; }
Property Value
gruaxname
[AttEntityAvailable(typeof(GruaxVO))]
[AttLenght(25)]
public string gruaxname { get; set; }
Property Value
gruaxstamp
[AttForeignKey(CanDuplicate = true, ForeignType = typeof(GruaxVO), HiddenField = false)]
[AttLenght(25)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string gruaxstamp { get; set; }
Property Value
imagem
Imagem associada a este fornecedor.
[AttExternalCollection(typeof(ImageInfoVO))]
public ImageInfoVO imagem { get; }
Property Value
Remarks
Data type ImageInfoVO.
imagestamp
[AttLenght(25)]
[AttForeignKey(typeof(ImageInfoVO), HiddenField = false)]
[AttRGPDrank(RGPDranks.Personal)]
[AttFieldType(AttFieldType.InputTypes.image)]
public string imagestamp { get; set; }
Property Value
inCommissions
This series will be included in commissions
[AttGama(Gamas.Advanced)]
public bool inCommissions { get; set; }
Property Value
inactivo
Inactive ?
[AttList]
public bool inactivo { get; set; }
Property Value
isNotTaxRegionPT
Indicates if the tax rate is not PT, PT-AC and PT-MA
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public bool isNotTaxRegionPT { get; set; }
Property Value
isSaftDoc
[AttVirtualField]
[AttHidden]
public bool isSaftDoc { get; set; }
Property Value
isSaleSaftDoc
[AttVirtualField]
[AttHidden]
public bool isSaleSaftDoc { get; set; }
Property Value
isToDigitallySign
Is to Digitally sign
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttProducts(new Products[] { Products.UBLESPAP2_1 })]
public bool isToDigitallySign { get; set; }
Property Value
isToIncludePdfInCius
This field is to use to include the pdf file, in ciuspt xml(when downloaded)
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttProducts(new Products[] { Products.UBLESPAP2_1 })]
public bool isToIncludePdfInCius { get; set; }
Property Value
isToUseMeasurements
Field to know if the TD is to use Measurements whem we will create FT
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttGama(Gamas.Advanced)]
public bool isToUseMeasurements { get; set; }
Property Value
isToUsePromotions
Field to know if the TD is to use promotions whem we will create FT
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttGama(Gamas.Advanced)]
public bool isToUsePromotions { get; set; }
Property Value
iva
Shows VAT columns
public bool iva { get; set; }
Property Value
Remarks
The document always uses VAT, this parameter only indicates whether the VAT columns are visible or not
ivacaixa
VAT Scheme
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.es_ES, languages.pt_AO })]
public bool ivacaixa { get; set; }
Property Value
keepComponentOnPrint
Prints components
[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool keepComponentOnPrint { get; set; }
Property Value
keepCompoundOnCopy
Respects original compound in the copy
[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool keepCompoundOnCopy { get; set; }
Property Value
lancacc
Use C/C transaction
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public bool lancacc { get; set; }
Property Value
lancacli
Use second client
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttGama(Gamas.Advanced)]
public bool lancacli { get; set; }
Property Value
lancaol
Posts in Banking
[AttEntityAvailable(typeof(BlVO))]
public bool lancaol { get; set; }
Property Value
lancasl
Use stocks transactions
[AttEntityAvailable(typeof(SlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public bool lancasl { get; set; }
Property Value
ldata
Name of date on lines
[AttLenght(12)]
public string ldata { get; set; }
Property Value
liarm
Warehouse in lines
[AttEntityAvailable(typeof(SaVO))]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public bool liarm { get; set; }
Property Value
litem
Title of the first column
[AttLenght(12)]
public string litem { get; set; }
Property Value
litem2
Title of the second column
[AttLenght(12)]
public string litem2 { get; set; }
Property Value
manternumero
Maintain Sequence Maintains the sequential documents, and does not restart with the change of year.
public bool manternumero { get; set; }
Property Value
minGama
[AttLenght(4)]
[AttHidden]
public int minGama { get; set; }
Property Value
mostrapcp
Shows cost price
public bool mostrapcp { get; set; }
Property Value
mostrarefmb
Indicates if ATM reference is shown.
[AttVirtualField]
[AttHidden]
public bool mostrarefmb { get; set; }
Property Value
ndoc
Document number
[AttLenght(3)]
[AttPrimaryKey]
[AttLogInfo(0)]
[AttList]
[AttMinValue(0)]
public int ndoc { get; set; }
Property Value
ndocmanual
Manual document Series
[AttLenght(3)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public string ndocmanual { get; set; }
Property Value
nmdoc
Document name
[AttLenght(30)]
[AttMandatory]
[AttLabelField(new string[] { })]
[AttLogInfo(1)]
[AttList]
public string nmdoc { get; set; }
Property Value
nocredit
Controls issuing of cancelled documents
[AttGama(Gamas.Advanced)]
public bool nocredit { get; set; }
Property Value
obsDays
Observações.
[AttFieldType(AttFieldType.InputTypes.memo)]
[AttProducts(new Products[] { Products.POS })]
public string obsDays { get; set; }
Property Value
ocLabelField
[AttVirtualField]
public string ocLabelField { get; set; }
Property Value
olcodigo
Banking Code
[AttLenght(12)]
[AttEntityAvailable(typeof(BlVO))]
public string olcodigo { get; set; }
Property Value
originaldoc
Original external Serie
[AttLenght(20)]
public string originaldoc { get; set; }
Property Value
plaf
Controls Credit Limits
public bool plaf { get; set; }
Property Value
Remarks
If this option is enabled you can not save documents to customers that exceeded the specified credit ceiling in the customer record set in field eplafond.
planoint
[AttHidden]
public bool planoint { get; set; }
Property Value
preco
Price to use in Documents
[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public SalePriceEnum preco { get; set; }
Property Value
preconame
Name of price to use in documents
[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[preco]" })]
public string preconame { get; set; }
Property Value
reabrebo
It reopens the internal dossier
[AttEntityAvailable(typeof(BoVO))]
public bool reabrebo { get; set; }
Property Value
regadvpayments
Regularizes advance payments
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool regadvpayments { get; set; }
Property Value
regrd
Series for Cash Advance C/N
[AttEntityAvailable(typeof(RdVO))]
public bool regrd { get; set; }
Property Value
rentabilidade
Shows Profitability
public bool rentabilidade { get; set; }
Property Value
Remarks
It shows the columns of Cost, Margin and Profit in the lines of the document to users with supervision access to invoice documents.
reportname
Report title
[AttVirtualField]
public string reportname { get; set; }
Property Value
shouldAutoGeneratePortalLink
[AttProducts(new Products[] { Products.PortalGO })]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool shouldAutoGeneratePortalLink { get; set; }
Property Value
showPackageInfo
Mostra os campos referentes a pesos e volumes
[AttGama(Gamas.Advanced)]
public bool showPackageInfo { get; set; }
Property Value
signatureTypeDoc
Field to store what kind of signatura want to sign the document (PHC Certificate or AMA GOV APP)
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttProducts(new Products[] { Products.UBLESPAP2_1 })]
public SignatureTypeDoc signatureTypeDoc { get; set; }
Property Value
signatureTypeDocName
Name of signature type.
[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[signatureTypeDoc]" })]
public string signatureTypeDocName { get; set; }
Property Value
stnsWithTablePrice
Fill the cost price of the services with the table price.
public bool stnsWithTablePrice { get; set; }
Property Value
storageplace
Attachment type.
[AttLenght(1)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttProducts(new Products[] { Products.Documents })]
public StoragePlace storageplace { get; set; }
Property Value
storageplacename
Name of attachment type.
[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[storageplace]" })]
public string storageplacename { get; set; }
Property Value
szLabelField
Nome Armazem
[AttVirtualField]
[AttEntityAvailable(typeof(SaVO))]
public string szLabelField { get; set; }
Property Value
szname
Default loading location
[AttVirtualField]
[AttEntityAvailable(typeof(SzVO))]
public string szname { get; set; }
Property Value
szstamp
Link to the warehouse name table
[AttForeignKey(CanDuplicate = true, ForeignType = typeof(SzVO), HiddenField = false)]
[AttLenght(25)]
[AttEntityAvailable(typeof(SzVO))]
public string szstamp { get; set; }
Property Value
tabaxVO
[AttExternalCollection(typeof(TabaxVO))]
public TabaxVO tabaxVO { get; }
Property Value
tdstamp
Unique ID
[AttLenght(25)]
public string tdstamp { get; set; }
Property Value
texto1
Name of Final Text
[AttLenght(25)]
public string texto1 { get; set; }
Property Value
texto2
Name of Final Text 2
[AttLenght(25)]
public string texto2 { get; set; }
Property Value
texto3
License Plate
[AttLenght(25)]
public string texto3 { get; set; }
Property Value
texto4
Loading time
[AttLenght(25)]
public string texto4 { get; set; }
Property Value
texto5
Unloading time
[AttLenght(25)]
public string texto5 { get; set; }
Property Value
texto6
Loading date
[AttLenght(25)]
public string texto6 { get; set; }
Property Value
texto7
Unloading date
[AttLenght(25)]
public string texto7 { get; set; }
Property Value
tiposaft
Type SAF-T
[AttLenght(2)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string tiposaft { get; set; }
Property Value
uni3
Units on Lines
public bool uni3 { get; set; }
Property Value
uniqueid
[AttVirtualField(typeof(TdAttInfo))]
[AttLenght(5)]
public string uniqueid { get; set; }
Property Value
usach
Use payments by Cheque
[AttEntityAvailable(typeof(ChVO))]
public bool usach { get; set; }
Property Value
usadesctec
Uses Technical Description
public bool usadesctec { get; set; }
Property Value
usambref
Uses ATM references
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public bool usambref { get; set; }
Property Value
usePayLink
Uses ATM references
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public bool usePayLink { get; set; }
Property Value
useserialnumber
Use stocks transactions
[AttEntityAvailable(typeof(MaVO))]
[AttHidden(HiddenParameter = new string[] { "useSerialNumber" }, HiddenParameterValue = new object[] { false })]
public bool useserialnumber { get; set; }
Property Value
vdcontado
Account No.
[AttLenght(4)]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int vdcontado { get; set; }
Property Value
vdollocal
Bank Location
[AttLenght(50)]
[AttEntityAvailable(typeof(BlVO))]
public string vdollocal { get; set; }
Property Value
Methods
GetSeriesName()
public override string GetSeriesName()
Returns
GetSeriesValue()
public override decimal GetSeriesValue()
Returns
GetTipoSaft()
public override string GetTipoSaft()