Table of Contents

Class ExpensesLineVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("ExpensesLine", 20250115)]
[AttTableOrderBy("lordem")]
[AttTableFlags(new TableFlags[] { TableFlags.UseDimensions })]
public class ExpensesLineVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IGenericVO, IParent<ExpensesVO>, IParent
Inheritance
ExpensesLineVO

Properties

CountryVO

[AttExternalCollection(typeof(CountryVO), new string[] { "paisesstamp", "paisesstamp" })]
public CountryVO CountryVO { get; }

Property Value

CountryVO

GetFieldStampName

Use only field name without table name

public override string GetFieldStampName { get; }

Property Value

string

GetStampValue

public override string GetStampValue { get; }

Property Value

string

ModalidadVO

[AttExternalCollection(typeof(ModalidadVO), new string[] { "[Modalidad].[modalidadstamp]", "[ExpensesLine].[modalidadstamp]" })]
public ModalidadVO ModalidadVO { get; }

Property Value

ModalidadVO

TaxaIVAVO

[AttExternalCollection(typeof(TaxasIVAVO), new string[] { "[TaxasIva].[codigo]", "[ExpensesLine].[tabvat]" })]
public TaxasIVAVO TaxaIVAVO { get; }

Property Value

TaxasIVAVO

baseAccountValue

[AttVirtualField]
[AttHidden]
[AttProducts(new Products[] { Products.Accounting })]
public int baseAccountValue { get; set; }

Property Value

int

deductibleType

[AttVirtualField]
[AttHidden]
[AttProducts(new Products[] { Products.Accounting })]
public int deductibleType { get; set; }

Property Value

int

description

Description field

[AttLenght(60)]
[AttList]
public string description { get; set; }

Property Value

string

document

Document Field

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

Property Value

string

Remarks

Length 25.

expensesTypeVO

[AttExternalCollection(typeof(ExpensesTypeVO))]
public ExpensesTypeVO expensesTypeVO { get; }

Property Value

ExpensesTypeVO

expensesstamp

This field is to connect with ExpensesVO.

[AttForeignKey(typeof(ExpensesVO))]
[AttLenght(25)]
public string expensesstamp { get; set; }

Property Value

string

Remarks

Length 25.

expensestypestamp

This field is to connect with ExpensesTypeVO.

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

Property Value

string

Remarks

Length 25.

expensestypetitle

Title From ExpensesTypeVO

[AttLenght(100)]
public string expensestypetitle { get; set; }

Property Value

string

isTaxForeignRegion

If the tax is from pt

[AttVirtualField]
[AttHidden]
public bool isTaxForeignRegion { get; set; }

Property Value

bool

market

[AttVirtualField]
[AttLenght(1)]
public int market { get; }

Property Value

int

marketwithregion

[AttVirtualField]
[AttLenght(1)]
public int marketwithregion { get; }

Property Value

int

modalidaddescription

[AttVirtualField]
[AttEntityAvailable(typeof(ModalidadVO))]
public string modalidaddescription { get; set; }

Property Value

string

modalidadstamp

[AttLenght(25)]
[AttEntityAvailable(typeof(ModalidadVO))]
[AttMandatory(new languages[] { languages.es_ES })]
public string modalidadstamp { get; set; }

Property Value

string

ncont

Número de Contribuinte.

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

Property Value

string

Remarks

Length 20.

nome

[AttLenght(100)]
public string nome { get; set; }

Property Value

string

oristamp

key to document of origin

[AttLenght(25)]
[AttIndex(new string[] { "oritable", "oristamp" }, new OrderTypes[] { OrderTypes.Ascending, OrderTypes.Descending })]
public string oristamp { get; set; }

Property Value

string

oritable

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

Property Value

string

pais

País de Origem.

[AttLenght(70)]
[AttProducts(new Products[] { Products.Accounting })]
public string pais { get; set; }

Property Value

string

paisesstamp

Campo de ligação à entidade de países ().

[AttForeignKey(CanDuplicate = true, ForeignType = typeof(CountryVO), HiddenField = false)]
[AttLenght(25)]
[AttProducts(new Products[] { Products.Accounting })]
public string paisesstamp { get; set; }

Property Value

string

pncont

Iniciais do País de origem.

[AttLenght(2)]
[AttProducts(new Products[] { Products.Accounting })]
public string pncont { get; set; }

Property Value

string

supplytype

[AttVirtualField]
[AttLenght(1)]
[AttProducts(new Products[] { Products.Accounting })]
[AttDynamicIntegrationValue(typeof(SupplyTypeVO))]
public string supplytype { get; }

Property Value

string

tabvat

VAT table.

[AttLenght(3)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMandatory]
public int tabvat { get; set; }

Property Value

int

Remarks

Length 3.

txIvaLabelField

From iva taxes

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

Property Value

string

value

Value in Euros.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal value { get; set; }

Property Value

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

valuecoin

Value in another coin.

[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public decimal valuecoin { get; set; }

Property Value

decimal

Remarks

Lenght of 19, where the units are 12 and decimals are 6.

vatdeductible

VAT value dedctuble.

[AttLenght(5, 2)]
[AttMaxValue(100)]
[AttFieldType(AttFieldType.InputTypes.percentage, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public decimal vatdeductible { get; set; }

Property Value

decimal

Remarks

Lenght of 5, where the units are 2 and decimals are 2.

vatpurchaseoperation

[AttVirtualField]
[AttLenght(1)]
public int vatpurchaseoperation { get; }

Property Value

int

vatrec

Recargo VAT

[AttLenght(5, 2)]
[AttFieldType(AttFieldType.InputTypes.percentage, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal vatrec { get; set; }

Property Value

decimal

vattype

[AttVirtualField]
[AttLenght(1)]
public int vattype { get; }

Property Value

int

vdate

Value Date field

[AttFieldType(AttFieldType.InputTypes.date)]
[AttMandatory]
public DateTime vdate { get; set; }

Property Value

DateTime

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string

Explicit Interface Implementations

ParentVO

ExpensesVO ParentVO { get; set; }

Returns

ExpensesVO

expenseslinestamp

This field uniquely identifies the record (primary key by default).

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

Returns

string

Remarks

Length 25.

This field uniquely identifies the record (primary key by default).

lordem

Order on Receipt

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

Returns

decimal

Remarks

Length 10.

Not available to the user.

previousLineID

[AttVirtualField]
[AttHidden]
string previousLineID { get; set; }

Returns

string