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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt (-18 / +34 lines)
Lines 7-13 Link Here
7
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
8
[% PROCESS 'accounts.inc' %]
8
[% PROCESS 'accounts.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
9
[% INCLUDE 'doc-head-open.inc' %]
10
<title>Details of fee &rsaquo; [% INCLUDE 'patron-title.inc' no_html = 1 %] &rsaquo; Patrons &rsaquo; Koha</title>
10
<title>Details of [% IF type == 'credit' %]credit[% ELSE %]debit[% END %] &rsaquo; [% INCLUDE 'patron-title.inc' no_html = 1 %] &rsaquo; Patrons &rsaquo; Koha</title>
11
[% INCLUDE 'doc-head-close.inc' %]
11
[% INCLUDE 'doc-head-close.inc' %]
12
</head>
12
</head>
13
13
Lines 24-47 Link Here
24
            <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
24
            <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
25
        </li>
25
        </li>
26
26
27
        [% IF type == 'credit' %]
27
28
        [% IF accountline %]
29
            [% IF accountline.credit_type_code %]
28
            <li>
30
            <li>
29
                <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
31
                <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
30
            </li>
32
            </li>
31
            <li>
33
            <li>
32
                <a href="#" aria-current="page">
34
                <a href="#" aria-current="page">
33
                    Details of payment
35
                    Details of credit ([% accountline.id | html %])
34
                </a>
36
                </a>
35
            </li>
37
            </li>
36
        [% ELSIF type == 'debit' %]
38
            [% ELSIF accountline.debit_type_code %]
37
            <li>
39
            <li>
38
                <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
40
                <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber | uri %]">Account for [% INCLUDE 'patron-title.inc' %]</a>
39
            </li>
41
            </li>
40
            <li>
42
            <li>
41
                <a href="#" aria-current="page">
43
                <a href="#" aria-current="page">
42
                    Details of fee
44
                    Details of debit ([% accountline.id | html %])
43
                </a>
45
                </a>
44
            </li>
46
            </li>
47
            [% END %]
45
        [% ELSE %]
48
        [% ELSE %]
46
            <li>
49
            <li>
47
                <a href="#" aria-current="page">
50
                <a href="#" aria-current="page">
Lines 61-76 Link Here
61
64
62
            [% IF accountline %]
65
            [% IF accountline %]
63
                [% IF accountline.credit_type_code %]
66
                [% IF accountline.credit_type_code %]
64
                    <h2>Details of payment</h2>
67
                    <h2>Details of credit</h2>
65
                [% ELSIF accountline.debit_type_code %]
68
                [% ELSIF accountline.debit_type_code %]
66
                    <h2>Details of fee</h2>
69
                    <h2>Details of debit</h2>
67
                [% END %]
70
                [% END %]
68
71
69
                <table id="table_account_fines">
72
                <table id="table_account_fines">
70
                    <thead>
73
                    <thead>
71
                        <tr>
74
                        <tr>
72
                            <th>Date</th>
75
                            <th>Date</th>
73
                            <th>Description of charges</th>
76
                            <th>Description</th>
74
                            <th>Barcode</th>
77
                            <th>Barcode</th>
75
                            <th>Due date</th>
78
                            <th>Due date</th>
76
                            <th>Return date</th>
79
                            <th>Return date</th>
Lines 83-89 Link Here
83
                    <tbody>
86
                    <tbody>
84
                        <tr>
87
                        <tr>
85
                            <td>
88
                            <td>
86
                                [% accountline.date |$KohaDates %]
89
                                [% accountline.date | $KohaDates %]
87
                            </td>
90
                            </td>
88
                            <td>
91
                            <td>
89
                                [%- PROCESS account_type_description account=accountline -%]
92
                                [%- PROCESS account_type_description account=accountline -%]
Lines 138-148 Link Here
138
                <table class="accountline-offsets-table" id="accountline-debits-table">
141
                <table class="accountline-offsets-table" id="accountline-debits-table">
139
                    <thead>
142
                    <thead>
140
                        <tr>
143
                        <tr>
141
                            <th>Date</th>
144
                            <th rowspan="2">Date</th>
142
                            <th>Change</th>
145
                            <th colspan="2">Change</th>
143
                            <th>Action</th>
146
                            <th rowspan="2">Action</th>
144
                            <th>Relation</th>
147
                            <th colspan="4">Related transaction</th>
145
                            <th>Transacting librarian</th>
148
                        </tr>
149
                        <tr>
150
                            <th>Increase</th>
151
                            <th>Decrease</th>
152
                            <th>Type</th>
153
                            <th>Amount</th>
154
                            <th>Librarian</th>
146
                            <th>Note</th>
155
                            <th>Note</th>
147
                        </tr>
156
                        </tr>
148
                    </thead>
157
                    </thead>
Lines 167-180 Link Here
167
176
168
                                <tr>
177
                                <tr>
169
                                    <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
178
                                    <td>[% ao.created_on | $KohaDates with_hours => 1%]</td>
170
                                    <td>[% ao.amount | $Price %]</td>
179
                                    <td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td>
180
                                    <td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td>
171
                                    <td>
181
                                    <td>
172
                                        [% PROCESS ao_description ao=ao %]
182
                                        [% PROCESS ao_description ao=ao %]
173
                                    </td>
183
                                    </td>
184
                                    [%- IF offset_accountline -%]
174
                                    <td>
185
                                    <td>
175
                                        [%- IF offset_accountline -%]
176
                                        [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
186
                                        [% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>)
177
                                        [%- END -%]
187
                                    </td>
188
                                    <td>
189
                                        [% offset_accountline.amount | $Price %]
178
                                    </td>
190
                                    </td>
179
                                    <td>
191
                                    <td>
180
                                        [% IF offset_accountline.manager_id %]
192
                                        [% IF offset_accountline.manager_id %]
Lines 187-192 Link Here
187
                                        </a>
199
                                        </a>
188
                                        [% END %]
200
                                        [% END %]
189
                                    </td>
201
                                    </td>
202
                                    [%- ELSE -%]
203
                                    <td></td>
204
                                    <td></td>
205
                                    <td></td>
206
                                    [%- END -%]
190
                                    <td>[% offset_accountline.note | html %]</td>
207
                                    <td>[% offset_accountline.note | html %]</td>
191
                                </tr>
208
                                </tr>
192
                        [% END %]
209
                        [% END %]
193
- 

Return to bug 22435