From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 9 Dec 2010 18:25:50 +0000 (+0000)
Subject: big thinko.  Going by the stock receipt template, this should be the workstation... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=164622c3c827d640f4ac4acafb222f0204fc72ce;p=evergreen%2Fmasslnc.git

big thinko.  Going by the stock receipt template, this should be the workstation lib.  Destination is handled by a different variable


git-svn-id: svn://svn.open-ils.org/ILS/trunk@18950 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js
index 863a1378d2..82466ab45e 100644
--- a/Open-ILS/xul/staff_client/server/circ/util.js
+++ b/Open-ILS/xul/staff_client/server/circ/util.js
@@ -3077,7 +3077,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che
                         var template = check.payload.hold ? 'hold_transit_slip' : 'transit_slip';
                         var params = {
                             'patron' : print_data.user,
-                            'lib' : data.hash.aou[ check.payload.hold ? check.payload.hold.pickup_lib() : (check.payload.transit ? check.payload.transit.dest() : check.org) ],
+                            'lib' : data.hash.aou[ data.list.au[0].ws_ou() ],
                             'staff' : data.list.au[0],
                             'header' : data.print_list_templates[ template ].header,
                             'line_item' : data.print_list_templates[ template ].line_item,