fix billing interface so that %title% and %barcode% work in bill_payment template
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Oct 2010 15:35:50 +0000 (15:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 18 Oct 2010 15:35:50 +0000 (15:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18375 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bill2.js

index 0805014..0be012d 100644 (file)
@@ -809,8 +809,8 @@ function apply_payment() {
                                 'payment' : o[1],
                                 'last_billing_type' : g.bill_map[ o[0] ].transaction.last_billing_type(),
                                 'last_billing_note' : g.bill_map[ o[0] ].transaction.last_billing_note(),
-                                'title' : typeof g.bill_map[ o[0] ].title != 'undefined' ? g.bill_map[ o[0] ].title : '', 
-                                'barcode' : typeof g.bill_map[ o[0] ].barcode != 'undefined' ? g.bill_map[ o[0] ].barcode : ''
+                                'title' : typeof g.bill_map[ o[0] ].record != 'undefined' ? g.bill_map[ o[0] ].record.title() : '', 
+                                'barcode' : typeof g.bill_map[ o[0] ].copy != 'undefined' ? g.bill_map[ o[0] ].copy.barcode() : ''
                             };
                         }
                     ),