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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt (+5 lines)
Lines 65-70 Link Here
65
    You must pay a value less than or equal to [% total_due | format('%.2f') %].
65
    You must pay a value less than or equal to [% total_due | format('%.2f') %].
66
    </div>
66
    </div>
67
[% END %]
67
[% END %]
68
[% IF ( error_under ) %]
69
    <div id="error_message" class="dialog alert">
70
    You must collect a value greater than or equal to [% total_paid | format('%.2f') %].
71
    </div>
72
[% END %]
68
73
69
[% IF ( pay_individual ) %]
74
[% IF ( pay_individual ) %]
70
    [% IF ( error_registers ) %]
75
    [% IF ( error_registers ) %]
(-)a/members/paycollect.pl (-2 / +7 lines)
Lines 67-73 my $user = $input->remote_user; Link Here
67
my $library_id = C4::Context->userenv->{'branch'};
67
my $library_id = C4::Context->userenv->{'branch'};
68
my $total_due  = $account->outstanding_debits->total_outstanding;
68
my $total_due  = $account->outstanding_debits->total_outstanding;
69
69
70
my $total_paid = $input->param('paid');
70
my $total_paid      = $input->param('paid');
71
my $total_collected = $input->param('collected');
71
72
72
my $selected_lines = $input->param('selected'); # comes from pay.pl
73
my $selected_lines = $input->param('selected'); # comes from pay.pl
73
my $pay_individual   = $input->param('pay_individual');
74
my $pay_individual   = $input->param('pay_individual');
Lines 164-169 if ( $total_paid and $total_paid ne '0.00' ) { Link Here
164
            error_over => 1,
165
            error_over => 1,
165
            total_due => $total_due
166
            total_due => $total_due
166
        );
167
        );
168
    } elsif ( $total_collected < $total_paid && !( $writeoff_individual || $type eq 'writeoff') ) {
169
        $template->param(
170
            error_under => 1,
171
            total_paid => $total_paid
172
        );
167
    } else {
173
    } else {
168
        output_and_exit( $input, $cookie, $template,  'wrong_csrf_token' )
174
        output_and_exit( $input, $cookie, $template,  'wrong_csrf_token' )
169
            unless Koha::Token->new->check_csrf( {
175
            unless Koha::Token->new->check_csrf( {
170
- 

Return to bug 22359