indicate cancelled hold on transit receive
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Dec 2006 16:07:44 +0000 (16:07 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 7 Dec 2006 16:07:44 +0000 (16:07 +0000)
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

index c8ea359..dd5328f 100644 (file)
@@ -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() ) {