]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/bill2.xul
semi-functional mockup of new billing interface, hidden away in Alternate View for...
[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"
24         onload="try{ my_init(); font_helper(); persist_helper(); } 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="Void All Billings" accesskey="" />
50             <menuitem command="refund" label="Refund" accesskey="" />
51             <menuitem command="add" label="&staff.patron.bill_interface.add_billing.label;" 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>
61                     <columns>
62                         <column/>
63                         <column/>
64                     </columns>
65                     <rows>
66                         <row><label value="Total Owed:" class="big_emphasis1" /><label id="total_owed2" class="big_emphasis1"/></row>
67                         <row><label value="Total Checked:" class="big_emphasis1" /><label id="checked_owed2" class="big_emphasis1"/></row>
68                     </rows>
69                 </grid>
70                 <spacer flex="1"/>
71                 <groupbox>
72                     <caption label="Pay Bill"/>
73                     <grid>
74                         <columns>
75                             <column/>
76                             <column/>
77                         </columns>
78                         <rows>
79                             <row>
80                                 <label value="Payment Type:" class="emphasis1" accesskey="T" control="payment_type"/>
81                                 <menulist id="payment_type">
82                                     <menupopup id="payment_type_menupopup">
83                                         <menuitem id="payment_type_menuitem1" label="&staff.patron.bills_overlay.cash.label;" value="cash_payment"/>
84                                         <menuitem id="payment_type_menuitem2" label="&staff.patron.bills_overlay.check.label;" value="check_payment"/>
85                                         <menuitem id="payment_type_menuitem3" label="&staff.patron.bills_overlay.credit_card.label;" value="credit_card_payment"/>
86                                         <menuitem id="payment_type_menuitem4" label="Patron Credit" value="credit_payment" />
87                                         <menuitem id="payment_type_menuitem5" label="&staff.patron.bills_overlay.word.label;" value="work_payment"/>
88                                         <menuitem id="payment_type_menuitem6" label="&staff.patron.bills_overlay.forgive.label;" value="forgive_payment"/>
89                                         <menuitem id="payment_type_menuitem7" label="&staff.patron.bills_overlay.goods.label;" value="goods_payment"/>
90                                     </menupopup>
91                                 </menulist>
92                             </row>
93                             <row>
94                                 <label value="Payment Received:" class="emphasis1" />
95                                 <hbox><textbox id="payment" size="6"/></hbox>
96                             </row>
97                         </rows>
98                     </grid>
99                     <hbox>
100                                 <checkbox id="annotate_payment" label="&staff.patron.bills_overlay.annotate_payment.label;" accesskey="n" oils_persist="checked" checked="false" oncommand="default_focus();"/>
101                         <button label="See Distribution" accesskey="D" oncommand="default_focus();"/>
102                         <button label="Apply Payment" accesskey="P"/>
103                     </hbox>
104                 </groupbox>
105             </hbox>
106             <splitter />
107             <hbox>
108                 <button label="Bill Patron" accesskey="" />
109                 <button label="History" accesskey="" />
110                 <spacer flex="1"/>
111                 <menubar>
112                     <menu label="Actions for Selected Rows" accesskey="A">
113                         <menupopup>
114                             <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');"/>
115                             <menuitem command="voidall" label="Void All Billings" accesskey="V" />
116                             <menuitem command="refund" label="Refund" accesskey="R" />
117                             <menuitem command="add" label="&staff.patron.bill_interface.add_billing.label;" accesskey="A" />
118                             <menuitem command="details" label="&staff.patron.bill_interface.full_details.label;" accesskey="&staff.patron.bill_interface.full_details.accesskey;"/>
119                         </menupopup>
120                     </menu>
121                 </menubar>
122             </hbox>
123             <tree id="bill_tree" flex="1" enableColumnDrag="true" seltype="multiple" editable="true" context="actions_popup"/>
124             <hbox>
125                 <hbox id="bill_list_actions" />
126                 <button label="Check All" oncommand="g.bill_list._toggle_checkbox_column({'id':'select'},'on');"/>
127                 <button label="Uncheck All" oncommand="g.bill_list._toggle_checkbox_column({'id':'select'},'off');"/>
128                 <button id="print" label="Print Bills" oncommand="print_bills();"/>
129                 <spacer flex="1"/>
130                 <button label="Receipt Options" type="menu">
131                     <menupopup>
132                         <menuitem type="checkbox" label="Receipt Upon Payment" checked="true"/>
133                         <menuitem type="checkbox" label="Printer Prompt" />
134                         <hbox style="border: solid thin black">
135                             <vbox pack="center">
136                                 <label value="Number of Copies:" />
137                             </vbox>
138                             <vbox pack="center">
139                                 <textbox id="num_of_receipts" value="1" type="number" min="0" size="2"/>
140                             </vbox>
141                         </hbox>
142                     </menupopup>
143                 </button>
144             </hbox>
145             <splitter />
146             <hbox>
147                 <vbox>
148                     <hbox>
149                         <label value='&staff.patron.bill_interface.voided_this_session.label;' class="emphasis1"/><label id="currently_voided" value="$0.00"/>
150                         <label value='Credit Available:' class="emphasis1"/><label id="credit_forward" value="$0.00"/>
151                     </hbox>
152                     <hbox><label value='Change Due Upon Payment:' class="big_emphasis1"/><label id="change_due" value="$0.00" class="big_emphasis1"/></hbox>
153                 </vbox>
154                 <spacer flex="1"/>
155                 <grid>
156                     <columns>
157                         <column />
158                         <column />
159                     </columns>
160                     <rows>
161                         <row>
162                             <spacer />
163                             <label id="pending_payment_label" value="Payment" class="emphasis1" />
164                             <label id="pending_change_label" value="Change" class="emphasis1" />
165                         </row>
166                         <row>
167                             <label id="pending_label" value="Pending" class="emphasis1" />
168                             <hbox><textbox id="pending_payment" readonly="true" context="clipboard" size="6" value='$0.00'/></hbox>
169                             <hbox><textbox id="pending_change" readonly="true" context="clipboard" size="6" value='$0.00'/></hbox>
170                         </row>
171                     </rows>
172                 </grid>
173                 <grid>
174                     <columns>
175                         <column />
176                         <column />
177                     </columns>
178                     <rows>
179                         <row>
180                             <spacer />
181                             <label id="owed_label" value="Owed" control="total_owed" class="emphasis1"/>
182                             <label id="billed_label" value="Billed" control="total_billed" class="emphasis2"/>
183                             <label id="paid_label" value="Paid" control="total_paid" class="emphasis2"/>
184                         </row>
185                         <row>
186                             <label id="total_label" value="Total:" control="total_owed" class="emphasis1"/>
187                             <hbox><textbox id="total_owed" readonly="true" context="clipboard" size="6"/></hbox>
188                             <hbox><textbox id="total_billed" readonly="true" context="clipboard" size="6"/></hbox>
189                             <hbox><textbox id="total_paid" readonly="true" context="clipboard" size="6"/></hbox>
190                         </row>
191                         <row>
192                             <label id="checked_label" value="Checked:" control="checked_owed" class="emphasis2"/>
193                             <hbox><textbox id="checked_owed" readonly="true" context="clipboard" size="6"/></hbox>
194                             <hbox><textbox id="checked_billed" readonly="true" context="clipboard" size="6"/></hbox>
195                             <hbox><textbox id="checked_paid" readonly="true" context="clipboard" size="6"/></hbox>
196                         </row>
197                     </rows>
198                 </grid>
199             </hbox>
200         </groupbox>
201         </vbox>
202
203 </window>
204