projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ffzg/recall_notices.pl: added --interval and --dedup
[koha.git]
/
members
/
printinvoice.pl
diff --git
a/members/printinvoice.pl
b/members/printinvoice.pl
index
49e777e
..
81b5b9f
100755
(executable)
--- a/
members/printinvoice.pl
+++ b/
members/printinvoice.pl
@@
-55,10
+55,7
@@
output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log
#get account details
my $total = $patron->account->balance;
#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->{issue} = $accountline_object->issue || "";
+my $accountline = Koha::Account::Lines->find($accountlines_id)->unblessed;
my $totalcredit;
if ( $total <= 0 ) {
my $totalcredit;
if ( $total <= 0 ) {
@@
-84,7
+81,6
@@
my %row = (
'amount' => sprintf( "%.2f", $accountline->{'amount'} ),
'amountoutstanding' =>
sprintf( "%.2f", $accountline->{'amountoutstanding'} ),
'amount' => sprintf( "%.2f", $accountline->{'amount'} ),
'amountoutstanding' =>
sprintf( "%.2f", $accountline->{'amountoutstanding'} ),
- 'accountno' => $accountline->{'accountno'},
accounttype => $accountline->{accounttype},
'note' => $accountline->{'note'},
);
accounttype => $accountline->{accounttype},
'note' => $accountline->{'note'},
);