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

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

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

Nicolas Malin (Jira)

    [ 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)