View | Details | Raw Unified | Return to bug 20946
Collapse All | Expand All

(-)a/members/pay.pl (-2 / +1 lines)
Lines 139-146 output_html_with_http_headers $input, $cookie, $template->output; Link Here
139
sub add_accounts_to_template {
139
sub add_accounts_to_template {
140
140
141
    my $patron = Koha::Patrons->find( $borrowernumber );
141
    my $patron = Koha::Patrons->find( $borrowernumber );
142
    my $total = $patron->account->balance;
142
    my ( $total, $account_lines ) = Koha::Account->new( { patron_id => $borrowernumber } )->outstanding_debits;
143
    my $account_lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber, amountoutstanding => { '!=' => 0 } }, { order_by => ['accounttype'] });
144
    my @accounts;
143
    my @accounts;
145
    while ( my $account_line = $account_lines->next ) {
144
    while ( my $account_line = $account_lines->next ) {
146
        $account_line = $account_line->unblessed;
145
        $account_line = $account_line->unblessed;
(-)a/members/paycollect.pl (-3 / +1 lines)
Lines 59-66 my $category = $patron->category; Link Here
59
my $user           = $input->remote_user;
59
my $user           = $input->remote_user;
60
60
61
my $branch         = C4::Context->userenv->{'branch'};
61
my $branch         = C4::Context->userenv->{'branch'};
62
62
my ( $total_due ) = Koha::Account->new( { patron_id => $borrowernumber } )->outstanding_debits;
63
my $total_due = $patron->account->balance;
64
my $total_paid = $input->param('paid');
63
my $total_paid = $input->param('paid');
65
64
66
my $individual   = $input->param('pay_individual');
65
my $individual   = $input->param('pay_individual');
67
- 

Return to bug 20946