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

Jacopo Cappellato commented on OFBIZ-13243:
-------------------------------------------

I have tested the issue reported in this ticket and I can confirm it.

To reproduce the issue:
 # create a production run for 1 unit of the demo product PROD_MANUF
 # start the production run
 # issue all materials
 # return, e.g., one unit of MAT_B_COST
 # complete the task and the production run, by declaring the finished product
 # visit the "Actual Materials" and the "Actual costs" tabs.

The following screenshots illustrate the result of the above steps.

!image-2025-06-19-08-42-09-610.png|width=325,height=281!

!image-2025-06-19-08-42-46-955.png|width=408,height=114!!image-2025-06-19-08-43-10-543.png|width=706,height=102!

> Fix Production Run cost calculation logic to exclude returned items from 
> material cost calculations
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13243
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13243
>             Project: OFBiz
>          Issue Type: Bug
>          Components: manufacturing
>    Affects Versions: Upcoming Branch
>            Reporter: Yashwant Dhakad
>            Priority: Minor
>         Attachments: image-2025-06-19-08-42-09-610.png, 
> image-2025-06-19-08-42-46-955.png, image-2025-06-19-08-43-10-543.png
>
>
> In the Manufacturing module, while executing the production run, during final 
> material consolidation and cost calculation, the leftover/unused inventory 
> items that are returned, are reflected with negative quantities and are 
> incorrectly included in the final used material list, resulting in inflated 
> material costs and discrepancies in financial reports, causing the reported 
> production costs to be inaccurate.
> The issue occurs specifically in the cost calculation logic used in the 
> Production Run's "Actual Costs" section and affects related cost reports and 
> screens within the manufacturing module. Because of this, the financial data 
> does not correctly reflect the actual consumption of materials, leading to 
> potential errors in operational and strategic decision-making.



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

Reply via email to