From: pines Date: Fri, 1 Sep 2006 05:27:04 +0000 (+0000) Subject: billing location X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=351fdd10d4d0166e0ba1c1e48fd6bdf0277e3dd3;p=Evergreen.git billing location git-svn-id: svn://svn.open-ils.org/ILS/trunk@5826 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 eeafb3d0e4..66448216b5 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -123,6 +123,7 @@ const api = { 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.history.have_balance' }, 'FM_MP_RETRIEVE_VIA_MBTS_ID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.payment.retrieve.all' }, 'FM_MG_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.grocery.create' }, + 'FM_MG_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.grocery.retrieve' }, 'FM_MOBTS_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance' }, 'FM_MOBTS_TOTAL_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.total' }, 'FM_MOBTS_COUNT_HAVING_BALANCE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.transactions.have_balance.count' }, diff --git a/Open-ILS/xul/staff_client/server/patron/bill_details.xul b/Open-ILS/xul/staff_client/server/patron/bill_details.xul index f130774d6a..f3ad4b48e5 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_details.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_details.xul @@ -60,6 +60,13 @@ $('mbts_total_owed').value = g.mbts.total_owed() ? util.money.sanitize( g.mbts.total_owed() ) : ''; $('mbts_total_paid').value = g.mbts.total_paid() ? util.money.sanitize( g.mbts.total_paid() ) : ''; $('mbts_balance_owed').value = g.mbts.balance_owed() ? util.money.sanitize( g.mbts.balance_owed() ) : ''; + + switch(g.mbts.xact_type()) { + case 'circulation' : retrieve_circ(); break; + case 'grocery' : retrieve_grocery(); break; + default: break; + } + } catch(E) { g.error.sdump('D_ERROR',E); } @@ -67,6 +74,18 @@ ); } + function retrieve_grocery() { + JSAN.use('util.widgets'); + g.network.simple_request('FM_MG_RETRIEVE', [ ses(), g.mbts_id ], + function (req) { + var r_mg = req.getResultObject(); + if (instanceOf(r_mg,mg)) { + $('billing_location').value = g.data.hash.aou[ r_mg.billing_location() ].shortname() + ' : ' + g.data.hash.aou[ r_mg.billing_location() ].name(); + } + } + ); + } + function retrieve_circ() { JSAN.use('util.widgets'); g.network.simple_request('FM_CIRC_RETRIEVE_VIA_ID', [ ses(), g.mbts_id ], @@ -81,6 +100,7 @@ $('checked_out').value = r_circ.xact_start() ? r_circ.xact_start().toString().substr(0,10) : ''; $('checked_in').value = r_circ.checkin_time() ? r_circ.checkin_time().toString().substr(0,10) : ''; $('due').value = r_circ.due_date() ? r_circ.due_date().toString().substr(0,10) : ''; + $('billing_location').value = g.data.hash.aou[ r_circ.circ_lib() ].shortname() + ' : ' + g.data.hash.aou[ r_circ.circ_lib() ].name(); var r = ''; if (get_bool( r_circ.desk_renewal() ) ) r += 'DESK '; if (get_bool(r_circ.opac_renewal() ) ) r += 'OPAC '; @@ -213,7 +233,7 @@ retrieve_patron(); retrieve_mbts(); - retrieve_circ(); + //retrieve_circ(); init_lists(); diff --git a/Open-ILS/xul/staff_client/server/patron/bill_summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/bill_summary_overlay.xul index 198f4f55eb..2c66659c70 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_summary_overlay.xul @@ -7,6 +7,9 @@ + + diff --git a/Open-ILS/xul/staff_client/server/skin/global.css b/Open-ILS/xul/staff_client/server/skin/global.css index 196043f250..78f1ca7d20 100644 --- a/Open-ILS/xul/staff_client/server/skin/global.css +++ b/Open-ILS/xul/staff_client/server/skin/global.css @@ -75,6 +75,7 @@ iframe { background: #CDCED3 url("chrome://browser/skin/icons/box-background.png .text_justify { text-align: justify; } .header { font-weight: bold; } +.header1 { font-weight: bold; font-size: large; } .tan { background-color: #D2B48C; } .sandy_brown { background-color: #F4A460; }