diff --git a/misc/cronjobs/writeoff_debts.pl b/misc/cronjobs/writeoff_debts.pl index 6ac740b765..c88c30e9cb 100755 --- a/misc/cronjobs/writeoff_debts.pl +++ b/misc/cronjobs/writeoff_debts.pl @@ -6,11 +6,16 @@ use feature 'say'; use Getopt::Long qw( GetOptions ); use Pod::Usage qw( pod2usage ); +use C4::Log qw( cronlogaction ); + use Koha::Account::Lines; use Koha::DateUtils qw( dt_from_string ); use Koha::Script -cron; +my $command_line_options = join( " ", @ARGV ); +cronlogaction( { info => $command_line_options } ); + my ( $help, $verbose, @type, $before, $after, @category_code, $file, $confirm ); GetOptions( 'h|help' => \$help, @@ -137,6 +142,8 @@ while ( my $line = $lines->next ) { } } +cronlogaction( { action => 'End', info => "COMPLETED" } ); + exit(0); __END__