|
Lines 43-49
my $writeoff_individual = $input->param('writeoff_individual');
Link Here
|
| 43 |
my $change_given = $input->param('change_given'); |
43 |
my $change_given = $input->param('change_given'); |
| 44 |
my $type = scalar $input->param('type') || 'PAYMENT'; |
44 |
my $type = scalar $input->param('type') || 'PAYMENT'; |
| 45 |
|
45 |
|
| 46 |
my $updatecharges_permissions = ($writeoff_individual || $type eq 'writeoff') ? 'writeoff' : 'remaining_permissions'; |
46 |
my $updatecharges_permissions = ($writeoff_individual || $type eq 'WRITEOFF') ? 'writeoff' : 'remaining_permissions'; |
| 47 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
47 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
| 48 |
{ template_name => 'members/paycollect.tt', |
48 |
{ template_name => 'members/paycollect.tt', |
| 49 |
query => $input, |
49 |
query => $input, |
|
Lines 166-172
if ( $total_paid and $total_paid ne '0.00' ) {
Link Here
|
| 166 |
error_over => 1, |
166 |
error_over => 1, |
| 167 |
total_due => $total_due |
167 |
total_due => $total_due |
| 168 |
); |
168 |
); |
| 169 |
} elsif ( $total_collected < $total_paid && !( $writeoff_individual || $type eq 'writeoff') ) { |
169 |
} elsif ( $total_collected < $total_paid && !( $writeoff_individual || $type eq 'WRITEOFF' ) ) { |
| 170 |
$template->param( |
170 |
$template->param( |
| 171 |
error_under => 1, |
171 |
error_under => 1, |
| 172 |
total_paid => $total_paid |
172 |
total_paid => $total_paid |
| 173 |
- |
|
|