From 47c589bea1d18d3ac0d352802ec79e0094bc8aba Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 14 May 2021 14:37:59 +0100 Subject: [PATCH] Bug 22435: Update for bug 27049 Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- misc/cronjobs/writeoff_debts.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.39.5