Bug 22421: (follow-up) Fix tests

Need to search by old_issue_id instead of issue_id when checking the
value of an accountline after calling AddReturn on the linked checkout

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Emily Lamancusa 2024-10-24 11:54:02 -04:00 committed by Katrin Fischer
parent c55f3e69a3
commit 45b1fd3cab
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -3701,7 +3701,7 @@ subtest 'AddReturn | is_overdue' => sub {
$lines = Koha::Account::Lines->search(
{
borrowernumber => $patron->borrowernumber,
issue_id => $issue->id
old_issue_id => $issue->id
}
);
$accountline = $lines->next;