WithMovement
Interface for entities that support inventory movements
Audience: Programmer
The WithMovement interface is implemented by entities that can participate in inventory movements, enabling tracking of stock transfers and changes.
Fields
movements
[Movement!]
List of associated movements
canMove
Boolean!
Whether movements are currently allowed
movementHistory
MovementConnection
Paginated movement history
Movement Types
Entities implementing WithMovement support:
Item Movements - Individual item transfers
Collection Movements - Batch transfers
Repository Movements - Location-to-location transfers
Implementing Types
InventoryItem
InventoryCollection
Repository
PickingOrderItem
ReceivingInboundItem
Usage
Movement Lifecycle
Created - Movement planned
Validated - Business rules checked
Executed - Stock transferred
Completed - Movement finalized
Validation Rules
Movements are validated for:
Sufficient stock availability
Repository permissions
Business rule constraints
Workflow approvals
Best Practices
Check
canMovebefore creating movementsUse transactions for multi-item movements
Track movement reasons with metadata
Implement audit trails
Consider movement reversals
See Also
ItemMovement Type - Individual movements
CollectionMovement Type - Batch movements
RepositoryMovement Type - Location transfers
Last updated
Was this helpful?
