Table of Contents

Class TaxesVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Taxes types, IRS, IRC, IS, EcoValor, SIRCA, ... TaxesTypes

[AttTable("Taxes", 20220304)]
[AttTableOrderBy("codigo,descricao")]
[AttTableVOInfo(typeof(TaxesAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.CanUpdFromSourceBD, TableFlags.RequiresAdminAccess })]
[AttTableMaintenance(typeof(TaxesMaintenance))]
public class TaxesVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
TaxesVO

Properties

accountno

Unique ID for accounting.

[AttLenght(5)]
[AttHidden]
public int accountno { get; set; }

Property Value

int

canUseQtt

Defines if the tax can use quantity/factor

[AttVirtualField]
[AttHidden]
public bool canUseQtt { get; }

Property Value

bool

code

Is a conversion to numeric of codigo field.

[AttLenght(18)]
[AttHidden]
[AttIndex(Unique = true)]
public decimal code { get; set; }

Property Value

decimal

Remarks

its only use is only to build TaxRetention routes across the series.

descricao

Tax type description (IRS = Imposto sobre o Rendimento de Pessoas Singulares, ...)

[AttLenght(100)]
[AttMandatory]
[AttLogInfo(1)]
[AttList]
public string descricao { get; set; }

Property Value

string

inativo

Inactive ?

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

Property Value

bool

isReadOnly

Exclusive use of PHC

[AttList]
[AttPhcOwner(new string[] { "descricao", "inativo", "unidade", "useqtt", "includedinprice" })]
public bool isReadOnly { get; set; }

Property Value

bool

labelField

Title used for selection in lists

[AttLenght(100)]
[AttVirtualField(typeof(TaxesAttInfo))]
[AttLabelField(new string[] { "[Taxes].[codigo]", "[Taxes].[descricao]" })]
public string labelField { get; set; }

Property Value

string

Remarks

Observe the default sorting defined in the VO via metadata, and put the get of this property to return a string compatible with the order of the fields indicated in the sort

safttaxtype

Saft tax type

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

Property Value

string

taxesstamp

Unique ID

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

Property Value

string

taxtypename

Tax type name

[AttLenght(20)]
[AttLocale(typeof(TaxesAttInfo), new string[] { "[Taxes].[taxtype]" })]
public string taxtypename { get; set; }

Property Value

string

unidade

Unit

[AttLenght(4)]
public string unidade { get; set; }

Property Value

string

Explicit Interface Implementations

codigo

Tax type code, it's TaxesTypes.Item

[AttLenght(20)]
[AttMandatory]
[AttLogInfo(0)]
[AttList]
[AttIndex(Unique = true)]
string codigo { get; set; }

Returns

string

includedinprice

Included in the sale price

bool includedinprice { get; set; }

Returns

bool

taxtype

Tax type

[AttLenght(2)]
[AttMandatory]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
TaxTypes taxtype { get; set; }

Returns

TaxTypes

useqtt

Use quantity

bool useqtt { get; set; }

Returns

bool