Interface IAccountingIntegration
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
Documents integrated in accounting should implement this interface in order to retain info about accounting movements [DO]
public interface IAccountingIntegration
Properties
ADate
Acconting Date
DateTime ADate { get; set; }
Property Value
Accounted
Mark document as accounted
bool Accounted { get; set; }
Property Value
DocArchivalNumber
ID: Journal + Period + DocNumber
string DocArchivalNumber { get; set; }
Property Value
DocumentDescription
Label of the accounting document (DC)
string DocumentDescription { get; set; }
Property Value
DocumentId
Id of the accounting document (DC)
decimal DocumentId { get; set; }
Property Value
IntegrationErrors
Reported messages from accounting integration process
string IntegrationErrors { get; set; }
Property Value
IsAccounting
Is true if the document is in integrating process
bool IsAccounting { get; set; }
Property Value
JournalDescription
Journal label (DI).
string JournalDescription { get; set; }
Property Value
JournalId
Journal code (DI).
decimal JournalId { get; set; }
Property Value
Row
BusinessVO Row { get; }
Property Value
Year
Year of Integration (PCY).
int Year { get; set; }
Property Value
Methods
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
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> |