max 99 noncat checkouts in one action
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Aug 2006 20:09:37 +0000 (20:09 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 3 Aug 2006 20:09:37 +0000 (20:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5262 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index a9ddab3..07b0910 100644 (file)
@@ -126,7 +126,10 @@ circ.checkout.prototype = {
                                                                if (r) {
                                                                        count = parseInt(r);
                                                                        if (count > 0) {
-                                                                               if (count > 20) {
+                                                                               if (count > 99) {
+                                                                                       obj.error.yns_alert('You tried to circulate ' + count + ' ' + obj.data.hash.cnct[ params.noncat_type].name() + '.  The maximum is 99 per action.','Non-cataloged Circulation','OK',null,null,'Check here to confirm this message.');
+                                                                                       return;
+                                                                               } else if (count > 20) {
                                                                                        r = obj.error.yns_alert('Are you sure you want to circulate ' + count + ' ' + obj.data.hash.cnct[ params.noncat_type].name() + '?','Non-cataloged Circulation','Yes','No',null,'Check here to confirm this message.');
                                                                                        if (r != 0) return;
                                                                                }