Browse Source

Bug 10027: (follow-up) improve display of fine details on printed invoice

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.

Checked invoice is correctly printed for
- partially paid fines
- paid fines
- unpaid fines

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
new/bootstrap-opac
Kyle Hall 11 years ago
committed by Galen Charlton
parent
commit
e30612bb3f
  1. 12
      koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt

12
koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt

@ -17,23 +17,23 @@
<table>
[% IF ( LibraryName ) %]
<tr>
<th colspan=3 class="centerednames">
<th colspan="4" class="centerednames">
<h3>[% LibraryName %]</h3>
</th>
</tr>
[% END %]
<tr>
<th colspan=3 class="centerednames">
<th colspan="4" class="centerednames">
<h2><u>INVOICE</u></h2>
</th>
</tr>
<tr>
<th colspan=3 class="centerednames">
<th colspan="4" class="centerednames">
[% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
</th>
</tr>
<tr>
<th colspan=3 >
<th colspan="4" >
Bill to: [% firstname %] [% surname %] <br />
Card number: [% cardnumber %]<br />
</th>
@ -42,6 +42,7 @@
<th>Date</th>
<th>Description of charges</th>
<th style="text-align:right;">Amount</th>
<th style="text-align:right;">Amount outstanding</th>
</tr>
[% FOREACH account IN accounts %]
@ -49,12 +50,13 @@
<td>[% account.date %]</td>
<td>[% account.description %]</td>
[% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
[% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
</tr>
[% END %]
<tfoot>
<tr>
<td colspan="2">Total outstanding dues as on date: </td>
<td colspan="3">Total outstanding dues as on date: </td>
[% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
</tr>
</tfoot>

Loading…
Cancel
Save