Bugzilla – Attachment 130423 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]
Applied a fix to stop point-of-sale items being added twice to till transaction lists
Applied-a-fix-to-stop-point-of-sale-items-being-ad.patch (text/plain), 1.31 KB, created by
Kyle M Hall
on 2022-02-10 10:32:55 UTC
(
hide
)
Description:
Applied a fix to stop point-of-sale items being added twice to till transaction lists
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2022-02-10 10:32:55 UTC
Size:
1.31 KB
patch
obsolete
>From 77573dacfbdb4b73fd6cbda5f9ee153bd5d9ad13 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] Applied a fix to stop point-of-sale items being added twice > to till transaction lists > >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.30.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 30003
:
130280
|
130423
|
130425
|
130427
|
130428
|
132249