From e7526d016909041dc716abda31cc68858e4d354f 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 Signed-off-by: Lucas Gass (cherry picked from commit 8efe9aee5cea47feca28f66b80281a899b22a679) Signed-off-by: Paul Derscheid --- .../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 6ec19ecb49..e385fa57bd 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;