[Koha-bugs] [Bug 12310] Accept different monetary formats as input
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 27 10:44:18 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12310
Baptiste <baptiste.wojtkowski at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #60563|0 |1
is obsolete| |
--- Comment #19 from Baptiste <baptiste.wojtkowski at biblibre.com> ---
Created attachment 64671
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=64671&action=edit
BUG 12310 : Modified scripts in order to convert any string to the good format
paxed's solution is obsolete since the form asks for a number.
The script includes 2 function which check if it is possible to transform
properly into the format "XX.XX" and which do it.
The money symbols are ignored.
All other symbols are ignored.
Test plan :
1) Check you can't enter any string except like "XX.XX" when
- you create a Budget (Administration->Budget)
- you write a fine (Circulation->[select a Borrower]->new fine )
- you pay an existing fine
2) Apply patch
3) Check you can enter any string with
- anything you want
- a , or a . as separator (both are default)
- change the syspref DigitSeparator into the separator you with and check
again
ex : XXX,XXX,XXX.XX => .
XXX XXX XXX,XX => ,. or ,
XXX XXX XXX.XX => ,. or .
The string is immediately changed after you change the field
Please note that any other symbole is ignored
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list