[Bug 12310] New: Accept different monetary formats as input
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310 Bug ID: 12310 Summary: Accept different monetary formats as input Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: I18N/L10N Assignee: koha-bugs@lists.koha-community.org Reporter: pasi.kallinen@pttk.fi QA Contact: testopia@bugs.koha-community.org CC: frederic@tamil.fr When a monetary amount is inputted by user, Koha only accepts it in the format "XX.XX", when in some countries the cent separator is a comma, not a full stop. Eg. when entering a manual invoice amount of "12,34" it is saved as "12.00" in the system. Should accept formats with full stop or comma as the cents separator, optionally prefixed or suffixed with a currency symbol. eg. "12.34", "$12.34", "12,34", "12,34 €", etc. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310 paxed <pasi.kallinen@pttk.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |pasi.kallinen@pttk.fi |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310 --- Comment #1 from paxed <pasi.kallinen@pttk.fi> --- Created attachment 28455 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28455&action=edit Accept different monetary formats as input Adds a new module Koha::MoneyUtils and tests for it. Adds monetary amount parsing when entering a manual invoice for a patron. To test: 1) Test different manual invoice values, note which ones do not work correctly. Eg. when entering amount of "12,34" it is saved as "12.00" in the system. 2) Apply patch 3) Repeat part 1, all should work correctly. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310 paxed <pasi.kallinen@pttk.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310 Lise <lise.de_baudouin@enc.sorbonne.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |lise.de_baudouin@enc.sorbon | |ne.fr --- Comment #2 from Lise <lise.de_baudouin@enc.sorbonne.fr> --- we have tested your patch with "12,34" and "$12.34" and koha only accept "12.34" with acquisitions. sorry -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310 --- Comment #3 from paxed <pasi.kallinen@pttk.fi> --- The patch only changes the parsing for manual invoice input, not acquisition. I'll add the acq when I've got some time. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org