]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/bill2.xul
make the multiple splitter widgets behave better (otherwise you can shrink the list...
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / bill2.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/circ.css" type="text/css"?>
10 <?xml-stylesheet href="/xul/server/skin/patron_display.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window PUBLIC "" ""[
15     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <!--<?xul-overlay href="/xul/server/patron/bill_summary_overlay.xul"?>-->
22
23 <window id="bill_interface_win" width="700" height="550" oils_persist="sizemode width height"
24     onload="try{ font_helper(); persist_helper(); my_init(); } catch(E) { alert(E); }"
25     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26
27     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28     <!-- BEHAVIOR -->
29         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
30         <scripts id="openils_util_scripts"/>
31
32     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
33     <script type="text/javascript" src="bill2.js"/>
34
35     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
36     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties"/>
37
38     <commandset>
39         <command id="opac" disabled="true"/>
40         <command id="voidall" disabled="true"/>
41         <command id="refund" disabled="true"/>
42         <command id="add" disabled="true"/>
43         <command id="details" disabled="true"/>
44     </commandset>
45
46     <popupset>
47         <popup id="actions_popup">
48             <menuitem command="opac" label="&staff.patron.bill_interface.show_in_catalog.label;" accesskey="&staff.patron.bill_interface.show_in_catalog.accesskey;" oncommand="alert('Not Yet Implemented');"/>
49             <menuitem command="voidall" label="&staff.patron.bill_interface.void_all_billings.label;" accesskey="&staff.patron.bill_interface.void_all_billings.accesskey;" />
50             <menuitem command="refund" label="&staff.patron.bill_interface.refund.label;" accesskey="&staff.patron.bill_interface.refund.accesskey;" />
51             <menuitem command="add" label="&staff.patron.bill_interface.add_billing.label;" accesskey="&staff.patron.bill_interface.add_billing.accesskey;" />
52             <menuitem command="details" label="&staff.patron.bill_interface.full_details.label;" accesskey="&staff.patron.bill_interface.full_details.accesskey;"/>
53         </popup>
54     </popupset>
55
56     <vbox flex="1" class="my_overflow">
57         <groupbox orient="vertical" flex="1">
58             <caption id="caption" label="&staff.patron.bill_interface.caption.label;"/>
59             <hbox>
60                 <grid flex="1">
61                     <columns flex="1">
62                         <column/>
63                         <column/>
64                         <column flex="1"/>
65                         <column/>
66                         <column/>
67                     </columns>
68                     <rows>
69                         <row>
70                             <vbox pack="center"><label value="&staff.patron.bill_interface.total_owed;" class="big_emphasis1" /></vbox><vbox pack="center"><label id="total_owed2" class="big_emphasis1"/></vbox>
71                             <spacer flex="1"/>
72                             <vbox pack="center"><label value="&staff.patron.bill_interface.refunds_available;" class="big_emphasis2"/></vbox><vbox pack="center"><label id="refunds_owed" class="big_emphasis2"/></vbox>
73                         </row>
74                         <row>
75                             <vbox pack="center"><label value="&staff.patron.bill_interface.total_checked;" class="big_emphasis1" /></vbox><vbox pack="center"><label id="checked_owed2" class="big_emphasis1"/></vbox>
76                             <spacer flex="1"/>
77                             <vbox pack="center"><label value='&staff.patron.bill_interface.credit_available;' class="big_emphasis2"/></vbox><vbox pack="center"><label id="credit_forward" class="big_emphasis2"/></vbox>
78                         </row>
79                     </rows>
80                 </grid>
81                 <spacer flex="1"/>
82                 <groupbox>
83                     <caption label="&staff.patron.bills_overlay.pay_bill.label;"/>
84                     <grid>
85                         <columns>
86                             <column/>
87                             <column/>
88                         </columns>
89                         <rows>
90                             <row>
91                                 <label value="&staff.patron.bills_overlay.payment_type.value;" class="emphasis1" accesskey="&staff.patron.bills_overlay.payment_type.accesskey;" control="payment_type"/>
92                                 <menulist id="payment_type">
93                                     <menupopup id="payment_type_menupopup">
94                                         <menuitem id="payment_type_menuitem1" label="&staff.patron.bills_overlay.cash.label;" value="cash_payment"/>
95                                         <menuitem id="payment_type_menuitem2" label="&staff.patron.bills_overlay.check.label;" value="check_payment"/>
96                                         <menuitem id="payment_type_menuitem3" label="&staff.patron.bills_overlay.credit_card.label;" value="credit_card_payment"/>
97                                         <menuitem id="payment_type_menuitem4" label="&staff.patron.bills_overlay.patron_credit.label;" value="credit_payment" />
98                                         <menuitem id="payment_type_menuitem5" label="&staff.patron.bills_overlay.word.label;" value="work_payment"/>
99                                         <menuitem id="payment_type_menuitem6" label="&staff.patron.bills_overlay.forgive.label;" value="forgive_payment"/>
100                                         <menuitem id="payment_type_menuitem7" label="&staff.patron.bills_overlay.goods.label;" value="goods_payment"/>
101                                     </menupopup>
102                                 </menulist>
103                             </row>
104                             <row>
105                                 <label value="&staff.patron.bill_interface.payment_received.label;" accesskey="&staff.patron.bill_interface.payment_received.accesskey;" class="emphasis1" control="payment" />
106                                 <hbox><textbox id="payment" size="6"/></hbox>
107                             </row>
108                         </rows>
109                     </grid>
110                     <hbox>
111                         <checkbox id="annotate_payment" label="&staff.patron.bills_overlay.annotate_payment.label;" accesskey="&staff.patron.bills_overlay.annotate_payment.accesskey;" oils_persist="checked" checked="false" oncommand="default_focus();"/>
112                         <button label="&staff.patron.bills_overlay.see_distribution.label;" accesskey="&staff.patron.bills_overlay.see_distribution.accesskey;" oncommand="distribute_payment(); default_focus();"/>
113                         <button id="apply_payment_btn" label="&staff.patron.bills_overlay.apply_payment.label;" accesskey="&staff.patron.bills_overlay.apply_payment.accesskey;"/>
114                     </hbox>
115                 </groupbox>
116             </hbox>
117             <splitter />
118             <vbox flex="1">
119                 <hbox>
120                     <button id="bill_patron_btn" label="&staff.patron.bills_overlay.bill_patron.label;" accesskey="&staff.patron.bills_overlay.bill_patron.accesskey;" />
121                     <button id="bill_history_btn" label="&staff.patron.bills_overlay.history.label;" accesskey="&staff.patron.bills_overlay.history.accesskey;" />
122                     <spacer flex="1"/>
123                     <vbox pack="center">
124                         <label id="circulating_hint" hidden="true" style="background: red; color: white" value="&staff.patron.bills_overlay.still_checked_out.label;"/>
125                     </vbox>
126                     <menubar>
127                         <menu label="&staff.patron.bill_interface.actions.label;" accesskey="&staff.patron.bill_interface.actions.accesskey;">
128                             <menupopup>
129                                 <menuitem command="opac" label="&staff.patron.bill_interface.show_in_catalog.label;" accesskey="&staff.patron.bill_interface.show_in_catalog.accesskey;" oncommand="alert('Not Yet Implemented');"/>
130                                 <menuitem command="voidall" label="&staff.patron.bill_interface.void_all_billings.label;" accesskey="&staff.patron.bill_interface.void_all_billings.accesskey;" />
131                                 <menuitem command="refund" label="&staff.patron.bill_interface.refund.label;" accesskey="&staff.patron.bill_interface.refund.accesskey;" />
132                                 <menuitem command="add" label="&staff.patron.bill_interface.add_billing.label;" accesskey="&staff.patron.bill_interface.add_billing.accesskey;" />
133                                 <menuitem command="details" label="&staff.patron.bill_interface.full_details.label;" accesskey="&staff.patron.bill_interface.full_details.accesskey;"/>
134                             </menupopup>
135                         </menu>
136                     </menubar>
137                 </hbox>
138                 <tree id="bill_tree" flex="1" enableColumnDrag="true" seltype="multiple" editable="true" context="actions_popup"/>
139                 <hbox>
140                     <hbox id="bill_list_actions" />
141                     <button label="&staff.patron.bills_overlay.check_all.label;" accesskey="&staff.patron.bills_overlay.check_all.accesskey;" oncommand="check_all();"/>
142                     <button label="&staff.patron.bills_overlay.uncheck_all.label;" accesskey="&staff.patron.bills_overlay.uncheck_all.accesskey;" oncommand="uncheck_all();"/>
143                     <button label="&staff.patron.bills_overlay.check_all_refunds.label;" accesskey="&staff.patron.bills_overlay.check_all_refunds.accesskey;" oncommand="check_all_refunds();"/>
144                     <button id="print" label="&staff.patron.bills_overlay.print_bills.label;" accesskey="&staff.patron.bills_overlay.print_bills.accesskey;" oncommand="print_bills();"/>
145                     <spacer flex="1"/>
146                     <button label="&staff.patron.bills_overlay.receipt_options.label;" accesskey="&staff.patron.bills_overlay.receipt_options.accesskey;" type="menu">
147                         <menupopup>
148                             <menuitem id="receipt_upon_payment" type="checkbox" label="&staff.patron.bills_overlay.receipt_upon_payment.label;" accesskey="&staff.patron.bills_overlay.receipt_upon_payment.accesskey;" checked="true"/>
149                             <menuitem id="printer_prompt" type="checkbox" label="&staff.patron.bills_overlay.printer_prompt.label;" accesskey="&staff.patron.bills_overlay.printer_prompt.accesskey;" />
150                             <hbox style="border: solid thin black">
151                                 <vbox pack="center">
152                                     <label value="&staff.patron.bills_overlay.number_of_copies.label;" accesskey="&staff.patron.bills_overlay.number_of_copies.accesskey;" control="num_of_receipts" />
153                                 </vbox>
154                                 <vbox pack="center">
155                                     <textbox id="num_of_receipts" value="1" type="number" min="0" size="2"/>
156                                 </vbox>
157                             </hbox>
158                         </menupopup>
159                     </button>
160                 </hbox>
161             </vbox>
162             <splitter />
163             <hbox>
164                 <vbox>
165                     <hbox>
166                         <label value='&staff.patron.bill_interface.voided_this_session.label;' class="emphasis1"/><label id="currently_voided" value="0.00"/>
167                     </hbox>
168                     <hbox><label value='&staff.patron.bill_interface.change_due_upon_payment.label;' class="big_emphasis1"/><label id="change_due" value="0.00" class="big_emphasis1"/></hbox>
169                     <checkbox id="convert_change_to_credit" label="&staff.patron.bills_overlay.convert_change_to_credit.label;" accesskey="&staff.patron.bills_overlay.convert_change_to_credit.accesskey;"/>
170                 </vbox>
171                 <spacer flex="1"/>
172                 <grid>
173                     <columns>
174                         <column />
175                         <column />
176                     </columns>
177                     <rows>
178                         <row>
179                             <spacer />
180                             <label id="pending_payment_label" value="&staff.patron.bill_interface.payment.label;" class="emphasis1" />
181                             <label id="pending_change_label" value="&staff.patron.bill_interface.change.label;" class="emphasis1" />
182                         </row>
183                         <row>
184                             <label id="pending_label" value="&staff.patron.bill_interface.pending.label;" class="emphasis1" />
185                             <hbox><textbox id="pending_payment" readonly="true" context="clipboard" size="6" value='0.00'/></hbox>
186                             <hbox><textbox id="pending_change" readonly="true" context="clipboard" size="6" value='0.00'/></hbox>
187                         </row>
188                     </rows>
189                 </grid>
190                 <grid>
191                     <columns>
192                         <column />
193                         <column />
194                     </columns>
195                     <rows>
196                         <row>
197                             <spacer />
198                             <label id="owed_label" value="&staff.patron.bill_interface.owed.label;" control="total_owed" class="emphasis1"/>
199                             <label id="billed_label" value="&staff.patron.bill_interface.billed.label;" control="total_billed" class="emphasis2"/>
200                             <label id="paid_label" value="&staff.patron.bill_interface.paid.label;" control="total_paid" class="emphasis2"/>
201                         </row>
202                         <row>
203                             <label id="total_label" value="&staff.patron.bill_interface.total.label;" control="total_owed" class="emphasis1"/>
204                             <hbox><textbox id="total_owed" readonly="true" context="clipboard" size="6"/></hbox>
205                             <hbox><textbox id="total_billed" readonly="true" context="clipboard" size="6"/></hbox>
206                             <hbox><textbox id="total_paid" readonly="true" context="clipboard" size="6"/></hbox>
207                         </row>
208                         <row>
209                             <label id="checked_label" value="&staff.patron.bill_interface.checked.label;" control="checked_owed" class="emphasis2"/>
210                             <hbox><textbox id="checked_owed" readonly="true" context="clipboard" size="6"/></hbox>
211                             <hbox><textbox id="checked_billed" readonly="true" context="clipboard" size="6"/></hbox>
212                             <hbox><textbox id="checked_paid" readonly="true" context="clipboard" size="6"/></hbox>
213                         </row>
214                     </rows>
215                 </grid>
216             </hbox>
217         </groupbox>
218     </vbox>
219
220 </window>
221