From 043432cc57381c00329bfc5e1b2daf880c85b1dc Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Fri, 14 May 2021 14:37:59 +0100
Subject: [PATCH] Bug 22435: Update for bug 27049

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 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