Skip to main content

system.mes.inventory.operation.stopInventoryOperation

Description

Stops an Inventory Operations object.

Syntax

system.mes.inventory.operation.stopInventoryOperation(inventoryOperationId, quantity, inventoryName, endDate)

Parameters

ParameterTypeDescription
inventoryOperationIdString (ULID)The ID of the inventory operation to end.
quantityDoubleThe quantity that the inventory operation processed.
inventoryNameStringThe name of the inventory associated with the inventory operation.
endDateInstantThe end date of the inventory operation.

Returns

Returns a JSON object of the inventory lot record for the end of the inventory operation.

Example Usage

# Stop the inventory operation
stopped_lot_record = system.mes.inventory.operation.stopInventoryOperation('01JPAND53P-BZ61RZHZ-V7C6EEHG', 100, None, None)

# Output the inventory lot record of the stopped inventory operation
print(stopped_lot_record)