From 6e79fe22e908ba2bf03940e543223c8d5d20aba7 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 deleted. 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 --- .../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 += ` +
+ + + + + + +
+ `.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