[Koha-bugs] [Bug 30003] When leaving 'Amount Tendered' blank, then filling in a value, two transactions are recorded
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 10 12:01:39 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30003
--- Comment #8 from Jake Deery <jake.deery at ptfs-europe.com> ---
Created attachment 130428
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130428&action=edit
Bug 30003: Prevent double up of point-of-sale items
This patch prevents the double submission of point-of-sale items when form
validation fails at the first submission
Test plan
1. Navigate to /cgi-bin/koha/pos/pay.pl
2. Add an item from 'items to purchase'
3. Under 'collect payment', click submit without altering the form
4. See 'This field is required.'
5. Now, fill a value in 'Amount tendered' that satisfies or exceeds 'Amount
being paid'
6. The payment should succeed
7. Navigate to /cgi-bin/koha/pos/register.pl
8. See duplicate lines in Transactions
Signed-off-by: Sally <sally.healey at cheshiresharedservices.gov.uk>
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list