Bug 40255: (follow-up) Fix failure in add_debit tests

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2026-04-20 16:26:32 +00:00
parent 3a91b4f8d0
commit 3fd93025ec
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -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