} else {
if ($individual) {
if ( $total_paid == $total_due ) {
Koha::Account->new( { patron_id => $borrowernumber } )->pay({
my $line = Koha::Account::Lines->find($accountlines_id);
accountlines_id => $accountlines_id,
Koha::Account->new( { patron_id => $borrowernumber } )->pay(
amount => $total_paid,
{
library_id => $branch,
lines => [$line],
note => $payment_note,
});
note => $payment_note
}
);
makepartialpayment( $accountlines_id, $borrowernumber, $accountno, $total_paid,
$user, $branch, $payment_note );
-