Billing UI style lost and longoverdue circulations
[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 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>
82                         </row>
83                     </rows>
84                 </grid>
85                 <spacer flex="1"/>
86                 <groupbox>
87                     <caption label="&staff.patron.bills_overlay.pay_bill.label;"/>
88                     <grid>
89                         <columns>
90                             <column/>
91                             <column/>
92                         </columns>
93                         <rows>
94                             <row>
95                                 <label value="&staff.patron.bills_overlay.payment_type.value;" class="emphasis1" accesskey="&staff.patron.bills_overlay.payment_type.accesskey;" control="payment_type"/>
96                                 <menulist id="payment_type">
97                                     <menupopup id="payment_type_menupopup">
98                                         <menuitem id="payment_type_menuitem1" class="hide_patron_cash" label="&staff.patron.bills_overlay.cash.label;" value="cash_payment"/>
99                                         <menuitem id="payment_type_menuitem2" class="hide_patron_check" label="&staff.patron.bills_overlay.check.label;" value="check_payment"/>
100                                         <menuitem id="payment_type_menuitem3" class="hide_patron_credit_card" label="&staff.patron.bills_overlay.credit_card.label;" value="credit_card_payment"/>
101                                         <menuitem id="payment_type_menuitem4" class="hide_patron_credit" label="&staff.patron.bills_overlay.patron_credit.label;" value="credit_payment" />
102                                         <menuitem id="payment_type_menuitem5" class="hide_patron_work" label="&staff.patron.bills_overlay.word.label;" value="work_payment"/>
103                                         <menuitem id="payment_type_menuitem6" class="hide_patron_forgive" label="&staff.patron.bills_overlay.forgive.label;" value="forgive_payment"/>
104                                         <menuitem id="payment_type_menuitem7" class="hide_patron_goods" label="&staff.patron.bills_overlay.goods.label;" value="goods_payment"/>
105                                     </menupopup>
106                                 </menulist>
107                             </row>
108                             <row>
109                                 <label value="&staff.patron.bill_interface.payment_received.label;" accesskey="&staff.patron.bill_interface.payment_received.accesskey;" class="emphasis1" control="payment" />
110                                 <hbox><textbox id="payment" size="6"/></hbox>
111                             </row>
112                         </rows>
113                     </grid>
114                     <hbox>
115                         <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();"/>
116                         <button label="&staff.patron.bills_overlay.see_distribution.label;" accesskey="&staff.patron.bills_overlay.see_distribution.accesskey;" oncommand="distribute_payment(); default_focus();"/>
117                         <button id="apply_payment_btn" label="&staff.patron.bills_overlay.apply_payment.label;" accesskey="&staff.patron.bills_overlay.apply_payment.accesskey;"/>
118                     </hbox>
119                 </groupbox>
120             </hbox>
121             <splitter id="splitter1" oils_persist="state hidden" oils_persist_peers="before_splitter1 after_splitter1" />
122             <vbox flex="1" id="after_splitter1" oils_persist="height">
123                 <hbox>
124                     <button id="bill_patron_btn" label="&staff.patron.bills_overlay.bill_patron.label;" accesskey="&staff.patron.bills_overlay.bill_patron.accesskey;" />
125                     <button id="bill_history_btn" label="&staff.patron.bills_overlay.history.label;" accesskey="&staff.patron.bills_overlay.history.accesskey;" />
126                     <spacer flex="1"/>
127                     <vbox pack="center">
128                         <label id="circulating_hint" hidden="true" 
129                             value="&staff.patron.bills_overlay.still_checked_out.label;"/>
130
131                         <label id="longoverdue_hint" hidden="true" 
132                             value="&staff.patron.bills_overlay.longoverdue_checked_out.label;"/>
133
134                         <label id="lost_hint" hidden="true"
135                             value="&staff.patron.bills_overlay.lost_checked_out.label;"/>
136                     </vbox>
137                     <menubar>
138                         <menu label="&staff.patron.bill_interface.actions.label;" accesskey="&staff.patron.bill_interface.actions.accesskey;">
139                             <menupopup>
140                                 <menuitem command="opac" />
141                                 <menuitem command="copy_details" />
142                                 <menuitem command="voidall" />
143                                 <menuitem command="refund" />
144                                 <menuitem command="add" />
145                                 <menuitem command="details" />
146                             </menupopup>
147                         </menu>
148                     </menubar>
149                 </hbox>
150                 <tree id="bill_tree" flex="1" enableColumnDrag="true" seltype="multiple" editable="true" context="actions_popup"/>
151                 <hbox>
152                     <hbox id="bill_list_actions" />
153                     <button label="&staff.patron.bills_overlay.check_all.label;" accesskey="&staff.patron.bills_overlay.check_all.accesskey;" oncommand="check_all();"/>
154                     <button id="uncheck_all" label="&staff.patron.bills_overlay.uncheck_all.label;" accesskey="&staff.patron.bills_overlay.uncheck_all.accesskey;" oncommand="uncheck_all();"/>
155                     <button label="&staff.patron.bills_overlay.check_all_refunds.label;" accesskey="&staff.patron.bills_overlay.check_all_refunds.accesskey;" oncommand="check_all_refunds();"/>
156                     <button id="print" label="&staff.patron.bills_overlay.print_bills.label;" accesskey="&staff.patron.bills_overlay.print_bills.accesskey;" oncommand="print_bills();"/>
157                     <spacer flex="1"/>
158                     <button label="&staff.patron.bills_overlay.receipt_options.label;" accesskey="&staff.patron.bills_overlay.receipt_options.accesskey;" type="menu">
159                         <menupopup>
160                             <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"/>
161                             <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"/>
162                             <hbox style="border: solid thin black">
163                                 <vbox pack="center">
164                                     <label value="&staff.patron.bills_overlay.number_of_copies.label;" accesskey="&staff.patron.bills_overlay.number_of_copies.accesskey;" control="num_of_receipts" />
165                                 </vbox>
166                                 <vbox pack="center">
167                                     <textbox id="num_of_receipts" value="1" type="number" min="0" size="2" oils_persist="value"/>
168                                 </vbox>
169                             </hbox>
170                         </menupopup>
171                     </button>
172                 </hbox>
173             </vbox>
174             <splitter id="splitter2" oils_persist="state hidden" oils_persist_peers="after_splitter1 after_splitter2" />
175             <hbox id="after_splitter2" oils_persist="height">
176                 <vbox>
177                     <hbox>
178                         <label value='&staff.patron.bill_interface.voided_this_session.label;' class="emphasis1"/><label id="currently_voided" value="0.00"/>
179                     </hbox>
180                     <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>
181                     <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;"/>
182                 </vbox>
183                 <spacer flex="1"/>
184                 <grid>
185                     <columns>
186                         <column />
187                         <column />
188                     </columns>
189                     <rows>
190                         <row>
191                             <spacer />
192                             <label id="pending_payment_label" value="&staff.patron.bill_interface.payment.label;" class="emphasis1" />
193                             <label id="pending_change_label" value="&staff.patron.bill_interface.change.label;" class="emphasis1" />
194                         </row>
195                         <row>
196                             <label id="pending_label" value="&staff.patron.bill_interface.pending.label;" class="emphasis1" />
197                             <hbox><textbox id="pending_payment" readonly="true" context="clipboard" size="6" value='0.00'/></hbox>
198                             <hbox><textbox id="pending_change" readonly="true" context="clipboard" size="6" value='0.00'/></hbox>
199                         </row>
200                     </rows>
201                 </grid>
202                 <grid>
203                     <columns>
204                         <column />
205                         <column />
206                     </columns>
207                     <rows>
208                         <row>
209                             <spacer />
210                             <label id="owed_label" value="&staff.patron.bill_interface.owed.label;" control="total_owed" class="emphasis1"/>
211                             <label id="billed_label" value="&staff.patron.bill_interface.billed.label;" control="total_billed" class="emphasis2"/>
212                             <label id="paid_label" value="&staff.patron.bill_interface.paid.label;" control="total_paid" class="emphasis2"/>
213                         </row>
214                         <row>
215                             <label id="total_label" value="&staff.patron.bill_interface.total.label;" control="total_owed" class="emphasis1"/>
216                             <hbox><textbox id="tb_total_owed" readonly="true" context="clipboard" size="6"/></hbox>
217                             <hbox><textbox id="total_billed" readonly="true" context="clipboard" size="6"/></hbox>
218                             <hbox><textbox id="tb_total_paid" readonly="true" context="clipboard" size="6"/></hbox>
219                         </row>
220                         <row>
221                             <label id="checked_label" value="&staff.patron.bill_interface.checked.label;" control="checked_owed" class="emphasis2"/>
222                             <hbox><textbox id="checked_owed" readonly="true" context="clipboard" size="6"/></hbox>
223                             <hbox><textbox id="checked_billed" readonly="true" context="clipboard" size="6"/></hbox>
224                             <hbox><textbox id="checked_paid" readonly="true" context="clipboard" size="6"/></hbox>
225                         </row>
226                     </rows>
227                 </grid>
228             </hbox>
229         </groupbox>
230     </vbox>
231
232 </window>
233