[jira] [Commented] (OFBIZ-5359) Wrong Calculation of AccountingQuantityDiff

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5359) Wrong Calculation of AccountingQuantityDiff

Nicolas Malin (Jira)

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

Christian Carlow commented on OFBIZ-5359:
-----------------------------------------

This was patched differently in https://issues.apache.org/jira/browse/OFBIZ-5351 but your patch is simpler.

> Wrong Calculation of AccountingQuantityDiff
> -------------------------------------------
>
>                 Key: OFBIZ-5359
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5359
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Michael Ende
>         Attachments: patch OFBIZ-5359.txt
>
>
> The calculation of the  field 'createDetailMap.accountingQuantityDiff' is wrong in simple-method 'createAcctgTransForSalesShipmentIssuance'.
> The current caltulation is:
>  ${-1* costInventoryItemQuantity}
> The correct calculation would be:
> ${(-1)* costInventoryItemQuantity}
> The problem is that the function needs round breakets by -1 (calculation rule: multiplication and division first, then addition and subtraction).



--
This message was sent by Atlassian JIRA
(v6.1#6144)