$lines = Koha::Account::Lines->search(
{
borrowernumber => $patron->borrowernumber,
issue_id => $issue->id
old_issue_id => $issue->id
}
);
$accountline = $lines->next;
-