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

Yashwant Dhakad commented on OFBIZ-13226:
-----------------------------------------

Hi [~nmalin],

I tested your changes, and they are working fine.

> Error When Adding Actual Material After Confirming Production Run in OFBiz
> --------------------------------------------------------------------------
>
>                 Key: OFBIZ-13226
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13226
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Upcoming Branch
>            Reporter: Yashwant Dhakad
>            Assignee: Nicolas Malin
>            Priority: Major
>         Attachments: AddMaterialToProductionRun.png, OFBIZ-13226.patch
>
>
> *Issue Description:*
> When attempting to add an actual material entry to a confirmed Production 
> Run, OFBiz throws the following error message:
> {code}
> The Following Errors Occurred:
> Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: 
> Service invocation error (Cannot get property 'productId' on null object)
> {code}
> This appears to happen only after the production run status has been set to 
> 'Confirmed', and then the user attempts to add materials under Actual 
> Materials for a routing task.
> *Steps to Reproduce:*
> Navigate to Manufacturing → Job Shop.
> Select a Production Run and confirm its status.
> Go to Actual Materials tab.
> Select a Task ID and provide a valid Product ID and Quantity.
> Click Add.
> *Expected Result:*
> The material should be successfully added to the selected production run task 
> without any errors.
> *Actual Result:*
> An error is displayed at the top of the screen, and the material is not added.
> The error message suggests a null object reference where the code attempts to 
> access the productId property.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to