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 alert"> |
27 |
<div id="error_message" class="dialog alert"> |
25 |
You must have at least one cash register associated with this branch before you can record payments. |
28 |
You must have at least one cash register associated with this branch before you can record payments. |
26 |
</div> |
29 |
</div> |
Lines 118-130
Link Here
|
118 |
<li> |
121 |
<li> |
119 |
<label for="registerid">Cash register: </label> |
122 |
<label for="registerid">Cash register: </label> |
120 |
<select name="registerid" id="registerid"> |
123 |
<select name="registerid" id="registerid"> |
121 |
[% FOREACH register IN registers %] |
124 |
[% PROCESS options_for_registers register_required => 1 %] |
122 |
[% IF register.id == default_register %] |
|
|
123 |
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option> |
124 |
[% ELSE %] |
125 |
<option value="[% register.id | html %]">[% register.name | html %]</option> |
126 |
[% END %] |
127 |
[% END %] |
128 |
</select> |
125 |
</select> |
129 |
</li> |
126 |
</li> |
130 |
</ol> |
127 |
</ol> |