[Koha-bugs] [Bug 22115] New: Table of checkouts doesn't respect CurrencyFormat setting

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Jan 12 08:50:16 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22115

            Bug ID: 22115
           Summary: Table of checkouts doesn't respect CurrencyFormat
                    setting
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Circulation
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
        Depends on: 22112
  Target Milestone: ---

The table of checkouts on the checkouts and details tabs in the patron account
can display the columns Charge, Price and Fine. Those columns are not formatted
according to the CurrencyFormat systme preference.

I don't know how to fix this. It appears the formatting is currently done in
checkouts.js using toFixed(2):

Example:
                    "mDataProp": function ( oObj ) {
                        if ( ! oObj.charge ) oObj.charge = 0;
                        return '<span style="text-align: right; display:
block;">' + parseFloat(oObj.charge).toFixed(2) + '<span>';
                    }


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22112
[Bug 22112] Omnibus: Use Price filter everywhere
-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list