Handle the rental/deposit events during checkout. This doesn't yet update the patron...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 28 Oct 2008 21:36:09 +0000 (21:36 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 28 Oct 2008 21:36:09 +0000 (21:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10943 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkout.js
Open-ILS/xul/staff_client/server/locale/en-US/circ.properties

index 19aacdb..fb4f91c 100644 (file)
@@ -561,6 +561,8 @@ circ.checkout.prototype = {
                                                1212 /* PATRON_EXCEEDS_OVERDUE_COUNT */,
                                                1213 /* PATRON_BARRED */,
                                                1215 /* CIRC_EXCEEDS_COPY_RANGE */,
+                        1232 /* ITEM_DEPOSIT_REQUIRED */,
+                        1233 /* ITEM_RENTAL_FEE_REQUIRED */,
                                                7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */,
                                                7003 /* COPY_CIRC_NOT_ALLOWED */,
                                                7004 /* COPY_NOT_AVAILABLE */, 
@@ -570,11 +572,14 @@ circ.checkout.prototype = {
                                                7013 /* PATRON_EXCEEDS_FINES */
                                        ],
                                        'text' : {
+                        '1232' : function(r) {
+                            return document.getElementById('circStrings').getString('staff.circ.checkout.override.item_deposit_required.warning');
+                        },
+                        '1233' : function(r) {
+                            return document.getElementById('circStrings').getString('staff.circ.checkout.override.item_rental_fee_required.warning');
+                        },
                                                '7004' : function(r) {
-                                                       //return obj.data.hash.ccs[ r.payload ].name();
                                                        return r.payload.status().name();
-                                                       //return r.payload.name();
-                                                       //return r.payload;
                                                },
                                                '7010' : function(r) {
                                                        return r.payload;
@@ -713,6 +718,8 @@ circ.checkout.prototype = {
                                                                document.getElementById('circStrings').getString('staff.circ.confirm.msg')
                                                        );
                                                break;
+                                               case 1232 /* ITEM_DEPOSIT_REQUIRED */ :
+                                               case 1233 /* ITEM_RENTAL_FEE_REQUIRED */ :
                                                case 7013 /* PATRON_EXCEEDS_FINES */ :
                                                        found_handled = true;
                                                break;
index fcdd2be..ea18398 100644 (file)
@@ -42,6 +42,8 @@ staff.circ.checkout.non_cataloged.pending=Non-cataloged checkout pending...
 staff.circ.checkout.barcode.pending=%1$s checkout pending...
 staff.circ.checkout.barcode.failed.alert=Check Out Failed %1$s
 staff.circ.checkout.override.confirm=Override Checkout Failure?
+staff.circ.checkout.override.item_deposit_required.warning=A billing for an Item Deposit will be added to the patron's account if this action is overrided.
+staff.circ.checkout.override.item_rental_fee_required.warning=A billing for an Item Rental Fee will be added to the patron's account if this action is overrided.
 staff.circ.checkout.not_cataloged.confirm=Mis-scan or non-cataloged item.  Checkout as a pre-cataloged item?
 staff.circ.pre_cataloged=Pre-cataloged
 staff.circ.non_cataloged=Non-cataloged