[Koha-bugs] [Bug 28168] Manual invoice form pre-fills Amount field with invalid number

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 21 14:54:25 CEST 2021


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

--- Comment #3 from Joonas Kylmälä <joonas.kylmala at helsinki.fi> ---
(In reply to Joonas Kylmälä from comment #0)
> The Amount field on Manual invoice form
> (/cgi-bin/koha/members/maninvoice.pl?borrowernumber=XXXX) used to be empty
> by default before bug 27410. Now we get a "0.00" or "0,00" value there. This
> adds one more click to the workflow but more importantly because the form
> only accepts X.XX (decimal separator being ".") values the pre-filled number
> is incorrectly in the wrong format if using a comma and it confuses the user
> because they might think it is okay to enter a comma there.

After doing more investigation I want to clarify that the default value used to
be empty only with CurrencyFormat = "FR". After this patch the default value
will be either empty or 0.00 depending whether the user has set the default fee
in /cgi-bin/koha/admin/debit_types.pl to be empty/NULL or 0.00. So I think the
proposed solution from Petro here is great because the old behaviour in US
currency format can be changed via debit_types.pl page. Now with this patch
both US and FR format users will be happy! :)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list