1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Borrowers › Create manual invoice</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 $(document).ready(function(){
7 $('#maninvoice').preventDoubleFormSubmit();
8 $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
13 <body id="pat_maninvoice" class="pat">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'patron-search.inc' %]
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Manual invoice</div>
19 <div id="doc3" class="yui-t2">
24 [% INCLUDE 'members-toolbar.inc' %]
26 <!-- The manual invoice and credit buttons -->
27 <div class="statictabs">
29 <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li>
30 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li>
31 <li class="active"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li>
32 <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li>
34 <div class="tabs-container">
37 [% IF ( ITEMNUMBER ) %]
38 ERROR an invalid itemnumber was entered, please hit back and try again
41 <form action="/cgi-bin/koha/members/maninvoice.pl" method="post" id="maninvoice"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
42 <fieldset class="rows">
43 <legend>Manual invoice</legend>
46 <script type="text/javascript">
47 var type_fees = new Array();
53 [% FOREACH invoice_types_loo IN invoice_types_loop %]
54 type_fees['[% invoice_types_loo.authorised_value %]'] = "[% invoice_types_loo.lib %]";
57 <label for="type">Type: </label>
58 <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];">
59 <option value="L">Lost item</option>
60 <option value="F">Fine</option>
61 <option value="A">Account management fee</option>
62 <option value="N">New card</option>
63 <option value="M">Sundry</option>
64 [% FOREACH invoice_types_loo IN invoice_types_loop %]
65 <option value="[% invoice_types_loo.authorised_value %]">[% invoice_types_loo.authorised_value %]</option>
69 <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
70 <li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li>
71 <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
72 <li><label for="amount">Amount: </label><input type="text" name="amount" id="amount" /> Example: 5.00</li>
74 <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>
84 [% INCLUDE 'circ-menu.inc' %]
87 [% INCLUDE 'intranet-bottom.inc' %]