From: phasefx Date: Wed, 12 Jul 2006 22:35:23 +0000 (+0000) Subject: Add Billing in other interfaces X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9d713bbe283cc53bcd5404f2b4304d3e74fbb590;p=Evergreen.git Add Billing in other interfaces git-svn-id: svn://svn.open-ils.org/ILS/trunk@4964 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/circ_brief.xul b/Open-ILS/xul/staff_client/server/circ/circ_brief.xul index 2be20c2294..0c3892a27b 100644 --- a/Open-ILS/xul/staff_client/server/circ/circ_brief.xul +++ b/Open-ILS/xul/staff_client/server/circ/circ_brief.xul @@ -44,7 +44,7 @@ g.error.sdump('D_TRACE','my_init() for circ_circ_brief.xul'); g.cgi = new CGI(); - var circ_id = g.cgi.param('circ_id'); + g.circ_id = g.cgi.param('circ_id'); JSAN.use('util.network'); g.network = new util.network(); JSAN.use('util.date'); @@ -53,7 +53,7 @@ g.network.request( api.FM_CIRC_RETRIEVE_VIA_ID.app, api.FM_CIRC_RETRIEVE_VIA_ID.method, - [ ses(), circ_id ], + [ ses(), g.circ_id ], function (req) { try { var r_circ = req.getResultObject(); @@ -73,6 +73,7 @@ } catch(E) { g.error.standard_unexpected_error_alert('Failure rendering circ.',E); } + g.patron_id = r_circ.usr(); $('add_billing').disabled = false; g.network.simple_request('FM_AU_FLESHED_RETRIEVE_VIA_ID',[ ses(), r_circ.usr() ], function(preq) { var r_au = preq.getResultObject(); $('barcode').value = r_au.card().barcode(); @@ -94,14 +95,27 @@ function $(id) { return document.getElementById(id); } + g.add_billing = function() { + JSAN.use('util.window'); + var win = new util.window(); + var w = win.open( + urls.XUL_PATRON_BILL_WIZARD + + '?patron_id=' + window.escape(g.patron_id) + + '&xact_id=' + window.escape( g.circ_id ), + 'billwizard', + 'chrome,resizable,modal' + ); + } + ]]>