Lines 93-123
Link Here
|
93 |
</table> |
93 |
</table> |
94 |
[% END %] |
94 |
[% END %] |
95 |
[% IF accounts && totaldue != 0 %] |
95 |
[% IF accounts && totaldue != 0 %] |
96 |
<table> |
96 |
<table id="table_account_fines"> |
97 |
<caption>Account fines and payments</caption> |
97 |
<caption>Account fines and payments</caption> |
98 |
<tr> |
98 |
<thead> |
99 |
<th>Description of charges</th> |
99 |
<tr> |
100 |
<th>Date</th> |
100 |
<th class="title-string">Date</th> |
101 |
<th>Amount</th> |
101 |
<th>Description of charges</th> |
102 |
<th>Outstanding</th> |
102 |
<th>Note</th> |
103 |
</tr> |
103 |
<th>Amount</th> |
|
|
104 |
<th>Outstanding</th> |
105 |
</tr> |
106 |
</thead> |
104 |
|
107 |
|
105 |
[% FOREACH account IN accounts %] |
108 |
[% FOREACH account IN accounts %] |
106 |
<tr> |
109 |
<tr> |
107 |
<td> |
110 |
<td>[% account.date | $KohaDates %]</td> |
108 |
[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber | html %]&itemnumber=[% account.itemnumber | html %]">[% END %] |
111 |
<td> |
109 |
[% account.description | html %] [% IF account.itemnumber AND account.accounttype != 'F' AND account.accounttype != 'FU' %] [% account.item.biblio.title | html %][% END %] |
112 |
[% INCLUDE 'accounttype.inc' accountline => account %] |
110 |
[% IF ( account.itemnumber ) %]</a>[% END %] |
113 |
[%- IF account.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %][% END %] |
111 |
</td> |
114 |
[%- IF account.description %], [% account.description | html %][% END %] |
112 |
<td>[% account.date | $KohaDates %]</td> |
115 |
[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber %]&itemnumber=[% account.itemnumber | html %]">[% account.item.biblio.title | html %]</a>[% END %]</td> |
113 |
<td style="text-align:right;">[% account.amount | $Price | html %]</td> |
116 |
<td>[% account.note | html_line_break %]</td> |
114 |
<td style="text-align:right;">[% account.amountoutstanding | $Price | html %]</td> |
117 |
[% IF ( account.amount < 0 ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount | $Price | html %]</td> |
|
|
118 |
[% IF ( account.amountoutstanding < 0 ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding | $Price | html %]</td> |
115 |
</tr> |
119 |
</tr> |
116 |
[% END %] |
120 |
[% END %] |
117 |
|
121 |
|
118 |
<tfoot> |
122 |
<tfoot> |
119 |
<tr> |
123 |
<tr> |
120 |
<td colspan="3">Total due</td> |
124 |
<td colspan="4">Total due</td> |
121 |
<td colspan="2" style="text-align:right;">[% totaldue | $Price | html %]</td> |
125 |
<td colspan="2" style="text-align:right;">[% totaldue | $Price | html %]</td> |
122 |
</tr> |
126 |
</tr> |
123 |
</tfoot> |
127 |
</tfoot> |
124 |
- |
|
|