Bugzilla – Attachment 130427 Details for
Bug 30003
Register entries doubled up if form fails validation on first submission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30003: Fix to stop point-of-sale items being added twice to transactions
Bug-30003-Fix-to-stop-point-of-sale-items-being-ad.patch (text/plain), 1.31 KB, created by
Jake Deery
on 2022-02-10 10:58:03 UTC
(
hide
)
Description:
Bug 30003: Fix to stop point-of-sale items being added twice to transactions
Filename:
MIME Type:
Creator:
Jake Deery
Created:
2022-02-10 10:58:03 UTC
Size:
1.31 KB
patch
obsolete
>From e4333840600e7d211ddc1d80b6a0777a22e776f3 Mon Sep 17 00:00:00 2001 >From: Jake Deery <jake.deery@ptfs-europe.com> >Date: Tue, 8 Feb 2022 11:40:06 +0000 >Subject: [PATCH] Bug 30003: Fix to stop point-of-sale items being added twice > to transactions > >https://bugs.koha-community.org/show_bug.cgi?id=30003 > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >index 243c0baaae..007ddd1e77 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt >@@ -402,6 +402,14 @@ > }); > > $('#payForm').submit(function(e){ >+ // first, clear stale sales 'rows' from the payForm >+ if($('input[name="sales"]').length > 0) { >+ $('input[name="sales"]').each(function() { >+ $(this).remove(); >+ }); >+ } >+ >+ // now, process the current & fresh contents of the sale_table > if (change != undefined && change.innerHTML > 0.00 && !checked) { > e.preventDefault(); > $("#confirm_change_form").modal("show"); >-- >2.25.1
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 30003
:
130280
|
130423
|
130425
|
130427
|
130428
|
132249