Lines 1-11
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
|
|
3 |
[% USE Branches %] |
3 |
[% USE Koha %] |
4 |
[% USE Koha %] |
4 |
[% USE Price %] |
5 |
[% USE Price %] |
5 |
[% USE TablesSettings %] |
6 |
[% USE TablesSettings %] |
|
|
7 |
[% USE Registers %] |
6 |
[% SET footerjs = 1 %] |
8 |
[% SET footerjs = 1 %] |
7 |
[% PROCESS 'payments.inc' %] |
9 |
[% PROCESS 'payments.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
10 |
[% INCLUDE 'doc-head-open.inc' %] |
|
|
11 |
[% SET registers = Registers.all( filters => { current_branch => 1 } ) %] |
9 |
<title>Koha › Payments</title> |
12 |
<title>Koha › Payments</title> |
10 |
[% INCLUDE 'doc-head-close.inc' %] |
13 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
</head> |
14 |
</head> |
Lines 20-26
Link Here
|
20 |
<div class="row"> |
23 |
<div class="row"> |
21 |
<div class="col-sm-10 col-sm-push-2"> |
24 |
<div class="col-sm-10 col-sm-push-2"> |
22 |
|
25 |
|
23 |
[% IF ( error_registers ) %] |
26 |
[% IF ( registers.size == 0 ) %] |
24 |
<div id="error_message" class="dialog message"> |
27 |
<div id="error_message" class="dialog message"> |
25 |
<p> |
28 |
<p> |
26 |
You must have at least one cash register associated with the library before you can record payments. |
29 |
You must have at least one cash register associated with the library before you can record payments. |
Lines 126-138
Link Here
|
126 |
<li> |
129 |
<li> |
127 |
<label for="registerid">Cash register: </label> |
130 |
<label for="registerid">Cash register: </label> |
128 |
<select name="registerid" id="registerid"> |
131 |
<select name="registerid" id="registerid"> |
129 |
[% FOREACH register IN registers %] |
132 |
[% PROCESS options_for_registers register_required => 1 %] |
130 |
[% IF register.id == default_register %] |
|
|
131 |
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option> |
132 |
[% ELSE %] |
133 |
<option value="[% register.id | html %]">[% register.name | html %]</option> |
134 |
[% END %] |
135 |
[% END %] |
136 |
</select> |
133 |
</select> |
137 |
</li> |
134 |
</li> |
138 |
</ol> |
135 |
</ol> |