[ 
https://issues.apache.org/jira/browse/OFBIZ-5916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14273167#comment-14273167
 ] 

Christian Carlow commented on OFBIZ-5916:
-----------------------------------------

Hey Jacques,

For production runs to be created, the scheduled product must have assembly 
elements and routes associated with them (productAssocTypeId=MANUF_COMPONENT).  
I'm not sure if any demo data is already setup.  I just created product "test" 
and element "test_1" and associated them to their corresponding routes as 
product links.  Then I created an order for product "test" and a shipment and 
planned a quantity.

I'm wondering if another JIRA should be created to hide any schedules for which 
production runs cannot be created because they do not have assembly elements or 
route associated so that users aren''t left confused when clicking the 
"Generate Production Runs" and nothing happens.  I'm not sure if other 
functionality is supported requiring those schedules for products without 
routes and assembly elements to still appear in the list.

The "Cannot set property 'shipmentId' on null object" error you received after 
issuing does seem related OFBIZ-5915 but that issue was actually created to 
resolve a "java.util.LinkedHashMap cannot be cast to java.lang.String" error 
caused by a call to delegator.findByAnd with invalid number of parameters in 
the same file WorkWithShipmentPlans.groovy.



> Cutting List Report from Manufacturing Shipment Plans throws error due to due 
> to missing EntityCondition import
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5916
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5916
>             Project: OFBiz
>          Issue Type: Bug
>          Components: manufacturing
>    Affects Versions: Trunk
>            Reporter: Christian Carlow
>            Priority: Minor
>         Attachments: OFBIZ-5916.patch
>
>
> This error occurs when clicking the "Cutting List Report" button from the 
> Manufacturing -> Shipment Plans page once a production run has been created 
> for a planned shipment:
> Error running script at location 
> [component://manufacturing/webapp/manufacturing/WEB-INF/actions/reports/ShipmentWorkEffortTasks.groovy]:
>  groovy.lang.MissingPropertyException: No such property: records for class: 
> ShipmentWorkEffortTasks
> To reproduce:
> 1.  Create a shipment with status Schedued and a planned item
> 2.  Navigate to Manufacturing -> Shipment Plans and click "Create Production 
> Runs" for the shipment
> 3.  Click the "Cutting List Report" button that appears once Production Runs 
> have been created



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to