This topic is locked

,00 in the currency field

12/18/2006 1:20:09 PM
PHPRunner General questions
samsp author

Hi everybody,
i have searched the forum but i did notfind a answer. first i like to say, that i work with php runner since two years and i was very happy with al the features. al my questiones are answered in this forum, so thanks for this good stuff. now i have questions: 1. my databasefield is numeric but i have in the currency field 2 decimal digits. i dont need that. how can i fixed that. 2. i have a "?" instead of a "€" sign in my currency field.
thank you for answering
sam

J
Jane 12/19/2006

Sam,
to display currency without fractional part modify generated include\locale.php file

Find this line there:

// currency settings

$locale_info["LOCALE_ICURRDIGITS"]="2";



and replace it with this one:

// currency settings

$locale_info["LOCALE_ICURRDIGITS"]="0";


Regarding the EURO symbol.
Please tell me what is selected in Regional settings box on the Miscelaneous tab in PHPRunner.
To display a proper symbol modify this line in include\locale.php file:

$locale_info["LOCALE_SCURRENCY"]="€";

samsp author 12/19/2006

hi jane,
thank you for answering.
I have done codechange and it works.
the Regional settings box on the Miscelaneous tab in PHPRunner is german settings.
i think the main problem is, that i changed the caracter settings to utf-8. i have done all modifications in the language files and div otherfiles, but in the browser switch to windows caracters. i have read in this forum there will be a little problem and it should be fixed in the next issue. but i will be happy, if there is a solution previously. i am not the big coder, but i understand how it works and i know the syntax. so should be there a way of changing in the code, for fixing this problem you can give it to me.
thx
sam