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

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Failed QA                   |Needs Signoff

--- Comment #6 from Martin Renvoize (ashimema) 
<[email protected]> ---
Thanks Andrew, the CurrencyFormat catch was a good one.

1. CurrencyFormat FR: confirmed. The rows collapsed behind "Show payment types
with nothing expected" were pre-filled with format_price(), which follows
CurrencyFormat. With FR that gives "0,00", which fails the amount input's
pattern (^-?\d+(\.\d{1,2})?$) and the server-side check in pos/register.pl, so
Complete cashup could not be submitted even with every amount entered
correctly. I've attached a follow-up that pre-fills a plain "0.00" instead.
These rows are zero by definition, and a dot-decimal value is what Koha uses
for any editable amount whatever CurrencyFormat is (see
Koha::Number::Price->format_for_editing). I tested it with CurrencyFormat set
to FR: the form validates, a 2.00 cheque shows as "+2,00" in the discrepancy
column (display stays locale-formatted), and the cashup completes.

Note that this does not change what a user can type: the amount inputs accept a
dot decimal only, so "10,00" is still rejected by the pattern. That comes from
the Complete cashup modal in Bug 33501, matches the existing POS "amount
returned" input, and is part of the wider decimal-separator problem already
tracked in Bugs 18186, 12310, 21507 and 17098, so I have left it out of scope
here.

2. Note validation against the authorised value category: confirmed. The check
in Koha::Cash::Register::add_cashup only runs when
CashupReconciliationNoteRequired is enabled. That code comes from Bug 33501,
and this patch only touches cashup_modals.js, so I'd rather handle it
separately than widen this bug.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to