You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2007/06/06 11:52:26 UTC
[jira] Assigned: (OFBIZ-1066) BigDecimal to Double precision
problem in PaymentGatewayServices
[ https://issues.apache.org/jira/browse/OFBIZ-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacopo Cappellato reassigned OFBIZ-1066:
----------------------------------------
Assignee: Jacopo Cappellato
> 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.