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

(-)a/members/mancredit.pl (-2 / +6 lines)
Lines 81-87 if ($add){ Link Here
81
    my $amount      = $input->param('amount') || 0;
81
    my $amount      = $input->param('amount') || 0;
82
    my $type        = $input->param('type');
82
    my $type        = $input->param('type');
83
83
84
    $patron->account->add_credit({
84
    my $account = $patron->account;
85
    $account->add_credit({
85
        amount      => $amount,
86
        amount      => $amount,
86
        description => $description,
87
        description => $description,
87
        item_id     => $item_id,
88
        item_id     => $item_id,
Lines 90-95 if ($add){ Link Here
90
        user_id     => $logged_in_user->id
91
        user_id     => $logged_in_user->id
91
    });
92
    });
92
93
94
    if ( C4::Context->preference('AccountAutoReconcile') ) {
95
        $account->reconcile_balance;
96
    }
97
93
    print $input->redirect("/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber");
98
    print $input->redirect("/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber");
94
99
95
} else {
100
} else {
96
- 

Return to bug 21915