https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40789 Bug ID: 40789 Summary: Amount tendered input allows submit on enter which leads to broken modal Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 - low Component: Point of Sale Assignee: koha-bugs@lists.koha-community.org Reporter: jrobb@sekls.org QA Contact: testopia@bugs.koha-community.org CC: martin.renvoize@openfifth.co.uk The "Amount tendered" input (#tendered) at pos/pay.pl allows one to submit by hitting the enter key before a Payment type is selected. If the Amount tendered exceeds the Amount being paid, the modal that indicates how much change to give appears. The "Yes" button in the modal does not work and the transaction does not complete because a Payment type has not yet been selected. The easy solution seems to be to prevent that input from submitting when the enter key is pressed. To replicate: 1. Enable EnablePointOfSale and Use UseCashRegisters 2. Add a cash register 3. Add an item for purchase 4. Navigate to point of sale, add an item to the sale 5. Enter an amount tendered that exceeds the amount being paid 6. With the Amount tendered input still focused, hit enter. The "Change to give" modal pops up 7. Note the "Yes" button in the modal does not work -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.