3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Patrons › Create manual invoice</title>
5 [% INCLUDE 'doc-head-close.inc' %]
8 <body id="pat_maninvoice" class="pat">
9 [% INCLUDE 'header.inc' %]
10 [% INCLUDE 'patron-search.inc' %]
12 <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>
14 <div id="doc3" class="yui-t2">
19 [% INCLUDE 'members-toolbar.inc' %]
21 <!-- The manual invoice and credit buttons -->
22 <div class="statictabs">
24 <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li>
25 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li>
26 <li class="active"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li>
27 <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li>
29 <div class="tabs-container">
32 [% IF ( ITEMNUMBER ) %]
33 ERROR an invalid itemnumber was entered, please hit back and try again
36 <form action="/cgi-bin/koha/members/maninvoice.pl" method="post" id="maninvoice"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" />
37 <fieldset class="rows">
38 <legend>Manual invoice</legend>
41 <label for="type">Type: </label>
42 <select name="type" id="invoice_type">
43 <option value="L">Lost item</option>
44 <option value="F">Fine</option>
45 <option value="A">Account management fee</option>
46 <option value="N">New card</option>
47 <option value="M">Sundry</option>
48 [% FOREACH invoice_types_loo IN invoice_types_loop %]
49 <option value="[% invoice_types_loo.authorised_value %]">[% invoice_types_loo.authorised_value %]</option>
53 <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
54 <li><label for="desc">Description: </label><input type="text" name="desc" id="desc" size="50" /></li>
55 <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
56 <li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li>
58 <fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset>
68 [% INCLUDE 'circ-menu.inc' %]
72 [% MACRO jsinclude BLOCK %]
73 <script type="text/javascript" src="[% interface %]/[% theme %]/js/members-menu_[% KOHA_VERSION %].js"></script>
74 <script type="text/javascript">
75 var type_fees = {'L':'','F':'','A':'','N':'','M':''};
76 [% FOREACH invoice_types_loo IN invoice_types_loop %]
77 type_fees['[% invoice_types_loo.authorised_value %]'] = "[% invoice_types_loo.lib %]";
79 $(document).ready(function(){
80 $('#maninvoice').preventDoubleFormSubmit();
81 $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
82 $("#invoice_type").on("change",function(){
83 this.form.desc.value = this.options[this.selectedIndex].value;
84 this.form.amount.value = type_fees[this.options[this.selectedIndex].value];
90 [% INCLUDE 'intranet-bottom.inc' %]