You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "William Perng (JIRA)" <ji...@apache.org> on 2008/12/18 19:43:44 UTC

[jira] Commented: (OFBIZ-2092) Incorrect return amount when order is paid by the same paymentMethodId more than one time

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

William Perng commented on OFBIZ-2092:
--------------------------------------

I think the problem is in "getReceivedPaymentTotalsByPaymentMethod" method of OrderReadHelper class.  Because all amount values will be pushed to a map, the map value will be overwritten, if the payment method Id are the same.  The fix is attached.

> Incorrect return amount when order is paid by the same paymentMethodId more than one time
> -----------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2092
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2092
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: JDK 1.6.0_11  Windows
>            Reporter: William Perng
>
> The return amount will be calculated incorrectly, if the order was paid by multiple payments with the same paymentmethodId. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.