]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/bill2.xul
2889b7b3534eb4f3f520ccf04b2e471b42df9813
[working/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" active="true"
24     onload="try{ font_helper(); persist_helper(); my_init(); } catch(E) { alert(E); }"
25     onunload="try{ my_cleanup(); persist_helper_cleanup(); } catch(E) { alert(E); }"
26     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
27
28     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
29     <!-- BEHAVIOR -->
30         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
31         <scripts id="openils_util_scripts"/>
32
33     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
34     <script type="text/javascript" src="bill2.js"/>
35
36     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
37     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties"/>
38     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties"/>
39
40     <commandset>
41         <command id="opac" label="&staff.patron.bill_interface.show_in_catalog.label;" accesskey="&staff.patron.bill_interface.show_in_catalog.accesskey;" disabled="true"/>
42         <command id="copy_details" label="&staff.patron.items_overlay.sel_copy_details.label;" accesskey="&staff.patron.items_overlay.sel_copy_details.accesskey;" disabled="true"/>
43         <command id="voidall" label="&staff.patron.bill_interface.void_all_billings.label;" accesskey="&staff.patron.bill_interface.void_all_billings.accesskey;" disabled="true"/>
44         <command id="refund" label="&staff.patron.bill_interface.refund.label;" accesskey="&staff.patron.bill_interface.refund.accesskey;" disabled="true"/>
45         <command id="add" label="&staff.patron.bill_interface.add_billing.label;" accesskey="&staff.patron.bill_interface.add_billing.accesskey;" disabled="true"/>
46         <command id="details" label="&staff.patron.bill_interface.full_details.label;" accesskey="&staff.patron.bill_interface.full_details.accesskey;" disabled="true"/>
47     </commandset>
48
49     <popupset>
50         <menupopup id="actions_popup">
51             <menuitem command="opac" />
52             <menuitem command="copy_details" />
53             <menuitem command="voidall" />
54             <menuitem command="refund" />
55             <menuitem command="add" />
56             <menuitem command="details" />
57         </menupopup>
58     </popupset>
59
60     <vbox flex="1" class="my_overflow">
61         <groupbox orient="vertical" flex="1">
62             <caption id="caption" label="&staff.patron.bill_interface.caption.label;"/>
63             <hbox id="before_splitter1" oils_persist="height">
64                 <grid flex="1">
65                     <columns flex="1">
66                         <column/>
67                         <column/>
68                         <column flex="1"/>
69                         <column/>
70                         <column/>
71                     </columns>
72                     <rows>
73                         <row>
74                             <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>
75                             <spacer flex="1"/>
76                             <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>
77                         </row>
78                         <row>
79                             <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>
80                             <spacer flex="1"/>
81                             <vbox class="hide_patron_credit" pack="center">
82                                 <label value='&staff.patron.bill_interface.credit_available;' class="big_emphasis2"/>
83                             </vbox>
84                             <vbox class="hide_patron_credit" pack="center">
85                                 <label id="credit_forward" class="big_emphasis2"/>
86                             </vbox>
87                         </row>
88                     </rows>
89                 </grid>
90                 <spacer flex="1"/>
91                 <groupbox>
92                     <caption label="&staff.patron.bills_overlay.pay_bill.label;"/>
93                     <grid>
94                         <columns>
95                             <column/>
96                             <column/>
97                         </columns>
98                         <rows>
99                             <row>
100                                 <label value="&staff.patron.bills_overlay.payment_type.value;" class="emphasis1" accesskey="&staff.patron.bills_overlay.payment_type.accesskey;" control="payment_type"/>
101                                 <menulist id="payment_type">
102                                     <menupopup id="payment_type_menupopup">
103                                         <menuitem id="payment_type_menuitem1" class="hide_patron_cash" label="&staff.patron.bills_overlay.cash.label;" value="cash_payment"/>
104                                         <menuitem id="payment_type_menuitem2" class="hide_patron_check" label="&staff.patron.bills_overlay.check.label;" value="check_payment"/>
105                                         <menuitem id="payment_type_menuitem3" class="hide_patron_credit_card" label="&staff.patron.bills_overlay.credit_card.label;" value="credit_card_payment"/>
106                                         <menuitem id="payment_type_menuitem4" class="hide_patron_credit" label="&staff.patron.bills_overlay.patron_credit.label;" value="credit_payment" />
107                                         <menuitem id="payment_type_menuitem5" class="hide_patron_work" label="&staff.patron.bills_overlay.word.label;" value="work_payment"/>
108                                         <menuitem id="payment_type_menuitem6" class="hide_patron_forgive" label="&staff.patron.bills_overlay.forgive.label;" value="forgive_payment"/>
109                                         <menuitem id="payment_type_menuitem7" class="hide_patron_goods" label="&staff.patron.bills_overlay.goods.label;" value="goods_payment"/>
110                                     </menupopup>
111                                 </menulist>
112                             </row>
113                             <row>
114                                 <label value="&staff.patron.bill_interface.payment_received.label;" accesskey="&staff.patron.bill_interface.payment_received.accesskey;" class="emphasis1" control="payment" />
115                                 <hbox><textbox id="payment" size="6"/></hbox>
116                             </row>
117                         </rows>
118                     </grid>
119                     <hbox>
120                         <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();"/>
121                         <button label="&staff.patron.bills_overlay.see_distribution.label;" accesskey="&staff.patron.bills_overlay.see_distribution.accesskey;" oncommand="distribute_payment(); default_focus();"/>
122                         <button id="apply_payment_btn" label="&staff.patron.bills_overlay.apply_payment.label;" accesskey="&staff.patron.bills_overlay.apply_payment.accesskey;"/>
123                     </hbox>
124                 </groupbox>
125             </hbox>
126             <splitter id="splitter1" oils_persist="state hidden" oils_persist_peers="before_splitter1 after_splitter1" />
127             <vbox flex="1" id="after_splitter1" oils_persist="height">
128                 <hbox>
129                     <button id="bill_patron_btn" label="&staff.patron.bills_overlay.bill_patron.label;" accesskey="&staff.patron.bills_overlay.bill_patron.accesskey;" />
130                     <button id="bill_history_btn" label="&staff.patron.bills_overlay.history.label;" accesskey="&staff.patron.bills_overlay.history.accesskey;" />
131                     <spacer flex="1"/>
132                     <vbox pack="center">
133                         <label id="circulating_hint" hidden="true" 
134                             value="&staff.patron.bills_overlay.still_checked_out.label;"/>
135
136                         <label id="longoverdue_hint" hidden="true" 
137                             value="&staff.patron.bills_overlay.longoverdue_checked_out.label;"/>
138
139                         <label id="lost_hint" hidden="true"
140                             value="&staff.patron.bills_overlay.lost_checked_out.label;"/>
141                     </vbox>
142                     <menubar>
143                         <menu label="&staff.patron.bill_interface.actions.label;" accesskey="&staff.patron.bill_interface.actions.accesskey;">
144                             <menupopup>
145                                 <menuitem command="opac" />
146                                 <menuitem command="copy_details" />
147                                 <menuitem command="voidall" />
148                                 <menuitem command="refund" />
149                                 <menuitem command="add" />
150                                 <menuitem command="details" />
151                             </menupopup>
152                         </menu>
153                     </menubar>
154                 </hbox>
155                 <tree id="bill_tree" flex="1" enableColumnDrag="true" seltype="multiple" editable="true" context="actions_popup"/>
156                 <hbox>
157                     <hbox id="bill_list_actions" />
158                     <button label="&staff.patron.bills_overlay.check_all.label;" accesskey="&staff.patron.bills_overlay.check_all.accesskey;" oncommand="check_all();"/>
159                     <button id="uncheck_all" label="&staff.patron.bills_overlay.uncheck_all.label;" accesskey="&staff.patron.bills_overlay.uncheck_all.accesskey;" oncommand="uncheck_all();"/>
160                     <button label="&staff.patron.bills_overlay.check_all_refunds.label;" accesskey="&staff.patron.bills_overlay.check_all_refunds.accesskey;" oncommand="check_all_refunds();"/>
161                     <button id="print" label="&staff.patron.bills_overlay.print_bills.label;" accesskey="&staff.patron.bills_overlay.print_bills.accesskey;" oncommand="print_bills();"/>
162                     <spacer flex="1"/>
163                     <button label="&staff.patron.bills_overlay.receipt_options.label;" accesskey="&staff.patron.bills_overlay.receipt_options.accesskey;" type="menu">
164                         <menupopup>
165                             <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;" oils_persist="checked"/>
166                             <menuitem id="printer_prompt" type="checkbox" label="&staff.patron.bills_overlay.printer_prompt.label;" accesskey="&staff.patron.bills_overlay.printer_prompt.accesskey;"  oils_persist="checked"/>
167                             <hbox style="border: solid thin black">
168                                 <vbox pack="center">
169                                     <label value="&staff.patron.bills_overlay.number_of_copies.label;" accesskey="&staff.patron.bills_overlay.number_of_copies.accesskey;" control="num_of_receipts" />
170                                 </vbox>
171                                 <vbox pack="center">
172                                     <textbox id="num_of_receipts" value="1" type="number" min="0" size="2" oils_persist="value"/>
173                                 </vbox>
174                             </hbox>
175                         </menupopup>
176                     </button>
177                 </hbox>
178             </vbox>
179             <splitter id="splitter2" oils_persist="state hidden" oils_persist_peers="after_splitter1 after_splitter2" />
180             <hbox id="after_splitter2" oils_persist="height">
181                 <vbox>
182                     <hbox>
183                         <label value='&staff.patron.bill_interface.voided_this_session.label;' class="emphasis1"/><label id="currently_voided" value="0.00"/>
184                     </hbox>
185                     <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>
186                     <checkbox id="convert_change_to_credit" class="hide_patron_credit" label="&staff.patron.bills_overlay.convert_change_to_credit.label;" accesskey="&staff.patron.bills_overlay.convert_change_to_credit.accesskey;"/>
187                 </vbox>
188                 <spacer flex="1"/>
189                 <grid>
190                     <columns>
191                         <column />
192                         <column />
193                     </columns>
194                     <rows>
195                         <row>
196                             <spacer />
197                             <label id="pending_payment_label" value="&staff.patron.bill_interface.payment.label;" class="emphasis1" />
198                             <label id="pending_change_label" value="&staff.patron.bill_interface.change.label;" class="emphasis1" />
199                         </row>
200                         <row>
201                             <label id="pending_label" value="&staff.patron.bill_interface.pending.label;" class="emphasis1" />
202                             <hbox><textbox id="pending_payment" readonly="true" context="clipboard" size="6" value='0.00'/></hbox>
203                             <hbox><textbox id="pending_change" readonly="true" context="clipboard" size="6" value='0.00'/></hbox>
204                         </row>
205                     </rows>
206                 </grid>
207                 <grid>
208                     <columns>
209                         <column />
210                         <column />
211                     </columns>
212                     <rows>
213                         <row>
214                             <spacer />
215                             <label id="owed_label" value="&staff.patron.bill_interface.owed.label;" control="total_owed" class="emphasis1"/>
216                             <label id="billed_label" value="&staff.patron.bill_interface.billed.label;" control="total_billed" class="emphasis2"/>
217                             <label id="paid_label" value="&staff.patron.bill_interface.paid.label;" control="total_paid" class="emphasis2"/>
218                         </row>
219                         <row>
220                             <label id="total_label" value="&staff.patron.bill_interface.total.label;" control="total_owed" class="emphasis1"/>
221                             <hbox><textbox id="tb_total_owed" readonly="true" context="clipboard" size="6"/></hbox>
222                             <hbox><textbox id="total_billed" readonly="true" context="clipboard" size="6"/></hbox>
223                             <hbox><textbox id="tb_total_paid" readonly="true" context="clipboard" size="6"/></hbox>
224                         </row>
225                         <row>
226                             <label id="checked_label" value="&staff.patron.bill_interface.checked.label;" control="checked_owed" class="emphasis2"/>
227                             <hbox><textbox id="checked_owed" readonly="true" context="clipboard" size="6"/></hbox>
228                             <hbox><textbox id="checked_billed" readonly="true" context="clipboard" size="6"/></hbox>
229                             <hbox><textbox id="checked_paid" readonly="true" context="clipboard" size="6"/></hbox>
230                         </row>
231                     </rows>
232                 </grid>
233             </hbox>
234         </groupbox>
235     </vbox>
236
237 </window>
238