Lines 46-118
Link Here
|
46 |
<h1>Manual credit</h1> |
46 |
<h1>Manual credit</h1> |
47 |
|
47 |
|
48 |
<!-- The manual invoice and credit buttons --> |
48 |
<!-- The manual invoice and credit buttons --> |
49 |
<div class="statictabs"> |
49 |
<div class="toptabs"> |
50 |
<ul> |
50 |
<ul class="nav nav-tabs" role="tablist"> |
51 |
<li class="transactions"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Transactions</a></li> |
51 |
<li role="presentation" class="transactions"> |
52 |
<li class="makepayment"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Make a payment</a></li> |
52 |
<a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Transactions</a> |
|
|
53 |
</li> |
54 |
<li role="presentation" class="makepayment"> |
55 |
<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Make a payment</a> |
56 |
</li> |
53 |
[% IF CAN_user_updatecharges_manual_invoice %] |
57 |
[% IF CAN_user_updatecharges_manual_invoice %] |
54 |
<li class="manualinvoice"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual invoice</a></li> |
58 |
<li role="presentation" class="manualinvoice"> |
|
|
59 |
<a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Create manual invoice</a> |
60 |
</li> |
55 |
[% END %] |
61 |
[% END %] |
56 |
<li class="active manualcredit"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" >Create manual credit</a></li> |
62 |
<li role="presentation" class="manualcredit active"> |
57 |
</ul> |
63 |
<a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Create manual credit</a> |
58 |
<div class="tabs-container"> |
64 |
</li> |
59 |
|
65 |
</ul> <!-- /.nav.nav-tabs --> |
60 |
<form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit"> |
66 |
<div class="tab-content"> |
61 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
67 |
<div role="tabpanel" class="tab-pane active"> |
62 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
68 |
<form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit"> |
63 |
|
69 |
<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> |
64 |
<fieldset class="rows"> |
70 |
<input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> |
65 |
<legend>Manual credit</legend> |
71 |
|
66 |
<ol> |
72 |
<fieldset class="rows"> |
67 |
<li> |
73 |
<legend>Manual credit</legend> |
68 |
<label for="type">Credit type: </label> |
74 |
<ol> |
69 |
<select name="type" id="type"> |
75 |
<li> |
70 |
[% FOREACH credit_type IN credit_types %] |
76 |
<label for="type">Credit type: </label> |
71 |
<option value="[% credit_type.code | html %]">[%- PROCESS credit_type_description credit_type=credit_type -%]</option> |
77 |
<select name="type" id="type"> |
|
|
78 |
[% FOREACH credit_type IN credit_types %] |
79 |
<option value="[% credit_type.code | html %]">[%- PROCESS credit_type_description credit_type=credit_type -%]</option> |
80 |
[% END %] |
81 |
</select> |
82 |
</li> |
83 |
<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li> |
84 |
<li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li> |
85 |
<li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> |
86 |
<li><label for="amount" class="required">Amount: </label><input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" name="amount" id="amount" required="required" min="0" value=""/> Example: 5.00</li> |
87 |
[% INCLUDE 'transaction_types.inc' type="credit" %] |
88 |
[% IF Koha.Preference('UseCashRegisters') %] |
89 |
<li> |
90 |
[% IF Koha.Preference('RequireCashRegister') %] |
91 |
<label for="cash_register" class="required"> |
92 |
[% ELSE %] |
93 |
<label for="cash_register"> |
94 |
[% END %] |
95 |
Cash register: |
96 |
</label> |
97 |
|
98 |
[% IF Koha.Preference('RequireCashRegister') %] |
99 |
<select name="cash_register" id="cash_register" required="required"> |
100 |
[% ELSE %] |
101 |
<select name="cash_register" id="cash_register"> |
102 |
[% END %] |
103 |
<option id="noregister" disabled selected="selected" value="">-- Select an option--</option> |
104 |
[% PROCESS options_for_registers %] |
105 |
</select> |
106 |
|
107 |
[% IF Koha.Preference('RequireCashRegister') %] |
108 |
<span class="required">Required</span> |
109 |
[% END %] |
110 |
</li> |
72 |
[% END %] |
111 |
[% END %] |
73 |
</select> |
112 |
</ol> |
74 |
</li> |
113 |
</fieldset> |
75 |
<li><label for="barcode">Barcode: </label><input type="text" name="barcode" id="barcode" /></li> |
|
|
76 |
<li><label for="desc">Description: </label><input type="text" name="desc" size="50" id="desc" /></li> |
77 |
<li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> |
78 |
<li><label for="amount" class="required">Amount: </label><input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" name="amount" id="amount" required="required" min="0" value=""/> Example: 5.00</li> |
79 |
[% INCLUDE 'transaction_types.inc' type="credit" %] |
80 |
[% IF Koha.Preference('UseCashRegisters') %] |
81 |
<li> |
82 |
[% IF Koha.Preference('RequireCashRegister') %] |
83 |
<label for="cash_register" class="required"> |
84 |
[% ELSE %] |
85 |
<label for="cash_register"> |
86 |
[% END %] |
87 |
Cash register: |
88 |
</label> |
89 |
|
90 |
[% IF Koha.Preference('RequireCashRegister') %] |
91 |
<select name="cash_register" id="cash_register" required="required"> |
92 |
[% ELSE %] |
93 |
<select name="cash_register" id="cash_register"> |
94 |
[% END %] |
95 |
<option id="noregister" disabled selected="selected" value="">-- Select an option--</option> |
96 |
[% PROCESS options_for_registers %] |
97 |
</select> |
98 |
|
99 |
[% IF Koha.Preference('RequireCashRegister') %] |
100 |
<span class="required">Required</span> |
101 |
[% END %] |
102 |
</li> |
103 |
[% END %] |
104 |
</ol> |
105 |
</fieldset> |
106 |
|
107 |
[% IF available_additional_fields %] |
108 |
[% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %] |
109 |
[% END %] |
110 |
|
114 |
|
111 |
<fieldset class="action"><input type="submit" name="add" class="btn btn-primary" value="Add credit" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | html %]">Cancel</a></fieldset> |
115 |
[% IF available_additional_fields %] |
112 |
</form> |
116 |
[% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %] |
|
|
117 |
[% END %] |
113 |
|
118 |
|
114 |
</div> |
119 |
<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> |
115 |
</div> |
120 |
</form> |
|
|
121 |
</div> <!-- /.tab-pane --> |
122 |
</div> <!-- /.tab-content --> |
123 |
</div> <!-- /.toptabs --> |
116 |
|
124 |
|
117 |
</main> |
125 |
</main> |
118 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
126 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |