|
Lines 1-5
Link Here
|
| 1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
| 2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
|
|
3 |
[% USE AuthorisedValues %] |
| 3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
| 4 |
<title>Koha › Patrons › Collect fine payment for [% borrower.firstname %] [% borrower.surname %]</title> |
5 |
<title>Koha › Patrons › Collect fine payment for [% borrower.firstname %] [% borrower.surname %]</title> |
| 5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
|
Lines 147-152
function moneyFormat(textObj) {
Link Here
|
| 147 |
<!-- default to paying all --> |
148 |
<!-- default to paying all --> |
| 148 |
<input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" /> |
149 |
<input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" /> |
| 149 |
</li> |
150 |
</li> |
|
|
151 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
| 152 |
[% IF payment_types %] |
| 153 |
<li> |
| 154 |
<label for="payment_type">Payment type: </label> |
| 155 |
<select name="payment_type" id="payment_type>"> |
| 156 |
<option value=""></option> |
| 157 |
[% FOREACH pt IN payment_types %] |
| 158 |
<option value="[% pt.authorised_value %]">[% pt.lib %]</option> |
| 159 |
[% END %] |
| 160 |
</select> |
| 161 |
</li> |
| 162 |
[% END %] |
| 150 |
</ol> |
163 |
</ol> |
| 151 |
</fieldset> |
164 |
</fieldset> |
| 152 |
|
165 |
|
|
Lines 211-220
function moneyFormat(textObj) {
Link Here
|
| 211 |
<!-- default to paying all --> |
224 |
<!-- default to paying all --> |
| 212 |
<input name="paid" id="paid" value="[% total | format('%.2f') %]" /> |
225 |
<input name="paid" id="paid" value="[% total | format('%.2f') %]" /> |
| 213 |
</li> |
226 |
</li> |
|
|
227 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
| 228 |
[% IF payment_types %] |
| 229 |
<li> |
| 230 |
<label for="payment_type">Payment type: </label> |
| 231 |
<select name="payment_type" id="payment_type>"> |
| 232 |
<option value=""></option> |
| 233 |
[% FOREACH pt IN payment_types %] |
| 234 |
<option value="[% pt.authorised_value %]">[% pt.lib %]</option> |
| 235 |
[% END %] |
| 236 |
</select> |
| 237 |
</li> |
| 238 |
[% END %] |
| 214 |
<li> |
239 |
<li> |
| 215 |
<label for="selected_accts_notes">Note: </label> |
240 |
<label for="selected_accts_notes">Note: </label> |
| 216 |
<textarea name="selected_accts_notes" id="selected_accts_notes">[% selected_accts_notes %]</textarea> |
241 |
<textarea name="selected_accts_notes" id="selected_accts_notes">[% selected_accts_notes %]</textarea> |
| 217 |
</li> |
242 |
</li> |
|
|
243 |
[% IF payment_types.count %] |
| 244 |
<li> |
| 245 |
<label for="payment_type">Payment type: </label> |
| 246 |
<select name="payment_type" id="payment_type>"> |
| 247 |
<option value=""></option> |
| 248 |
[% FOREACH pt IN payment_types %] |
| 249 |
<option value="[% pt.authorised_value %]">[% pt.lib %]</option> |
| 250 |
[% END %] |
| 251 |
</select> |
| 252 |
</li> |
| 253 |
[% END %] |
| 218 |
</ol> |
254 |
</ol> |
| 219 |
</fieldset> |
255 |
</fieldset> |
| 220 |
<div class="action"><input type="submit" name="submitbutton" value="Confirm" /> |
256 |
<div class="action"><input type="submit" name="submitbutton" value="Confirm" /> |