Bug 36998 - 'Issue refund' modal on cash register transactions page can mistakenly display amount from previously clicked on transaction
Summary: 'Issue refund' modal on cash register transactions page can mistakenly displa...
Status: Pushed to oldstable
Alias: None
Product: Koha
Classification: Unclassified
Component: Point of Sale (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Sam Lau
QA Contact: Martin Renvoize (ashimema)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-30 22:10 UTC by Barbara Johnson
Modified: 2024-09-18 06:37 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.11.00,24.05.04,23.11.09
Circulation function:


Attachments
Amount paid in 'Issue refund modal (14.02 KB, image/png)
2024-05-30 22:12 UTC, Barbara Johnson
Details
Incorrect amount paid in 'Issue refund modal carried over from previous transaction (13.31 KB, image/png)
2024-05-30 22:13 UTC, Barbara Johnson
Details
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal (1.74 KB, patch)
2024-07-25 16:10 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal (1.80 KB, patch)
2024-07-25 16:29 UTC, ByWater Sandboxes
Details | Diff | Splinter Review
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal (1.86 KB, patch)
2024-07-26 14:53 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Barbara Johnson 2024-05-30 22:10:59 UTC
In the POS module, the 'Issue refund' modal on registers.pl mistakenly carries forward the amount paid to subsequent modals.

Steps to reproduce:
-Have the Point of Sale module enabled, a cash register defined and multiple debit types defined
-Make multiple sales
-View the transaction history for your sales on register.pl
-Click on the 'Issue refund' button for one of the sales
-Notice that the 'amount paid' displays the amount of the sale
-Realize that you selected the wrong transaction for the refund
-Find the actual transaction you want to refund and click on the 'Issue refund' button
-Notice that the amount listed in the 'amount paid' area is the amount from the first refund you attempted to make, not the amount for the transaction now being handled

In the attached screenshots one shows a payment of 3.80. That turned out to be the wrong transaction. Staff then located the correct transaction to be refunded. The amount shows 3.80 (carried over from the previous transaction that was clicked on) but the amount of the original payment was actually 7.40. Not only is the amount of 3.80 incorrect but it is especially confusing since it looks as if you would be refunding more than the original payment.
Comment 1 Barbara Johnson 2024-05-30 22:12:28 UTC
Created attachment 167293 [details]
Amount paid in 'Issue refund modal
Comment 2 Barbara Johnson 2024-05-30 22:13:14 UTC
Created attachment 167294 [details]
Incorrect amount paid in 'Issue refund modal carried over from previous transaction
Comment 3 Sam Lau 2024-07-25 16:10:51 UTC
Created attachment 169589 [details] [review]
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal

To test:
1) Enable the 'EnablePointOfSale' sys pref (also requires the 'UseCashRegisters' pref)
2) In the POS module, configure a cash register and also configure some items for purchase with different costs
3) Make multiple sales
4) View the transactions table by clicking the 'Cash summary for ...' tab and then clicking on your cash register's name.
5) Click on the 'Issue refund' button for one of the sales, this should have the correct 'Amount paid'
6) Close the modal and click issue refund on your other item.
7) Note the 'Amount paid' is incorrect and lists the value from the previous item
8) Apply patch
9) Now when clicking issue refund, it displays the correct 'Amount paid'
Comment 4 ByWater Sandboxes 2024-07-25 16:29:30 UTC
Created attachment 169596 [details] [review]
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal

To test:
1) Enable the 'EnablePointOfSale' sys pref (also requires the 'UseCashRegisters' pref)
2) In the POS module, configure a cash register and also configure some items for purchase with different costs
3) Make multiple sales
4) View the transactions table by clicking the 'Cash summary for ...' tab and then clicking on your cash register's name.
5) Click on the 'Issue refund' button for one of the sales, this should have the correct 'Amount paid'
6) Close the modal and click issue refund on your other item.
7) Note the 'Amount paid' is incorrect and lists the value from the previous item
8) Apply patch
9) Now when clicking issue refund, it displays the correct 'Amount paid'

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Comment 5 Martin Renvoize (ashimema) 2024-07-26 14:53:34 UTC
Created attachment 169740 [details] [review]
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal

To test:
1) Enable the 'EnablePointOfSale' sys pref (also requires the 'UseCashRegisters' pref)
2) In the POS module, configure a cash register and also configure some items for purchase with different costs
3) Make multiple sales
4) View the transactions table by clicking the 'Cash summary for ...' tab and then clicking on your cash register's name.
5) Click on the 'Issue refund' button for one of the sales, this should have the correct 'Amount paid'
6) Close the modal and click issue refund on your other item.
7) Note the 'Amount paid' is incorrect and lists the value from the previous item
8) Apply patch
9) Now when clicking issue refund, it displays the correct 'Amount paid'

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 6 Martin Renvoize (ashimema) 2024-07-26 16:05:29 UTC
Thanks for all the hard work!

Pushed to main for the next 24.11.00 release as RM Assistant
Comment 7 Lucas Gass (lukeg) 2024-08-29 17:01:53 UTC
Backported to 24.05.x for 24.05.04
Comment 8 Fridolin Somers 2024-09-16 14:00:31 UTC
Pushed to 23.11.x for 23.11.09
Comment 9 Wainui Witika-Park 2024-09-18 06:37:43 UTC
Not backporting to 23.05.x unless requested