7 [% PROCESS 'accounts.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Create manual credit › Patrons › Koha</title>
11 [% INCLUDE 'doc-head-close.inc' %]
14 <body id="pat_mancredit" class="pat">
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'patron-search.inc' %]
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
27 <a href="#" aria-current="page">
34 <div class="main container-fluid">
36 <div class="col-sm-10 col-sm-push-2">
39 [% INCLUDE 'members-toolbar.inc' %]
41 <!-- The manual invoice and credit buttons -->
42 <div class="statictabs">
44 <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Transactions</a></li>
45 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Make a payment</a></li>
46 <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual invoice</a></li>
47 <li class="active"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual credit</a></li>
49 <div class="tabs-container">
51 <form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit">
52 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
53 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
55 <fieldset class="rows">
56 <legend>Manual credit</legend>
59 <label for="type">Credit type: </label>
60 <select name="type" id="type">
61 [% FOREACH credit_type IN credit_types %]
62 <option value="[% credit_type.code | html %]">[%- PROCESS credit_type_description credit_type=credit_type -%]</option>
66 <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
67 <li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
68 <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
69 <li><label for="amount">Amount: </label><input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" name="amount" id="amount" required="required" min="0" value=""/> Example: 5.00</li>
73 <fieldset class="action"><input type="submit" name="add" value="Add credit" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a></fieldset>
80 </div> <!-- /.col-sm-10.col-sm-push-2 -->
82 <div class="col-sm-2 col-sm-pull-10">
84 [% INCLUDE 'circ-menu.inc' %]
86 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
89 [% MACRO jsinclude BLOCK %]
90 [% INCLUDE 'str/members-menu.inc' %]
91 [% Asset.js("js/members-menu.js") | $raw %]
93 $(document).ready(function(){
94 $('#mancredit').preventDoubleFormSubmit();
95 $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
100 [% INCLUDE 'intranet-bottom.inc' %]