handle PATRON_CARD_INACTIVE event in checkout just in case the interface does not...
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 16 Mar 2007 00:10:19 +0000 (00:10 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 16 Mar 2007 00:10:19 +0000 (00:10 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0_3@7076 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkout.js

index 1b3e674..29d143d 100644 (file)
@@ -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';