From 2163f89d51606ceed154562376f8c0db7e3f9c1a 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 --- 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.20.1