Skip to main content

MGCLatticeInventoryJournalPostingService.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.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeInventoryServiceGroup/MGCLatticeInventoryJournalPostingService/postOwnershipChangeJournal
  • Service class: MGCLatticeInventoryJournalPostingService

Parameters​

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.

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.

Security​

  • Requires privilege MGCLatticeInventoryServiceMaintain