Table of Contents

Class TsreVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Receipts Series entity

[AttTable("Tsre", 20230111)]
[AttTableProducts(new Products[] { Products.VENDAS, Products.POS })]
[AttTableOrderBy("ndoc", OrderTypes.Ascending)]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.RequiresAdminAccess, TableFlags.TableForJorge, TableFlags.UseImagePicker })]
[AttTableVOInfo(typeof(TsreAttInfo))]
[AttTableMaintenance(typeof(TsreMaintenance))]
public class TsreVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
TsreVO

Remarks

Entity that represents the receipts configuration series List

Properties

Atcuds

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

Property Value

List<AtcudVO>

BlVO

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

Property Value

BlVO

Cm1CcVO

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

Property Value

Cm1VO

Cm1DescFinVO

[AttExternalCollection(typeof(Cm1VO), new string[] { "[Cm1].[cm]", "[Tsre].[cm1descfin]" })]
public Cm1VO Cm1DescFinVO { get; }

Property Value

Cm1VO

Cm1IrsVO

[AttExternalCollection(typeof(Cm1VO), new string[] { "[Cm1].[cm]", "[Tsre].[cm1irs]" })]
public Cm1VO Cm1IrsVO { get; }

Property Value

Cm1VO

Cm1LabelField

From Cm1.LabelField

[AttVirtualField]
[AttHidden]
public string Cm1LabelField { get; set; }

Property Value

string

GruaxVO

[AttExternalCollection(typeof(GruaxVO), new string[] { "[Gruax].[grupo]", "[Tsre].[gruaxname]" })]
public GruaxVO GruaxVO { get; }

Property Value

GruaxVO

OcVO

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

Property Value

OcVO

anexodocuments

Issues in Account P/R

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

Property Value

bool

Remarks

Allows the movement of the document be issued in Account P/R.

assinaimp

Signs when printed

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

Property Value

bool

blLabelField

From BlVO.labelField

[AttVirtualField]
[AttHidden]
[AttLocale(typeof(AnexosAttInfo))]
public string blLabelField { 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

cm1descfin

C/C code for financial discounts

[AttLenght(4)]
[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int cm1descfin { get; set; }

Property Value

int

cm1irs

C/C code for IRS

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

Property Value

int

cmcc

Transaction Code No

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

Property Value

int

cmccn

Transaction Code No

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

Property Value

string

contado

Account No.

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

Property Value

int

descFinLabelField

From Cm1.cmdesc

[AttVirtualField]
[AttHidden]
public string descFinLabelField { get; set; }

Property Value

string

disableIntegration

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

Property Value

bool

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

gruaxname

Link field to the Categories table.

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

Property Value

string

Remarks

Field wiring to the Categories table, identifies the Category default for a given entity.

Length 25 .

gruaxstamp

Link field to the Categories table.

[AttForeignKey(CanDuplicate = true, ForeignType = typeof(GruaxVO), HiddenField = false)]
[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string gruaxstamp { get; set; }

Property Value

string

Remarks

Field wiring to the Categories table, identifies the Category default for a given entity.

Length 25 .

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

Indica se a série de recibos está inactiva.

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

Property Value

bool

irsLabelField

From Cm1.cmdesc

[AttVirtualField]
[AttHidden]
public string irsLabelField { get; set; }

Property Value

string

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

ivacaixa

Série ao abrigo do regime de IVA de Caixa

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

Property Value

bool

ndoc

Document number

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

Property Value

int

nmdoc

Series Name

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

Property Value

string

ocLabelField

From OcVO.LabelField

[AttVirtualField]
[AttHidden]
[AttLocale(typeof(AnexosAttInfo))]
public string ocLabelField { get; set; }

Property Value

string

olcodigo

Banking Code

[AttLenght(12)]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string olcodigo { get; set; }

Property Value

string

oldoc

Document Name for Banking

[AttLenght(40)]
[AttEntityAvailable(typeof(BlVO))]
[AttList(Inactive = true)]
public string oldoc { get; set; }

Property Value

string

originaldoc

Original external Serie

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

Property Value

string

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(TsreAttInfo), new string[] { "[Tsre].[signatureTypeDoc]" })]
public string signatureTypeDocName { get; set; }

Property Value

string

storageplace

Attachment type.

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

Property Value

StoragePlace

storageplacename

Name of attachment type.

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

Property Value

string

tabaxVO

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

Property Value

TabaxVO

tsrestamp

entitydatafield.tsre.tsrestamp

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

Property Value

string

uniqueid

[AttVirtualField(typeof(TsreAttInfo))]
[AttLenght(5)]
public string uniqueid { 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