Interface UniqueInventory<T extends UniqueInventoryItem>

All Superinterfaces:
CrudRepository<T,​InventoryItemIdentifier>, Inventory<T>, Repository<T,​InventoryItemIdentifier>, SalespointRepository<T,​InventoryItemIdentifier>

public interface UniqueInventory<T extends UniqueInventoryItem>
extends Inventory<T>, SalespointRepository<T,​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:
MultiInventoryItem