Table of Contents

Class ExpensesVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
[AttTable("Expenses", 20250115)]
[AttTableGama(Gamas.Advanced)]
[AttTableProducts(new Products[] { Products.TESOURARIA, Products.WorkPlace })]
[AttTableVOInfo(typeof(ExpensesAttInfo))]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.UseInternalRef, TableFlags.UseDimensions })]
[AttTableMaintenance(typeof(ExpensesMaintenance))]
public class ExpensesVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
ExpensesVO

Properties

BeneficiaryVO

[AttExternalCollection(typeof(BeneficiaryVO), new string[] { "[Expenses].[beneficiarystamp]", "[Beneficiary].[beneficiarystamp]" })]
public BeneficiaryVO BeneficiaryVO { get; }

Property Value

BeneficiaryVO

BlVO

Account associated with this expense

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

Property Value

BlVO

Remarks

Data type BlVO.

Will not sent to Frontend.

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

IvaFieldsRelation

hide iva fields when zero

[AttVirtualField]
public Dictionary<string, List<string>> IvaFieldsRelation { get; }

Property Value

Dictionary<string, List<string>>

OcVO

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

Property Value

OcVO

OlVO

The treasury movement created in OL

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

Property Value

OlVO

OwnerEmail

[AttHidden]
public string OwnerEmail { get; }

Property Value

string

PaymentTypeVO

[AttExternalCollection(typeof(PaymentTypeVO), new string[] { "[PaymentType].[name]", "[Expenses].[paymentTypeStamp]" })]
public PaymentTypeVO PaymentTypeVO { get; }

Property Value

PaymentTypeVO

approvedByName

The name of person who approve the document

[AttLenght(100)]
[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string approvedByName { get; set; }

Property Value

string

approvedByStamp

The stamp of person who approve the document

[AttLenght(25)]
[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string approvedByStamp { get; set; }

Property Value

string

approvedDate

The date when was approved

[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public DateTime approvedDate { get; set; }

Property Value

DateTime

approvedHour

The hour when was approved

[AttLenght(8)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.time, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string approvedHour { get; set; }

Property Value

string

baseim

Amount of tax base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

baseim1

Amount of tax base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim1 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

baseim2

Amount of tax base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim2 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

baseim3

Amount of tax base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim3 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

baseim4

Amount of tax base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim4 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

baseim5

Amount of tax base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim5 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

baseim6

Amount of tax base in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim6 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

beneficiarystamp

Field to store the beneficiary stamp

[AttLenght(50)]
[AttEntityAvailable(typeof(BeneficiaryVO))]
[AttSmartField]
public string beneficiarystamp { get; set; }

Property Value

string

bic

BIC - Bank Identifier Code Código de Identificação Bancária Estes códigos geridos pela sociedade internacional de telecomunicações bancárias.

[AttLenght(11)]
public string bic { get; set; }

Property Value

string

Remarks

Length 11.

Campo de Pesquisa.

blLabelField

From BlVO.labelField

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

Property Value

string

blsupplytype

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

Property Value

string

codpais

from countryvo.codpais

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

Property Value

string

contado

Internal bank account No.

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

Property Value

int

Remarks

Length 4.

Mandatory field.

currency

Currency

Contains the abbreviated name of the currency used in this invoice document.

[AttLenght(3)]
[AttEntityAvailable(typeof(CbVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string currency { get; set; }

Property Value

string

Remarks

Length 3 .

Example: EUR, USD, GBP

dataprevisional

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

Property Value

DateTime

description

Description field

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

Property Value

string

ebasei

Tax base amount.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

ebasei1

Tax base amount.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei1 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

ebasei2

Tax base amount.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei2 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

ebasei3

Tax base amount.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei3 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

ebasei4

Tax base amount.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei4 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

ebasei5

Tax base amount.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei5 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

ebasei6

Tax base amount.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei6 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotal

Total amount of the document in Euros.

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

Property Value

decimal

Remarks

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

etotalvat

Total VAT.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvat { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvat1

Total VAT.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvat1 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvat2

Total VAT.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvat2 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvat3

Total VAT.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvat3 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvat4

Total VAT.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvat4 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvat5

Total VAT.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvat5 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvat6

Total VAT.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvat6 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvatrec

Surcharge VAT amount in Euros.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvatrec { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvatrec1

Surcharge VAT amount in Euros.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvatrec1 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvatrec2

Surcharge VAT amount in Euros.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvatrec2 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvatrec3

Surcharge VAT amount in Euros.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvatrec3 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvatrec4

Surcharge VAT amount in Euros.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvatrec4 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvatrec5

Surcharge VAT amount in Euros.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvatrec5 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

etotalvatrec6

Surcharge VAT amount in Euros.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal etotalvatrec6 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

ettvat

Total of VAT in Euros.

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

Property Value

decimal

Remarks

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

evalor1

VAT value .

[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor1 { get; set; }

Property Value

decimal

evalor2

VAT value .

[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor2 { get; set; }

Property Value

decimal

evalor3

VAT value .

[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor3 { get; set; }

Property Value

decimal

evalor4

VAT value .

[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor4 { get; set; }

Property Value

decimal

evalor5

VAT value .

[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor5 { get; set; }

Property Value

decimal

evalor6

VAT value .

[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor6 { get; set; }

Property Value

decimal

expenseslines

Line expeseses

[AttCollection(typeof(ExpensesLineVO))]
public List<ExpensesLineVO> expenseslines { get; set; }

Property Value

List<ExpensesLineVO>

Remarks

This field is a collection of type List (Of ExpenseLineVO).

ExpensesLineVO

expensesstamp

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

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

Property Value

string

Remarks

Length 25.

fiscalacceptance

Fixed value for fiscal acceptance assets type in account variables

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

Property Value

int

iban

IBAN Número Internacional de Conta Bancária

[AttLenght(40)]
[AttRGPDrank(RGPDranks.Personal)]
public string iban { get; set; }

Property Value

string

Remarks

Length 40.

incobravelprevisional

[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool incobravelprevisional { get; set; }

Property Value

bool

isSEPAfileSentToBank

Indicate if the SEPA file was sent to bank

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool isSEPAfileSentToBank { get; set; }

Property Value

bool

isValidated

[AttVirtualField(typeof(ExpensesAttInfo))]
[AttLenght(1)]
[AttInterfaces(new Type[] { typeof(IChange) })]
[AttList(Hidden = false)]
[AttProducts(new Products[] { Products.WorkPlace })]
public bool isValidated { get; set; }

Property Value

bool

madein

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

Property Value

string

name

Customer name.

[AttLenght(100)]
[AttRGPDrank(RGPDranks.Legal)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttList(Inactive = true)]
public string name { get; set; }

Property Value

string

Remarks

Length 55.

needsValidation

[AttVirtualField(typeof(ExpensesAttInfo))]
[AttLenght(1)]
[AttInterfaces(new Type[] { typeof(IChange) })]
[AttList(Hidden = false)]
[AttProducts(new Products[] { Products.WorkPlace })]
public bool needsValidation { get; set; }

Property Value

bool

no

Document Number.

[AttPrimaryKey]
[AttLenght(10)]
[AttMandatory]
[AttLogInfo(1)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList]
public decimal no { get; set; }

Property Value

decimal

Remarks

The value of this field is automatically increased based on the value of the last created record.

This field is primary key.

Length 10.

Non Duplicable Field.

ocLabelField

From OcVO.LabelField

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

Property Value

string

oristamp

key to document of origin - only by integration

[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

paid

Field to know if need to pay

[AttList]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool paid { get; set; }

Property Value

bool

pais

Representa um País

[AttLenght(70)]
public string pais { get; set; }

Property Value

string

paisesstamp

Campo de ligação a entidade Países

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

Property Value

string

paymentTypeCategory

From PaymentTypeVO.name

[AttVirtualField]
public PaymentTypeCategory paymentTypeCategory { get; set; }

Property Value

PaymentTypeCategory

paymentTypeStamp

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

Property Value

string

paymentTypesLabelField

From OcVO.LabelField

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

Property Value

string

paymentdate

Date field

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public DateTime paymentdate { get; set; }

Property Value

DateTime

producttype

Fixed variable - Tipo de bem - IVA

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

Property Value

int

qrcodeEtotal

Original Total of the Document scanned from qr code

[AttLenght(19, 6)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public decimal qrcodeEtotal { get; set; }

Property Value

decimal

qrcodeNcont

This field is the original company ncont scanned from QR Code

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

Property Value

string

refInt

Internal Reference.

[AttLenght(50)]
[AttEntityAvailable(typeof(RefInternaVO))]
[AttList(Inactive = true)]
public string refInt { get; set; }

Property Value

string

Remarks

Lenght 50.

stage

Estado da despesa, 0 se criado fora do workplace, 1 se precisa de validação superior, 2 se validado

[AttLenght(1)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public ExpensesBiz.Stage stage { get; set; }

Property Value

ExpensesBiz.Stage

taxasIVA

Colecção das diversas taxas de I.V.A. presentes no documento.

[AttCollection(typeof(ExpensesTxIvaVO))]
public List<ExpensesTxIvaVO> taxasIVA { get; set; }

Property Value

List<ExpensesTxIvaVO>

Remarks

This field is a collection of type List (Of ExpensesLineVO).

ExpensesTxIvaVO

tmvat

Total of VAT in foreign currency.

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

Property Value

decimal

Remarks

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

totalcoin

Total amount of the document in foreign currency.

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

Property Value

decimal

Remarks

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

totalvatdeductible

VAT value deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible { get; set; }

Property Value

decimal

totalvatdeductible1

VAT value deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible1 { get; set; }

Property Value

decimal

totalvatdeductible2

VAT value deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible2 { get; set; }

Property Value

decimal

totalvatdeductible3

VAT value deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible3 { get; set; }

Property Value

decimal

totalvatdeductible4

VAT value deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible4 { get; set; }

Property Value

decimal

totalvatdeductible5

VAT value deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible5 { get; set; }

Property Value

decimal

totalvatdeductible6

VAT value deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible6 { get; set; }

Property Value

decimal

totalvatdeductiblem

VAT value deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem { get; set; }

Property Value

decimal

totalvatdeductiblem1

VAT value deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem1 { get; set; }

Property Value

decimal

totalvatdeductiblem2

VAT value deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem2 { get; set; }

Property Value

decimal

totalvatdeductiblem3

VAT value deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem3 { get; set; }

Property Value

decimal

totalvatdeductiblem4

VAT value deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem4 { get; set; }

Property Value

decimal

totalvatdeductiblem5

VAT value deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem5 { get; set; }

Property Value

decimal

totalvatdeductiblem6

VAT value deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem6 { get; set; }

Property Value

decimal

totalvatm

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm { get; set; }

Property Value

decimal

totalvatm1

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm1 { get; set; }

Property Value

decimal

totalvatm2

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm2 { get; set; }

Property Value

decimal

totalvatm3

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm3 { get; set; }

Property Value

decimal

totalvatm4

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm4 { get; set; }

Property Value

decimal

totalvatm5

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm5 { get; set; }

Property Value

decimal

totalvatm6

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm6 { get; set; }

Property Value

decimal

totalvatnotdeductible

VAT value not deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible { get; set; }

Property Value

decimal

totalvatnotdeductible1

VAT value not deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible1 { get; set; }

Property Value

decimal

totalvatnotdeductible2

VAT value not deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible2 { get; set; }

Property Value

decimal

totalvatnotdeductible3

VAT value not deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible3 { get; set; }

Property Value

decimal

totalvatnotdeductible4

VAT value not deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible4 { get; set; }

Property Value

decimal

totalvatnotdeductible5

VAT value not deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible5 { get; set; }

Property Value

decimal

totalvatnotdeductible6

VAT value not deductible.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible6 { get; set; }

Property Value

decimal

totalvatnotdeductiblem

VAT value not deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem { get; set; }

Property Value

decimal

totalvatnotdeductiblem1

VAT value not deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem1 { get; set; }

Property Value

decimal

totalvatnotdeductiblem2

VAT value not deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem2 { get; set; }

Property Value

decimal

totalvatnotdeductiblem3

VAT value not deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem3 { get; set; }

Property Value

decimal

totalvatnotdeductiblem4

VAT value not deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem4 { get; set; }

Property Value

decimal

totalvatnotdeductiblem5

VAT value not deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem5 { get; set; }

Property Value

decimal

totalvatnotdeductiblem6

VAT value not deductible in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem6 { get; set; }

Property Value

decimal

totalvatrecm

Surcharge VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal totalvatrecm { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

totalvatrecm1

Surcharge VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal totalvatrecm1 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

totalvatrecm2

Surcharge VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal totalvatrecm2 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

totalvatrecm3

Surcharge VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal totalvatrecm3 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

totalvatrecm4

Surcharge VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal totalvatrecm4 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

totalvatrecm5

Surcharge VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal totalvatrecm5 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

totalvatrecm6

Surcharge VAT amount in foreign currency.

[AttVirtualField]
[AttLenght(19, 6)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.es_ES })]
public decimal totalvatrecm6 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

useRecVat

Indicates whether the document uses the surcharge of VAT.

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

Property Value

bool

Remarks

Virtual field.

Field not available for the user.

valorm1

VAT value in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm1 { get; set; }

Property Value

decimal

valorm2

VAT value in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm2 { get; set; }

Property Value

decimal

valorm3

VAT value in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm3 { get; set; }

Property Value

decimal

valorm4

VAT value in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm4 { get; set; }

Property Value

decimal

valorm5

VAT value in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm5 { get; set; }

Property Value

decimal

valorm6

VAT value in currency.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm6 { get; set; }

Property Value

decimal

vatoperation

Fixed variable - Operações com IVA

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

Property Value

int

vattax1

VAT first line rate.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal vattax1 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

vattax2

VAT first line rate.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal vattax2 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

vattax3

VAT first line rate.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal vattax3 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

vattax4

VAT first line rate.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal vattax4 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

vattax5

VAT first line rate.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal vattax5 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

vattax6

VAT first line rate.

[AttVirtualField]
[AttLenght(19, 6)]
public decimal vattax6 { get; set; }

Property Value

decimal

Remarks

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

Virtual field.

Methods

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string

ValidLinesForAccountingIntegration(int)

public bool ValidLinesForAccountingIntegration(int year)

Parameters

Nome Tipo Descrição
year int

Returns

bool

Explicit Interface Implementations

CanIntegrate()

Returns true if integration is available

bool CanIntegrate()

Returns

bool

CleanIntegrationErrors()

Cleans the accounting integration errors

void CleanIntegrationErrors()

GetIntegrationConfig(int)

Returns a specific accounting integration config if is setted on series of document otherwise returns nothing

PHCResult GetIntegrationConfig(int year)

Parameters

Nome Tipo Descrição
year int

Returns

PHCResult

GetPendingIntegrationsCommands(int)

PHCCmdSql GetPendingIntegrationsCommands(int year = 0)

Parameters

Nome Tipo Descrição
year int

Returns

PHCCmdSql

GetSepaFields()

SepaFields GetSepaFields()

Returns

SepaFields

HasAccountingIntegration()

Check for permission to integrate document

bool HasAccountingIntegration()

Returns

bool

IsProducedRecord()

bool IsProducedRecord()

Returns

bool

LogIntegrationErrors(List<MessageVO>)

Logs the accounting integration errors

void LogIntegrationErrors(List<MessageVO> errorMessages)

Parameters

Nome Tipo Descrição
errorMessages List<MessageVO>

ReadyForArchival()

bool ReadyForArchival()

Returns

bool

accounted

Mark document as accounted

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool accounted { get; set; }

Returns

bool

adate

Accounting Date

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
DateTime adate { get; set; }

Returns

DateTime

docarchivalnumber

ID: Journal + Period + DocNumber

[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string docarchivalnumber { get; set; }

Returns

string

documentdescription

Description of the document type (DC)

[AttFieldType(AttFieldType.InputTypes.memo, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string documentdescription { get; set; }

Returns

string

documentid

Id of the accounting document (DC)

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
decimal documentid { get; set; }

Returns

decimal

expdate

Date field

[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMandatory]
[AttList]
[AttLogInfo(2)]
DateTime expdate { get; set; }

Returns

DateTime

integrationErrors

Accounting integrations message errors

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string integrationErrors { get; set; }

Returns

string

isApproved

Field to know if the document was approved

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttGama(Gamas.Advanced)]
[AttList(Inactive = true)]
bool isApproved { get; set; }

Returns

bool

isArchived

[AttFieldType(AttFieldType.InputTypes.boolean)]
bool isArchived { get; set; }

Returns

bool

isDocNeedsApproval

We use this field to know if the document needs approval

[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList(Inactive = true)]
bool isDocNeedsApproval { get; set; }

Returns

bool

isaccounting

Is true if the document is in integrating process

[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool isaccounting { get; set; }

Returns

bool

journaldescription

Description of the journal (DI)

[AttLenght(200)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string journaldescription { get; set; }

Returns

string

journalid

Journal code (DI).

[AttLenght(6)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
decimal journalid { get; set; }

Returns

decimal

olcodigo

Treasury Code

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

Returns

string

Remarks

Length 12.

Mandatory field.

year

Year of Document (PCY).

[AttLenght(4)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
int year { get; set; }

Returns

int