|
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 135-149
Link Here
|
| 135 |
|
137 |
|
| 136 |
[% IF Koha.Preference('UseCashRegisters') %] |
138 |
[% IF Koha.Preference('UseCashRegisters') %] |
| 137 |
<li> |
139 |
<li> |
| 138 |
<label for="cash_register">Cash register: </label> |
140 |
<label for="registerid">Cash register: </label> |
| 139 |
<select name="cash_register" id="cash_register"> |
141 |
<select name="registerid" id="registerid"> |
| 140 |
[% FOREACH register IN registers %] |
142 |
[% PROCESS options_for_registers register_required => 1 %] |
| 141 |
[% IF register.id == registerid %] |
|
|
| 142 |
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option> |
| 143 |
[% ELSE %] |
| 144 |
<option value="[% register.id | html %]">[% register.name | html %]</option> |
| 145 |
[% END %] |
| 146 |
[% END %] |
| 147 |
</select> |
143 |
</select> |
| 148 |
</li> |
144 |
</li> |
| 149 |
[% END %] |
145 |
[% END %] |
|
Lines 204-210
Link Here
|
| 204 |
</div> |
200 |
</div> |
| 205 |
</form> |
201 |
</form> |
| 206 |
[% ELSE %] |
202 |
[% ELSE %] |
| 207 |
[% IF ( error_registers && type != 'writeoff' ) %] |
203 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) && ( type != 'writeoff' ) %] |
| 208 |
<div id="error_message" class="dialog alert"> |
204 |
<div id="error_message" class="dialog alert"> |
| 209 |
You must have at least one cash register associated with this branch before you can record payments. |
205 |
You must have at least one cash register associated with this branch before you can record payments. |
| 210 |
</div> |
206 |
</div> |
|
Lines 256-270
Link Here
|
| 256 |
|
252 |
|
| 257 |
[% IF Koha.Preference('UseCashRegisters') %] |
253 |
[% IF Koha.Preference('UseCashRegisters') %] |
| 258 |
<li> |
254 |
<li> |
| 259 |
<label for="cash_register">Cash register: </label> |
255 |
<label for="registerid">Cash register: </label> |
| 260 |
<select name="cash_register" id="cash_register"> |
256 |
<select name="registerid" id="registerid"> |
| 261 |
[% FOREACH register IN registers %] |
257 |
[% PROCESS options_for_registers register_required => 1 %] |
| 262 |
[% IF register.id == registerid %] |
|
|
| 263 |
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option> |
| 264 |
[% ELSE %] |
| 265 |
<option value="[% register.id | html %]">[% register.name | html %]</option> |
| 266 |
[% END %] |
| 267 |
[% END %] |
| 268 |
</select> |
258 |
</select> |
| 269 |
</li> |
259 |
</li> |
| 270 |
[% END %] |
260 |
[% END %] |