Display currency : problem with value size ?

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

Display currency : problem with value size ?

STELTZLEN Charles
Hi all,

I'm using an ofbiz v1.4.

I'm having some trouble with the form attribut <display type="currency"
currency="${currencyUomId}"/> .
My flield is a BigDecimal and it value is 2441,658, but the system
displays "2.00 €".
If my value is 244,658, so the system displays it correctly "244,658 €".

Any body heard about it ?

In the general.propeties file I found the following propertie
# -- the default decimal format for currency
currency.decimal.format=##0,00

Is it linked to my problem ? I tried different values, but nothing appended.

Charles.
Reply | Threaded
Open this post in threaded view
|

Re: Display currency : problem with value size ?

BJ Freeman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The first version of ofbiz was ver 2.
I think you are referring to another implementation that uses ofbiz as a
base.
I suggest you go to that forum and ask since there are differences that
they would have to address.


STELTZLEN Charles sent the following on 3/17/2009 12:10 PM:

> Hi all,
>
> I'm using an ofbiz v1.4.
>
> I'm having some trouble with the form attribut <display type="currency"
> currency="${currencyUomId}"/> .
> My flield is a BigDecimal and it value is 2441,658, but the system
> displays "2.00 €".
> If my value is 244,658, so the system displays it correctly "244,658 €".
>
> Any body heard about it ?
>
> In the general.propeties file I found the following propertie
> # -- the default decimal format for currency
> currency.decimal.format=##0,00
>
> Is it linked to my problem ? I tried different values, but nothing
> appended.
>
> Charles.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJv/xTrP3NbaWWqE4RAkqGAJ4yJDu7gH13APqUKjT7ZXr/Spkg9wCdGfcK
wTDdwRtwI+XB+VGTFR0L19Q=
=4uPE
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: Display currency : problem with value size ?

Erwan de FERRIERES-3
Hi,

it's a 450000 something... but we can't find easily the rev. number.

BJ Freeman a écrit :

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The first version of ofbiz was ver 2.
> I think you are referring to another implementation that uses ofbiz as a
> base.
> I suggest you go to that forum and ask since there are differences that
> they would have to address.
>
>
> STELTZLEN Charles sent the following on 3/17/2009 12:10 PM:
>> Hi all,
>>
>> I'm using an ofbiz v1.4.
>>
>> I'm having some trouble with the form attribut <display type="currency"
>> currency="${currencyUomId}"/> .
>> My flield is a BigDecimal and it value is 2441,658, but the system
>> displays "2.00 €".
>> If my value is 244,658, so the system displays it correctly "244,658 €".
>>
>> Any body heard about it ?
>>
>> In the general.propeties file I found the following propertie
>> # -- the default decimal format for currency
>> currency.decimal.format=##0,00
>>
>> Is it linked to my problem ? I tried different values, but nothing
>> appended.
>>
>> Charles.
>>
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJv/xTrP3NbaWWqE4RAkqGAJ4yJDu7gH13APqUKjT7ZXr/Spkg9wCdGfcK
> wTDdwRtwI+XB+VGTFR0L19Q=
> =4uPE
> -----END PGP SIGNATURE-----
>

--
- Erwan -
Reply | Threaded
Open this post in threaded view
|

Re: Display currency : problem with value size ?

BJ Freeman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

well if you give me the approximate date you got it i can narrow it down
for you.
looks like you might be pre release 4.0
then it will be easier to help.
also a log entry from when this happened will help.

Erwan de FERRIERES sent the following on 3/17/2009 1:02 PM:

> Hi,
>
> it's a 450000 something... but we can't find easily the rev. number.
>
> BJ Freeman a écrit :
> The first version of ofbiz was ver 2.
> I think you are referring to another implementation that uses ofbiz as a
> base.
> I suggest you go to that forum and ask since there are differences that
> they would have to address.
>
>
> STELTZLEN Charles sent the following on 3/17/2009 12:10 PM:
>>>> Hi all,
>>>>
>>>> I'm using an ofbiz v1.4.
>>>>
>>>> I'm having some trouble with the form attribut <display type="currency"
>>>> currency="${currencyUomId}"/> .
>>>> My flield is a BigDecimal and it value is 2441,658, but the system
>>>> displays "2.00 ¬".
>>>> If my value is 244,658, so the system displays it correctly "244,658 ¬".
>>>>
>>>> Any body heard about it ?
>>>>
>>>> In the general.propeties file I found the following propertie
>>>> # -- the default decimal format for currency
>>>> currency.decimal.format=##0,00
>>>>
>>>> Is it linked to my problem ? I tried different values, but nothing
>>>> appended.
>>>>
>>>> Charles.
>>>>
>>>>
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJwAN2rP3NbaWWqE4RAmDNAJ9a2x75ppTYgEEfeu5XRlRyBd47LgCeNXkg
uOIz5gomU3NzrRcLj7CSmjU=
=9oIN
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: Display currency : problem with value size ?

Jacques Le Roux
Administrator
In reply to this post by STELTZLEN Charles
I fixed something like that recently, see r748803

Jacques

From: "STELTZLEN Charles" <[hidden email]>

> Hi all,
>
> I'm using an ofbiz v1.4.
>
> I'm having some trouble with the form attribut <display type="currency" currency="${currencyUomId}"/> .
> My flield is a BigDecimal and it value is 2441,658, but the system displays "2.00 €".
> If my value is 244,658, so the system displays it correctly "244,658 €".
>
> Any body heard about it ?
>
> In the general.propeties file I found the following propertie
> # -- the default decimal format for currency
> currency.decimal.format=##0,00
>
> Is it linked to my problem ? I tried different values, but nothing appended.
>
> Charles.
>


Reply | Threaded
Open this post in threaded view
|

Re: Display currency : problem with value size ?

Jacques Le Roux
Administrator
In reply to this post by STELTZLEN Charles
Afterthought, it's certainly not related to your specific problem (it was done because security issues)  but I think you will get
the idea (the main cause of your issue)

Jacques

From: "Jacques Le Roux" <[hidden email]>

>I fixed something like that recently, see r748803
>
> Jacques
>
> From: "STELTZLEN Charles" <[hidden email]>
>> Hi all,
>>
>> I'm using an ofbiz v1.4.
>>
>> I'm having some trouble with the form attribut <display type="currency" currency="${currencyUomId}"/> .
>> My flield is a BigDecimal and it value is 2441,658, but the system displays "2.00 €".
>> If my value is 244,658, so the system displays it correctly "244,658 €".
>>
>> Any body heard about it ?
>>
>> In the general.propeties file I found the following propertie
>> # -- the default decimal format for currency
>> currency.decimal.format=##0,00
>>
>> Is it linked to my problem ? I tried different values, but nothing appended.
>>
>> Charles.
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Display currency : problem with value size ?

Erwan de FERRIERES-3
thanks Jacques and BJ, we'll go through that tomorrow. And we'll also
try to figure what is the rev number. Hope that the ant task svninfo
will be soon avalaible :D !!

Jacques Le Roux a écrit :

> Afterthought, it's certainly not related to your specific problem (it
> was done because security issues)  but I think you will get the idea
> (the main cause of your issue)
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>> I fixed something like that recently, see r748803
>>
>> Jacques
>>
>> From: "STELTZLEN Charles" <[hidden email]>
>>> Hi all,
>>>
>>> I'm using an ofbiz v1.4.
>>>
>>> I'm having some trouble with the form attribut <display
>>> type="currency" currency="${currencyUomId}"/> .
>>> My flield is a BigDecimal and it value is 2441,658, but the system
>>> displays "2.00 €".
>>> If my value is 244,658, so the system displays it correctly "244,658 €".
>>>
>>> Any body heard about it ?
>>>
>>> In the general.propeties file I found the following propertie
>>> # -- the default decimal format for currency
>>> currency.decimal.format=##0,00
>>>
>>> Is it linked to my problem ? I tried different values, but nothing
>>> appended.
>>>
>>> Charles.
>>>
>>
>
>
>

--
- Erwan -
Reply | Threaded
Open this post in threaded view
|

Re: Display currency : problem with value size ?

STELTZLEN Charles
In reply to this post by Jacques Le Roux
Hi jacques,

Thanks for the indications. It solved my problem.
It was spaces in data and also conversion method that's still with
Double instead of BigDecimal.

Charles


Jacques Le Roux a écrit :

> Afterthought, it's certainly not related to your specific problem (it
> was done because security issues) but I think you will get the idea
> (the main cause of your issue)
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>> I fixed something like that recently, see r748803
>>
>> Jacques
>>
>> From: "STELTZLEN Charles" <[hidden email]>
>>> Hi all,
>>>
>>> I'm using an ofbiz v1.4.
>>>
>>> I'm having some trouble with the form attribut <display
>>> type="currency" currency="${currencyUomId}"/> .
>>> My flield is a BigDecimal and it value is 2441,658, but the system
>>> displays "2.00 €".
>>> If my value is 244,658, so the system displays it correctly "244,658
>>> €".
>>>
>>> Any body heard about it ?
>>>
>>> In the general.propeties file I found the following propertie
>>> # -- the default decimal format for currency
>>> currency.decimal.format=##0,00
>>>
>>> Is it linked to my problem ? I tried different values, but nothing
>>> appended.
>>>
>>> Charles.
>>>
>>
>
>
>