Login  Register

Dev - proposal to add feature to flexible string expander

Posted by Hans Bakker on Apr 20, 2006; 7:20am
URL: http://ofbiz.116.s1.nabble.com/Dev-proposal-to-add-feature-to-flexible-string-expander-tp167697.html

Good morning,

currently it is not possible to do currency localization on currency values
displayed in the label statement in a screen widget and every where the
flexible string expander is used.

attached a patch to enable the following code which displays the amount of a
payment taking into account the current locale and requested currency. The
implementation is similar to the 'bsh:' prefix.

${currency=EUR:payment.amount}
or
${currency=${payment.currencyUomId}:payment.amount}

will display as: € 40,33
when the currency is set to 'EUR' and the locale is dutch.

any opinions?

--
Regards,
Hans Bakker
ANT Websystems Co.,Ltd (http://www.antwebsystems.com)

If you want to verify that this message really originates from
from the above person, download the public key from:
http://www.antwebsystems.com/hbakkerAntwebsystems.asc

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

flexCurr.patch (9K) Download Attachment
attachment1 (196 bytes) Download Attachment