From 315656c876f9caf86a569604bb09c0a784c78889 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 3 Nov 2008 20:18:56 +0000 Subject: [PATCH] handle renewals for deposits (albeit ungracefully) git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@11050 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/util.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 4f576bc636..3d6357ad46 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1377,7 +1377,9 @@ circ.util.renew_via_barcode = function ( barcode, patron_id, async ) { case 1213 /* PATRON_BARRED */ : break; case 1215 /* CIRC_EXCEEDS_COPY_RANGE */ : break; case 1224 /* PATRON_ACCOUNT_EXPIRED */ : break; + case 1232 /* ITEM_DEPOSIT_REQUIRED */ : break; case 1233 /* ITEM_RENTAL_FEE_REQUIRED */ : break; + case 1234 /* ITEM_DEPOSIT_PAID */ : break; case 1500 /* ACTION_CIRCULATION_NOT_FOUND */ : break; case 7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */ : break; case 7003 /* COPY_CIRC_NOT_ALLOWED */ : break; @@ -1412,7 +1414,9 @@ circ.util.renew_via_barcode = function ( barcode, patron_id, async ) { 1212 /* PATRON_EXCEEDS_OVERDUE_COUNT */, 1213 /* PATRON_BARRED */, 1215 /* CIRC_EXCEEDS_COPY_RANGE */, + 1232 /* ITEM_DEPOSIT_REQUIRED */, 1233 /* ITEM_RENTAL_FEE_REQUIRED */, + 1234 /* ITEM_DEPOSIT_PAID */, 7002 /* PATRON_EXCEEDS_CHECKOUT_COUNT */, 7003 /* COPY_CIRC_NOT_ALLOWED */, 7004 /* COPY_NOT_AVAILABLE */, @@ -1427,9 +1431,15 @@ circ.util.renew_via_barcode = function ( barcode, patron_id, async ) { '1212' : function(r) { return 'Barcode: ' + barcode; }, '1213' : function(r) { return 'Barcode: ' + barcode; }, '1215' : function(r) { return 'Barcode: ' + barcode; }, + '1232' : function(r) { + return "For item with barcode " + barcode + ", a billing for an Item Deposit will be added to the patron's account if this action is overrided."; + }, '1233' : function(r) { return "For item with barcode " + barcode + ", a billing for an Item Rental Fee will be added to the patron's account if this action is overrided."; }, + '1234' : function(r) { + return "A paid deposit will be owed to this patron if this action is overrided."; + }, '7002' : function(r) { return 'Barcode: ' + barcode; }, '7003' : function(r) { return 'Barcode: ' + barcode; }, '7004' : function(r) { -- 2.11.0