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
BlVO
Account associated with this expense
[AttExternalCollection(typeof(BlVO), new string[] { "[Bl].[noconta]", "[Expenses].[contado]" })]
public BlVO BlVO { get; }
Property Value
Remarks
Data type BlVO.
Will not sent to Frontend.
CountryVO
[AttExternalCollection(typeof(CountryVO), new string[] { "paisesstamp", "paisesstamp" })]
public CountryVO CountryVO { get; }
Property Value
GetFieldStampName
Use only field name without table name
public override string GetFieldStampName { get; }
Property Value
GetStampValue
public override string GetStampValue { get; }
Property Value
IvaFieldsRelation
hide iva fields when zero
[AttVirtualField]
public Dictionary<string, List<string>> IvaFieldsRelation { get; }
Property Value
OcVO
[AttExternalCollection(typeof(OcVO), new string[] { "[Oc].[olcodigo]", "[Expenses].[olcodigo]" })]
public OcVO OcVO { get; }
Property Value
OlVO
The treasury movement created in OL
[AttExternalCollection(typeof(OlVO))]
public OlVO OlVO { get; }
Property Value
OwnerEmail
[AttHidden]
public string OwnerEmail { get; }
Property Value
PaymentTypeVO
[AttExternalCollection(typeof(PaymentTypeVO), new string[] { "[PaymentType].[name]", "[Expenses].[paymentTypeStamp]" })]
public PaymentTypeVO PaymentTypeVO { get; }
Property Value
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
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
approvedDate
The date when was approved
[AttGama(Gamas.Advanced)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public DateTime approvedDate { get; set; }
Property Value
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
baseim
Amount of tax base in foreign currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal baseim { get; set; }
Property Value
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
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
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
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
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
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
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
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
Remarks
Length 11.
Campo de Pesquisa.
blLabelField
From BlVO.labelField
[AttVirtualField]
[AttHidden]
public string blLabelField { get; set; }
Property Value
blsupplytype
[AttVirtualField]
[AttLenght(1)]
[AttProducts(new Products[] { Products.Accounting })]
[AttDynamicIntegrationValue(typeof(SupplyTypeVO))]
public string blsupplytype { get; }
Property Value
codpais
from countryvo.codpais
[AttVirtualField]
[AttHidden]
public string codpais { get; set; }
Property Value
contado
Internal bank account No.
[AttLenght(4)]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int contado { get; set; }
Property Value
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
Remarks
Length 3 .
dataprevisional
[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime dataprevisional { get; set; }
Property Value
description
Description field
[AttLenght(60)]
[AttMandatory]
[AttList]
[AttLogInfo(0)]
public string description { get; set; }
Property Value
ebasei
Tax base amount.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal ebasei { get; set; }
Property Value
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
evalor2
VAT value .
[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor2 { get; set; }
Property Value
evalor3
VAT value .
[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor3 { get; set; }
Property Value
evalor4
VAT value .
[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor4 { get; set; }
Property Value
evalor5
VAT value .
[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor5 { get; set; }
Property Value
evalor6
VAT value .
[AttVirtualField]
[AttLenght(19, 6)]
public decimal evalor6 { get; set; }
Property Value
expenseslines
Line expeseses
[AttCollection(typeof(ExpensesLineVO))]
public List<ExpensesLineVO> expenseslines { get; set; }
Property Value
Remarks
This field is a collection of type List (Of ExpenseLineVO).
ExpensesLineVOexpensesstamp
This field uniquely identifies the record (primary key by default).
[AttLenght(25)]
public string expensesstamp { get; set; }
Property Value
Remarks
Length 25.
fiscalacceptance
Fixed value for fiscal acceptance assets type in account variables
[AttVirtualField]
[AttLenght(1)]
public int fiscalacceptance { get; }
Property Value
iban
IBAN Número Internacional de Conta Bancária
[AttLenght(40)]
[AttRGPDrank(RGPDranks.Personal)]
public string iban { get; set; }
Property Value
Remarks
Length 40.
incobravelprevisional
[AttLenght(1)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool incobravelprevisional { get; set; }
Property Value
isSEPAfileSentToBank
Indicate if the SEPA file was sent to bank
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool isSEPAfileSentToBank { get; set; }
Property Value
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
madein
[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public string madein { get; set; }
Property Value
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
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
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
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
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
oritable
[AttLenght(25)]
public string oritable { get; set; }
Property Value
paid
Field to know if need to pay
[AttList]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
public bool paid { get; set; }
Property Value
pais
Representa um País
[AttLenght(70)]
public string pais { get; set; }
Property Value
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
paymentTypeCategory
From PaymentTypeVO.name
[AttVirtualField]
public PaymentTypeCategory paymentTypeCategory { get; set; }
Property Value
paymentTypeStamp
[AttLenght(50)]
public string paymentTypeStamp { get; set; }
Property Value
paymentTypesLabelField
From OcVO.LabelField
[AttVirtualField]
[AttHidden]
public string paymentTypesLabelField { get; set; }
Property Value
paymentdate
Date field
[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public DateTime paymentdate { get; set; }
Property Value
producttype
Fixed variable - Tipo de bem - IVA
[AttVirtualField]
[AttLenght(1)]
public int producttype { get; }
Property Value
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
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
refInt
Internal Reference.
[AttLenght(50)]
[AttEntityAvailable(typeof(RefInternaVO))]
[AttList(Inactive = true)]
public string refInt { get; set; }
Property Value
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
taxasIVA
Colecção das diversas taxas de I.V.A. presentes no documento.
[AttCollection(typeof(ExpensesTxIvaVO))]
public List<ExpensesTxIvaVO> taxasIVA { get; set; }
Property Value
Remarks
This field is a collection of type List (Of ExpensesLineVO).
ExpensesTxIvaVOtmvat
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
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
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
totalvatdeductible1
VAT value deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible1 { get; set; }
Property Value
totalvatdeductible2
VAT value deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible2 { get; set; }
Property Value
totalvatdeductible3
VAT value deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible3 { get; set; }
Property Value
totalvatdeductible4
VAT value deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible4 { get; set; }
Property Value
totalvatdeductible5
VAT value deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible5 { get; set; }
Property Value
totalvatdeductible6
VAT value deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductible6 { get; set; }
Property Value
totalvatdeductiblem
VAT value deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem { get; set; }
Property Value
totalvatdeductiblem1
VAT value deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem1 { get; set; }
Property Value
totalvatdeductiblem2
VAT value deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem2 { get; set; }
Property Value
totalvatdeductiblem3
VAT value deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem3 { get; set; }
Property Value
totalvatdeductiblem4
VAT value deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem4 { get; set; }
Property Value
totalvatdeductiblem5
VAT value deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem5 { get; set; }
Property Value
totalvatdeductiblem6
VAT value deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatdeductiblem6 { get; set; }
Property Value
totalvatm
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm { get; set; }
Property Value
totalvatm1
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm1 { get; set; }
Property Value
totalvatm2
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm2 { get; set; }
Property Value
totalvatm3
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm3 { get; set; }
Property Value
totalvatm4
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm4 { get; set; }
Property Value
totalvatm5
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm5 { get; set; }
Property Value
totalvatm6
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatm6 { get; set; }
Property Value
totalvatnotdeductible
VAT value not deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible { get; set; }
Property Value
totalvatnotdeductible1
VAT value not deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible1 { get; set; }
Property Value
totalvatnotdeductible2
VAT value not deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible2 { get; set; }
Property Value
totalvatnotdeductible3
VAT value not deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible3 { get; set; }
Property Value
totalvatnotdeductible4
VAT value not deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible4 { get; set; }
Property Value
totalvatnotdeductible5
VAT value not deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible5 { get; set; }
Property Value
totalvatnotdeductible6
VAT value not deductible.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductible6 { get; set; }
Property Value
totalvatnotdeductiblem
VAT value not deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem { get; set; }
Property Value
totalvatnotdeductiblem1
VAT value not deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem1 { get; set; }
Property Value
totalvatnotdeductiblem2
VAT value not deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem2 { get; set; }
Property Value
totalvatnotdeductiblem3
VAT value not deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem3 { get; set; }
Property Value
totalvatnotdeductiblem4
VAT value not deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem4 { get; set; }
Property Value
totalvatnotdeductiblem5
VAT value not deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem5 { get; set; }
Property Value
totalvatnotdeductiblem6
VAT value not deductible in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal totalvatnotdeductiblem6 { get; set; }
Property Value
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
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
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
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
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
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
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
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
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
valorm2
VAT value in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm2 { get; set; }
Property Value
valorm3
VAT value in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm3 { get; set; }
Property Value
valorm4
VAT value in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm4 { get; set; }
Property Value
valorm5
VAT value in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm5 { get; set; }
Property Value
valorm6
VAT value in currency.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal valorm6 { get; set; }
Property Value
vatoperation
Fixed variable - Operações com IVA
[AttVirtualField]
[AttLenght(1)]
public int vatoperation { get; }
Property Value
vattax1
VAT first line rate.
[AttVirtualField]
[AttLenght(19, 6)]
public decimal vattax1 { get; set; }
Property Value
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
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
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
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
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
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
Explicit Interface Implementations
CanIntegrate()
Returns true if integration is available
bool CanIntegrate()
Returns
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
GetPendingIntegrationsCommands(int)
PHCCmdSql GetPendingIntegrationsCommands(int year = 0)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
year |
int |
Returns
GetSepaFields()
SepaFields GetSepaFields()
Returns
HasAccountingIntegration()
Check for permission to integrate document
bool HasAccountingIntegration()
Returns
IsProducedRecord()
bool IsProducedRecord()
Returns
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
accounted
Mark document as accounted
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
bool accounted { get; set; }
Returns
adate
Accounting Date
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
DateTime adate { get; set; }
Returns
docarchivalnumber
ID: Journal + Period + DocNumber
[AttLenght(30)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string docarchivalnumber { get; set; }
Returns
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
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
expdate
Date field
[AttFieldType(AttFieldType.InputTypes.date, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMandatory]
[AttList]
[AttLogInfo(2)]
DateTime expdate { get; set; }
Returns
integrationErrors
Accounting integrations message errors
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string integrationErrors { get; set; }
Returns
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
isArchived
[AttFieldType(AttFieldType.InputTypes.boolean)]
bool isArchived { get; set; }
Returns
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
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
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
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
olcodigo
Treasury Code
[AttLenght(12)]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
string olcodigo { get; set; }
Returns
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; }