Bug 9076 - Add ability to delete borrowers by expiration date and category code to...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / maninvoice.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Borrowers &rsaquo; Create manual invoice</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
5 //<![CDATA[
6 $(document).ready(function(){
7         $("fieldset.rows input").keydown(function(e){ return checkEnter(e); });
8 });
9 //]]>
10 </script>
11 </head>
12 <body id="pat_maninvoice" class="pat">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'patron-search.inc' %]
15
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Manual Invoice</div>
17
18 <div id="doc3" class="yui-t2">
19    
20    <div id="bd">
21         <div id="yui-main">
22         <div class="yui-b">
23 [% INCLUDE 'members-toolbar.inc' %]
24
25 <!-- The manual invoice and credit buttons -->
26 <div class="statictabs">
27 <ul>
28         <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li>
29         <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li>
30     <li class="active"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li>
31         <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li>
32 </ul>
33 <div class="tabs-container">
34
35 [% IF ( ERROR ) %]
36 [% IF ( ITEMNUMBER ) %]
37   ERROR an invalid itemnumber was entered, please hit back and try again
38 [% END %]
39 [% ELSE %]
40 <form action="/cgi-bin/koha/members/maninvoice.pl" method="post"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
41         <fieldset class="rows">
42         <legend>Manual Invoice</legend>
43         <ol>
44       <li>
45 <script type="text/javascript">
46 var type_fees = new Array();
47 type_fees['L'] = '';
48 type_fees['F'] = '';
49 type_fees['A'] = '';
50 type_fees['N'] = '';
51 type_fees['M'] = '';
52 [% FOREACH invoice_types_loo IN invoice_types_loop %]
53 type_fees['[% invoice_types_loo.authorised_value %]'] = "[% invoice_types_loo.lib %]";
54 [% END %]
55 </script>
56         <label for="type">Type: </label>
57         <select name="type" id="type" onchange="this.form.desc.value=this.options[this.selectedIndex].value; this.form.amount.value=type_fees[this.options[this.selectedIndex].value];">
58           <option value="L">Lost item</option>
59           <option value="F">Fine</option>
60           <option value="A">Account management fee</option>
61           <option value="N">New card</option>
62           <option value="M">Sundry</option>
63           [% FOREACH invoice_types_loo IN invoice_types_loop %]
64             <option value="[% invoice_types_loo.authorised_value %]">[% invoice_types_loo.authorised_value %]</option>
65           [% END %]
66         </select>
67       </li>
68         <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
69         <li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li>
70     <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
71         <li><label for="amount">Amount: </label><input type="text" name="amount" id="amount" /> Example: 5.00</li>
72         </ol></fieldset>
73 <fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset>
74 </form>
75
76 [% END %]
77 </div></div>
78
79 </div>
80 </div>
81
82 <div class="yui-b">
83 [% INCLUDE 'circ-menu.inc' %]
84 </div>
85 </div>
86 [% INCLUDE 'intranet-bottom.inc' %]