ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Si Chen (JIRA)" <j...@apache.org>
Subject [jira] Created: (OFBIZ-136) mininlang if-compare does not work correctly in some locales (fr_FR.UTF-8) probably
Date Fri, 04 Aug 2006 23:32:14 GMT
mininlang if-compare does not work correctly in some locales (fr_FR.UTF-8) probably

                 Key: OFBIZ-136
                 URL: http://issues.apache.org/jira/browse/OFBIZ-136
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: framework
    Affects Versions: SVN trunk
            Reporter: Si Chen
             Fix For: SVN trunk

This thread on sourceforge.net for opentaps will give you some background:

But basically, it appears that for certain locales, using if-compare on numbers in minilang
does not work.  In applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml:

        <if-compare field-name="trialBalanceResultMap.debitCreditDifference" operator="greater-equals"
value="0.01" type="Double">            

always returns false if the locale is set to fr_FR.UTF-8 as in the following:
-Duser.language=fr -Duser.region=FR -Dfile.encoding=UTF-8

in your startofbiz.sh

or equivalent in windows

I think this is a problem with the org.ofbiz.base.ObjectType's typecasting.

To solve the problem in the meantime, you can use
-Duser.language=en -Duser.region=US

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


View raw message