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

(-)a/members/pay.pl (+1 lines)
Lines 98-103 elsif ( $input->param('confirm_writeoff') ) { Link Here
98
98
99
    my $accountline = Koha::Account::Lines->find( $accountlines_id );
99
    my $accountline = Koha::Account::Lines->find( $accountlines_id );
100
100
101
    $amount = $accountline->amountoutstanding if (abs($amount - $accountline->amountoutstanding) < 0.01);
101
    if ( $amount > $accountline->amountoutstanding ) {
102
    if ( $amount > $accountline->amountoutstanding ) {
102
        print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?"
103
        print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?"
103
              . "borrowernumber=$borrowernumber"
104
              . "borrowernumber=$borrowernumber"
(-)a/members/paycollect.pl (-1 / +1 lines)
Lines 136-141 if ( $pay_individual || $writeoff_individual ) { Link Here
136
}
136
}
137
137
138
if ( $total_paid and $total_paid ne '0.00' ) {
138
if ( $total_paid and $total_paid ne '0.00' ) {
139
    $total_paid = $total_due if (abs($total_paid - $total_due) < 0.01);
139
    if ( $total_paid < 0 or $total_paid > $total_due ) {
140
    if ( $total_paid < 0 or $total_paid > $total_due ) {
140
        $template->param(
141
        $template->param(
141
            error_over => 1,
142
            error_over => 1,
142
- 

Return to bug 17140