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:
parent
c55f3e69a3
commit
45b1fd3cab
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue