ffzg/recall_notices.pl: added --interval and --dedup
[koha.git] / members / printinvoice.pl
index 49e777e..81b5b9f 100755 (executable)
@@ -55,10 +55,7 @@ output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log
 
 #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 ) {
@@ -84,7 +81,6 @@ my %row = (
     'amount'                  => sprintf( "%.2f", $accountline->{'amount'} ),
     'amountoutstanding' =>
       sprintf( "%.2f", $accountline->{'amountoutstanding'} ),
-    'accountno' => $accountline->{'accountno'},
     accounttype => $accountline->{accounttype},
     'note'      => $accountline->{'note'},
 );