Class Cm1VO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
Payable / Receivable Transactions Codes.
[AttTable("Cm1", 20240501)]
[AttTableProducts(new Products[] { Products.VENDAS, Products.COMPRAS })]
[AttTableOrderBy(new string[] { "[Cm1].[cm]", "[Cm1].[cmdesc]", "[Cm1].[debito]" })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.RequiresAdminAccess, TableFlags.TableForJorge })]
[AttTableVOInfo(typeof(Cm1AttInfo))]
[AttTableMaintenance(typeof(Cm1Maintenance))]
public class Cm1VO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
- Inheritance
-
Cm1VO
Remarks
<p>
This entity contains the codes that are used to do account payable/receivable transactions. The user can insert the desired codes, choose the code you want and check the option "It's a debit movement", identify whether the code to create is or is not a debit. If the option is not checked, it will be credit. The change of debit/credit codes (account payable/receivable transactions) must be performed we careful and only the codes introduced by the user must be changed, because the predefined ones are used automatically by the application in working sessions. .
This class represents a value object which maps CM1 table in database and has the function to store the information referring the account payable/receivable transactions. .
The sorting field of the codes in queries is "cm".
cmThis Entity is available in Business and Billing products.
Properties
Atcuds
[AttVirtualField]
public List<AtcudVO> Atcuds { get; set; }
Property Value
BlVO
Conta associada a este recibo
[AttExternalCollection(typeof(BlVO), new string[] { "bl.noconta", "contado" })]
public BlVO BlVO { get; }
Property Value
Remarks
Data type BlVO.
Não é enviado para o Frontend.
Cm1PoDescFinVO
Conta associada a movimentos de descontos para pagamentos.
[AttExternalCollection(typeof(Cm1VO), new string[] { "cm1.pocmdesfin", "cm" })]
public Cm1VO Cm1PoDescFinVO { get; }
Property Value
Cm1PoIrsVO
Conta associada a movimentos de IRS para pagamentos
[AttExternalCollection(typeof(Cm1VO), new string[] { "cm1.pocmirs", "cm" })]
public Cm1VO Cm1PoIrsVO { get; }
Property Value
Cm2LabelField
From Cm2.LabelField
[AttVirtualField]
[AttHidden]
public string Cm2LabelField { get; set; }
Property Value
Cm2VO
[AttExternalCollection(typeof(Cm2VO), new string[] { "cm2.cm", "fosl" })]
public Cm2VO Cm2VO { get; }
Property Value
Cm2VOValue
[AttExternalCollection(typeof(Cm2VO), new string[] { "cm2.cm", "fosv" })]
public Cm2VO Cm2VOValue { get; }
Property Value
FlVO
[AttExternalCollection(typeof(FlVO), new string[] { "[Fl].[no]", "[Cm1].[fno]", "[Fl].[estab]", "[Cm1].[estab]" })]
public FlVO FlVO { get; }
Property Value
OcVO
[AttExternalCollection(typeof(OcVO), new string[] { "oc.olcodigo", "olfl" })]
public OcVO OcVO { get; }
Property Value
PoBlVO
[AttExternalCollection(typeof(BlVO), new string[] { "po.noconta", "pocontado" })]
public BlVO PoBlVO { get; }
Property Value
agreementAutofact
“Com acordo de Autofacturação.
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttGama(Gamas.Corporate)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool agreementAutofact { get; set; }
Property Value
altollocal
Allows to change the Bank on the document
Contains the indication if it is allowed to change the bank on the document.
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool altollocal { get; set; }
Property Value
Remarks
anexodocuments
Issues in Account P/R
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttProducts(new Products[] { Products.Documents })]
public bool anexodocuments { get; set; }
Property Value
Remarks
Allows the movement of the document be issued in Account P/R.
armazem
Armazém.
[AttLenght(5)]
[AttGama(Gamas.Corporate)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public int armazem { get; set; }
Property Value
Remarks
Length 5.
assetacquisition
This serie is for Asset acquisition
[AttProducts(new Products[] { Products.Assets })]
[AttEntityAvailable(typeof(AssetVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool assetacquisition { get; set; }
Property Value
autofact
Auto-invoicing
Defines that the purchase is an Auto-invoicing, the code must be configured as a sequential number and the type of document different to OT
[AttEntityAvailable(typeof(FoVO))]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttGama(Gamas.Corporate)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool autofact { get; set; }
Property Value
autofactuniqueid
[AttVirtualField(typeof(Cm1AttInfo))]
[AttLenght(5)]
public string autofactuniqueid { get; set; }
Property Value
cae
CAE
Contains o EAC (Economic Activity Code) the company. .
[AttLenght(5)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.NotEditLoop })]
public string cae { get; set; }
Property Value
Remarks
Length 5.
Non Duplicable Field.
cfintCode
Accounting integration config code
[AttLenght(25)]
[AttProducts(new Products[] { Products.Accounting })]
public string cfintCode { get; set; }
Property Value
cfintLabel
[AttVirtualField]
public string cfintLabel { get; set; }
Property Value
cm
Transaction Code
Contains the transaction code of account payable/receivable transactions.
[AttPrimaryKey]
[AttLenght(5)]
[AttMinValue(0)]
[AttMaxValue(99999)]
[AttLogInfo(0)]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttList]
public int cm { get; set; }
Property Value
Remarks
Length 5 .
This field is primary key.
cm1contadoLabelField
From Cm1Vo.labelField
[AttVirtualField]
[AttHidden]
public string cm1contadoLabelField { get; set; }
Property Value
cm1pocodigoLabelField
From Cm1Vo.labelField
[AttVirtualField]
[AttHidden]
public string cm1pocodigoLabelField { get; set; }
Property Value
cm1pocontadoLabelField
From Cm1Vo.labelField
[AttVirtualField]
[AttHidden]
public string cm1pocontadoLabelField { get; set; }
Property Value
cm1stamp
Stamp of account payable/receivable transactions code
Contains the unique key identifying the account payable/receivable transactions codes and is used as Foreign keys to other tables. .
[AttLenght(25)]
public string cm1stamp { get; set; }
Property Value
Remarks
Length 25.
This field is primary key.
cmdesc
Transaction Description
Contains the description of account payable/receivable transactions.
[AttLenght(25)]
[AttMandatory]
[AttLogInfo(1)]
[AttFieldType(AttFieldType.InputTypes.string)]
[AttList]
public string cmdesc { get; set; }
Property Value
Remarks
Length 20 .
Non Duplicable Field.
>compound
Uses Compounds
[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool compound { get; set; }
Property Value
contado
Bank Account Internal Number.
Contains the internal number of the movement's bank account.
[AttLenght(4)]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int contado { get; set; }
Property Value
Remarks
Length 4 .
debito
This is a debit transaction.
Contains an indication if it is a debit movement code.
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool debito { get; set; }
Property Value
defbl
Default payment account
Indicates this is the default payment account to be select when creating new payments.
[AttLenght(5)]
[AttEntityAvailable(typeof(PoVO))]
[AttEntityAvailable(typeof(BlVO))]
public int defbl { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
defoc
Default treasury code
Indicates the default treasury code to be selected when creating new payments.
[AttLenght(12)]
[AttEntityAvailable(typeof(PoVO))]
[AttEntityAvailable(typeof(OcVO))]
public string defoc { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
defpo
Default payment
Indicates this is the default payment form to be presented.
[AttEntityAvailable(typeof(PoVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool defpo { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
disableIntegration
[AttProducts(new Products[] { Products.Accounting })]
public bool disableIntegration { get; set; }
Property Value
docimport
Import series
[AttEntityAvailable(typeof(FoVO))]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT, languages.pt_AO })]
public bool docimport { get; set; }
Property Value
dupliSourceId
Obsolete after S#203607
[AttLenght(25)]
[AttHidden]
public string dupliSourceId { get; set; }
Property Value
estab
Número que identifica o Estabelecimento do Fornecedor.
[AttLenght(6)]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMinValue(0)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public int estab { get; set; }
Property Value
Remarks
Length 3.
flName
[AttLenght(100)]
[AttRGPDrank(RGPDranks.Legal)]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public string flName { get; set; }
Property Value
flgrupo
Banking Group for purchases
Contains the banking group for purchases.
[AttLenght(30)]
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(OcVO))]
public string flgrupo { get; set; }
Property Value
Remarks
Length 30 .
flsgrupo
Bank subgroup for purchases
Contains the bank subgroup for purchases.
[AttLenght(30)]
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(OcVO))]
public string flsgrupo { get; set; }
Property Value
Remarks
Length 30 .
flstamp
[AttVirtualField]
[AttHidden]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public string flstamp { get; set; }
Property Value
fno
[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttMinValue(0)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
public decimal fno { get; set; }
Property Value
folanfc
Post the purchase in account payable/receivable
Contains the indication is selected code post the purchase in account payable/receivable.
[AttEntityAvailable(typeof(FoVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool folanfc { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
folanol
Post the purchase in Banking
Contains the indication is selected code post the purchase in Banking.
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool folanol { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
folansl
Post the purchase in Stock
Contains the indication is selected code post the purchase in stock.
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(SlVO))]
[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public bool folansl { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
folansv
Post the purchase in Stock
Contains the indication is selected code post the purchase in stock.
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(SvVO))]
[AttFieldType(AttFieldType.InputTypes.boolean, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public bool folansv { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
fosl
Code to issue purchase stock
Contains the code to issue purchase stock.
[AttLenght(2)]
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(SlVO))]
[AttHidden(HiddenParameter = new string[] { "AllowStocks" }, HiddenParameterValue = new object[] { false })]
public int fosl { get; set; }
Property Value
Remarks
Length 2 .
This field is available in Business and Management products.
fosln
Description code to issue purchase stock
Contains a description code to issue purchase stock.
[AttLenght(80)]
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(SlVO))]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string fosln { get; set; }
Property Value
Remarks
Length 80 .
This field is available in Business and Management products.
fosv
Code to issue purchase stock
Contains the code to issue purchase stock.
[AttLenght(2)]
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(SvVO))]
public int fosv { get; set; }
Property Value
Remarks
Length 2 .
This field is available in Business and Management products.
fosvn
Description code to issue purchase stock
Contains a description code to issue purchase stock.
[AttLenght(80)]
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(SvVO))]
public string fosvn { get; set; }
Property Value
Remarks
Length 80 .
This field is available in Business and Management products.
gruaxname
[AttForeignKey(CanDuplicate = true, ForeignType = typeof(GruaxVO), HiddenField = false)]
[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string)]
[AttProducts(new Products[] { Products.Documents })]
public string gruaxname { get; set; }
Property Value
gruaxstamp
[AttForeignKey(CanDuplicate = true, ForeignType = typeof(GruaxVO), HiddenField = false)]
[AttLenght(25)]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttProducts(new Products[] { Products.Documents })]
public string gruaxstamp { get; set; }
Property Value
inactivo
Inactive
Indicates if the account transaction code is disabled.
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttList]
public bool inactivo { get; set; }
Property Value
isToAttachSepa
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttGama(Gamas.Advanced)]
[AttProducts(new Products[] { Products.Documents })]
public bool isToAttachSepa { get; set; }
Property Value
isToDigitallySign
Is to Digitally sign
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttProducts(new Products[] { Products.UBLESPAP2_1 })]
public bool isToDigitallySign { get; set; }
Property Value
isToUseMeasurements
Field to know if the CM1 is to use Measurements whem we will create FO
[AttFieldType(AttFieldType.InputTypes.boolean)]
[AttGama(Gamas.Advanced)]
public bool isToUseMeasurements { get; set; }
Property Value
ischreturncod
[AttEntityAvailable(typeof(ChReturnVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool ischreturncod { get; set; }
Property Value
isfo
Shows up in Purchases.
Indicates that this code appears on Purchases.
[AttEntityAvailable(typeof(FoVO))]
public bool isfo { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
ispo
Shows up in Payments.
Indication if the movement code appears in payments.
[AttEntityAvailable(typeof(PoVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool ispo { get; set; }
Property Value
ivacaixa
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_AO })]
public bool ivacaixa { get; set; }
Property Value
keepComponentOnPrint
Prints components
[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool keepComponentOnPrint { get; set; }
Property Value
keepCompoundOnCopy
Respects original compound in the copy
[AttEntityAvailable(typeof(ScVO))]
[AttHidden(HiddenParameter = new string[] { "c_composto" }, HiddenParameterValue = new object[] { false })]
public bool keepCompoundOnCopy { get; set; }
Property Value
labelField
[AttVirtualField(typeof(Cm1AttInfo))]
[AttLabelField(new string[] { "cm", "cmdesc", "debito" })]
public string labelField { get; set; }
Property Value
litem
Title of the first column
[AttLenght(12)]
[AttEntityAvailable(typeof(FoVO))]
public string litem { get; set; }
Property Value
litem2
Title of the second column
[AttLenght(12)]
[AttEntityAvailable(typeof(FoVO))]
public string litem2 { get; set; }
Property Value
movStockOnCopy
Issues in Stocks on copy
[AttVirtualField]
[AttGama(Gamas.Corporate)]
public bool movStockOnCopy { get; set; }
Property Value
nrseq
It is a purchase document with sequence numbering
Contains an indication if it is a purchase document with sequence numbering.
[AttEntityAvailable(typeof(FoVO))]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool nrseq { get; set; }
Property Value
ocLabelField
From OcVO.LabelField
[AttVirtualField]
[AttHidden]
public string ocLabelField { get; set; }
Property Value
olfl
Bank Classification
Contains the rating for suppliers of bank classification.
[AttLenght(12)]
[AttEntityAvailable(typeof(FoVO))]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string olfl { get; set; }
Property Value
Remarks
Length 12 .
ollocal
Bank Account
Contains a description of the movement's bank account.
[AttLenght(50)]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string ollocal { get; set; }
Property Value
Remarks
Length 50 .
poCmDesFinLabelField
From OcVO.LabelField
[AttVirtualField]
[AttHidden]
public string poCmDesFinLabelField { get; set; }
Property Value
poCmIrsLabelField
From OcVO.LabelField
[AttVirtualField]
[AttHidden]
public string poCmIrsLabelField { get; set; }
Property Value
pocmdesfin
Default account code for comercial discount registrations.
Indicates the default account code to be used when a discount is granted on a purchase.
[AttLenght(5)]
[AttEntityAvailable(typeof(PoVO))]
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttGama(Gamas.Advanced)]
public int pocmdesfin { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
pocmirs
Default account code for tax registrations.
Indicates the default account code to be used to insert tax related movements (IRS).
[AttLenght(5)]
[AttEntityAvailable(typeof(PoVO))]
[AttFieldType(AttFieldType.InputTypes.integer, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
[AttGama(Gamas.Advanced)]
public int pocmirs { get; set; }
Property Value
Remarks
This field is available in Business and Management products.
pocontado
[AttLenght(4)]
[AttEntityAvailable(typeof(PoVO))]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public int pocontado { get; set; }
Property Value
poolcodigo
Bank Classification
Contains the rating for suppliers of bank classification.
[AttLenght(12)]
[AttEntityAvailable(typeof(PoVO))]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(AttFieldType.InputTypes.string, new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.syncOnChange })]
public string poolcodigo { get; set; }
Property Value
Remarks
Length 12 .
poolcodigoVO
[AttExternalCollection(typeof(OcVO), new string[] { "po.olcodigo", "poolcodigo" })]
public OcVO poolcodigoVO { get; }
Property Value
poollocal
Bank Account
Contains a description of the movement's bank account.
[AttLenght(50)]
[AttEntityAvailable(typeof(PoVO))]
[AttEntityAvailable(typeof(BlVO))]
[AttFieldType(AttFieldType.InputTypes.string)]
public string poollocal { get; set; }
Property Value
Remarks
Length 50 .
regadvpayments
Regularizes advance payments
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.boolean)]
public bool regadvpayments { get; set; }
Property Value
signatureTypeDoc
Field to store what kind of signatura want to sign the document (PHC Certificate or AMA GOV APP)
[AttFieldType(AttFieldType.InputTypes.integer)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttProducts(new Products[] { Products.UBLESPAP2_1 })]
public SignatureTypeDoc signatureTypeDoc { get; set; }
Property Value
signatureTypeDocName
Name of signature type.
[AttLenght(50)]
[AttLocale(typeof(Cm1AttInfo), new string[] { "[Cm1].[signatureTypeDoc]" })]
public string signatureTypeDocName { get; set; }
Property Value
storageplace
Attachment type.
[AttLenght(1)]
[AttProducts(new Products[] { Products.Documents })]
public StoragePlace storageplace { get; set; }
Property Value
storageplacename
Name of attachment type.
[AttLenght(50)]
[AttLocale(typeof(Cm1AttInfo), new string[] { "[Cm1].[storageplace]" })]
[AttProducts(new Products[] { Products.Documents })]
public string storageplacename { get; set; }
Property Value
szLabelField
Nome Armazem
[AttVirtualField]
[AttEntityAvailable(typeof(SaVO))]
public string szLabelField { get; set; }
Property Value
tabaxVO
[AttExternalCollection(typeof(TabaxVO))]
public TabaxVO tabaxVO { get; }
Property Value
tiposaft
[AttLenght(2)]
[AttMandatory]
[AttGama(Gamas.Corporate)]
[AttFieldType(AttFieldType.InputTypes.string)]
public string tiposaft { get; set; }
Property Value
tiposaftATInvoice
[AttLenght(2)]
[AttCountryDepending(CountryDependingType.E1, new languages[] { languages.pt_PT })]
[AttGama(Gamas.Advanced)]
[AttFieldType(AttFieldType.InputTypes.string)]
public string tiposaftATInvoice { get; set; }
Property Value
uni3
Units on Lines
public bool uni3 { get; set; }
Property Value
useserialnumber
Use stocks transactions
[AttEntityAvailable(typeof(MaVO))]
[AttHidden(HiddenParameter = new string[] { "useSerialNumber" }, HiddenParameterValue = new object[] { false })]
public bool useserialnumber { get; set; }
Property Value
Methods
GetSeriesName()
public override string GetSeriesName()
Returns
GetSeriesValue()
public override decimal GetSeriesValue()
Returns
GetTipoSaft()
public override string GetTipoSaft()