From: Galen Charlton Date: Thu, 18 Jun 2020 20:13:21 +0000 (-0400) Subject: LP#1851306: (follow-up) fix printing of destination X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3c6617649d86809818e8f86e4e0fcc5d926164a7;p=contrib%2FConifer.git LP#1851306: (follow-up) fix printing of destination Updated the default template for booking capture transit slips to print the shortname of the destination. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 6370049352..2e7dbbc471 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -20293,8 +20293,10 @@ $TEMPLATE$ # template_data is data returned from open-ils.booking.resources.capture_for_reservation. -%]
- [% IF data.transit %] -
This item need to be routed to data.transit.dest
+ [% IF data.transit; + dest_ou = helpers.get_org_unit(data.transit.dest); + %] +
This item need to be routed to [% dest_ou.shortname %]
[% ELSE %]
This item need to be routed to RESERVATION SHELF:
[% END %] diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.port_capture_reservations_to_angular.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.port_capture_reservations_to_angular.sql index fbf53fc4ff..75293dd28f 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.port_capture_reservations_to_angular.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.port_capture_reservations_to_angular.sql @@ -15,8 +15,10 @@ $TEMPLATE$ # template_data is data returned from open-ils.booking.resources.capture_for_reservation. -%]
- [% IF data.transit %] -
This item need to be routed to data.transit.dest
+ [% IF data.transit; + dest_ou = helpers.get_org_unit(data.transit.dest); + %] +
This item need to be routed to [% dest_ou.shortname %]
[% ELSE %]
This item need to be routed to RESERVATION SHELF:
[% END %]