[
https://issues.apache.org/jira/browse/OFBIZ-5916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14275925#comment-14275925 ]
Jacques Le Roux commented on OFBIZ-5916:
----------------------------------------
Yes, since the error reported in OFBIZ-5915 was only in R13.07 and I was using the trunk it's indeed unrelated.
I was able to bypass it with the patch below, but I'm unsure it does not hide something (did not review all code)
{code}
Index: applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy
===================================================================
--- applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy (revision 1651288)
+++ applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/WorkWithShipmentPlans.groovy (working copy)
@@ -59,7 +59,9 @@
if (issuance.cancelQuantity) {
qtyInShipment -= issuance.cancelQuantity;
}
- qtyIssuedInShipment.issuance.shipmentId = qtyInShipment;
+ if (qtyIssuedInShipment.issuance) {
+ qtyIssuedInShipment.issuance.shipmentId = qtyInShipment;
+ }
}
}
}
{code}
> 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)