MGCLatticePurchaseOrderPostingService.cancelPurchaseProductReceipt
Cancels a posted product receipt the way Purchase order > Product receipt journal > Cancel does: the standard product receipt posting runs as a cancellation (PurchFormLetter_PackingSlip with the versioning update type Cancel, as the PurchFormLetter_PackingSlipCancel action and Microsoft's test library run it), which reverses the receipt, its inventory and its ledger postings and adds a version with zero quantities to the receipt. The request names the purchase order (or its external key) and optionally the product receipt; without one, the order's only product receipt that can be canceled is canceled.
- HTTP method:
POST - Route:
/api/services/MGCLatticeAccountsPayableServiceGroup/MGCLatticePurchaseOrderPostingService/cancelPurchaseProductReceipt - Service class:
MGCLatticePurchaseOrderPostingService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticePurchaseProductReceiptCancelRequestContract | No | The request containing PurchaseOrderId (or PurchaseOrderIdExternalKey), optional ProductReceiptId, and standard header fields. |
Returns
MGCLatticeOrderOperationResponseContract
An MGCLatticeOrderOperationResponseContract: DocumentId is the purchase order and PostedDocumentId the canceled product receipt number.
Security
- Requires privilege
MGCLatticeAccountsPayableProductReceiptCancelMaintain