Bug 7420 tiny bugfix
authorPaul Poulain <paul.poulain@biblibre.com>
Wed, 25 Jul 2012 16:31:50 +0000 (18:31 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 25 Jul 2012 16:35:36 +0000 (18:35 +0200)
The printing at the end, in verbose mode was not displaying variables properly because the print was '' and not ""

misc/cronjobs/fines.pl

index 25a8122..27bd061 100755 (executable)
@@ -113,7 +113,6 @@ for my $overdue ( @{$overdues} ) {
     my ( $amount, $type, $unitcounttotal ) =
       CalcFine( $overdue, $borrower->{categorycode},
         $branchcode, $datedue, $today );
-
     $type ||= q{};
 
     # Don't update the fine if today is a holiday.
@@ -138,8 +137,8 @@ close $fh;
 
 if ($verbose) {
     my $overdue_items = @{$overdues};
-    print <<'EOM';
-Fines assessment -- $today->ymd() -- Saved to $filename
+    print <<"EOM";
+Fines assessment -- $today -- Saved to $filename
 Number of Overdue Items:
      counted $overdue_items
     reported $counted