handle PATRON_INACTIVE just in case
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 9 Aug 2006 03:26:21 +0000 (03:26 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 9 Aug 2006 03:26:21 +0000 (03:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5396 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 0a08ff8..18d2319 100644 (file)
@@ -476,6 +476,11 @@ circ.checkout.prototype = {
                                                case 1215 /* CIRC_EXCEEDS_COPY_RANGE */ :
                                                        found_handled = true;
                                                break;
+                                               case 1217 /* PATRON_INACTIVE */ :
+                                                       found_handled = true;
+                                                       msg += 'This patron is inactive and may not circulate items.\n';
+                                                       obj.error.yns_alert(msg,'Check Out Failed','OK',null,null,'Check here to confirm this message');
+                                               break;
                                                case 7013 /* PATRON_EXCEEDS_FINES */ :
                                                        found_handled = true;
                                                break;