No i18n settings for currency formatting (Patron bills, etc)

Bug #1171338 reported by Pasi Kallinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Triaged
Undecided
Unassigned

Bug Description

* EG master

Javascript currency value mangling routines (util.money.dollars_float_to_cents_integer, etc) do not have any kind of i18n support; Different languages use different separator characters, and the UI should also accept those.

(Perhaps the util.money.* routines should also be renamed, but that's a minor issue)

Tags: i18n
Revision history for this message
Pasi Kallinen (paxed) wrote :

Also see bug 1156545

Ben Shum (bshum)
Changed in evergreen:
status: New → Triaged
tags: added: i18n webstaffclient
removed: staffclient
Revision history for this message
Eva Cerninakova (ece) wrote :

Unlike in the XUL staff client (where the currency was displayed without the currency symbol), AngularJS interfaces are using the built-in currency filter, which supplies a dollar sign by default to the patron billing interface, receipt print templates etc.

Currently, there is no easy possibility to set up the currency other than the USD in Evergreen web staff client. This means that outside USA, where the currency other than USD is used, the dollar sign is still displayed in the patron interface and print templates. This is very confusing and, among other things, complicate the staff to get quick information about money summary in the patron account.

As a temporary solution, it is possible to edit currency in particular TT2 template. I have for instance removed the currency symbol in TT2 templates by replacing 'currency' string with'currency:""' (e.g. {{xact.summary.total_owed | currency}} with {{xact.summary.total_owed | currency:""}} ).
However, to edit more the ten TT2 files to apply currency is not ideal solution. I was also unable to adjust in this way the currency in the grid in various patron billing interfaces, see the attachment.

Possible solution could be to use the Angular currency pipe for the localization(see the discussion in the general mailing list https://<email address hidden>/msg15037.html).
As the Czech currency symbol "Kč" is placed on the right side of the amount with the space character - e.g., 15 Kč, the angular currency pipe perhaps would also allow to place the currency symbol to the right side of the amount as a part of Angular filter (not just as a plain text).

Revision history for this message
Eva Cerninakova (ece) wrote :
tags: removed: webstaffclient
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.