[open-ils-commits] r17072 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Aug 4 04:48:55 EDT 2010


Author: phasefx
Date: 2010-08-04 04:48:50 -0400 (Wed, 04 Aug 2010)
New Revision: 17072

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/util.js
Log:
print missing pieces slip

Modified: trunk/Open-ILS/xul/staff_client/server/cat/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/util.js	2010-08-04 08:48:47 UTC (rev 17071)
+++ trunk/Open-ILS/xul/staff_client/server/cat/util.js	2010-08-04 08:48:50 UTC (rev 17072)
@@ -745,6 +745,7 @@
         JSAN.use('util.error'); error = new util.error();
         JSAN.use('util.functional'); JSAN.use('util.date');
         JSAN.use('util.network'); var network = new util.network();
+        JSAN.use('util.print'); var print = new util.print();
         var copies = network.simple_request('FM_ACP_FLESHED_BATCH_RETRIEVE.authoritative', [ copy_ids ]);
         if (typeof copies.ilsevent != 'undefined') throw(copies);
 
@@ -761,10 +762,13 @@
                     var robj = network.simple_request('MARK_ITEM_MISSING_PIECES',[ses(),copies[i].id()]);
                     if (typeof robj.ilsevent != 'undefined') {
                         if (robj.ilsevent == 0 /* SUCCESS */) {
-                            // TODO: Print missing pieces slip
+                            if (robj.payload && robj.payload.slip) {
+                                print.simple( robj.payload.slip.template_output().data() );
+                            }
                             // TODO: Item/patron notes/messages
                             // TODO: Invoke 3rd party app with letter to patron
                         } else if (robj.ilsevent == 1500 /* ACTION_CIRCULATION_NOT_FOUND */) {
+                            throw(robj);
                         } else {
                             throw(robj);
                         }



More information about the open-ils-commits mailing list