From e34e371f30af6aace886cbaa1c859f88860ae60c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 14 Feb 2025 07:27:13 +0000 Subject: [PATCH] [24.05.x] Bug 36081: (QA follow-up) Resolve IsNotDebit exception in ArticleRequests.t Resolve (when running ArticleRequests.t): Exception 'Koha::Exceptions::Account::IsNotDebit' thrown 'Account line 326 is not a debit' This occurs after switching from ArticleRequest->new to TestBuilder. TestBuilder creates an account line that has a credit_type_code and a debit_type_code. (This could be fixed further somewhere else.) For now, just setting debit_id to NULL. Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/ArticleRequests.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/db_dependent/ArticleRequests.t b/t/db_dependent/ArticleRequests.t index 916b6e8e73c..96896a8fb57 100755 --- a/t/db_dependent/ArticleRequests.t +++ b/t/db_dependent/ArticleRequests.t @@ -77,6 +77,7 @@ my $article_request = $builder->build_object( biblionumber => $item->biblionumber, itemnumber => $item->itemnumber, title => $article_request_title, + debit_id => undef, } } )->request(); -- 2.48.1