[open-ils-commits] r565 - conifer/trunk/circ (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 3 15:52:14 EDT 2009
Author: dbs
Date: 2009-07-03 15:52:11 -0400 (Fri, 03 Jul 2009)
New Revision: 565
Modified:
conifer/trunk/circ/circ_permit_patron.js
Log:
Hack Laurentian rules into place
Modified: conifer/trunk/circ/circ_permit_patron.js
===================================================================
--- conifer/trunk/circ/circ_permit_patron.js 2009-07-03 18:46:54 UTC (rev 564)
+++ conifer/trunk/circ/circ_permit_patron.js 2009-07-03 19:52:11 UTC (rev 565)
@@ -22,11 +22,19 @@
}
limit = config.fineThreshold;
+ /* but Laurentian suspends loan privileges immediately */
+ if (copy.circ_lib == 103) {
+ limit = 0;
+ }
if (patronFines >= limit) {
result.events.push('PATRON_EXCEEDS_FINES');
}
limit = config.overdueThreshold;
+ /* but Laurentian suspends loan privileges immediately */
+ if (copy.circ_lib == 103) {
+ limit = 0;
+ }
if (patronOverdueCount >= limit) {
result.events.push('PATRON_EXCEEDS_OVERDUE_COUNT');
}
More information about the open-ils-commits
mailing list