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

Andrew Sykes commented on OFBIZ-1066:
-------------------------------------

Jacopo,

Yes, my patch was a real mess, I made it on a recent revision then modified it 
on an older rev by mistake, so the bug was right, but the patch was a real mess!

Thanks for fixing Nicolas.

> BigDecimal to Double precision problem in PaymentGatewayServices
> ----------------------------------------------------------------
>
>                 Key: OFBIZ-1066
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1066
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>            Reporter: Andrew Sykes
>            Assignee: Jacopo Cappellato
>            Priority: Minor
>         Attachments: PaymentGatewayServices-ofbiz.java.patch, 
> PaymentGatewayServices.java.patch
>
>
> We encountered a error where amountToCapture was not the same as the 
> authorisation amount due to the decimal place precision. 
> This is because amountToCapture is populated from captureAmountBd, which is 
> instantiated like this...
> BigDecimal captureAmountBd = new BigDecimal( captureAmount.doubleValue());
> This can be resolved by rounding up when we assign to amountToCapture.

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

Reply via email to