|
Lines 60-68
Link Here
|
| 60 |
[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %] |
60 |
[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %] |
| 61 |
|
61 |
|
| 62 |
[% IF accountline %] |
62 |
[% IF accountline %] |
| 63 |
[% IF type == 'credit' %] |
63 |
[% IF accountline.credit_type_code %] |
| 64 |
<h2>Details of payment</h2> |
64 |
<h2>Details of payment</h2> |
| 65 |
[% ELSIF type == 'debit' %] |
65 |
[% ELSIF accountline.debit_type_code %] |
| 66 |
<h2>Details of fee</h2> |
66 |
<h2>Details of fee</h2> |
| 67 |
[% END %] |
67 |
[% END %] |
| 68 |
|
68 |
|
|
Lines 134-196
Link Here
|
| 134 |
</tbody> |
134 |
</tbody> |
| 135 |
</table> |
135 |
</table> |
| 136 |
|
136 |
|
| 137 |
|
137 |
<h3>History</h3> |
| 138 |
[% IF type == 'credit' %] |
|
|
| 139 |
<h3>Fees paid</h3> |
| 140 |
[% ELSIF type == 'debit' %] |
| 141 |
<h3>Payments</h3> |
| 142 |
[% END %] |
| 143 |
|
| 144 |
<table class="accountline-offsets-table" id="accountline-debits-table"> |
138 |
<table class="accountline-offsets-table" id="accountline-debits-table"> |
| 145 |
<thead> |
139 |
<thead> |
| 146 |
<tr> |
140 |
<tr> |
| 147 |
<th>Date created</th> |
141 |
<th>Date</th> |
| 148 |
<th>Date updated</th> |
142 |
<th>Change amount</th> |
| 149 |
<th>Amount</th> |
143 |
<th>Change type</th> |
| 150 |
<th>Amount outstanding</th> |
|
|
| 151 |
<th>Type</th> |
| 152 |
<th>Note</th> |
| 153 |
<th>Transacting librarian</th> |
144 |
<th>Transacting librarian</th> |
| 154 |
<th>Date/time of change</th> |
145 |
<th>Note</th> |
| 155 |
<th>Amount of change</th> |
|
|
| 156 |
<th>Type of change</th> |
| 157 |
<th> </th> |
146 |
<th> </th> |
| 158 |
</tr> |
147 |
</tr> |
| 159 |
</thead> |
148 |
</thead> |
| 160 |
|
149 |
|
| 161 |
<tbody> |
150 |
<tbody> |
| 162 |
[% FOREACH ao IN account_offsets %] |
151 |
[% FOREACH ao IN account_offsets %] |
| 163 |
[% IF type == 'credit' %] |
152 |
[% IF ao.credit_id == accountline.accountlines_id %] |
| 164 |
[% SET offset_accountline = ao.debit %] |
153 |
[% SET offset_accountline = ao.debit %] |
| 165 |
[% ELSIF type == 'debit' %] |
154 |
[% ELSIF ao.debit_id == accountline.accountlines_id %] |
| 166 |
[% SET offset_accountline = ao.credit %] |
155 |
[% SET offset_accountline = ao.credit %] |
| 167 |
[% END %] |
156 |
[% END %] |
|
|
157 |
|
| 158 |
[%- BLOCK ao_description -%] |
| 159 |
[%- SWITCH ao.type -%] |
| 160 |
[%- CASE 'CREATE' -%]<span>Created</span> |
| 161 |
[%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span> |
| 162 |
[%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span> |
| 163 |
[%- CASE 'APPLY' -%]<span>Applied</span> |
| 164 |
[%- CASE 'VOID' -%]<span>Reversed</span> |
| 165 |
[%- END -%] |
| 166 |
[%- END -%] |
| 168 |
|
167 |
|
| 169 |
[% IF offset_accountline %] |
|
|
| 170 |
<tr> |
168 |
<tr> |
| 171 |
<td>[% offset_accountline.date | $KohaDates %]</td> |
169 |
<td>[% ao.created_on | $KohaDates with_hours => 1%]</td> |
| 172 |
<td>[% offset_accountline.timestamp | $KohaDates with_hours => 1 %]</td> |
|
|
| 173 |
<td>[% offset_accountline.amount | $Price %]</td> |
| 174 |
<td>[% offset_accountline.amountoutstanding | $Price %]</td> |
| 175 |
<td>[% PROCESS account_type_description account=offset_accountline %]</td> |
| 176 |
<td>[% offset_accountline.note | html %]</td> |
| 177 |
<td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">[% offset_accountline.manager_id | html %]</a>[% END %]</td> |
| 178 |
<td>[% ao.created_on | $KohaDates with_hours => 1 %]</td> |
| 179 |
<td>[% ao.amount | $Price %]</td> |
170 |
<td>[% ao.amount | $Price %]</td> |
| 180 |
<td>[% PROCESS offset_type_description account_offset=ao %]</td> |
171 |
<td> |
| 181 |
<td><a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a></td> |
172 |
[%- IF offset_accountline -%] |
|
|
173 |
[% PROCESS account_type_description account=offset_accountline %] ([% PROCESS ao_description ao=ao %]) |
| 174 |
[%- ELSE -%] |
| 175 |
[% PROCESS ao_description ao=ao %] |
| 176 |
[%- END -%] |
| 177 |
</td> |
| 178 |
<td>[% IF offset_accountline.manager_id %]<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]">[% offset_accountline.manager_id | html %]</a>[% END %]</td> |
| 179 |
<td>[% offset_accountline.note | html %]</td> |
| 180 |
<td> |
| 181 |
[%- IF offset_accountline -%] |
| 182 |
<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]" class="btn btn-default btn-xs"><i class="fa fa-list"></i> Details</a> |
| 183 |
[%- END -%] |
| 184 |
</td> |
| 182 |
</tr> |
185 |
</tr> |
| 183 |
[% END %] |
|
|
| 184 |
[% END %] |
186 |
[% END %] |
| 185 |
</tbody> |
187 |
</tbody> |
| 186 |
</table> |
188 |
</table> |
| 187 |
[% ELSE %] |
189 |
[% ELSE %] |
| 188 |
<div class="dialog message"> |
190 |
<div class="dialog message"> |
| 189 |
[% IF type == 'credit' %] |
191 |
Account not found |
| 190 |
Payment not found |
|
|
| 191 |
[% ELSIF type == 'debit' %] |
| 192 |
Fee not found |
| 193 |
[% END %] |
| 194 |
</div> |
192 |
</div> |
| 195 |
[% END %] |
193 |
[% END %] |
| 196 |
|
194 |
|