X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=misc%2Fcronjobs%2Ffines.pl;h=27bd06183aa55be1e96271f8db58cd668a89ae1f;hb=a8c5497b8da7de25b7c4787ee5540e4e1b48704d;hp=5124f3cd9e68f2878c9d7bc4fa1c5e08d33a00f4;hpb=b93e6df3a1b7051bc92220cf6bd829c2229bfa70;p=koha_fer diff --git a/misc/cronjobs/fines.pl b/misc/cronjobs/fines.pl index 5124f3cd9e..27bd06183a 100755 --- a/misc/cronjobs/fines.pl +++ b/misc/cronjobs/fines.pl @@ -110,10 +110,9 @@ for my $overdue ( @{$overdues} ) { } ++$counted; - my ( $amount, $type, $daycounttotal ) = + my ( $amount, $type, $unitcounttotal ) = CalcFine( $overdue, $borrower->{categorycode}, $branchcode, $datedue, $today ); - $type ||= q{}; # Don't update the fine if today is a holiday. @@ -131,15 +130,15 @@ for my $overdue ( @{$overdues} ) { push @cells, map { defined $borrower->{$_} ? $borrower->{$_} : q{} } @borrower_fields; push @cells, map { $overdue->{$_} } @item_fields; - push @cells, $type, $daycounttotal, $amount; + push @cells, $type, $unitcounttotal, $amount; say {$fh} join $delim, @cells; } 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