width:0px !important;
}
+.fines-exist {
+ outline-style: solid !important;
+ outline-color: yellow !important;
+ outline-width: 6px !important;
+ -moz-outline-radius: 15px 15px 0 0 !important;
+}
+
+
.hideMe {
display: none;
}
var finesSum = dojo.byId('acct_fines');
var bal = summary ? summary.balance_owed() : 0;
var bal2 = parseFloat(bal);
-
self.creditPayableBalance = bal2 + '';
}
}
);
+
+ fieldmapper.standardRequest(
+ ['open-ils.actor', 'open-ils.actor.user.transactions.have_balance.fleshed'],
+ { async : false,
+ params : [this.authtoken, this.patron.id()],
+ oncomplete : function(r) {
+ var dataList = openils.Util.readResponse(r);
+ var hasPositiveFee = false;
+ for(var i = 0; i < dataList.length; i++) {
+ var data = dataList[i];
+ if(data.transaction.balance_owed() > 0) {
+ hasPositiveFee = true;
+ }
+ }
+
+ if (hasPositiveFee) openils.Util.addCSSClass( dojo.byId('oils-selfck-view-fines-link'), 'fines-exist' );
+ }
+ });
}