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