| java.lang.Object org.ofbiz.manufacturing.jobshopmgt.ProductionRunServices
ProductionRunServices | public class ProductionRunServices (Code) | | Services for Production Run maintenance
author: Olivier Heintz version: $Revision: 1.2 $ since: 3.0 |
createProductionRun | public static Map createProductionRun(DispatchContext ctx, Map context)(Code) | | Creates a Production Run.
- check if routing - product link exist
- check if product have a Bill Of Material
- check if routing have routingTask
- create the workEffort for ProductionRun
- for each valid routingTask of the routing create a workeffort-task
- for the first routingTask, create for all the valid productIdTo with no associateRoutingTask a WorkEffortGoodStandard
- for each valid routingTask of the routing and valid productIdTo associate with this RoutingTask create a WorkEffortGoodStandard
Parameters: ctx - The DispatchContext that this service is operating in. Parameters: context - Map containing the input parameters, productId, routingId, pRQuantity, startDate, workEffortName, description Map with the result of the service, the output parameters. |
deleteProductionRun | public static Map deleteProductionRun(DispatchContext ctx, Map context)(Code) | | Deletes a ProductionRun.
Parameters: ctx - The DispatchContext that this service is operating in. Parameters: context - Map containing the input parameters. Map with the result of the service, the output parameters. |
|
|