Bugzilla – Attachment 169740 Details for
Bug 36998
'Issue refund' modal on cash register transactions page can mistakenly display amount from previously clicked on transaction
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal
Bug-36998-Correctly-update-the-Amount-paid-display.patch (text/plain), 1.86 KB, created by
Martin Renvoize (ashimema)
on 2024-07-26 14:53:34 UTC
(
hide
)
Description:
Bug 36998: Correctly update the 'Amount paid' displayed on the issue refund modal
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-07-26 14:53:34 UTC
Size:
1.86 KB
patch
obsolete
>From 10cd099536d800bc135ff4eeb2715a0b991824f7 Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Thu, 25 Jul 2024 16:02:16 +0000 >Subject: [PATCH] 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> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index 21c7efdf5bd..948a925c670 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -413,7 +413,7 @@ > var amount = button.data('amount'); > var amountoutstanding = button.data('amountoutstanding') || 0; > var paid = amount - amountoutstanding; >- $("#paid + span").replaceWith(paid); >+ $("#paid + span").text(paid); > $("#returned").attr({ "value": paid, "max": paid }); > var member = button.data('member'); > if ( member === '' ) { >-- >2.45.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36998
:
167293
|
167294
|
169589
|
169596
| 169740