Bugzilla – Attachment 185878 Details for
Bug 36789
Transform a booking into checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36789: Transform a booking into checkout
Bug-36789-Transform-a-booking-into-checkout.patch (text/plain), 2.84 KB, created by
Martin Renvoize (ashimema)
on 2025-08-29 07:47:15 UTC
(
hide
)
Description:
Bug 36789: Transform a booking into checkout
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-08-29 07:47:15 UTC
Size:
2.84 KB
patch
obsolete
>From 6f91cc784b72464a1236d5db6878e14e09e93e80 Mon Sep 17 00:00:00 2001 >From: Thibaud Guillot <thibaud.guillot@biblibre.com> >Date: Mon, 6 May 2024 12:50:01 +0200 >Subject: [PATCH] Bug 36789: Transform a booking into checkout >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Directly from the bookings list, you can perform a checkout with booked >item. > >Test plan: > >1) Got an item booked :) >2) Click on transform to checkout >3) Normally you will be redirected to circulation.pl checkout view with > form infos from booking. >4) If issue is confirmed, the booking will be completed. > >Sponsored-by: Association de Gestion des Ã…uvres Sociales d'Inria (AGOS) >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Olivier V <olivier.vezina@inLibro.com> >Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> >Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> >--- > .../prog/en/modules/bookings/list.tt | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >index 6ec19ecb498..e385fa57bdc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >@@ -401,6 +401,25 @@ > escape_str(row.booking_id), > _("Cancel") > ); >+ result += ` >+ <form name="checkout-transform" method="post" action="/cgi-bin/koha/circ/circulation.pl?borrowernumber=%s"> >+ <input type="hidden" name="op" value="cud-checkout"/> >+ <input type="hidden" name="borrowernumber" value="%s"/> >+ <input type="hidden" name="barcode" value="%s"/> >+ <input type="hidden" name="duedatespec" value="%s"/> >+ <input type="hidden" name="booking_id" value="%s"/> >+ <button id="checkout_action" class="btn btn-default btn-xs" type="submit"> >+ %s >+ </button> >+ </form> >+ `.format( >+ escape_str(row.patron_id), >+ escape_str(row.patron_id), >+ escape_str(row.item.external_id), >+ escape_str(row.end_date), >+ escape_str(row.booking_id), >+ _("Transform to checkout") >+ ); > } > [% END %] > return result; >-- >2.51.0
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 36789
:
166213
|
167191
|
167242
|
167246
|
167268
|
167307
|
167309
|
167311
|
167368
|
167369
|
167602
|
167906
|
167907
|
170198
|
171553
|
171554
|
171555
|
172058
|
172059
|
172060
|
176452
|
176453
|
176489
|
185472
|
185473
|
185474
| 185878 |
185879
|
185880