Lines 112-119
if ( $total_paid and $total_paid ne '0.00' ) {
Link Here
|
112 |
} else { |
112 |
} else { |
113 |
if ($individual) { |
113 |
if ($individual) { |
114 |
if ( $total_paid == $total_due ) { |
114 |
if ( $total_paid == $total_due ) { |
115 |
makepayment( $accountlines_id, $borrowernumber, $accountno, $total_paid, $user, |
115 |
my $line = Koha::Account::Lines->find($accountlines_id); |
116 |
$branch, $payment_note ); |
116 |
Koha::Account->new( { patron_id => $borrowernumber } )->pay( |
|
|
117 |
{ |
118 |
lines => [$line], |
119 |
amount => $total_paid, |
120 |
library_id => $branch, |
121 |
note => $payment_note |
122 |
} |
123 |
); |
117 |
} else { |
124 |
} else { |
118 |
makepartialpayment( $accountlines_id, $borrowernumber, $accountno, $total_paid, |
125 |
makepartialpayment( $accountlines_id, $borrowernumber, $accountno, $total_paid, |
119 |
$user, $branch, $payment_note ); |
126 |
$user, $branch, $payment_note ); |
120 |
- |
|
|