]> 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)
committerAlex Buckley <alexbuckley@catalyst.net.nz>
Mon, 24 Feb 2025 20:43:48 +0000 (20:43 +0000)
commita8078a4f3d15122ab3d53ca54a2477fd3ee5221d
treed47855358ddbc07c328755541b65c2123faac3f2
parent5a8aef083d28a7039f0e533d84e1584d8a4f090c
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>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
t/db_dependent/ArticleRequests.t