Don't fire this request unless we can make use of the returned data
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Sep 2009 18:54:25 +0000 (18:54 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Sep 2009 18:54:25 +0000 (18:54 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14230 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/util.js

index 5491278..9a8ddf7 100644 (file)
@@ -2200,7 +2200,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che
                        document.getElementById('no_change_label').setAttribute('hidden','true');
                }
 
-               if (check.circ) {
+               if (check.circ && ( document.getElementById('no_change_label') || document.getElementById('fine_tally') ) ) {
                        network.simple_request('FM_MBTS_RETRIEVE.authoritative',[ses(),check.circ.id()], function(req) {
                                JSAN.use('util.money');
                                var bill = req.getResultObject();