You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Priya Sharma (Jira)" <ji...@apache.org> on 2020/07/29 11:29:00 UTC

[jira] [Commented] (OFBIZ-11184) No option for passing rounding mode to the ofbizCurrency Macro

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

Priya Sharma commented on OFBIZ-11184:
--------------------------------------

Hi Murugeswari/All

We do have support for rounding in OfbizCurrency Macro but has not been used so far. 
I am adding an example for your reference, more detail can be found in OfbizCurrencyTransform.java:

<@ofbizCurrency amount=12.123456123450 isoCode=USD rounding=2/>

We can use it to resolve these inconsistencies.

What are the community's views?

> No option for passing rounding mode to the ofbizCurrency Macro 
> ---------------------------------------------------------------
>
>                 Key: OFBIZ-11184
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11184
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Release Branch 16.11
>            Reporter: Murugeswari
>            Priority: Minor
>         Attachments: Capture.PNG
>
>
> No option to pass roundingMode to the Ofbiz Currency macro.
> Please refer attached screenshot, there is difference in line item total and header total.
> Is there any way, to match line item total and header total with 2 decimal.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)