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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc (-14 / +14 lines)
Lines 34-53 Link Here
34
    </span>
34
    </span>
35
[%- END -%]
35
[%- END -%]
36
36
37
[%- BLOCK offset_type_description -%]
38
    [%- SWITCH account_offset.type -%]
39
        [%- CASE 'Credit Applied' -%]<span>Credit applied</span>
40
        [%- CASE 'Payment'        -%]<span>Payment</span>
41
        [%- CASE 'Manual Credit'  -%]<span>Manual credit</span>
42
        [%- CASE 'Manual Debit'   -%]<span>Manual invoice</span>
43
        [%- CASE 'Lost Item'      -%]<span>Lost item returned</span>
44
        [%- CASE 'Writeoff'       -%]<span>Writeoff</span>
45
        [%- CASE 'Void Payment'   -%]<span>Void payment</span>
46
        [%- CASE 'CANCELLATION'   -%]<span>Cancelled charge</span>
47
        [%- CASE                  -%][% account_offset.type | html %]
48
    [%- END -%]
49
[%- END -%]
50
51
[%- BLOCK account_status_description -%]
37
[%- BLOCK account_status_description -%]
52
    [%- SWITCH account.status -%]
38
    [%- SWITCH account.status -%]
53
        [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
39
        [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
Lines 61-63 Link Here
61
        [%- CASE              -%]
47
        [%- CASE              -%]
62
    [%- END -%]
48
    [%- END -%]
63
[%- END -%]
49
[%- END -%]
50
51
[%- BLOCK offset_type_description -%]
52
    [%- SWITCH account_offset.type -%]
53
        [%- CASE 'Credit Applied' -%]<span>Credit applied</span>
54
        [%- CASE 'Payment'        -%]<span>Payment</span>
55
        [%- CASE 'Manual Credit'  -%]<span>Manual credit</span>
56
        [%- CASE 'Manual Debit'   -%]<span>Manual invoice</span>
57
        [%- CASE 'Lost Item'      -%]<span>Lost item returned</span>
58
        [%- CASE 'Writeoff'       -%]<span>Writeoff</span>
59
        [%- CASE 'Void Payment'   -%]<span>Void payment</span>
60
        [%- CASE 'CANCELLATION'   -%]<span>Cancelled charge</span>
61
        [%- CASE                  -%][% account_offset.type | html %]
62
    [%- END -%]
63
[%- END -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc (-50 / +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-221 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 'CANCELLATION'     -%]Cancelled charge
184
                [%- CASE                    -%][% account.credit_type.description | html %]
185
            [%- END -%]
186
        [%- ELSIF account.debit_type_code -%]
187
            [%- SWITCH account.debit_type_code -%]
188
                [%- CASE 'ACCOUNT'          -%]Account creation fee
189
                [%- CASE 'ACCOUNT_RENEW'    -%]Account renewal fee
190
                [%- CASE 'LOST'             -%]Lost item
191
                [%- CASE 'MANUAL'           -%]Manual fee
192
                [%- CASE 'NEW_CARD'         -%]New card
193
                [%- CASE 'OVERDUE'          -%]Fine
194
                [%- CASE 'PROCESSING'       -%]Lost item processing fee
195
                [%- CASE 'RENT'             -%]Rental fee
196
                [%- CASE 'RENT_DAILY'       -%]Daily rental fee
197
                [%- CASE 'RENT_RENEW'       -%]Renewal of rental item
198
                [%- CASE 'RENT_DAILY_RENEW' -%]Renewal of daily rental item
199
                [%- CASE 'RESERVE'          -%]Hold fee
200
                [%- CASE 'RESERVE_EXPIRED'  -%]Hold waiting too long
201
                [%- CASE 'Payout'           -%]Payout
202
                [%- CASE                    -%][% account.debit_type.description | html %]
203
            [%- END -%]
204
        [%- END -%]
205
        [%- PROCESS account_status_description account=account -%]
206
    </span>
207
[%- END # /BLOCK account_type_description -%]
208
209
[%- BLOCK account_status_description -%]
210
    [%- SWITCH account.status -%]
211
            [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
212
            [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
213
            [%- CASE 'REPLACED'   -%]<span> (Replaced)</span>
214
            [%- CASE 'REFUNDED'   -%]<span> (Refunded)</span>
215
            [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
216
            [%- CASE 'VOID'       -%]<span> (Voided)</span>
217
            [%- CASE 'LOST'       -%]<span> (Lost)</span>
218
            [%- CASE 'CANCELLED'  -%]<span> (Cancelled)</span>
219
            [%- CASE              -%]
220
        [%- END -%]
221
[%- END -%]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc (-1 / +49 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 'CANCELLATION'     -%]Cancelled charge
12
                [%- CASE                    -%][% account.credit_type.description | html %]
13
            [%- END -%]
14
        [%- ELSIF account.debit_type_code -%]
15
            [%- SWITCH account.debit_type_code -%]
16
                [%- CASE 'ACCOUNT'          -%]Account creation fee
17
                [%- CASE 'ACCOUNT_RENEW'    -%]Account renewal fee
18
                [%- CASE 'LOST'             -%]Lost item
19
                [%- CASE 'MANUAL'           -%]Manual fee
20
                [%- CASE 'NEW_CARD'         -%]New card
21
                [%- CASE 'OVERDUE'          -%]Fine
22
                [%- CASE 'PROCESSING'       -%]Lost item processing fee
23
                [%- CASE 'RENT'             -%]Rental fee
24
                [%- CASE 'RENT_DAILY'       -%]Daily rental fee
25
                [%- CASE 'RENT_RENEW'       -%]Renewal of rental item
26
                [%- CASE 'RENT_DAILY_RENEW' -%]Renewal of daily rental item
27
                [%- CASE 'RESERVE'          -%]Hold fee
28
                [%- CASE 'RESERVE_EXPIRED'  -%]Hold waiting too long
29
                [%- CASE 'Payout'           -%]Payout
30
                [%- CASE                    -%][% account.debit_type.description | html %]
31
            [%- END -%]
32
        [%- END -%]
33
        [%- PROCESS account_status_description account=account -%]
34
    </span>
35
[%- END -%]
36
37
[%- BLOCK account_status_description -%]
38
    [%- SWITCH account.status -%]
39
            [%- CASE 'UNRETURNED' -%]<span> (Accruing)</span>
40
            [%- CASE 'RETURNED'   -%]<span> (Returned)</span>
41
            [%- CASE 'REPLACED'   -%]<span> (Replaced)</span>
42
            [%- CASE 'REFUNDED'   -%]<span> (Refunded)</span>
43
            [%- CASE 'FORGIVEN'   -%]<span> (Forgiven)</span>
44
            [%- CASE 'VOID'       -%]<span> (Voided)</span>
45
            [%- CASE 'LOST'       -%]<span> (Lost)</span>
46
            [%- CASE 'CANCELLED'  -%]<span> (Cancelled)</span>
47
            [%- CASE              -%]
48
        [%- END -%]
49
[%- END -%]

Return to bug 26697