first cut, bill wizard
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Nov 2005 15:58:32 +0000 (15:58 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Nov 2005 15:58:32 +0000 (15:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2068 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_bills.js
Evergreen/staff_client/chrome/content/evergreen/patron/patron_utils.js
Evergreen/staff_client/chrome/content/evergreen/util/spawn_win.js
Evergreen/staff_client/chrome/locale/en-US/evergreen/OpenILS.properties

index 4da92a1..fe285e4 100644 (file)
@@ -175,8 +175,8 @@ function patron_bills_init(p) {
        p.control_box.bill_wizard.addEventListener(
                'command',
                function() {
-                       spawn_bill_wizard(
-                               p.w.document, 'new_window', '', {}
+                       spawn_patron_bill_wizard(
+                               p.w.document, 'new_window', '', { 'patron' : p._patron }
                        );
                },
                false
index c1a3a13..7c0d7e9 100755 (executable)
@@ -304,7 +304,7 @@ function patron_pay_bills( payment_blob ) {
        sdump('D_PATRON_UTILS',arg_dump(arguments,{0:true}));
        try {
                //alert("Bill's API call goes here.  payment_blob = \n" + pretty_print( js2JSON( payment_blob ) ) + '\n');
-               alert( 'payment_blob\n' + js2JSON( payment_blob ) );
+               //alert( 'payment_blob\n' + js2JSON( payment_blob ) );
                var result = user_request(
                        'open-ils.circ',
                        'open-ils.circ.money.payment',
index 29e59a7..e1cb8c1 100644 (file)
@@ -150,13 +150,8 @@ function spawn_batch_copy_editor(d,placement,place,passthru_params,clone) {
        return spawn_interface(d,placement,place,chrome,getString('copies_editor_interface_label'),passthru_params,clone);
 }
 
-function spawn_bill_pay(d,placement,place,passthru_params,clone) {
-       var chrome = 'chrome://evergreen/content/bill/bill.xul';
-       return spawn_interface(d,placement,place,chrome,getString('bills_interface_label'),passthru_params,clone);
-}
-
-function spawn_bill_wizard(d,placement,place,passthru_params,clone) {
-       var chrome = 'chrome://evergreen/content/bill/bill_wizard.xul';
+function spawn_patron_bill_wizard(d,placement,place,passthru_params,clone) {
+       var chrome = 'chrome://evergreen/content/patron/patron_bill_wizard.xul';
        return spawn_interface(d,placement,place,chrome,getString('bills_wizard_label'),passthru_params,clone);
 }
 
index d39c680..3780b29 100644 (file)
@@ -96,6 +96,7 @@ ahr_selection_depth_label=Selection Depth
 ahr_target_label=Target
 ahr_usr_label=Usr
 
+bills_wizard_label=Bill Patron
 bills_total_owed_label=Total Owed
 bills_current_payment_label=Current Payment