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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc (-13 / +13 lines)
Lines 33-51 Link Here
33
    </span>
33
    </span>
34
[%- END -%]
34
[%- END -%]
35
35
36
[%- BLOCK offset_type_description -%]
37
    [%- SWITCH account_offset.type -%]
38
        [%- CASE 'Credit Applied' -%]<span>Credit applied</span>
39
        [%- CASE 'Payment'        -%]<span>Payment</span>
40
        [%- CASE 'Manual Credit'  -%]<span>Manual credit</span>
41
        [%- CASE 'Manual Debit'   -%]<span>Manual invoice</span>
42
        [%- CASE 'Lost Item'      -%]<span>Lost item returned</span>
43
        [%- CASE 'Writeoff'       -%]<span>Writeoff</span>
44
        [%- CASE 'Void Payment'   -%]<span>Void payment</span>
45
        [%- CASE                  -%][% account_offset.type | html %]
46
    [%- END -%]
47
[%- END -%]
48
49
[%- BLOCK account_status_description -%]
36
[%- BLOCK account_status_description -%]
50
    [%- SWITCH account.status -%]
37
    [%- SWITCH account.status -%]
51
        [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
38
        [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
Lines 58-60 Link Here
58
        [%- CASE              -%]
45
        [%- CASE              -%]
59
    [%- END -%]
46
    [%- END -%]
60
[%- END -%]
47
[%- END -%]
48
49
[%- BLOCK offset_type_description -%]
50
    [%- SWITCH account_offset.type -%]
51
        [%- CASE 'Credit Applied' -%]<span>Credit applied</span>
52
        [%- CASE 'Payment'        -%]<span>Payment</span>
53
        [%- CASE 'Manual Credit'  -%]<span>Manual credit</span>
54
        [%- CASE 'Manual Debit'   -%]<span>Manual invoice</span>
55
        [%- CASE 'Lost Item'      -%]<span>Lost item returned</span>
56
        [%- CASE 'Writeoff'       -%]<span>Writeoff</span>
57
        [%- CASE 'Void Payment'   -%]<span>Void payment</span>
58
        [%- CASE                  -%][% account_offset.type | html %]
59
    [%- END -%]
60
[%- END -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc (-46 / +1 lines)
Lines 1-3 Link Here
1
[% PROCESS 'accounts.inc' %]
1
<form method="post" action="opac-account-pay.pl" class="form-horizontal">
2
<form method="post" action="opac-account-pay.pl" class="form-horizontal">
2
    [% IF ( ACCOUNT_LINES ) %]
3
    [% IF ( ACCOUNT_LINES ) %]
3
        <table class="table table-bordered table-striped" id="finestable">
4
        <table class="table table-bordered table-striped" id="finestable">
Lines 169-217 Link Here
169
        </fieldset>
170
        </fieldset>
170
    [% END # /IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %]
171
    [% END # /IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %]
171
</form>
172
</form>
172
173
[%- BLOCK account_type_description -%]
174
    <span>
175
        [%- IF account.credit_type_code -%]
176
            [%- SWITCH account.credit_type_code -%]
177
                [%- CASE 'PAYMENT'          -%]Payment
178
                [%- CASE 'WRITEOFF'         -%]Writeoff
179
                [%- CASE 'FORGIVEN'         -%]Forgiven
180
                [%- CASE 'CREDIT'           -%]Credit
181
                [%- CASE 'LOST_FOUND'       -%]Lost item fee refund
182
                [%- CASE 'REFUND'           -%]Refund
183
                [%- CASE                    -%][% account.credit_type.description | html %]
184
            [%- END -%]
185
        [%- ELSIF account.debit_type_code -%]
186
            [%- SWITCH account.debit_type_code -%]
187
                [%- CASE 'ACCOUNT'          -%]Account creation fee
188
                [%- CASE 'ACCOUNT_RENEW'    -%]Account renewal fee
189
                [%- CASE 'LOST'             -%]Lost item
190
                [%- CASE 'MANUAL'           -%]Manual fee
191
                [%- CASE 'NEW_CARD'         -%]New card
192
                [%- CASE 'OVERDUE'          -%]Fine
193
                [%- CASE 'PROCESSING'       -%]Lost item processing fee
194
                [%- CASE 'RENT'             -%]Rental fee
195
                [%- CASE 'RENT_DAILY'       -%]Daily rental fee
196
                [%- CASE 'RENT_RENEW'       -%]Renewal of rental item
197
                [%- CASE 'RENT_DAILY_RENEW' -%]Renewal of daily rental item
198
                [%- CASE 'RESERVE'          -%]Hold fee
199
                [%- CASE 'RESERVE_EXPIRED'  -%]Hold waiting too long
200
                [%- CASE                    -%][% account.debit_type.description | html %]
201
            [%- END -%]
202
        [%- END -%]
203
        [%- PROCESS account_status_description account=account -%]
204
    </span>
205
[%- END # /BLOCK account_type_description -%]
206
207
[%- BLOCK account_status_description -%]
208
    [%- SWITCH account.status -%]
209
            [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
210
            [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
211
            [%- CASE 'REPLACED'   -%]<span> (Replaced)</span>
212
            [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
213
            [%- CASE 'VOID'       -%]<span> (Voided)</span>
214
            [%- CASE 'LOST'       -%]<span> (Lost)</span>
215
            [%- CASE              -%]
216
        [%- END -%]
217
[%- END -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc (-1 / +47 lines)
Line 0 Link Here
0
- 
1
[%- BLOCK account_type_description -%]
2
    <span>
3
        [%- IF account.credit_type_code -%]
4
            [%- SWITCH account.credit_type_code -%]
5
                [%- CASE 'PAYMENT'          -%]Payment
6
                [%- CASE 'WRITEOFF'         -%]Writeoff
7
                [%- CASE 'FORGIVEN'         -%]Forgiven
8
                [%- CASE 'CREDIT'           -%]Credit
9
                [%- CASE 'LOST_FOUND'       -%]Lost item fee refund
10
                [%- CASE 'REFUND'           -%]Refund
11
                [%- CASE                    -%][% account.credit_type.description | html %]
12
            [%- END -%]
13
        [%- ELSIF account.debit_type_code -%]
14
            [%- SWITCH account.debit_type_code -%]
15
                [%- CASE 'ACCOUNT'          -%]Account creation fee
16
                [%- CASE 'ACCOUNT_RENEW'    -%]Account renewal fee
17
                [%- CASE 'LOST'             -%]Lost item
18
                [%- CASE 'MANUAL'           -%]Manual fee
19
                [%- CASE 'NEW_CARD'         -%]New card
20
                [%- CASE 'OVERDUE'          -%]Fine
21
                [%- CASE 'PROCESSING'       -%]Lost item processing fee
22
                [%- CASE 'RENT'             -%]Rental fee
23
                [%- CASE 'RENT_DAILY'       -%]Daily rental fee
24
                [%- CASE 'RENT_RENEW'       -%]Renewal of rental item
25
                [%- CASE 'RENT_DAILY_RENEW' -%]Renewal of daily rental item
26
                [%- CASE 'RESERVE'          -%]Hold fee
27
                [%- CASE 'RESERVE_EXPIRED'  -%]Hold waiting too long
28
                [%- CASE 'Payout'           -%]Payout
29
                [%- CASE                    -%][% account.debit_type.description | html %]
30
            [%- END -%]
31
        [%- END -%]
32
        [%- PROCESS account_status_description account=account -%]
33
    </span>
34
[%- END -%]
35
36
[%- BLOCK account_status_description -%]
37
    [%- SWITCH account.status -%]
38
            [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
39
            [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
40
            [%- CASE 'REPLACED'   -%]<span> (Replaced)</span>
41
            [%- CASE 'REFUNDED'   -%]<span> (Refunded)</span>
42
            [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
43
            [%- CASE 'VOID'       -%]<span> (Voided)</span>
44
            [%- CASE 'LOST'       -%]<span> (Lost)</span>
45
            [%- CASE              -%]
46
        [%- END -%]
47
[%- END -%]

Return to bug 26697