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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc (-5 / +16 lines)
Lines 1-9 Link Here
1
[%- BLOCK account_type_description -%]
1
[%- BLOCK account_type_description -%]
2
    <span>
2
    <span>
3
        [%- IF account.credit_type_code -%]
3
        [%- IF account.credit_type_code -%]
4
            [%- PROCESS credit_type_description credit_type_code = account.credit_type_code -%]
4
            [%- PROCESS credit_type_description credit_type_code = account.credit_type_code account=account -%]
5
        [%- ELSIF account.debit_type_code -%]
5
        [%- ELSIF account.debit_type_code -%]
6
            [%- PROCESS debit_type_description debit_type_code = account.debit_type_code -%]
6
            [%- PROCESS debit_type_description debit_type_code = account.debit_type_code account=account -%]
7
        [%- END -%]
7
        [%- END -%]
8
        [%- PROCESS account_status_description account=account -%]
8
        [%- PROCESS account_status_description account=account -%]
9
    </span>
9
    </span>
Lines 45-51 Link Here
45
    [%- CASE 'VOID' -%]
45
    [%- CASE 'VOID' -%]
46
        <span>Credit has been voided</span>
46
        <span>Credit has been voided</span>
47
    [%- CASE -%]
47
    [%- CASE -%]
48
        <span>[% debit_type.description | html %]</span>
48
        <span
49
            >[%- IF account && account.debit_type && account.debit_type.description -%]
50
                [% account.debit_type.description | html %]
51
            [%- ELSE -%]
52
                [% debit_type_code | html %]
53
            [%- END -%]
54
        </span>
49
    [%- END -%]
55
    [%- END -%]
50
[%- END -%]
56
[%- END -%]
51
57
Lines 75-81 Link Here
75
    [%- CASE 'WRITEOFF' -%]
81
    [%- CASE 'WRITEOFF' -%]
76
        <span>Writeoff</span>
82
        <span>Writeoff</span>
77
    [%- CASE -%]
83
    [%- CASE -%]
78
        <span>[% credit_type.description | html %]</span>
84
        <span
85
            >[%- IF account && account.credit_type && account.credit_type.description -%]
86
                [% account.credit_type.description | html %]
87
            [%- ELSE -%]
88
                [% credit_type_code | html %]
89
            [%- END -%]
90
        </span>
79
    [%- END -%]
91
    [%- END -%]
80
[%- END -%]
92
[%- END -%]
81
93
82
- 

Return to bug 40836