From: pines Date: Wed, 14 Mar 2007 19:07:47 +0000 (+0000) Subject: handle PATRON_CARD_INACTIVE event in case checkout interface does not get disabled X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=072776482659c89ef24b16d8c81868751e4c49ea;p=Evergreen.git handle PATRON_CARD_INACTIVE event in case checkout interface does not get disabled git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7070 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 1b3e674308..29d143ddc1 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -603,6 +603,7 @@ circ.checkout.prototype = { var stop_checkout = false; for (var i = 0; i < test_permit.length; i++) { switch(test_permit[i].ilsevent) { + case 1216 /* PATRON_CARD_INACTIVE */ : case 1217 /* PATRON_INACTIVE */ : case 1224 /* PATRON_ACCOUNT_EXPIRED */ : stop_checkout = true; @@ -622,6 +623,11 @@ circ.checkout.prototype = { case 1215 /* CIRC_EXCEEDS_COPY_RANGE */ : found_handled = true; break; + case 1216 /* PATRON_CARD_INACTIVE */ : + found_handled = true; + msg += 'The card used to retrieve this account is inactive and may not be used to circulate items.\n'; + obj.error.yns_alert(msg,'Check Out Failed','OK',null,null,'Check here to confirm this message'); + break; case 1217 /* PATRON_INACTIVE */ : found_handled = true; msg += 'This account is inactive and may not circulate items.\n';