|
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 148-153
function moneyFormat(textObj) {
Link Here
|
| 148 |
<!-- default to paying all --> |
149 |
<!-- default to paying all --> |
| 149 |
<input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" /> |
150 |
<input name="paid" id="paid" value="[% amountoutstanding | format('%.2f') %]" /> |
| 150 |
</li> |
151 |
</li> |
|
|
152 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
| 153 |
[% IF payment_types %] |
| 154 |
<li> |
| 155 |
<label for="payment_type">Payment type: </label> |
| 156 |
<select name="payment_type" id="payment_type>"> |
| 157 |
<option value=""></option> |
| 158 |
[% FOREACH pt IN payment_types %] |
| 159 |
<option value="[% pt.authorised_value %]">[% pt.lib %]</option> |
| 160 |
[% END %] |
| 161 |
</select> |
| 162 |
</li> |
| 163 |
[% END %] |
| 151 |
</ol> |
164 |
</ol> |
| 152 |
</fieldset> |
165 |
</fieldset> |
| 153 |
|
166 |
|
|
Lines 214-223
function moneyFormat(textObj) {
Link Here
|
| 214 |
<!-- default to paying all --> |
227 |
<!-- default to paying all --> |
| 215 |
<input name="paid" id="paid" value="[% total | format('%.2f') %]" /> |
228 |
<input name="paid" id="paid" value="[% total | format('%.2f') %]" /> |
| 216 |
</li> |
229 |
</li> |
|
|
230 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
| 231 |
[% IF payment_types %] |
| 232 |
<li> |
| 233 |
<label for="payment_type">Payment type: </label> |
| 234 |
<select name="payment_type" id="payment_type>"> |
| 235 |
<option value=""></option> |
| 236 |
[% FOREACH pt IN payment_types %] |
| 237 |
<option value="[% pt.authorised_value %]">[% pt.lib %]</option> |
| 238 |
[% END %] |
| 239 |
</select> |
| 240 |
</li> |
| 241 |
[% END %] |
| 217 |
<li> |
242 |
<li> |
| 218 |
<label for="selected_accts_notes">Note: </label> |
243 |
<label for="selected_accts_notes">Note: </label> |
| 219 |
<textarea name="selected_accts_notes" id="selected_accts_notes">[% selected_accts_notes %]</textarea> |
244 |
<textarea name="selected_accts_notes" id="selected_accts_notes">[% selected_accts_notes %]</textarea> |
| 220 |
</li> |
245 |
</li> |
|
|
246 |
[% IF payment_types.count %] |
| 247 |
<li> |
| 248 |
<label for="payment_type">Payment type: </label> |
| 249 |
<select name="payment_type" id="payment_type>"> |
| 250 |
<option value=""></option> |
| 251 |
[% FOREACH pt IN payment_types %] |
| 252 |
<option value="[% pt.authorised_value %]">[% pt.lib %]</option> |
| 253 |
[% END %] |
| 254 |
</select> |
| 255 |
</li> |
| 256 |
[% END %] |
| 221 |
</ol> |
257 |
</ol> |
| 222 |
</fieldset> |
258 |
</fieldset> |
| 223 |
<div class="action"><input type="submit" name="submitbutton" value="Confirm" /> |
259 |
<div class="action"><input type="submit" name="submitbutton" value="Confirm" /> |