[JIRA] Closed: (OFBIZ-799) Re-factor accounting related methods' BigDecimal use to use arithmetic.properties

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

[JIRA] Closed: (OFBIZ-799) Re-factor accounting related methods' BigDecimal use to use arithmetic.properties

JIRA jira@ofbiz.org
     [ http://jira.undersunconsulting.com/browse/OFBIZ-799?page=all ]
     
Jacopo Cappellato closed OFBIZ-799:
-----------------------------------

    Resolution: Duplicate

https://issues.apache.org/jira/browse/OFBIZ-249

> Re-factor accounting related methods' BigDecimal use to use arithmetic.properties
> ---------------------------------------------------------------------------------
>
>          Key: OFBIZ-799
>          URL: http://jira.undersunconsulting.com/browse/OFBIZ-799
>      Project: [OFBiz] Open For Business
>         Type: Improvement
>   Components: accounting
>     Versions: SVN
>     Reporter: Si Chen
>     Assignee: Jira Administrator
>      Fix For: SVN

>
>
> Re-factor the following to use arithmetic.properties instead of setting them directly:
> org/ofbiz/accounting/tax/TaxAuthorityServices.java:        taxTotal.setScale(2, BigDecimal.ROUND_CEILING);
> org/ofbiz/accounting/tax/TaxAuthorityServices.java:        priceWithTax.setScale(2, BigDecimal.ROUND_CEILING);
> org/ofbiz/accounting/invoice/InvoiceWorker.java:                invoiceTotal = invoiceTotal.add( amount.multiply(quantity)).setScale(2,4);

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.undersunconsulting.com/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira