pass in the session and some column tweaks
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 19 Dec 2005 07:01:00 +0000 (07:01 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 19 Dec 2005 07:01:00 +0000 (07:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2438 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bills.js
Open-ILS/xul/staff_client/server/patron/display.js

index 8433b5c..66ad2c3 100644 (file)
@@ -26,23 +26,23 @@ patron.bills.prototype = {
                        {
                                'columns' : [
                                                {
-                                                       'id' : 'checkbox', 'label' : '', 'flex' : 0, 'primary' : false, 'hidden' : false,
+                                                       'id' : 'checkbox', 'label' : '', 'flex' : 1, 'primary' : false, 'hidden' : false,
                                                        'render' : 'document.createElement("checkbox")'
                                                },
                                                {
-                                                       'id' : 'xact_dates', 'label' : getString('staff.bills_xact_dates_label'), 'flex' : 0,
+                                                       'id' : 'xact_dates', 'label' : getString('staff.bills_xact_dates_label'), 'flex' : 1,
                                                        'primary' : false, 'hidden' : false, 'render' : 'xact_dates_box(my.mbts)'
                                                },
                                                {
-                                                       'id' : 'notes', 'label' : getString('staff.bills_information'), 'flex' : 0,
+                                                       'id' : 'notes', 'label' : getString('staff.bills_information'), 'flex' : 1,
                                                        'primary' : false, 'hidden' : false, 'render' : 'info_box(my.mbts)'
                                                },
                                                {
-                                                       'id' : 'money', 'label' : getString('staff.bills_money_label'), 'flex' : 0,
+                                                       'id' : 'money', 'label' : getString('staff.bills_money_label'), 'flex' : 1,
                                                        'primary' : false, 'hidden' : false, 'render' : 'money_box(my.mbts)'
                                                },
                                                {
-                                                       'id' : 'current_pay', 'label' : getString('staff.bills_current_payment_label'), 'flex' : 0
+                                                       'id' : 'current_pay', 'label' : getString('staff.bills_current_payment_label'), 'flex' : 1
                                                        'render' : 'document.createElement("textbox")'
                                                }
                                ],
@@ -62,6 +62,7 @@ patron.bills.prototype = {
                                                obj.error.sdump('D_ERROR','map_row_to_column: ' + E);
                                                value = '???';
                                        }
+                                       dump('map_row_to_column: value = ' + value + '\n');
                                        return value;
                                },
                        }
index afc3280..282d463 100644 (file)
@@ -97,7 +97,15 @@ patron.display.prototype = {
                                        'cmd_patron_bills' : [
                                                ['command'],
                                                function(ev) {
-                                                       obj.right_deck.set_iframe(urls.remote_patron_bills);
+                                                       obj.right_deck.set_iframe(
+                                                               urls.remote_patron_bills
+                                                               + '?session=' + window.escape( obj.session )
+                                                               + '&patron_id=' + window.escape( obj.patron.id() ),
+                                                               {},
+                                                               {
+                                                                       //FIXME//'bills' : obj.patron.bills()
+                                                               }
+                                                       );
                                                        dump('obj.right_deck.node.childNodes.length = ' + obj.right_deck.node.childNodes.length + '\n');
                                                }
                                        ],