You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Patrick <pa...@gmail.com> on 2010/04/08 18:05:20 UTC
isoCode for $
<@ofbizCurrency isoCode="USD" amount=orderItem2.unitPrice/>
isoCode="USD" renders to US$
what's the code for simple "$" ?
Re: isoCode for $
Posted by varun bhansaly <vb...@gmail.com>.
Hi,
Is there a way to access the same method from ftl ?
When I use
<#assign test =
Static["org.ofbiz.base.util.UtilFormatOut"].formatCurrency(shippingEst,
shoppingCart.getCurrency(), locale, 2)>
It throws following exception visible in the console -
freemarker.template.TemplateModelException: Multiple signatures of
method formatCurrency match the arguments
This link explpains unwrapping rules
http://freemarker.sourceforge.net/docs/pgui_misc_beanwrapper.html
Thanks.
On Fri, Apr 9, 2010 at 8:20 AM, Brajesh Patel
<br...@hotwaxmedia.com> wrote:
> Hi Patrick,
> following code will help you,
>
> org.ofbiz.base.util.UtilFormatOut.formatCurrency(orderItem2.unitPrice,
> currencyUomId, UtilHttp.getLocale(request)))
>
> Brajesh Patel
>
> Patrick wrote:
>>
>> <@ofbizCurrency isoCode="USD" amount=orderItem2.unitPrice/>
>>
>> isoCode="USD" renders to US$
>>
>> what's the code for simple "$" ?
>>
>
>
--
Regards,
Varun Bhansaly
Re: isoCode for $
Posted by Brajesh Patel <br...@hotwaxmedia.com>.
Hi Patrick,
following code will help you,
org.ofbiz.base.util.UtilFormatOut.formatCurrency(orderItem2.unitPrice,
currencyUomId, UtilHttp.getLocale(request)))
Brajesh Patel
Patrick wrote:
> <@ofbizCurrency isoCode="USD" amount=orderItem2.unitPrice/>
>
> isoCode="USD" renders to US$
>
> what's the code for simple "$" ?
>