View | Details | Raw Unified | Return to bug 24525
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/payments.inc (+19 lines)
Line 0 Link Here
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
            <label for="payment_type">Payment type: </label>
11
            <select name="payment_type" id="payment_type">
12
                <option value=""></option>
13
                [% FOREACH pt IN payment_types %]
14
                    <option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
15
                [% END %]
16
            </select>
17
        </li>
18
    [% END %]
19
[%- END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (-33 / +6 lines)
Lines 2-10 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE AuthorisedValues %]
6
[% USE Price %]
5
[% USE Price %]
7
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
7
[% PROCESS 'payments.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
9
<title>Koha &rsaquo; Patrons &rsaquo;
9
<title>Koha &rsaquo; Patrons &rsaquo;
10
    [% IF type == 'WRITEOFF' %]
10
    [% IF type == 'WRITEOFF' %]
Lines 123-144 Link Here
123
        <label>Change to give: </label>
123
        <label>Change to give: </label>
124
        <span id="change">0.00</span>
124
        <span id="change">0.00</span>
125
    </li>
125
    </li>
126
    [% SET payment_types = [] %]
126
127
    [% FOR pt IN AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
127
    [% PROCESS account_payment_types %]
128
        [% NEXT IF pt.authorised_value.grep("^SIP[[:digit:]]{2}$").size() %]
128
129
        [% payment_types.push(pt) %]
130
    [% END %]
131
    [% IF payment_types.size > 0 %]
132
        <li>
133
            <label for="payment_type">Payment type: </label>
134
            <select name="payment_type" id="payment_type">
135
                <option value=""></option>
136
                [% FOREACH pt IN payment_types %]
137
                    <option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
138
                [% END %]
139
            </select>
140
        </li>
141
    [% END %]
142
    [% IF Koha.Preference('UseCashRegisters') %]
129
    [% IF Koha.Preference('UseCashRegisters') %]
143
    <li>
130
    <li>
144
        <label for="cash_register">Cash register: </label>
131
        <label for="cash_register">Cash register: </label>
Lines 257-278 Link Here
257
            <label>Change to give: </label>
244
            <label>Change to give: </label>
258
            <span id="change">0.00</span>
245
            <span id="change">0.00</span>
259
        </li>
246
        </li>
260
    [% SET payment_types = [] %]
247
261
    [% FOR pt IN AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
248
    [% PROCESS account_payment_types %]
262
        [% NEXT IF pt.authorised_value.grep("^SIP[[:digit:]]{2}$").size() %]
263
        [% payment_types.push(pt) %]
264
    [% END %]
265
    [% IF payment_types.size > 0 %]
266
        <li>
267
            <label for="payment_type">Payment type: </label>
268
            <select name="payment_type" id="payment_type">
269
                <option value=""></option>
270
                [% FOREACH pt IN payment_types %]
271
                    <option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
272
                [% END %]
273
            </select>
274
        </li>
275
    [% END %]
276
249
277
    [% IF Koha.Preference('UseCashRegisters') %]
250
    [% IF Koha.Preference('UseCashRegisters') %]
278
    <li>
251
    <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt (-15 / +2 lines)
Lines 1-9 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE AuthorisedValues %]
5
[% USE Price %]
4
[% USE Price %]
6
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
6
[% PROCESS 'payments.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Payments</title>
8
<title>Koha &rsaquo; Payments</title>
9
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
Lines 112-130 Link Here
112
                                <input type="hidden" name="change" value="0.00"/>
112
                                <input type="hidden" name="change" value="0.00"/>
113
                            </li>
113
                            </li>
114
114
115
                            [% SET payment_types = [] %]
115
                            [% PROCESS account_payment_types %]
116
                            [% FOR pt IN AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %]
117
                                [% NEXT IF pt.authorised_value.grep("^SIP[[:digit:]]{2}$").size() %]
118
                                [% payment_types.push(pt) %]
119
                            [% END %]
120
                            <li>
121
                                <label for="payment_type">Payment type: </label>
122
                                <select name="payment_type" id="payment_type">
123
                                    [% FOREACH pt IN payment_types %]
124
                                        <option value="[% pt.authorised_value | html %]">[% pt.lib | html %]</option>
125
                                    [% END %]
126
                                </select>
127
                            </li>
128
116
129
                            [% IF Koha.Preference('UseCashRegisters') %]
117
                            [% IF Koha.Preference('UseCashRegisters') %]
130
                            <li>
118
                            <li>
131
- 

Return to bug 24525