Editing production run qty doesn't recalculate component qtys correctly
----------------------------------------------------------------------- Key: OFBIZ-325 URL: http://issues.apache.org/jira/browse/OFBIZ-325 Project: OFBiz (The Open for Business Project) Issue Type: Bug Components: manufacturing Affects Versions: SVN trunk Reporter: Scott Gray Priority: Minor Attachments: patch.txt Offending code: component.set("estimatedQuantity", new Double(Math.floor((componentQuantity / previousQuantity * newQuantity.doubleValue() ) + 0.5))); The add .5 then floor shouldn't be there and leads to bizarre results after changing the qty a few times. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ http://issues.apache.org/jira/browse/OFBIZ-325?page=all ]
Scott Gray updated OFBIZ-325: ----------------------------- Attachment: patch.txt > Editing production run qty doesn't recalculate component qtys correctly > ----------------------------------------------------------------------- > > Key: OFBIZ-325 > URL: http://issues.apache.org/jira/browse/OFBIZ-325 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: manufacturing > Affects Versions: SVN trunk > Reporter: Scott Gray > Priority: Minor > Attachments: patch.txt > > > Offending code: > component.set("estimatedQuantity", new Double(Math.floor((componentQuantity / previousQuantity * newQuantity.doubleValue() ) + 0.5))); > The add .5 then floor shouldn't be there and leads to bizarre results after changing the qty a few times. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-325?page=all ]
Jacopo Cappellato reassigned OFBIZ-325: --------------------------------------- Assignee: Jacopo Cappellato > Editing production run qty doesn't recalculate component qtys correctly > ----------------------------------------------------------------------- > > Key: OFBIZ-325 > URL: http://issues.apache.org/jira/browse/OFBIZ-325 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: manufacturing > Affects Versions: SVN trunk > Reporter: Scott Gray > Assigned To: Jacopo Cappellato > Priority: Minor > Attachments: patch.txt > > > Offending code: > component.set("estimatedQuantity", new Double(Math.floor((componentQuantity / previousQuantity * newQuantity.doubleValue() ) + 0.5))); > The add .5 then floor shouldn't be there and leads to bizarre results after changing the qty a few times. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-325?page=all ]
Jacopo Cappellato closed OFBIZ-325. ----------------------------------- Resolution: Fixed Thanks Scott, some time ago I already tried to fix this in other parts of the system... but I have missed this one. It is now in svn rev. 449648 Thanks. > Editing production run qty doesn't recalculate component qtys correctly > ----------------------------------------------------------------------- > > Key: OFBIZ-325 > URL: http://issues.apache.org/jira/browse/OFBIZ-325 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: manufacturing > Affects Versions: SVN trunk > Reporter: Scott Gray > Assigned To: Jacopo Cappellato > Priority: Minor > Attachments: patch.txt > > > Offending code: > component.set("estimatedQuantity", new Double(Math.floor((componentQuantity / previousQuantity * newQuantity.doubleValue() ) + 0.5))); > The add .5 then floor shouldn't be there and leads to bizarre results after changing the qty a few times. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |