public interface InventoryEventService
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<AllocationEventModel> |
createAllocationEvents(ConsignmentModel consignment)
Persists the
AllocationEventModel to account for the changes in stock quantities. |
java.util.Collection<AllocationEventModel> |
createAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)
Create multiple
AllocationEventModel that are required to fulfill the ConsignmentEntryModel |
java.util.Collection<CancellationEventModel> |
createCancellationEvents(CancellationEventModel cancellationEventModel)
Create multiple
CancellationEventModel |
IncreaseEventModel |
createIncreaseEvent(IncreaseEventModel increaseEventModel)
Create an inventory increase event
|
ShrinkageEventModel |
createShrinkageEvent(ShrinkageEventModel shrinkageEventModel)
Create a shrinkage event.
|
WastageEventModel |
createWastageEvent(WastageEventModel wastageEventModel)
Create a wastage event.
|
java.util.Collection<AllocationEventModel> |
getAllocationEventsForConsignment(ConsignmentModel consignment)
Retrieves a collection of
AllocationEventModel for the given ConsignmentModel |
java.util.Collection<AllocationEventModel> |
getAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)
Retrieves a collection of
AllocationEventModel for a ConsignmentEntryModel |
java.util.Collection<AllocationEventModel> |
getAllocationEventsForOrderEntry(OrderEntryModel orderEntry)
Retrieves a collection of
AllocationEventModel for an OrderEntryModel |
java.util.Map<AllocationEventModel,java.lang.Long> |
getAllocationEventsForReallocation(java.util.Collection<AllocationEventModel> allocationEvents,
java.lang.Long quantityToDecline)
Extracts the
StockLevelModel of AllocationEventModel and sorts them by quantity. |
<T extends InventoryEventModel> |
getInventoryEventsForStockLevel(StockLevelModel stockLevel,
java.lang.Class<T> eventClassType)
Retrieves a collection of
InventoryEventModel for the StockLevelModel |
void |
reallocateAllocationEvent(DeclineEntry declineEntry,
java.lang.Long quantityToDecline)
Delete or update the allocation event which has been created for a specific entry to decline
|
java.util.Collection<AllocationEventModel> createAllocationEvents(ConsignmentModel consignment)
AllocationEventModel to account for the changes in stock quantities.consignment - the ConsignmentModel where stock was allocated; never nullAllocationEventModel; never nulljava.util.Collection<AllocationEventModel> createAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)
AllocationEventModel that are required to fulfill the ConsignmentEntryModelconsignmentEntry - the ConsignmentEntryModelAllocationEventModelShrinkageEventModel createShrinkageEvent(ShrinkageEventModel shrinkageEventModel)
shrinkageEventModel - the event containing information about the shrinkageWastageEventModel createWastageEvent(WastageEventModel wastageEventModel)
wastageEventModel - the event containing information about the wastagejava.util.Collection<CancellationEventModel> createCancellationEvents(CancellationEventModel cancellationEventModel)
CancellationEventModelcancellationEventModel - the event containing information about the cancelled consignment entryCancellationEventModeljava.util.Collection<AllocationEventModel> getAllocationEventsForConsignmentEntry(ConsignmentEntryModel consignmentEntry)
AllocationEventModel for a ConsignmentEntryModelconsignmentEntry - the ConsignmentEntryModel for which to retrieve the eventAllocationEventModel associated to the consignment entryjava.util.Collection<AllocationEventModel> getAllocationEventsForOrderEntry(OrderEntryModel orderEntry)
AllocationEventModel for an OrderEntryModelorderEntry - the OrderEntryModel for which to retrieve the eventsAllocationEventModel for the order entry<T extends InventoryEventModel> java.util.Collection<T> getInventoryEventsForStockLevel(StockLevelModel stockLevel, java.lang.Class<T> eventClassType)
InventoryEventModel for the StockLevelModelstockLevel - the StockLevelModel for which the events need to be extractedeventClassType - the class representing the type of inventory eventStockLevelModelIncreaseEventModel createIncreaseEvent(IncreaseEventModel increaseEventModel)
increaseEventModel - the IncreaseEventModel containing information about the increase event modelvoid reallocateAllocationEvent(DeclineEntry declineEntry, java.lang.Long quantityToDecline)
declineEntry - the DeclineEntry to decline/reallocatequantityToDecline - the quantity to decline/reallocatejava.util.Map<AllocationEventModel,java.lang.Long> getAllocationEventsForReallocation(java.util.Collection<AllocationEventModel> allocationEvents, java.lang.Long quantityToDecline)
StockLevelModel of AllocationEventModel and sorts them by quantity.
Tries to map quantity to a stock level for adjustementallocationEvents - collection of allocation eventsquantityToDecline - total quantity to be adjustedAllocationEventModel with the quantity to adjust for this stock leveljava.util.Collection<AllocationEventModel> getAllocationEventsForConsignment(ConsignmentModel consignment)
AllocationEventModel for the given ConsignmentModelconsignment - the ConsignmentModel for which all allocation events will be returnedAllocationEventModelCopyright © 2018 SAP SE. All Rights Reserved.