minor
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 16 Nov 2005 22:07:55 +0000 (22:07 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 16 Nov 2005 22:07:55 +0000 (22:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2046 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_bills.js
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/patron/patron_utils.js
Evergreen/staff_client/chrome/content/evergreen/util/spawn_win.js

index 6bee131..08ddb04 100644 (file)
@@ -170,6 +170,16 @@ function patron_bills_init(p) {
                false
        );
 
+       p.control_box.bill_apply_payment.addEventListener(
+               'command',
+               function() {
+                       spawn_bill_wizard(
+                               p.w.document, 'new_window', '', {}
+                       );
+               },
+               false
+       );
+
        sdump('D_TRACE_EXIT',arg_dump(arguments));
        return p;
 }
@@ -178,6 +188,7 @@ function patron_bills_control_box_init( p ) {
        p.control_box = {};
        p.control_box.node = p.node.previousSibling;
        p.control_box.node2 = p.node.nextSibling;
+       p.control_box.bill_wizard = p.control_box.node.getElementsByAttribute('id','bill_wizard')[0];
        p.control_box.bill_total_owed = p.control_box.node.getElementsByAttribute('id','bill_total_owed')[0];
        p.control_box.payment_type = p.control_box.node.getElementsByAttribute('id','payment_type_menulist')[0];
        p.control_box.bill_payment_amount = p.control_box.node.getElementsByAttribute('id','bill_payment_amount_textbox')[0];
index 5a5fa1e..e631deb 100755 (executable)
                </groupbox>
        </hbox>
        <hbox>
+               <button id="bill_wizard" label="Bill Patron" accesskey="B"/>
                <spacer flex="2"/>
                <button id="change_to_credit" label="Convert Change to Patron Credit"/>
                <button id="bill_apply_payment" label="Go!" accesskey="G"/>
index 94de01d..7153690 100755 (executable)
@@ -304,6 +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 ) );
                var result = user_request(
                        'open-ils.circ',
                        'open-ils.circ.money.payment',
index a4e40cd..29e59a7 100644 (file)
@@ -155,6 +155,11 @@ function spawn_bill_pay(d,placement,place,passthru_params,clone) {
        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';
+       return spawn_interface(d,placement,place,chrome,getString('bills_wizard_label'),passthru_params,clone);
+}
+
 function spawn_copy_browser(d,placement,place,passthru_params,clone) {
        var chrome = 'chrome://evergreen/content/cat/browse_list.xul';
        return spawn_interface(d,placement,place,chrome,getString('copy_browser_interface_label'),passthru_params,clone);