From 41fc8d0ee416b6ae97f053ba576dfbf62a201b51 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 --- 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 ae2ee9c0de..d2158ba0a4 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.32.0