From 6da64887c1ce28b72a449e71faedebd7e79bcf67 Mon Sep 17 00:00:00 2001 From: pines Date: Fri, 8 Dec 2006 16:18:23 +0000 Subject: [PATCH] indicate cancelled hold on transit receive git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6662 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index ecd96f458c..3c8a3503f2 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1075,10 +1075,15 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che }); } + var msg = ''; + + if (check.payload && check.payload.cancelled_hold_transit) { + msg += 'Original hold for transit cancelled.\n\n'; + } + /* SUCCESS / NO_CHANGE / ITEM_NOT_CATALOGED */ if (check.ilsevent == 0 || check.ilsevent == 3 || check.ilsevent == 1202) { try { check.route_to = data.lookup('acpl', check.copy.location() ).name(); } catch(E) { msg += 'Please inform your helpdesk/developers of this error:\nFIXME: ' + E + '\n'; } - var msg = ''; if (check.ilsevent == 3 /* NO_CHANGE */) { //msg = 'This item is already checked in.\n'; if (document.getElementById('no_change_label')) { @@ -1176,7 +1181,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che var lib = data.hash.aou[ check.org ]; check.route_to = lib.shortname(); - var msg = 'Destination: ' + check.route_to + '.\n'; + msg += 'Destination: ' + check.route_to + '.\n'; msg += '\n' + lib.name() + '\n'; try { if (lib.holds_address() ) { -- 2.11.0