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