Hello, It could be useful to alert patron with some bookings ended a day before but not been converted into a loan. Based on notice template.
Created attachment 167434 [details] [review] Bug 37034: Add script to alerts patron when booking ended a day before Test plan: 1) Write a notice template to use datas from this script. For example : " Hello <<borrowers.firstname>>, <<borrowers.surname>> Some bookings ended yesterday: [% FOREACH booking IN bookings %] Booking number [% booking.booking_id %] linked to [% booking.biblio.title %] which was to be taken from the library [% booking.pickup_library.branchname %], ended [% booking.end_date %]. [% END %] " 2) This template can have custom lettercode but don't forget to use it when you launch it. By default (if no lettercode is send to script, 'BOOKINGS_OUTDATED' code will be used) 3) Launch 'perl misc/cronjobs/bookings/bookings_outdated.pl' with args or not 4) Go on message_queue and you can normally see your message. Sponsored by: Association de Gestion des Œuvres Sociales d'Inria (AGOS)
Created attachment 167435 [details] [review] Bug 37034: Add script to alerts patron when booking ended a day before Test plan: 1) Write a notice template to use datas from this script. For example : " Hello <<borrowers.firstname>>, <<borrowers.surname>> Some bookings ended yesterday: [% FOREACH booking IN bookings %] Booking number [% booking.booking_id %] linked to [% booking.biblio.title %] which was to be taken from the library [% booking.pickup_library.branchname %], ended [% booking.end_date %]. [% END %] " 2) This template can have custom lettercode but don't forget to use it when you launch it. By default (if no lettercode is send to script, 'BOOKINGS_OUTDATED' code will be used) 3) Launch 'perl misc/cronjobs/bookings/bookings_outdated.pl' with args or not 4) Go on message_queue and you can normally see your message. Sponsored by: Association de Gestion des Œuvres Sociales d'Inria (AGOS)