{
type => $type,
amount => $total_paid,
library_id => $branch,
lines => \@lines,
note => $note,
payment_type => $payment_type,
Koha::Account->new( { patron_id => $borrowernumber } )->pay(
}
-