From c1a878b0272ea38b177df838e6557fa3d90baec1 Mon Sep 17 00:00:00 2001 From: pines Date: Thu, 7 Dec 2006 16:07:44 +0000 Subject: [PATCH] indicate cancelled hold on transit receive git-svn-id: svn://svn.open-ils.org/ILS/trunk@6654 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 c8ea359b41..dd5328f370 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