snapshot of possible bill pay layout before changing it again
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Jul 2005 21:18:47 +0000 (21:18 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Jul 2005 21:18:47 +0000 (21:18 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1319 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display_overlay.xul

index cab9f0a..828cc9b 100755 (executable)
@@ -93,6 +93,14 @@ function set_patron_display_widgets(p) {
                },
                false
        );
+       p.commandset_node.getElementsByAttribute('id','cmd_patron_bills')[0].addEventListener(
+               'command',
+               function () {
+                       focus_widget( p.w.document, 'bill_payment_amount_textbox' );
+               },
+               false
+       );
+
 
 }
 
index d73e0a5..538cd20 100755 (executable)
@@ -57,9 +57,9 @@
        </groupbox>
        <groupbox id="cssdgb4">
                <caption id="cssdgb4c" label="&patron_navbar.bills;"/>
-               <box id="PatronBills_insert1" />
-               <box id="PatronBills_main" flex="1"/>
-               <box id="PatronBills_insert2" />
+               <box id="PatronBills_insert1" flex="0" />
+               <box id="PatronBills_main" flex="0" />
+               <box id="PatronBills_insert2" flex="1" />
        </groupbox>
        <box id="PatronEdit_main"><label value="edit" /></box>
        <box id="PatronInfo_main"><label value="info" /></box>
        <button id="checkout_done" label="&patron_display.checkout.done_label;" accesskey="&patron_display.checkout.done_label.accesskey;"/>
 </hbox>
 
-<box id="PatronBills_insert1" orient="horizontal">
-
+<box id="PatronBills_insert1" orient="vertical">
+       <hbox id="pbi1_hb">
+               <spacer id="pbi1_s1" flex="1" />
+               <grid id="pbi1_g1" style="border: solid thin black">
+                       <columns id="pbi1_gc">
+                               <column id="pbi1_gc1"/>
+                               <column id="pbi1_gc2"/>
+                       </columns>                                 
+                       <rows>
+                               <row>
+                                       <label id="pbi1_l2" value="Payment Type" 
+                                               accesskey="t" control="pbi1_ml" 
+                                               style="font-family: bold" />
+       
+                                       <label id="pbi1_l1" value="Payment amount" 
+                                               accesskey="p" control="pbi1_tb1"
+                                               style="font-family: bold" />
+                               </row>
+                               <row>
+                                       <menulist id="pbi1_ml">
+                                               <menupopup id="pbi1_mp">
+                                                       <menuitem id="pbi1_mi1" label="Cash" />
+                                                       <menuitem id="pbi1_mi2" label="Credit Card" />
+                                                       <menuitem id="pbi1_mi3" label="Forward Balance" />
+                                                       <menuitem id="pbi1_mi4" label="Forgive" />
+                                               </menupopup>
+                                       </menulist>
+               
+                                       <textbox id="bill_payment_amount_textbox" />
+                               </row>
+                       </rows>
+               </grid>
+               <spacer id="pbi1_s3" flex="1" />
+       </hbox>
+       <label id="pbi1_s2" value=" "/>
 </box>
 
-<box id="PatronBills_insert2" orient="horizontal">
-
+<box id="PatronBills_insert2" orient="vertical">
+       <label id="pbi2_s1" value=" "/>
+       <hbox id="pbi2_hb">
+               <spacer id="bpi2_s3" flex="1"/>
+               <grid id="pbi2_g1" style="border: solid thin black">
+                       <columns id="pbi2_gc">
+                               <column id="pbi2_gc1"/>
+                               <column id="pbi2_gc2"/>
+                               <column id="pbi2_gc3"/>
+                       </columns>                                 
+                       <rows>
+                               <row>
+                                       <label id="pbi2_l2" value="Change" 
+                                               control="bill_change_amount_textbox" 
+                                               style="font-family: bold" />
+       
+                                       <label id="pbi2_l1" value="Forward Balance" 
+                                               control="bill_credit_amount_textbox"
+                                               style="font-family: bold" />
+                               </row>
+                               <row>
+                                       <hbox id="pbi2_hb2">
+                                               <textbox id="bill_change_amount_textbox" />
+                                               <button id="convert_change_to_credit_button" label="->" />
+                                       </hbox>
+
+                                       <textbox id="bill_credit_amount_textbox" />
+
+                                       <button id="bill_apply_payment" label="Go!" accesskey="G"/>
+                               </row>
+                       </rows>
+               </grid>
+               <spacer id="bpi2_s4" flex="1"/>
+       </hbox>
+       <spacer id="pbi2_s2" flex="1" />        
 </box>
 
 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->