[open-ils-commits] r17591 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 10 16:12:52 EDT 2010
Author: phasefx
Date: 2010-09-10 16:12:47 -0400 (Fri, 10 Sep 2010)
New Revision: 17591
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js
Log:
minor tweaks to patron retrieval within the billing interface
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill2.js 2010-09-10 20:12:45 UTC (rev 17590)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill2.js 2010-09-10 20:12:47 UTC (rev 17591)
@@ -95,7 +95,7 @@
function(ev) {
if ($('payment_type').value == 'credit_payment') {
JSAN.use('util.money');
- JSAN.use('patron.util'); g.patron = patron.util.retrieve_au_via_id(ses(),g.patron_id);
+ JSAN.use('patron.util'); g.patron = patron.util.retrieve_fleshed_au_via_id(ses(),g.patron_id,null);
var proposed = util.money.dollars_float_to_cents_integer(ev.target.value);
var available = util.money.dollars_float_to_cents_integer(g.patron.credit_forward_balance());
if (proposed > available) {
@@ -647,8 +647,9 @@
try {
var template = 'bills_historical'; if (xul_param('current')) template = 'bills_current';
JSAN.use('patron.util');
+ g.patron = patron.util.retrieve_fleshed_au_via_id(ses(),g.patron_id,null);
var params = {
- 'patron' : patron.util.retrieve_fleshed_au_via_id(ses(),g.patron_id,null),
+ 'patron' : g.patron,
'printer_context' : 'receipt',
'template' : template
};
@@ -899,7 +900,7 @@
function refresh_patron() {
JSAN.use('patron.util'); JSAN.use('util.money');
- patron.util.retrieve_au_via_id(ses(),g.patron_id, function(req) {
+ patron.util.retrieve_fleshed_au_via_id(ses(),g.patron_id,null,function(req) {
var au_obj = req.getResultObject();
if (typeof au_obj.ilsevent == 'undefined') {
g.patron = au_obj;
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js 2010-09-10 20:12:45 UTC (rev 17590)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_details.js 2010-09-10 20:12:47 UTC (rev 17591)
@@ -5,7 +5,7 @@
if (g.patron_id) {
JSAN.use('patron.util');
- g.au_obj = patron.util.retrieve_fleshed_au_via_id( ses(), g.patron_id );
+ g.au_obj = patron.util.retrieve_fleshed_au_via_id( ses(), g.patron_id, null );
$('patron_name').setAttribute('value',
patron.util.format_name( g.au_obj ) + ' : ' + g.au_obj.card().barcode()
More information about the open-ils-commits
mailing list