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

(-)a/members/pay.pl (+1 lines)
Lines 97-102 elsif ( $input->param('confirm_writeoff') ) { Link Here
97
97
98
    my $accountline = Koha::Account::Lines->find( $accountlines_id );
98
    my $accountline = Koha::Account::Lines->find( $accountlines_id );
99
99
100
    $amount = $accountline->amountoutstanding if (abs($amount - $accountline->amountoutstanding) < 0.01);
100
    if ( $amount > $accountline->amountoutstanding ) {
101
    if ( $amount > $accountline->amountoutstanding ) {
101
        print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?"
102
        print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?"
102
              . "borrowernumber=$borrowernumber"
103
              . "borrowernumber=$borrowernumber"
(-)a/members/paycollect.pl (-1 / +1 lines)
Lines 106-111 if ( $individual || $writeoff ) { Link Here
106
}
106
}
107
107
108
if ( $total_paid and $total_paid ne '0.00' ) {
108
if ( $total_paid and $total_paid ne '0.00' ) {
109
    $total_paid = $total_due if (abs($total_paid - $total_due) < 0.01);
109
    if ( $total_paid < 0 or $total_paid > $total_due ) {
110
    if ( $total_paid < 0 or $total_paid > $total_due ) {
110
        $template->param(
111
        $template->param(
111
            error_over => 1,
112
            error_over => 1,
112
- 

Return to bug 17140