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:
MGCLatticeJournalPostingServiceA 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:
UserIdThe submitting user; empty for a direct call.
| Name | Type | Optional | Description |
|---|---|---|---|
_submittedBy | UserId | Yes | The 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:
booleantrue when the user holds a privilege that grants the operation; otherwise, false.
| Name | Type | Optional | Description |
|---|---|---|---|
_serviceName | str | No | The service (AxService name). |
_operationName | str | No | The operation. |
_userId | UserId | No | The 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:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract: DocumentId is the journal, PostedDocumentId its first voucher in voucher order, and the message counts and lists the vouchers.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeLedgerJournalPostingRequestContract | No | The 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:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal; for a tag counting journal the message names the counting journal the posting created.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeJournalPostingRequestContract | No | The 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:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeJournalPostingRequestContract | No | The 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:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeJournalPostingRequestContract | No | The 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:
MGCLatticeOrderOperationResponseContractAn MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the journal.
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeTradeAgreementJournalPostingRequestContract | No | The 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:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List 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:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List 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:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List 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:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List 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:
MGCLatticeBulkOperationResponseContractAn MGCLatticeBulkOperationResponseContract containing per-item results.
| Name | Type | Optional | Description |
|---|---|---|---|
_requests | List | No | List of MGCLatticeTradeAgreementJournalPostingRequestContract. |