diff --git a/misc/cronjobs/writeoff_debts.pl b/misc/cronjobs/writeoff_debts.pl index 9b207a59e5..1f1a9e8b2f 100755 --- a/misc/cronjobs/writeoff_debts.pl +++ b/misc/cronjobs/writeoff_debts.pl @@ -94,8 +94,7 @@ while ( my $line = $lines->next ) { # Link writeoff to charge $writeoff->apply( { - debits => [$line], - offset_type => 'WRITEOFF' + debits => [$line] } ); $writeoff->status('APPLIED')->store();