]> git.koha-community.org Git - koha.git/commit
Bug 36081: (QA follow-up) Resolve IsNotDebit exception in ArticleRequests.t
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 14 Feb 2025 07:27:13 +0000 (07:27 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 26 Feb 2025 15:17:34 +0000 (12:17 -0300)
commit11a8bdc6b60bf02fcbba445595f7f521ed76f125
treef8fbf7d982f36e19901c63974b184412301a72a3
parent5edeb0cfa95e65995f3baad8ac670511144454e5
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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
t/db_dependent/ArticleRequests.t