Bug 17204: Rancor Z39.50 search fails under plack
[srvgit] / members / printinvoice.pl
index 38ffa49..252c241 100755 (executable)
@@ -28,7 +28,6 @@ use C4::Output;
 use Koha::DateUtils;
 use CGI qw ( -utf8 );
 use C4::Members;
-use C4::Branch;
 use C4::Accounts;
 use Koha::Patron::Images;
 
@@ -102,6 +101,7 @@ for ( my $i = 0 ; $i < $numaccts ; $i++ ) {
         'amountoutstanding'       => sprintf( "%.2f", $accts->[$i]{'amountoutstanding'} ),
         'accountno'               => $accts->[$i]{'accountno'},
         accounttype               => $accts->[$i]{accounttype},
+        'note'                    => $accts->[$i]{'note'},
     );
 
     if ( $accts->[$i]{'accounttype'} ne 'F' && $accts->[$i]{'accounttype'} ne 'FU' ) {
@@ -134,7 +134,6 @@ $template->param(
     phone          => $data->{'phone'},
     email          => $data->{'email'},
     branchcode     => $data->{'branchcode'},
-    branchname     => GetBranchName( $data->{'branchcode'} ),
     total          => sprintf( "%.2f", $total ),
     totalcredit    => $totalcredit,
     is_child       => ( $data->{'category_type'} eq 'C' ),