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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to