Yashwant Dhakad created OFBIZ-13226:
---------------------------------------

             Summary: 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
         Attachments: AddMaterialToProductionRun.png

*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