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