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 |
- |
|
|