Bug 10423: Show date due with time if it's a hourly loan
[koha-ffzg.git] / members / summary-print.pl
index 208d2f9..4530e14 100755 (executable)
@@ -76,7 +76,7 @@ output_html_with_http_headers $input, $cookie, $template->output;
 sub build_issue_data {
     my $issues = shift;
 
-    my $return;
+    my $return = [];
 
     my $today = DateTime->now( time_zone => C4::Context->tz );
     $today->truncate( to => 'day' );
@@ -95,6 +95,8 @@ sub build_issue_data {
 
         $row{'charge'} = sprintf( "%.2f", $charge );
 
+        $row{date_due} = $row{date_due_sql};
+
         push( @{$return}, \%row );
     }