X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fpaycollect.pl;h=5a732a9c9e3bf539b115449bd2e8cb0c538662fb;hb=ea1aa7a0d906d583375618e37be60e9f0d62d939;hp=7dfb6223930a5cbea1c6bf71e4d3e71d2a994e6c;hpb=6f6bfb8aff59ae10b4bf7e8d4bdcb31c5b269458;p=koha_fer diff --git a/members/paycollect.pl b/members/paycollect.pl index 7dfb622393..5a732a9c9e 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -56,7 +56,7 @@ my $writeoff = $input->param('writeoff_individual'); my $select_lines = $input->param('selected'); my $select = $input->param('selected_accts'); my $accountno; - +my $accountlines_id; if ( $individual || $writeoff ) { if ($individual) { $template->param( pay_individual => 1 ); @@ -64,6 +64,7 @@ if ( $individual || $writeoff ) { $template->param( writeoff_individual => 1 ); } my $accounttype = $input->param('accounttype'); + $accountlines_id = $input->param('accountlines_id'); my $amount = $input->param('amount'); my $amountoutstanding = $input->param('amountoutstanding'); $accountno = $input->param('accountno'); @@ -75,6 +76,7 @@ if ( $individual || $writeoff ) { $total_due = $amountoutstanding; $template->param( accounttype => $accounttype, + accountlines_id => $accountlines_id, accountno => $accountno, amount => $amount, amountoutstanding => $amountoutstanding, @@ -101,10 +103,10 @@ if ( $total_paid and $total_paid ne '0.00' ) { } else { if ($individual) { if ( $total_paid == $total_due ) { - makepayment( $borrowernumber, $accountno, $total_paid, $user, + makepayment( $accountlines_id, $borrowernumber, $accountno, $total_paid, $user, $branch ); } else { - makepartialpayment( $borrowernumber, $accountno, $total_paid, + makepartialpayment( $accountlines_id, $borrowernumber, $accountno, $total_paid, $user, $branch ); } print $input->redirect(