Lines 1-10
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 %] |
|
|
6 |
[% USE Registers %] |
5 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
6 |
[% PROCESS 'payments.inc' %] |
8 |
[% PROCESS 'payments.inc' %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
[% INCLUDE 'doc-head-open.inc' %] |
|
|
10 |
[% SET registers = Registers.all( filters => { current_branch => 1 } ) %] |
8 |
<title>Koha › Payments</title> |
11 |
<title>Koha › Payments</title> |
9 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% INCLUDE 'doc-head-close.inc' %] |
10 |
</head> |
13 |
</head> |
Lines 19-25
Link Here
|
19 |
<div class="row"> |
22 |
<div class="row"> |
20 |
<div class="col-sm-10 col-sm-push-2"> |
23 |
<div class="col-sm-10 col-sm-push-2"> |
21 |
|
24 |
|
22 |
[% IF ( error_registers ) %] |
25 |
[% IF registers.size == 0 %] |
23 |
<div id="error_message" class="dialog alert"> |
26 |
<div id="error_message" class="dialog alert"> |
24 |
You must have at least one cash register associated with this branch before you can record payments. |
27 |
You must have at least one cash register associated with this branch before you can record payments. |
25 |
</div> |
28 |
</div> |
Lines 117-129
Link Here
|
117 |
<li> |
120 |
<li> |
118 |
<label for="registerid">Cash register: </label> |
121 |
<label for="registerid">Cash register: </label> |
119 |
<select name="registerid" id="registerid"> |
122 |
<select name="registerid" id="registerid"> |
120 |
[% FOREACH register IN registers %] |
123 |
[% PROCESS options_for_registers register_required => 1 %] |
121 |
[% IF register.id == default_register %] |
|
|
122 |
<option value="[% register.id | html %]" selected="selected">[% register.name | html %]</option> |
123 |
[% ELSE %] |
124 |
<option value="[% register.id | html %]">[% register.name | html %]</option> |
125 |
[% END %] |
126 |
[% END %] |
127 |
</select> |
124 |
</select> |
128 |
</li> |
125 |
</li> |
129 |
</ol> |
126 |
</ol> |