[ https://issues.apache.org/jira/browse/OFBIZ-7110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338268#comment-15338268 ]
Divesh Dutta commented on OFBIZ-7110: ------------------------------------- [~anuj.jain] logic of calculating returned items does not seems correct to me. You are fetching first record inventoryItemDetail table and taking quantityOnHandDiff as returned quantity. I think this is absolutely wrong. There must be some better way to find returned item. > The Actual Material Cost is not accounting for cost of returned items against > the issued items for production run tasks > ----------------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-7110 > URL: https://issues.apache.org/jira/browse/OFBIZ-7110 > Project: OFBiz > Issue Type: New Feature > Components: manufacturing > Affects Versions: Release Branch 14.12, 14.12.01, Release Branch 15.12, > 15.12.01 > Reporter: Swapnil Shah > Assignee: Divesh Dutta > Attachments: MatCost_1.png, Matcost_2.png, OFBIZ-7110.patch > > > As of now the 'Actual Material Cost' over Actual Cost tab for any production > run just shown as weighted sums up of the issued inventory's cost. > We could allow it to account for returned items as well by deducting weighted > sum of returned inventory's cost from the weighted sum of issued inventory's > cost. > Please refer to attached screenshot for more details -- This message was sent by Atlassian JIRA (v6.3.4#6332)