<table>
[% IF ( LibraryName ) %]
<tr>
- <th colspan="8" class="centerednames">
- <h3>[% LibraryName | html %]</h3>
+ <th colspan="5" class="centerednames">
+ <h3>[% LibraryName | html %]</h3>
</th>
</tr>
[% END %]
<tr>
- <th colspan="8" class="centerednames">
- <h2><u>INVOICE</u></h2>
- </th>
+ <th colspan="5" class="centerednames">
+ <h2><u>INVOICE</u></h2>
+ </th>
</tr>
<tr>
- <th colspan="8" class="centerednames">
+ <th colspan="5" class="centerednames">
<h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
</th>
</tr>
<tr>
- <th colspan="8" >
+ <th colspan="5" >
Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />
Card number: [% patron.cardnumber | html %]<br />
</th>
<tr>
<th>Date</th>
<th>Description of charges</th>
- <th>Barcode</th>
- <th>Due date</th>
- <th>Return date</th>
<th>Note</th>
<th style="text-align:right;">Amount</th>
<th style="text-align:right;">Amount outstanding</th>
[% PROCESS account_type_description account=account %]
[%- IF account.description %], [% account.description | html %][% END %]
</td>
- <td>[% account.item.barcode | html %]</td>
- <td>[% account.checkout.date_due | $KohaDates as_due_date => 1 %]</td>
- <td>[% account.checkout.returndate | $KohaDates with_hours => 1 %]</td>
<td>[% account.note | html %]</td>
[% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
[% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding | $Price %]</td>
[% END %]
<tfoot>
<tr>
- <td colspan="7">Total outstanding dues as on date: </td>
+ <td colspan="4">Total outstanding dues as on date: </td>
[% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
</tr>
</tfoot>
#get account details
my $total = $patron->account->balance;
-my $accountline_object = Koha::Account::Lines->find($accountlines_id);
-my $accountline = $accountline_object->unblessed;
-$accountline->{item} = $accountline_object->item || "" ;
-$accountline->{checkout} = $accountline_object->checkout || "";
+my $accountline = Koha::Account::Lines->find($accountlines_id)->unblessed;
my $totalcredit;
if ( $total <= 0 ) {