From 9308a9747701a1b541dd9a7bd5a5a3ec2021a12f Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 8 Feb 2006 20:43:52 +0000 Subject: [PATCH] new checkin method git-svn-id: svn://svn.open-ils.org/ILS/trunk@3012 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/main/constants.js | 2 +- Open-ILS/xul/staff_client/server/circ/util.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index f9db8ea4cb..7c0d17c8e2 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -6,7 +6,7 @@ var api = { 'BILL_PAY' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.payment' }, 'BLOB_CHECKOUTS_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.actor.user.checked_out' }, 'CAPTURE_COPY_FOR_HOLD_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.hold.capture_copy.barcode' }, - 'CHECKIN_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkin.barcode' }, + 'CHECKIN_VIA_BARCODE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkin' }, 'CHECKOUT_PERMIT' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout.permit' }, 'CHECKOUT' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.checkout' }, 'FM_ACN_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.callnumber.retrieve' }, diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 96baaf0f5a..b1e020e4da 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -262,10 +262,13 @@ circ.util.checkin_via_barcode = function(session,barcode,backdate) { JSAN.use('util.date'); if (backdate && (backdate == util.date.formatted_date(new Date(),'%Y-%m-%d')) ) backdate = null; + var params = { 'barcode' : barcode }; + if (backdate) params.backdate = backdate; + var check = network.request( api.CHECKIN_VIA_BARCODE.app, api.CHECKIN_VIA_BARCODE.method, - [ session, barcode, null, backdate ] + [ session, params ] ); /* -- 2.43.2