From: phasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Wed, 30 Sep 2009 18:54:25 +0000 (+0000)
Subject: Don't fire this request unless we can make use of the returned data
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bc71f7232e0e85416360de3d9aab5c9363c58d61;p=evergreen%2Fmasslnc.git

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
---

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();