From bc71f7232e0e85416360de3d9aab5c9363c58d61 Mon Sep 17 00:00:00 2001
From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 30 Sep 2009 18:54:25 +0000
Subject: [PATCH] Don't fire this request unless we can make use of the
 returned data

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js
index 5491278a73..9a8ddf7749 100644
--- a/Open-ILS/xul/staff_client/server/circ/util.js
+++ b/Open-ILS/xul/staff_client/server/circ/util.js
@@ -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();
-- 
2.11.0