[open-ils-commits] r7675 -
branches/rel_1_2/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 15 12:39:54 EDT 2007
Author: phasefx
Date: 2007-08-15 12:35:59 -0400 (Wed, 15 Aug 2007)
New Revision: 7675
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js
Log:
fixes bug 569 : shove patron data into bill payment receipts for template use, so %PATRON_BARCODE% works in bill_payment template
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js 2007-08-15 16:34:46 UTC (rev 7674)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/bills.js 2007-08-15 16:35:59 UTC (rev 7675)
@@ -297,7 +297,7 @@
}
if (ev.type == 'change' && obj.controller.view.payment_type.value == 'credit_payment') {
JSAN.use('util.money');
- JSAN.use('patron.util'); var au_obj = patron.util.retrieve_au_via_id(ses(),obj.patron_id);
+ JSAN.use('patron.util'); var au_obj = patron.util.retrieve__au_via_id(ses(),obj.patron_id);
var proposed = util.money.dollars_float_to_cents_integer(ev.target.value);
var available = util.money.dollars_float_to_cents_integer(au_obj.credit_forward_balance());
if (proposed > available) {
@@ -507,7 +507,7 @@
var template = 'bill_payment';
JSAN.use('patron.util'); JSAN.use('util.functional');
var params = {
- 'patron' : patron.util.retrieve_au_via_id(ses(),obj.patron_id),
+ 'patron' : patron.util.retrieve_fleshed_au_via_id(ses(),obj.patron_id),
'lib' : obj.data.hash.aou[ obj.data.list.au[0].ws_ou() ],
'staff' : obj.data.list.au[0],
'header' : obj.data.print_list_templates[template].header,
More information about the open-ils-commits
mailing list