Skip to main content

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: MGCLatticeGeneralLedgerJournalService A 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: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract indicating success or failure with details.
NameTypeOptionalDescription
_requestMGCLatticeGeneralJournalPostRequestContractNoThe 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: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract indicating success or failure with details.
NameTypeOptionalDescription
_requestMGCLatticeGeneralJournalPostRequestContractNoThe 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: MGCLatticeStatusQueryResponseContract An MGCLatticeStatusQueryResponseContract with the journal status and detail information.
NameTypeOptionalDescription
_requestMGCLatticeStatusQueryRequestContractNoThe request containing DocumentId (JournalNum) and standard header fields.

postGeneralJournalBatch​

Posts multiple general ledger journals in a single bulk operation.

  • Visibility: public
  • Returns: MGCLatticeBulkOperationResponseContract An MGCLatticeBulkOperationResponseContract containing per-item results.
NameTypeOptionalDescription
_requestsListNoList of MGCLatticeGeneralJournalPostRequestContract.

postIntercompanyJournalBatch​

Posts multiple intercompany journals in a single bulk operation.

  • Visibility: public
  • Returns: MGCLatticeBulkOperationResponseContract An MGCLatticeBulkOperationResponseContract containing per-item results.
NameTypeOptionalDescription
_requestsListNoList 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: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId is the reversed journal, PostedDocumentId the reversal voucher of its first voucher, and the message lists every reversal voucher.
NameTypeOptionalDescription
_requestMGCLatticeJournalReversalRequestContractNoThe 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: MGCLatticeBulkOperationResponseContract An MGCLatticeBulkOperationResponseContract containing per-item results.
NameTypeOptionalDescription
_requestsListNoList of MGCLatticeJournalReversalRequestContract.