Table of Contents

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

List<AtcudVO>

BaseReportVO

[AttExternalCollection(typeof(BaseReportVO))]
public BaseReportVO BaseReportVO { get; }

Property Value

BaseReportVO

BlVO

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

Property Value

BlVO

Cm1VO

[AttExternalCollection(typeof(Cm1VO), new string[] { "[Cm1].[cm]", "[Td].[cmcc]" })]
public Cm1VO Cm1VO { get; }

Property Value

Cm1VO

Cm2VO

[AttExternalCollection(typeof(Cm2VO), new string[] { "[CM2].[cm]", "[Td].[cmsl]" })]
public Cm2VO Cm2VO { get; }

Property Value

Cm2VO

GruaxVO

[AttExternalCollection(typeof(GruaxVO), new string[] { "[Gruax].[gruaxstamp]", "[Td].[gruaxstamp]" })]
public GruaxVO GruaxVO { get; }

Property Value

GruaxVO

OcVO

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

Property Value

OcVO

SzVO

[AttExternalCollection(typeof(SzVO), new string[] { "[Sz].[szstamp]", "[Td].[szstamp]" })]
public SzVO SzVO { get; }

Property Value

SzVO

altollocal

Change Bank Location

[AttEntityAvailable(typeof(BlVO))]
public bool altollocal { get; set; }

Property Value

bool

amostra

Shows Sample Column

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

Property Value

bool

anexodocuments

Issues in Account P/R

[AttProducts(new Products[] { Products.Documents })]
public bool anexodocuments { get; set; }

Property Value

bool

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

int

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

bool

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

int

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

TdVO.ATMValidityDateType

autofat

Série para registo manual ou importação de documentos autofaturados

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

Property Value

bool

autoregcc

Auto regularizes the current account

public bool autoregcc { get; set; }

Property Value

bool

blLabelField

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

Property Value

string

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

string

cfintCode

Accounting integration config code

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

Property Value

string

cfintLabel

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

Property Value

string

changepcp

Change cost price

public bool changepcp { get; set; }

Property Value

bool

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

string

cm1LabelField

C/C transaction title

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

Property Value

string

cm2LabelField

Stock transaction code title

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

Property Value

string

cmcc

C/C transaction code

[AttLenght(5)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int cmcc { get; set; }

Property Value

int

cmccn

C/C transaction description

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

Property Value

string

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

int

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

string

composto

Uses Compounds

[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool composto { get; set; }

Property Value

bool

costPriceType

Type of cost price

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public CostPriceTypes costPriceType { get; set; }

Property Value

CostPriceTypes

costPriceTypename

Name of Type of cost price

[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[costPriceType]" })]
public string costPriceTypename { get; set; }

Property Value

string

datafecho

[AttHidden]
public DateTime datafecho { get; set; }

Property Value

DateTime

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

int

disableIntegration

[AttProducts(new Products[] { Products.Accounting })]
public bool disableIntegration { get; set; }

Property Value

bool

dividas

Controls credit over limit.

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

Property Value

bool

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

bool

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

bool

docmanualext

External Series

[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public bool docmanualext { get; set; }

Property Value

bool

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

bool

draftSerie

Allows drafts

public bool draftSerie { get; set; }

Property Value

bool

dupliSourceId

Obsolete after S#203607

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

Property Value

string

dyntransportdir

[AttVirtualField]
public TransportDirectionEnum dyntransportdir { get; set; }

Property Value

TransportDirectionEnum

editafno

Allows to change the Document Number

public bool editafno { get; set; }

Property Value

bool

excluianalises

Exclude from analytics

public bool excluianalises { get; set; }

Property Value

bool

gruaxname

[AttEntityAvailable(typeof(GruaxVO))]
[AttLenght(25)]
public string gruaxname { get; set; }

Property Value

string

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

string

imagem

Imagem associada a este fornecedor.

[AttExternalCollection(typeof(ImageInfoVO))]
public ImageInfoVO imagem { get; }

Property Value

ImageInfoVO

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

string

inCommissions

This series will be included in commissions

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

Property Value

bool

inactivo

Inactive ?

[AttList]
public bool inactivo { get; set; }

Property Value

bool

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

bool

isSaftDoc

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

Property Value

bool

isSaleSaftDoc

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

Property Value

bool

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

bool

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

bool

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

bool

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

bool

iva

Shows VAT columns

public bool iva { get; set; }

Property Value

bool

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

bool

keepComponentOnPrint

Prints components

[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool keepComponentOnPrint { get; set; }

Property Value

bool

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

bool

lancacc

Use C/C transaction

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

Property Value

bool

lancacli

Use second client

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttGama(Gamas.Advanced)]
public bool lancacli { get; set; }

Property Value

bool

lancaol

Posts in Banking

[AttEntityAvailable(typeof(BlVO))]
public bool lancaol { get; set; }

Property Value

bool

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

bool

ldata

Name of date on lines

[AttLenght(12)]
public string ldata { get; set; }

Property Value

string

liarm

Warehouse in lines

[AttEntityAvailable(typeof(SaVO))]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public bool liarm { get; set; }

Property Value

bool

litem

Title of the first column

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

Property Value

string

litem2

Title of the second column

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

Property Value

string

manternumero

Maintain Sequence Maintains the sequential documents, and does not restart with the change of year.

public bool manternumero { get; set; }

Property Value

bool

minGama

[AttLenght(4)]
[AttHidden]
public int minGama { get; set; }

Property Value

int

mostrapcp

Shows cost price

public bool mostrapcp { get; set; }

Property Value

bool

mostrarefmb

Indicates if ATM reference is shown.

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

Property Value

bool

ndoc

Document number

[AttLenght(3)]
[AttPrimaryKey]
[AttLogInfo(0)]
[AttList]
[AttMinValue(0)]
public int ndoc { get; set; }

Property Value

int

ndocmanual

Manual document Series

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

Property Value

string

nmdoc

Document name

[AttLenght(30)]
[AttMandatory]
[AttLabelField(new string[] { })]
[AttLogInfo(1)]
[AttList]
public string nmdoc { get; set; }

Property Value

string

nocredit

Controls issuing of cancelled documents

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

Property Value

bool

obsDays

Observações.

[AttFieldType(AttFieldType.InputTypes.memo)]
[AttProducts(new Products[] { Products.POS })]
public string obsDays { get; set; }

Property Value

string

ocLabelField

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

Property Value

string

olcodigo

Banking Code

[AttLenght(12)]
[AttEntityAvailable(typeof(BlVO))]
public string olcodigo { get; set; }

Property Value

string

originaldoc

Original external Serie

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

Property Value

string

plaf

Controls Credit Limits

public bool plaf { get; set; }

Property Value

bool

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

bool

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

SalePriceEnum

preconame

Name of price to use in documents

[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[preco]" })]
public string preconame { get; set; }

Property Value

string

reabrebo

It reopens the internal dossier

[AttEntityAvailable(typeof(BoVO))]
public bool reabrebo { get; set; }

Property Value

bool

regadvpayments

Regularizes advance payments

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

Property Value

bool

regrd

Series for Cash Advance C/N

[AttEntityAvailable(typeof(RdVO))]
public bool regrd { get; set; }

Property Value

bool

rentabilidade

Shows Profitability

public bool rentabilidade { get; set; }

Property Value

bool

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

string
[AttProducts(new Products[] { Products.PortalGO })]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool shouldAutoGeneratePortalLink { get; set; }

Property Value

bool

showPackageInfo

Mostra os campos referentes a pesos e volumes

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

Property Value

bool

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

SignatureTypeDoc

signatureTypeDocName

Name of signature type.

[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[signatureTypeDoc]" })]
public string signatureTypeDocName { get; set; }

Property Value

string

stnsWithTablePrice

Fill the cost price of the services with the table price.

public bool stnsWithTablePrice { get; set; }

Property Value

bool

storageplace

Attachment type.

[AttLenght(1)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttProducts(new Products[] { Products.Documents })]
public StoragePlace storageplace { get; set; }

Property Value

StoragePlace

storageplacename

Name of attachment type.

[AttLenght(50)]
[AttLocale(typeof(TdAttInfo), new string[] { "[Td].[storageplace]" })]
public string storageplacename { get; set; }

Property Value

string

szLabelField

Nome Armazem

[AttVirtualField]
[AttEntityAvailable(typeof(SaVO))]
public string szLabelField { get; set; }

Property Value

string

szname

Default loading location

[AttVirtualField]
[AttEntityAvailable(typeof(SzVO))]
public string szname { get; set; }

Property Value

string

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

string

tabaxVO

[AttExternalCollection(typeof(TabaxVO))]
public TabaxVO tabaxVO { get; }

Property Value

TabaxVO

tdstamp

Unique ID

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

Property Value

string

texto1

Name of Final Text

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

Property Value

string

texto2

Name of Final Text 2

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

Property Value

string

texto3

License Plate

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

Property Value

string

texto4

Loading time

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

Property Value

string

texto5

Unloading time

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

Property Value

string

texto6

Loading date

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

Property Value

string

texto7

Unloading date

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

Property Value

string

tiposaft

Type SAF-T

[AttLenght(2)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string tiposaft { get; set; }

Property Value

string

uni3

Units on Lines

public bool uni3 { get; set; }

Property Value

bool

uniqueid

[AttVirtualField(typeof(TdAttInfo))]
[AttLenght(5)]
public string uniqueid { get; set; }

Property Value

string

usach

Use payments by Cheque

[AttEntityAvailable(typeof(ChVO))]
public bool usach { get; set; }

Property Value

bool

usadesctec

Uses Technical Description

public bool usadesctec { get; set; }

Property Value

bool

usambref

Uses ATM references

[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public bool usambref { get; set; }

Property Value

bool

Uses ATM references

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

Property Value

bool

useserialnumber

Use stocks transactions

[AttEntityAvailable(typeof(MaVO))]
[AttHidden(HiddenParameter = new string[] { "useSerialNumber" }, HiddenParameterValue = new object[] { false })]
public bool useserialnumber { get; set; }

Property Value

bool

vdcontado

Account No.

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

Property Value

int

vdollocal

Bank Location

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

Property Value

string

Methods

GetSeriesName()

public override string GetSeriesName()

Returns

string

GetSeriesValue()

public override decimal GetSeriesValue()

Returns

decimal

GetTipoSaft()

public override string GetTipoSaft()

Returns

string