X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=misc%2Fcronjobs%2Ffines.pl;h=27bd06183aa55be1e96271f8db58cd668a89ae1f;hb=31a0ed0a43bb4ecfde0b762eb6e654c51da6f66e;hp=5124f3cd9e68f2878c9d7bc4fa1c5e08d33a00f4;hpb=ef038b258ebfef315cea06bcf27d92eada86e9d7;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