Lines 146-153
Link Here
|
146 |
</div> |
146 |
</div> |
147 |
<div class="modal-body"> |
147 |
<div class="modal-body"> |
148 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %] |
148 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %] |
149 |
<div id="payout_error" class="dialog alert"> |
149 |
<div id="payout_error" class="dialog message"> |
150 |
You must have at least one cash register associated with this branch before you can record cash payouts. |
150 |
<p> |
|
|
151 |
You must have at least one cash register associated with this branch before you can record cash payouts. |
152 |
</p> |
153 |
[% IF ( CAN_user_parameters_manage_cash_registers ) %] |
154 |
<form action="/cgi-bin/koha/admin/cash_registers.pl" method="get"> |
155 |
<input type="hidden" name="op" value="add_form" /> |
156 |
<button class="new" type="submit"><i class="fa fa-plus"></i> Create a new cash register</button> |
157 |
</form> |
158 |
[% END %] |
151 |
</div> |
159 |
</div> |
152 |
[% END %] |
160 |
[% END %] |
153 |
<fieldset class="rows"> |
161 |
<fieldset class="rows"> |
Lines 162-167
Link Here
|
162 |
</li> |
170 |
</li> |
163 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
171 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
164 |
[% SET excluded = ['SIP00', 'SIP01', 'SIP02'] %] |
172 |
[% SET excluded = ['SIP00', 'SIP01', 'SIP02'] %] |
|
|
173 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %][% excluded.push('CASH') %][% END %] |
165 |
[% IF payment_types > 3 %] |
174 |
[% IF payment_types > 3 %] |
166 |
<li> |
175 |
<li> |
167 |
<label for="transaction_type">Transaction type: </label> |
176 |
<label for="transaction_type">Transaction type: </label> |
Lines 175-181
Link Here
|
175 |
</li> |
184 |
</li> |
176 |
[% END %] |
185 |
[% END %] |
177 |
|
186 |
|
178 |
[% IF Koha.Preference('UseCashRegisters') %] |
187 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size >= 1 ) %] |
179 |
<li> |
188 |
<li> |
180 |
<label for="registerid">Cash register: </label> |
189 |
<label for="registerid">Cash register: </label> |
181 |
<select name="registerid" id="payout_registerid"> |
190 |
<select name="registerid" id="payout_registerid"> |
Lines 211-218
Link Here
|
211 |
</div> |
220 |
</div> |
212 |
<div class="modal-body"> |
221 |
<div class="modal-body"> |
213 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %] |
222 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %] |
214 |
<div id="refund_error" class="dialog alert"> |
223 |
<div id="refund_error" class="dialog message"> |
215 |
You must have at least one cash register associated with this branch before you can record cash refunds. |
224 |
<p> |
|
|
225 |
You must have at least one cash register associated with this branch before you can record cash refunds. |
226 |
</p> |
227 |
[% IF ( CAN_user_parameters_manage_cash_registers ) %] |
228 |
<form action="/cgi-bin/koha/admin/cash_registers.pl" method="get"> |
229 |
<input type="hidden" name="op" value="add_form" /> |
230 |
<button class="new" type="submit"><i class="fa fa-plus"></i> Create a new cash register</button> |
231 |
</form> |
232 |
[% END %] |
216 |
</div> |
233 |
</div> |
217 |
[% END %] |
234 |
[% END %] |
218 |
<fieldset class="rows"> |
235 |
<fieldset class="rows"> |
Lines 229-247
Link Here
|
229 |
<span class="required">Required</span> |
246 |
<span class="required">Required</span> |
230 |
</li> |
247 |
</li> |
231 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
248 |
[% SET payment_types = AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] |
|
|
249 |
[% SET excluded = ['SIP00', 'SIP01', 'SIP02'] %] |
250 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %][% excluded.push('CASH') %][% END %] |
232 |
<li> |
251 |
<li> |
233 |
<label for="transaction_type">Transaction type: </label> |
252 |
<label for="transaction_type">Transaction type: </label> |
234 |
<select name="transaction_type" id="refund_transaction_type"> |
253 |
<select name="transaction_type" id="refund_transaction_type"> |
235 |
<option value="AC">Account credit</option> |
254 |
<option value="AC">Account credit</option> |
236 |
[% IF payment_types %] |
255 |
[% IF payment_types > 3 %] |
237 |
[% FOREACH pt IN payment_types %] |
256 |
[% FOREACH pt IN payment_types %] |
238 |
<option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option> |
257 |
[% UNLESS excluded.grep("^$pt.authorised_value\$").size %] |
|
|
258 |
<option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option> |
259 |
[% END %] |
239 |
[% END %] |
260 |
[% END %] |
240 |
[% END %] |
261 |
[% END %] |
241 |
</select> |
262 |
</select> |
242 |
</li> |
263 |
</li> |
243 |
|
264 |
|
244 |
[% IF Koha.Preference('UseCashRegisters') %] |
265 |
[% IF Koha.Preference('UseCashRegisters') && ( registers.size >= 1 ) %] |
245 |
<li> |
266 |
<li> |
246 |
<label for="registerid">Cash register: </label> |
267 |
<label for="registerid">Cash register: </label> |
247 |
<select name="registerid" id="refund_registerid"> |
268 |
<select name="registerid" id="refund_registerid"> |
248 |
- |
|
|