From 3fd93025ecfd74b942b41884369da915e937c4a3 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 20 Apr 2026 16:26:32 +0000 Subject: [PATCH] Bug 40255: (follow-up) Fix failure in add_debit tests Signed-off-by: Lucas Gass --- Koha/Account/Line.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index 82570f1c40..ff169c0398 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -1119,7 +1119,7 @@ sub store { #if there is a matching debit description letter, pull that content and render it for the accountline.description if ( $self->is_debit && !$self->in_storage ) { - my $debit_type = $self->debit_type; + my $debit_type = Koha::Account::DebitTypes->find( $self->debit_type_code ); if ($debit_type) { # get the patron's prederred lang