From 6f91cc784b72464a1236d5db6878e14e09e93e80 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot 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 Signed-off-by: Olivier V Signed-off-by: Paul Derscheid Signed-off-by: Martin Renvoize --- .../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 += ` +
+ + + + + + +
+ `.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