MGCLatticeGeneralLedgerJournalService
Custom service for general ledger journal operations: posting general and intercompany journal entries (lines with main, customer, vendor and bank accounts), the journal status query, and reversing a posted journal with the standard transaction reversal.
Methods
new
Initializes a new instance of the MGCLatticeGeneralLedgerJournalService class.
- Visibility:
public - Returns:
void
No parameters.
construct
Creates a new instance of the MGCLatticeGeneralLedgerJournalService class.
- Visibility:
public - Returns:
MGCLatticeGeneralLedgerJournalServiceA new MGCLatticeGeneralLedgerJournalService instance.
No parameters.
postGeneralJournal
Creates and posts a general journal (a journal name of type Daily - the type the general journal page and the accounts receivable Invoice journal page both use) and returns the journal number in DocumentId and PostedDocumentId.
- Visibility:
public - Returns:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract indicating success or failure with details.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeGeneralJournalPostRequestContract | No | The request containing JournalNameId, journal lines, ExternalSystem and the standard header fields. |
postIntercompanyJournal
Posts an intercompany general ledger journal entry with cross-company offset support. Each line may specify an OffsetCompany to post the offset side in a different legal entity.
- Visibility:
public - Returns:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract indicating success or failure with details.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeGeneralJournalPostRequestContract | No | The request containing JournalNameId, journal lines with optional OffsetCompany, and standard header fields. |
getJournalStatus
Queries the current status of a general ledger journal including posted state and line count.
- Visibility:
public - Returns:
MGCLatticeStatusQueryResponseContractAn MGCLatticeStatusQueryResponseContract with the journal status and detail information.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeStatusQueryRequestContract | No | The request containing DocumentId (JournalNum) and standard header fields. |
postGeneralJournalBatch
Posts multiple general ledger journals in a single bulk operation.
- Visibility:
public - Returns:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List of MGCLatticeGeneralJournalPostRequestContract. |
postIntercompanyJournalBatch
Posts multiple intercompany journals in a single bulk operation.
- Visibility:
public - Returns:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List of MGCLatticeGeneralJournalPostRequestContract. |
reverseJournal
Reverses a posted ledger journal - every voucher, or the one Voucher names - the way the posted journal's Reverse does: each voucher is reversed by the standard engine the transaction reversal providers choose for it (general ledger only: TransactionReversal_Ledger; a customer or vendor transaction: TransactionReversal_Cust / TransactionReversal_Vend; a customer payment posted to a bank account: BankPaymCancel). Every voucher is reversed in one transaction, so either all are reversed or, when one fails, none is.
- Visibility:
public - Returns:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract: DocumentId is the reversed journal, PostedDocumentId the reversal voucher of its first voucher, and the message lists every reversal voucher.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeJournalReversalRequestContract | No | The request containing JournalNum (or JournalNumExternalKey, or a Voucher of the journal), the optional Voucher, ReversalDate, ReasonCode and ReasonComment, and the standard header fields. |
reverseJournalBatch
Reverses several posted journals (or journal vouchers) in a single bulk operation; each item runs as a single reverseJournal and gets its own result.
- Visibility:
public - Returns:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List of MGCLatticeJournalReversalRequestContract. |