Bugzilla – Attachment 185472 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.78 KB, created by
Paul Derscheid
on 2025-08-15 16:02:36 UTC
(
hide
)
Description:
Bug 36789: Transform a booking into checkout
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2025-08-15 16:02:36 UTC
Size:
2.78 KB
patch
obsolete
>From 6e79fe22e908ba2bf03940e543223c8d5d20aba7 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 deleted. > >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> >--- > .../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 56584307bbc..990ada83b81 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt >@@ -414,6 +414,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.39.5
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