Table of Contents

Class TsVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Internal Document Series Configuration

[AttTable("Ts", 20240505)]
[AttTableVOInfo(typeof(TsAttInfo))]
[AttTableGama(Gamas.Corporate)]
[AttTableProducts(new Products[] { Products.VENDAS, Products.COMPRAS })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.RequiresAdminAccess, TableFlags.TableForJorge, TableFlags.UseImagePicker })]
[AttTableOrderBy(OrderFields = "[Ts].[inactivo],[Ts].[nmdos],[Ts].[ndos]", COrderType = "A,A,D")]
[AttTableMaintenance(typeof(TsMaintenance))]
public class TsVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
TsVO

Properties

Atcuds

[AttVirtualField]
public List<AtcudVO> Atcuds { get; set; }

Property Value

List<AtcudVO>

Cm2TrfaVO

[AttExternalCollection(typeof(Cm2VO), new string[] { "[CM2].[cm]", "[Ts].[cm2stocks]" })]
public Cm2VO Cm2TrfaVO { get; }

Property Value

Cm2VO

Cm2VO

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

Property Value

Cm2VO

GruaxVO

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

Property Value

GruaxVO

SzVO

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

Property Value

SzVO

anexodocuments

Issues in Account P/R

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

Property Value

bool

armazem

Default Warehouse

[AttLenght(5)]
[AttEntityAvailable(typeof(SaVO))]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttMinValue(0)]
[AttMaxValue(99999)]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public int armazem { get; set; }

Property Value

int

assinaboano

Dossier signature year

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

Property Value

int

assinaimp

Sign when printing

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

Property Value

bool

assinaobrano

Number of the last Dossier of this series.

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

Property Value

decimal

bdempresas

Identifies the type of Internal Dossier Entity.

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

Property Value

string

boavst

Negative stock warning.

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

Property Value

bool

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

changepcp

Changes the Weighted Cost Price.

public bool changepcp { get; set; }

Property Value

bool

closeOnCopy

Closes the dossier automatically when fully supplied.

[AttGama(Gamas.Corporate)]
public bool closeOnCopy { get; set; }

Property Value

bool

Remarks

When the dossier is used in copies for other dossiers or other documents and in this copy action, the option to update quantity 2 of the dossier is used, if this update causes quantity 2 to be equal to the quantity (qtt2 = qtt) The dossier is automatically closed by the application because it is fully supplied.

cm2desc

Stock transaction code 2 description

[AttLenght(20)]
[AttEntityAvailable(typeof(SaVO))]
public string cm2desc { get; set; }

Property Value

string

cm2stocks

Stock transaction code 2

[AttLenght(6)]
[AttEntityAvailable(typeof(SaVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public int cm2stocks { get; set; }

Property Value

int

cmdesc

Stock transaction code 1 description

[AttLenght(20)]
[AttEntityAvailable(typeof(SlVO))]
public string cmdesc { get; set; }

Property Value

string

cmstocks

Stock transaction code 1

[AttLenght(6)]
[AttEntityAvailable(typeof(SlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public int cmstocks { get; set; }

Property Value

int

cod1StLabel

Stock transaction code 1 title

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

Property Value

string

cod2StLabel

Stock transaction code 2 title

[AttVirtualField]
public string cod2StLabel { 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

cost

If dossier enters the company costs

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

Property Value

bool

costPriceType

Type of cost price

[AttLenght(1)]
public CostPriceTypes costPriceType { get; set; }

Property Value

CostPriceTypes

costPriceTypename

Name of Type of cost price

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

Property Value

string

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

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

editaobrano

Allows to change the Document Number

public bool editaobrano { get; set; }

Property Value

bool

evend

Use seller

[AttEntityAvailable(typeof(Cm3VO))]
public bool evend { 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

inactivo

Inactive ?

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

Property Value

bool

isSaftDoc

[AttVirtualField]
[AttHidden]
public bool isSaftDoc { 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

isToUseMeasurements

Field to know if the TS is to use Measurements whem we will create BO

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

Property Value

bool

isToUsePromotions

Field to know if the TS is to use promotions whem we will create BO, this field is only available if bdempresas is CL

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

Property Value

bool

isToUseQttrec

Field to know if this document will create SaVO for quantity received, but not enter in stock yet

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

Property Value

bool

issuerdpd

If dossier allows to create RD or PD

[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool issuerdpd { 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

ldata

Date title

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

Property Value

string

litem

Item first column title

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

Property Value

string

litem2

Item second column title

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

Property Value

string

logi1

Logical field 1 title

[AttLenght(15)]
public string logi1 { get; set; }

Property Value

string

logi2

Logical field 2 title

[AttLenght(15)]
public string logi2 { get; set; }

Property Value

string

logi3

Logical field 3 title

[AttLenght(15)]
public string logi3 { get; set; }

Property Value

string

manternumero

Keep the sequence of the document number after year change

public bool manternumero { get; set; }

Property Value

bool

naoencomenda

Controls whether the customer has on his form the option of not issuing internal files, active

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

Property Value

bool

ndescs

Discounts number

[AttLenght(1)]
[AttMinValue(0)]
[AttMaxValue(3)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int ndescs { get; set; }

Property Value

int

ndos

Document number

[AttLenght(3)]
[AttPrimaryKey]
[AttLogInfo(0)]
[AttList]
[AttMinValue(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int ndos { get; set; }

Property Value

int

nmdatafim

End date title

[AttLenght(16)]
public string nmdatafim { get; set; }

Property Value

string

nmdesc

Main description

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

Property Value

string

nmdos

Document name

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

Property Value

string

nmdtopen

Start date title

[AttLenght(16)]
public string nmdtopen { get; set; }

Property Value

string

originaldoc

Original external Serie

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

Property Value

string

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

preco2

Real price title

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

Property Value

string

preconame

Name of price to use in documents

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

Property Value

string

qtt1

Real quantity title

[AttLenght(14)]
public string qtt1 { get; set; }

Property Value

string

qtt2

Estimated quantity title

[AttLenght(14)]
public string qtt2 { get; set; }

Property Value

string

reabrebo

It reopens the internal dossier

public bool reabrebo { get; set; }

Property Value

bool

rentabilidade

Show profitability

public bool rentabilidade { get; set; }

Property Value

bool

rescli

Moves customer reserves in stocks

[AttGama(Gamas.Corporate)]
[AttEntityAvailable(typeof(StVO))]
[AttEntityAvailable(typeof(ClVO))]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public bool rescli { get; set; }

Property Value

bool

resfor

Moves stockholders' stocks into stocks

[AttGama(Gamas.Corporate)]
[AttEntityAvailable(typeof(StVO))]
[AttEntityAvailable(typeof(FlVO))]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public bool resfor { get; set; }

Property Value

bool

revenue

If dossier enters the company revenue

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

Property Value

bool

shouldCalculateVAT

[AttVirtualField]
[AttHidden]
public bool shouldCalculateVAT { 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(TsAttInfo), new string[] { "[Ts].[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

stocks

Use stocks transactions

[AttEntityAvailable(typeof(SlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public bool stocks { 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(TsAttInfo), new string[] { "[Ts].[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

tabela1

Table field 1 title

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

Property Value

string

texto1

Final text field title

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

Property Value

string

texto2

Final text field 2 title

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

Property Value

string

texto3

Final text field 3 title

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

Property Value

string

tipoEntidade

[AttVirtualField]
[AttHidden]
public string tipoEntidade { get; }

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

tmarca

Alphanumeric field 2 title

[AttLenght(15)]
public string tmarca { get; set; }

Property Value

string

tmodelo

Alphanumeric field 1 title

[AttLenght(15)]
public string tmodelo { get; set; }

Property Value

string

transportDirection

public TransportDirectionEnum transportDirection { get; set; }

Property Value

TransportDirectionEnum

trfa

Transfer between warehouses

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

Property Value

bool

tserie

Alphanumeric field 3 title

[AttLenght(15)]
public string tserie { get; set; }

Property Value

string

tsstamp

Unique ID

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

Property Value

string

unidade

Uses the unity column

public bool unidade { get; set; }

Property Value

bool

uniqueid

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

Property Value

string

usadesctec

Uses technical description

public bool usadesctec { get; set; }

Property Value

bool

usaiva

Calculate VAT

public bool usaiva { 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

usoexclint

Internal use

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

Property Value

bool

Methods

GetSeriesName()

public override string GetSeriesName()

Returns

string

GetSeriesValue()

public override decimal GetSeriesValue()

Returns

decimal

GetTipoSaft()

public override string GetTipoSaft()

Returns

string