Bug 19489: Detailed Description of charges in Patron accounting
[koha.git] / members / printinvoice.pl
index a6d92f7..49e777e 100755 (executable)
@@ -55,7 +55,10 @@ output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log
 
 #get account details
 my $total = $patron->account->balance;
-my $accountline = Koha::Account::Lines->find($accountlines_id)->unblessed;
+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 $totalcredit;
 if ( $total <= 0 ) {