Class SpecializationVO
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
[AttTable("specialization", 20220518)]
[AttTableVOInfo(typeof(SpecializationAttInfo))]
[AttTableGama(Gamas.Advanced)]
[AttTableProducts(new Products[] { Products.Accounting })]
[AttTableFlags(new TableFlags[] { TableFlags.TableForJorge, TableFlags.UseDimensions })]
[AttTableOrderBy("[specialization].[specializationnumber]")]
public class SpecializationVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IGenericVO, IParent<AccDefVO>, IParent
- Inheritance
-
SpecializationVO
Properties
DoVO
[AttExternalCollection(typeof(DoVO), new string[] { "[Do].[docarchivalnumber]", "[specialization.[docarchivalnumber]", "[Do].[year]", "[specialization].[year]" })]
public DoVO DoVO { get; }
Property Value
IsLockedByGeneralLedger
If depreciation is linked to general ledger (DoVO) done or draft
public bool IsLockedByGeneralLedger { get; }
Property Value
accdefdescription
[AttVirtualField(AttInfoType = typeof(SpecializationAttInfo))]
[AttLenght(60)]
public string accdefdescription { get; set; }
Property Value
accdefstamp
Connects to accdefstamp that contains this line.
[AttForeignKey(typeof(AccDefVO))]
[AttLenght(25)]
[AttIndex]
public string accdefstamp { get; set; }
Property Value
accdeftype
[AttVirtualField]
public AccDefType accdeftype { get; set; }
Property Value
accdeftypedescription
[AttVirtualField]
public string accdeftypedescription { get; set; }
Property Value
accdefvalue
Accrual/Deferral Value
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
[AttMinValue(0)]
public decimal accdefvalue { get; set; }
Property Value
accountid
[AttVirtualField]
public string accountid { get; set; }
Property Value
accruedtype
[AttVirtualField]
[AttLenght(1)]
public int accruedtype { get; }
Property Value
accumspec
Accumulated specialization.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal accumspec { get; set; }
Property Value
dostamp
[AttVirtualField]
[AttHidden]
public string dostamp { get; set; }
Property Value
forspec
For specializing
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal forspec { get; set; }
Property Value
market
Market.
[AttVirtualField]
[AttLenght(1)]
public int market { get; }
Property Value
specializationnumber
Specialization Number
[AttLenght(4)]
public int specializationnumber { get; set; }
Property Value
specializationperiod
Specialization month
[AttLenght(2)]
public int specializationperiod { get; set; }
Property Value
specializationstamp
Specialization Stamp
[AttLenght(25)]
public string specializationstamp { get; set; }
Property Value
specializationyear
Specialization Year
[AttLenght(4)]
public int specializationyear { get; set; }
Property Value
specvalue
Specialization.
[AttLenght(19, 6)]
[AttFieldType(AttFieldType.InputTypes.currency)]
public decimal specvalue { get; set; }
Property Value
supplytype
[AttVirtualField]
[AttLenght(1)]
[AttDynamicIntegrationValue(typeof(SupplyTypeVO))]
public string supplytype { get; }
Property Value
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
GetParent(string)
GenericVO GetParent(string rowStamp)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
rowStamp |
string |
Returns
GetPendingIntegrationsCommands(int)
PHCCmdSql GetPendingIntegrationsCommands(int year = 0)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
year |
int |
Returns
GetRow(Type, string)
IAccountingIntegration GetRow(Type rowType, string rowStamp)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
rowType |
Type | |
rowStamp |
string |
Returns
HasAccountingIntegration()
Mostly used on document configurations It retrieves the permission to integrated document of a given nature
bool HasAccountingIntegration()
Returns
LogIntegrationErrors(List<MessageVO>)
Logs the accounting integration errors
void LogIntegrationErrors(List<MessageVO> errorMessages)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
errorMessages |
List<MessageVO> |
ParentVO
AccDefVO ParentVO { get; set; }
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
integrationErrors
Accounting integrations message errors
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttProducts(new Products[] { Products.Accounting })]
string integrationErrors { 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
specializationdate
DateTime specializationdate { get; set; }
Returns
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; }