Class InventoryEventPlannedServices
java.lang.Object
org.apache.ofbiz.manufacturing.mrp.InventoryEventPlannedServices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateMrpEvent
(DispatchContext ctx, Map<String, ? extends Object> context) Create an MrpEvent.static void
createOrUpdateMrpEvent
(Map<String, Object> mrpEventKeyMap, BigDecimal newQuantity, String facilityId, String eventName, boolean isLate, Delegator delegator)
-
Constructor Details
-
InventoryEventPlannedServices
public InventoryEventPlannedServices()
-
-
Method Details
-
createMrpEvent
public static Map<String,Object> createMrpEvent(DispatchContext ctx, Map<String, ? extends Object> context) Create an MrpEvent. Make an update if a record exist with same key, (adding the event quantity to the exiting record)- Parameters:
ctx
- the dispatch contextcontext
- a map containing the parameters used to create an MrpEvent- Returns:
- result a map with service status
-
createOrUpdateMrpEvent
public static void createOrUpdateMrpEvent(Map<String, Object> mrpEventKeyMap, BigDecimal newQuantity, String facilityId, String eventName, boolean isLate, Delegator delegator) throws GenericEntityException- Throws:
GenericEntityException
-