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 [% WRAPPER 'header.inc' %]
16 [% INCLUDE 'patron-search-header.inc' %]
19 [% WRAPPER 'sub-header.inc' %]
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
23 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
26 <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
29 <a href="#" aria-current="page">
37 <div class="main container-fluid">
39 <div class="col-sm-10 col-sm-push-2">
42 [% INCLUDE 'members-toolbar.inc' %]
44 <h1>Manual credit</h1>
46 <!-- The manual invoice and credit buttons -->
47 <div class="statictabs">
49 <li class="transactions"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Transactions</a></li>
50 <li class="makepayment"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Make a payment</a></li>
51 [% IF CAN_user_updatecharges_manual_invoice %]
52 <li class="manualinvoice"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual invoice</a></li>
54 <li class="active manualcredit"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual credit</a></li>
56 <div class="tabs-container">
58 <form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit">
59 <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" />
60 <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
62 <fieldset class="rows">
63 <legend>Manual credit</legend>
66 <label for="type">Credit type: </label>
67 <select name="type" id="type">
68 [% FOREACH credit_type IN credit_types %]
69 <option value="[% credit_type.code | html %]">[%- PROCESS credit_type_description credit_type=credit_type -%]</option>
73 <li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li>
74 <li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li>
75 <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li>
76 <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>
80 [% IF available_additional_fields %]
81 [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %]
84 <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>
91 </div> <!-- /.col-sm-10.col-sm-push-2 -->
93 <div class="col-sm-2 col-sm-pull-10">
95 [% INCLUDE 'circ-menu.inc' %]
97 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
100 [% MACRO jsinclude BLOCK %]
101 [% INCLUDE 'str/members-menu.inc' %]
102 [% Asset.js("js/members-menu.js") | $raw %]
104 $(document).ready(function(){
105 $('#mancredit').preventDoubleFormSubmit();
106 $("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
111 [% INCLUDE 'intranet-bottom.inc' %]