Bug 27998: Replace obsolete title-string sorting: Serials templates
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / payments.inc
1 [% USE AuthorisedValues %]
2 [%- BLOCK account_payment_types -%]
3     [% SET payment_types = [] %]
4     [% FOR pt IN AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
5         [% NEXT IF pt.authorised_value.grep("^SIP[[:digit:]]{2}$").size() %]
6         [% payment_types.push(pt) %]
7     [% END %]
8     [% IF payment_types.size > 0 %]
9         <li>
10             [% IF Koha.Preference('UseCashRegisters') %]
11                 <label for="payment_type" class="required">Payment type: </label>
12                 <select name="payment_type" id="payment_type" class="required" required="required">
13                     [% FOREACH pt IN payment_types %]
14                         <option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
15                     [% END %]
16                 </select>
17                 <span class="required">Required</span>
18             [%- ELSE -%]
19                 <label for="payment_type">Payment type: </label>
20                 <select name="payment_type" id="payment_type">
21                     <option value=""></option>
22                     [% FOREACH pt IN payment_types %]
23                         <option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
24                     [% END %]
25                 </select>
26             [%- END -%]
27         </li>
28     [% END %]
29 [%- END -%]