Hack Laurentian rules into place
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 3 Jul 2009 19:52:11 +0000 (19:52 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 3 Jul 2009 19:52:11 +0000 (19:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@565 6d9bc8c9-1ec2-4278-b937-99fde70a366f

circ/circ_permit_patron.js

index 43fcb7f..9fe79e6 100755 (executable)
@@ -22,11 +22,19 @@ if( config ) {
     }
 
     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');
     }