fleshed patron does not give us fleshed .home_ou()
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Dec 2005 21:41:44 +0000 (21:41 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 20 Dec 2005 21:41:44 +0000 (21:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2475 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bill_wizard.xul

index 3c7b6dc..36dd695 100644 (file)
@@ -53,7 +53,7 @@
                                document.getElementById('patron_name').setAttribute('value',
                                        g.au_obj.family_name() + ', ' + g.au_obj.first_given_name() + ' : ' + g.au_obj.card().barcode() );
                                document.getElementById('billing_location').setAttribute('value',
-                                       g.OpenILS.data.list.au[0].home_ou().name() );
+                                       g.OpenILS.data.hash.aou[ g.OpenILS.data.list.au[0].home_ou() ].name() );
 
                        } catch(E) {
                                var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
@@ -69,7 +69,7 @@
                        try {
                                var grocery = new mg();
                                        grocery.isnew('1');
-                                       grocery.billing_location( g.OpenILS.data.list.au[0].home_ou().id() );
+                                       grocery.billing_location( g.OpenILS.data.list.au[0].home_ou() );
                                        grocery.usr( g.au_obj.id() );
                                        grocery.note( document.getElementById('bill_note').value );
                                JSAN.use('util.network'); var net = new util.network();