Skip to main content

MGCLatticeInventoryJournalPostingService

Custom service for inventory journal posting operations: movement, adjustment, counting, transfer, BOM, tag counting and consignment ownership change journals. Each operation creates and posts one journal and returns its number as DocumentId. PostedDocumentId is the same journal for the movement, adjustment, counting, transfer and BOM journals, the counting journal a tag counting journal creates, and the purchase order an ownership change creates. A journal an operation created and could not post is deleted again. No operation of this service has a preview: PreviewMode set is refused.

Methods​

new​

Initializes a new instance of the MGCLatticeInventoryJournalPostingService class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeInventoryJournalPostingService class.

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

No parameters.

countingAdjustmentQty​

Returns the quantity a counting journal line posts: the counted quantity minus the on-hand quantity at the transaction date - the formula of InventMov_Journal.journalSetCounted.

  • Visibility: public
  • Returns: InventQty The adjustment quantity; negative when less was counted than is on hand.
NameTypeOptionalDescription
_countedQtyInventQtyNoThe counted quantity.
_onHandQtyInventQtyNoThe on-hand quantity at the transaction date.

postMovementJournal​

Posts an inventory movement journal.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract indicating success or failure with details.
NameTypeOptionalDescription
_requestMGCLatticeInventJournalPostRequestContractNoThe request containing JournalNameId, journal lines, and standard header fields.

postAdjustmentJournal​

Posts an inventory profit/loss adjustment journal.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract indicating success or failure with details.
NameTypeOptionalDescription
_requestMGCLatticeInventJournalPostRequestContractNoThe request containing JournalNameId, journal lines, and standard header fields.

postCountingJournal​

Posts an inventory counting journal. Each line's Qty is the COUNTED quantity; the line posts the difference to the on-hand quantity at the posting date, as the counting journal form does.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract indicating success or failure with details.
NameTypeOptionalDescription
_requestMGCLatticeInventJournalPostRequestContractNoThe request containing JournalNameId, journal lines, and standard header fields.

postTransferJournal​

Posts an inventory transfer journal for warehouse-to-warehouse item movements.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract indicating success or failure with details.
NameTypeOptionalDescription
_requestMGCLatticeInventJournalPostRequestContractNoThe request containing JournalNameId, journal lines with ToInventDimId, and standard header fields.

postMovementJournalBatch​

Posts multiple inventory movement journals in a single bulk operation.

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

postAdjustmentJournalBatch​

Posts multiple inventory adjustment journals in a single bulk operation.

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

postCountingJournalBatch​

Posts multiple inventory counting journals in a single bulk operation.

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

postTransferJournalBatch​

Posts multiple inventory transfer journals in a single bulk operation.

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

postBOMJournal​

Posts a BOM journal: each line reports a BOM item as finished and consumes its BOM's components outside production, as the BOM journal's Report as finished followed by Post does (BOMReportFinish, then InventJournalCheckPost). The journal and its lines are created and committed first, then posted; success is reported only when the journal is marked posted. A journal that could not be posted is deleted again.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId and PostedDocumentId are the posted BOM journal; the message counts its item lines and component lines.
NameTypeOptionalDescription
_requestMGCLatticeInventBOMJournalPostRequestContractNoThe request: JournalNameId (optional; default: the BOM journal name of the inventory parameters), Description, PostingDate, and lines with ItemId, Qty, the receipt dimensions (InventDimId and/or SiteId, WarehouseId; the item's defaults fill the rest) and an optional BOMId.

postBOMJournalBatch​

Posts several BOM journals in a single bulk operation; each item runs as one postBOMJournal.

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

isTagWithoutItem​

Returns whether a tag status is the status of a tag that counted no item: voided or missing. Any other status (Used, or 0 when the caller sent none) is a tag that counted an item.

  • Visibility: public
  • Returns: boolean true for a voided or missing tag.
NameTypeOptionalDescription
_tagStatusInventJournalTagStatusNoThe tag status.

postTagCountingJournal​

Posts a tag counting journal. In the standard, posting the tags (InventJournalCheckPost_Tag) does not change on-hand: it creates a counting journal (the default counting journal name of the inventory parameters) with one line per item and dimensions, counted = the sum of the used tags, and leaves it open for review. This operation does the same and returns that counting journal; with PostCountingJournal it also posts the counting journal, which adjusts on-hand to the counted quantities. The tag posting and the counting journal posting run in one transaction: either both succeed or neither is posted. A tag journal that could not be posted is deleted again.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId is the posted tag counting journal, PostedDocumentId the counting journal it created (empty when no tag counted an item).
NameTypeOptionalDescription
_requestMGCLatticeInventTagJournalPostRequestContractNoThe request: JournalNameId (optional; default: the tag counting journal name of the inventory parameters), Description, PostingDate (the counting date), PostCountingJournal, and the tags (TagNumber, TagStatus, and for a used tag ItemId, Qty and the dimensions).

postTagCountingJournalBatch​

Posts several tag counting journals in a single bulk operation; each item runs as one postTagCountingJournal.

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

postOwnershipChangeJournal​

Posts a consignment inventory ownership change journal: vendor-owned stock becomes the legal entity's own. The standard posting (InventJournalCheckPost_Movement_OwnershipChange) moves the quantity from the vendor's owner to the legal entity's owner without a financial impact, and creates, confirms and receives a purchase order per vendor for it, which the vendor then invoices. The journal and its lines are created and committed first, then posted; success is reported only when the journal is marked posted. A journal that could not be posted is deleted again.

  • Visibility: public
  • Returns: MGCLatticeOrderOperationResponseContract An MGCLatticeOrderOperationResponseContract: DocumentId is the posted ownership change journal, PostedDocumentId the (first) purchase order the posting created; the message lists every purchase order.
NameTypeOptionalDescription
_requestMGCLatticeInventOwnershipJournalPostRequestContractNoThe request: JournalNameId (optional; default: the ownership change journal name of the inventory parameters), Description, PostingDate, and lines with ItemId, Qty, VendAccount (the current owner) and the dimensions of the vendor-owned stock.

postOwnershipChangeJournalBatch​

Posts several ownership change journals in a single bulk operation; each item runs as one postOwnershipChangeJournal.

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