Interface UniqueInventory<T extends UniqueInventoryItem>

All Superinterfaces:
CrudRepository<T,InventoryItem.InventoryItemIdentifier>, Inventory<T>, PagingAndSortingRepository<T,InventoryItem.InventoryItemIdentifier>, Repository<T,InventoryItem.InventoryItemIdentifier>, SalespointRepository<T,InventoryItem.InventoryItemIdentifier>

public interface UniqueInventory<T extends UniqueInventoryItem> extends Inventory<T>, SalespointRepository<T,InventoryItem.InventoryItemIdentifier>
A UniqueInventory manages UniqueInventoryItems, i.e. only a single InventoryItem can exist per Product. This simplifies the lookup of the quantity available for a given Product to the lookup of a single UniqueInventoryItem.

Also, on Order completion, a UniqueInventoryItem can be updated and get its Quantity deducted based on the quantity of products ordered.

Since:
7.2
Author:
Oliver Drotbohm
See Also: