[Koha-bugs] [Bug 10113] Currency and cost calculation problem in acquisition

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 11 09:11:58 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10113

Saiful Amin <saiful at semanticconsulting.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |In Discussion
                 CC|                            |saiful at semanticconsulting.c
                   |                            |om

--- Comment #1 from Saiful Amin <saiful at semanticconsulting.com> ---
I think this is due to the updateCosts() function in acq.js which cannot handle
whitespace in the currency code. The problem exists even in the latest stable.

I don't know enough javascript to fix it. But, an easy way to avoid this
problem is not having any whitespace in the currency code (e.g., use 'USD'
instead of 'US Dollars').

For existing system, since the staff interface does not allow changing the
currency code, it can be changed directly in the database table. For example,
to change code 'US Dollars' to 'USD' use this query:

SQL> update currency set currency = 'USD' where currency = 'US Dollars';

This effectively solves this problem. But I'm not sure if it affects any other
areas (say reports or old orders/budgets). Let someone confirm it.

-- 
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