#6150: NumberHelper::currency doesn't properly generate strings when currency
symbol is needed after numeric value
-------------------------------+--------------------------------------------
Reporter: ADmad | Type: Enhancement
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: Helpers
Version: 1.2 Final | Severity: Normal
Keywords: ADmad currency | Php_version: n/a
Cake_version: |
-------------------------------+--------------------------------------------
Currently its not possible to generate a string like "30,00€" (French
currency format for euro) even by specifying 'after'=>'€' in
options.[[BR]]
[[BR]]
The problem is the function assumes that the currency symbol is always in
the 'before' option and 'after' key always has the smaller unit's symbol.
So the code has a check to use 'after' only if numeric value > -1 &&
numeric value < 1. i.e to generate strings like "20c". For other cases it
is reset to null no matter what value is passed in options for
'after'.[[BR]]
[[BR]]
Personally i would just like it to produce strings like "$0.20" or "0,20€"
and not use the smaller unit at all (which would let the 'after' key to be
used for main currency symbol). Or at least there should be an option
where one can specify what format he prefers.
--
Ticket URL: <https://trac.cakephp.org/ticket/6150>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---