|
Lines 2-12
Link Here
|
| 2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
| 3 |
[% USE Koha %] |
3 |
[% USE Koha %] |
| 4 |
[% USE Branches %] |
4 |
[% USE Branches %] |
|
|
5 |
[% USE Registers %] |
| 5 |
[% USE Price %] |
6 |
[% USE Price %] |
| 6 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
| 7 |
[% PROCESS 'payments.inc' %] |
8 |
[% PROCESS 'payments.inc' %] |
| 8 |
[% PROCESS 'accounts.inc' %] |
9 |
[% PROCESS 'accounts.inc' %] |
| 9 |
[% INCLUDE 'doc-head-open.inc' %] |
10 |
[% INCLUDE 'doc-head-open.inc' %] |
|
|
11 |
[% SET registers = Registers.all( filters => { current_branch => 1 } ) %] |
| 10 |
<title>Koha › Patrons › |
12 |
<title>Koha › Patrons › |
| 11 |
[% IF type == 'WRITEOFF' %] |
13 |
[% IF type == 'WRITEOFF' %] |
| 12 |
Write off an amount for [% patron.firstname | html %] [% patron.surname | html %] |
14 |
Write off an amount for [% patron.firstname | html %] [% patron.surname | html %] |
|
Lines 73-79
Link Here
|
| 73 |
[% END %] |
75 |
[% END %] |
| 74 |
|
76 |
|
| 75 |
[% IF ( pay_individual ) %] |
77 |
[% IF ( pay_individual ) %] |
| 76 |
[% IF ( error_registers ) %] |
78 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %] |
| 77 |
<div id="error_message" class="dialog alert"> |
79 |
<div id="error_message" class="dialog alert"> |
| 78 |
You must have at least one cash register associated with this branch before you can record payments. |
80 |
You must have at least one cash register associated with this branch before you can record payments. |
| 79 |
</div> |
81 |
</div> |
|
Lines 140-154
Link Here
|
| 140 |
|
142 |
|
| 141 |
[% IF Koha.Preference('UseCashRegisters') %] |
143 |
[% IF Koha.Preference('UseCashRegisters') %] |
| 142 |
<li> |
144 |
<li> |
| 143 |
<label for="cash_register">Cash register: </label> |
145 |
<label for="registerid">Cash register: </label> |
| 144 |
<select name="cash_register" id="cash_register"> |
146 |
<select name="registerid" id="registerid"> |
| 145 |
[% FOREACH register IN registers %] |
147 |
[% PROCESS options_for_registers register_required => 1 %] |
| 146 |
[% IF register.id == registerid %] |
|
|
| 147 |
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option> |
| 148 |
[% ELSE %] |
| 149 |
<option value="[% register.id | html %]">[% register.name | html %]</option> |
| 150 |
[% END %] |
| 151 |
[% END %] |
| 152 |
</select> |
148 |
</select> |
| 153 |
</li> |
149 |
</li> |
| 154 |
[% END %] |
150 |
[% END %] |
|
Lines 214-220
Link Here
|
| 214 |
</div> |
210 |
</div> |
| 215 |
</form> |
211 |
</form> |
| 216 |
[% ELSE %] |
212 |
[% ELSE %] |
| 217 |
[% IF ( error_registers && type != 'writeoff' ) %] |
213 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) && ( type != 'writeoff' ) %] |
| 218 |
<div id="error_message" class="dialog alert"> |
214 |
<div id="error_message" class="dialog alert"> |
| 219 |
You must have at least one cash register associated with this branch before you can record payments. |
215 |
You must have at least one cash register associated with this branch before you can record payments. |
| 220 |
</div> |
216 |
</div> |
|
Lines 278-292
Link Here
|
| 278 |
|
274 |
|
| 279 |
[% IF Koha.Preference('UseCashRegisters') %] |
275 |
[% IF Koha.Preference('UseCashRegisters') %] |
| 280 |
<li> |
276 |
<li> |
| 281 |
<label for="cash_register">Cash register: </label> |
277 |
<label for="registerid">Cash register: </label> |
| 282 |
<select name="cash_register" id="cash_register"> |
278 |
<select name="registerid" id="registerid"> |
| 283 |
[% FOREACH register IN registers %] |
279 |
[% PROCESS options_for_registers register_required => 1 %] |
| 284 |
[% IF register.id == registerid %] |
|
|
| 285 |
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option> |
| 286 |
[% ELSE %] |
| 287 |
<option value="[% register.id | html %]">[% register.name | html %]</option> |
| 288 |
[% END %] |
| 289 |
[% END %] |
| 290 |
</select> |
280 |
</select> |
| 291 |
</li> |
281 |
</li> |
| 292 |
[% END %] |
282 |
[% END %] |