Table of Contents

Class PvVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Plano de IVA

[AttTable("Pv", 20220216)]
[AttTableVOInfo(typeof(PvAttInfo))]
[AttTableMaintenance(typeof(PvMaintenance))]
[AttTableProducts(new Products[] { Products.Accounting })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.RequiresAdminAccess, TableFlags.DisableRowCount, TableFlags.NotUseHashTag })]
public class PvVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IGenericVO, IParent<PcVO>, IParent
Inheritance
PvVO

Properties

PcVO

[AttExternalCollection(typeof(PcVO), new string[] { "pc.accountid", "pcaccount", "pc.year", "year" })]
public PcVO PcVO { get; }

Property Value

PcVO

account

[AttPrimaryKey]
[AttLenght(30)]
[AttMandatory]
[AttLogInfo(1)]
[AttList]
public string account { get; set; }

Property Value

string

deductibleavldescription

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

Property Value

string

deductibleavlstamp

Value used when the tax in non deductible.

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

Property Value

string

deductibleavname

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

Property Value

string

deductibleavstamp

Variable used when the tax in non deductible.

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

Property Value

string

groupingcode

Grouping Code (Hierarquia da conta)

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

Property Value

string

groupingcodestamp

Grouping Code Stamp (Stamp da hierarquia da conta)

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

Property Value

string

ismovement

If is an account of movement (if this field is false then means is an integration acccount)

[AttList]
[AttIndex(new string[] { "year", "ismovement", "pcaccount" }, new string[] { "description", "pvstamp" })]
public bool ismovement { get; set; }

Property Value

bool

ismovementlabel

Type of the account 1 - Movement, 2 - Integration

[AttVirtualField]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string ismovementlabel { get; set; }

Property Value

string

nondeductibilitytax

The amount of tax that economic agents can recover.

[AttLenght(7, 2)]
[AttList]
[AttFieldType(AttFieldType.InputTypes.percentage)]
[AttMaxValue(100)]
[AttMinValue(0)]
public decimal nondeductibilitytax { get; set; }

Property Value

decimal

pcaccount

[AttLenght(30)]
public string pcaccount { get; set; }

Property Value

string

pcaccountdescription

Description of the account (PC)

[AttLenght(200)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList]
public string pcaccountdescription { get; set; }

Property Value

string

pcaccountstamp

Connection field to the main entity PcVO.

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

Property Value

string

pvflts

[AttCollection(typeof(PvFltVO))]
public List<PvFltVO> pvflts { get; set; }

Property Value

List<PvFltVO>

region

Tax region (PT, PT-AC, PT-MA).

[AttLenght(5)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_MZ })]
[AttList]
public string region { get; set; }

Property Value

string

regionnm

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

Property Value

string

reversechargeaccount

[AttLenght(30)]
public string reversechargeaccount { get; set; }

Property Value

string

reversechargeaccountdescription

Description of the account for the reverse charge tax.

[AttLenght(200)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList]
public string reversechargeaccountdescription { get; set; }

Property Value

string

reversechargeaccountstamp

The amount of tax to pay when recipient or purchaser of goods and services is also the debtor of the tax.

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

Property Value

string

taxcode

Attachment type.

[AttLenght(1)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public IVABiz.VatCodTax taxcode { get; set; }

Property Value

IVABiz.VatCodTax

Remarks

Sets the attachment type, can exist physically on the database or na external URL.

Length 1.

taxcodename

Tax code (RED, INT,NOR, ISE, OUT)

[AttLenght(10)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_MZ })]
[AttList]
public string taxcodename { get; set; }

Property Value

string

Methods

GetSeriesValue()

public override decimal GetSeriesValue()

Returns

decimal

Explicit Interface Implementations

ParentVO

PcVO ParentVO { get; set; }

Returns

PcVO

description

Descrição da conta

[AttMandatory]
[AttList]
string description { get; set; }

Returns

string

pvstamp

Single registration field, used to link others to this entity.

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

Returns

string

year

Year associated with this account.

[AttPrimaryKey]
[AttForeignKey(typeof(PcVO))]
[AttLenght(4)]
[AttMandatory]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttDocType(typeof(PcyVO))]
[AttList(Hidden = true)]
int year { get; set; }

Returns

int