Skip to main content

MGCLatticeJournalPostingService

Custom service for posting journals that already exist in the legal entity - entered on a journal page, imported through data management or created through the standard journal entities - with the standard posting the journal page's Post runs: ledger journals (LedgerJournalPost / LedgerJournalCheckPost), inventory journals (InventJournalCheckPost), project hour and fee journals (ProjJournalCheckPost), production journals (ProdJournalCheckPostBOM, ProdJournalCheckPostRoute, ProdJournalCheckPostRouteJob, ProdJournalCheckPostProd) and trade agreement journals (PriceDiscAdmCheckPost).

Methods​

new​

Initializes a new instance of the MGCLatticeJournalPostingService class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeJournalPostingService class.

  • Visibility: public
  • Returns: MGCLatticeJournalPostingService A new MGCLatticeJournalPostingService instance.

No parameters.

parmSubmittedBy​

Gets or sets the user who submitted an async request; the delegated rights are checked for this user instead of the current user. The async handler sets it; a direct call leaves it empty.

  • Visibility: public
  • Returns: UserId The submitting user; empty for a direct call.
NameTypeOptionalDescription
_submittedByUserIdYesThe submitting user.

hasDelegatedAccess​

Determines whether a user may invoke the Lattice operation that posts the journal's type: the check the platform applies before it invokes that operation through its service endpoint (MGCLatticeAsyncOperationService::hasTargetOperationAccess). Separate only so a test can stand in for it.

  • Visibility: protected
  • Returns: boolean true when the user holds a privilege that grants the operation; otherwise, false.
NameTypeOptionalDescription
_serviceNamestrNoThe service (AxService name).
_operationNamestrNoThe operation.
_userIdUserIdNoThe caller: the submitter of an async request, otherwise the current user.

postLedgerJournal​

Posts a ledger journal that already exists in the legal entity - a general journal, a customer or vendor payment journal, an invoice register, a vendor invoice journal, an invoice approval journal, a project expense journal or a fixed asset journal - with the standard posting of the journal page's Post (LedgerJournalPost, see postLedger), in one transaction: the journal posts completely or stays as it was.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId is the journal, PostedDocumentId its first voucher in voucher order, and the message counts and lists the vouchers.
NameTypeOptionalDescription
_requestMGCLatticeLedgerJournalPostingRequestContractNoThe request: JournalNum (or JournalNumExternalKey with ExternalSystem) and the standard header fields.

postInventoryJournal​

Posts an inventory journal that already exists in the legal entity - movement, profit/loss, counting, transfer, BOM, tag counting, ownership change, project item or fixed asset journal - with the standard inventory journal posting (InventJournalCheckPost, see postInventory), in one transaction.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal; for a tag counting journal the message names the counting journal the posting created.
NameTypeOptionalDescription
_requestMGCLatticeJournalPostingRequestContractNoThe request: JournalId and the standard header fields.

postProjectJournal​

Posts a project hour or fee journal that already exists in the legal entity with the standard project journal posting (ProjJournalCheckPost, see postProject), in one transaction.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal.
NameTypeOptionalDescription
_requestMGCLatticeJournalPostingRequestContractNoThe request: JournalId and the standard header fields.

postProductionJournal​

Posts a production journal that already exists in the legal entity - picking list, route card, job card or report as finished journal - with the standard production journal posting (see postProduction), in one transaction.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal.
NameTypeOptionalDescription
_requestMGCLatticeJournalPostingRequestContractNoThe request: JournalId and the standard header fields.

postTradeAgreementJournal​

Posts a trade agreement journal (sales or purchase prices and discounts) that already exists in the legal entity with the standard trade agreement journal posting (PriceDiscAdmCheckPost, see postTradeAgreement), in one transaction: the journal's lines become the trade agreements the pricing reads.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal.
NameTypeOptionalDescription
_requestMGCLatticeTradeAgreementJournalPostingRequestContractNoThe request: JournalNum and the standard header fields.

postLedgerJournalBatch​

Posts several existing ledger journals in a single bulk operation; each item runs as one postLedgerJournal with its own result.

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

postInventoryJournalBatch​

Posts several existing inventory journals in a single bulk operation; each item runs as one postInventoryJournal with its own result.

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

postProjectJournalBatch​

Posts several existing project hour or fee journals in a single bulk operation; each item runs as one postProjectJournal with its own result.

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

postProductionJournalBatch​

Posts several existing production journals in a single bulk operation; each item runs as one postProductionJournal with its own result.

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

postTradeAgreementJournalBatch​

Posts several existing trade agreement journals in a single bulk operation; each item runs as one postTradeAgreementJournal with its own result.

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