Table of Contents

Class TsrdVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Customer Advance Receipt Configuration

[AttTable("Tsrd", 20240702, AttTable.MaintenanceOrders.TsRd)]
[AttTableGama(Gamas.Advanced)]
[AttTableProducts(new Products[] { Products.VENDAS })]
[AttTableOrderBy("ndoc", OrderTypes.Ascending)]
[AttTableVOInfo(typeof(TsrdAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.RequiresAdminAccess, TableFlags.TableForJorge })]
[AttTableMaintenance(typeof(TsrdMaintenance))]
public class TsrdVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
TsrdVO

Properties

Atcuds

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

Property Value

List<AtcudVO>

BlVO

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

Property Value

BlVO

Cm1LabelField

From Cm1.LabelField

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

Property Value

string

Cm1VO

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

Property Value

Cm1VO

OcVO

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

Property Value

OcVO

TdVO

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

Property Value

TdVO

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.

autonc

Série de Faturação para emissão automática de Nota de Crédito

[AttLenght(3)]
public int autonc { get; set; }

Property Value

int

autonmnc

Série de Faturação para emissão automática de Nota de Crédito

[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string autonmnc { get; set; }

Property Value

string

blLabelField

From BlVO.labelField

[AttVirtualField]
[AttHidden]
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

cmcc

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

Property Value

int

cmccn

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

Property Value

string

contado

Número interno da conta bancária

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

Property Value

int

Remarks

Length 4.

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 })]
public bool docimport { get; set; }

Property Value

bool

dupliSourceId

Obsolete after S#203607

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

Property Value

string

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(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string gruaxstamp { get; set; }

Property Value

string

inactivo

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

[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttList]
public bool inactivo { 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

ndoc

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

Property Value

int

nmdoc

[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]
public string ocLabelField { get; set; }

Property Value

string

olcodigo

Código de tesouraria

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

Property Value

string

Remarks

Length 12.

Mandatory field.

oldoc

[AttLenght(40)]
public string oldoc { get; set; }

Property Value

string

ollocal

Conta de tesouraria

[AttLenght(50)]
public string ollocal { get; set; }

Property Value

string

Remarks

Length 50.

Mandatory field.

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

Property Value

string

storageplace

Attachment type.

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.integer, 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(TsrdAttInfo), new string[] { "[Tsrd].[storageplace]" })]
public string storageplacename { get; set; }

Property Value

string

tabaxVO

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

Property Value

TabaxVO

tiposaft

Tipo SAF-T

[AttLenght(2)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO, languages.pt_MZ })]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string tiposaft { get; set; }

Property Value

string

Remarks

Length 2.

tsrdstamp

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

Property Value

string

uniqueid

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

Property Value

string

Methods

GetTipoSaft()

public override string GetTipoSaft()

Returns

string