description => $ref->{description},
selected => "selected",
id => $ref->{id} };
- } else {
+ } else {
push @{ $form->{"${module}_links"}{$key} },
{ accno => $ref->{accno},
description => $ref->{description},
$query = qq|UPDATE defaults SET closedto = NULL,
revtrans = '1'|;
- } else {
- if ($form->{closedto}) {
+ } elsif ($form->{closedto}) {
- $query = qq|UPDATE defaults SET closedto = '$form->{closedto}',
+ $query = qq|UPDATE defaults SET closedto = '$form->{closedto}',
revtrans = '0'|;
- } else {
+ } else {
- $query = qq|UPDATE defaults SET closedto = NULL,
+ $query = qq|UPDATE defaults SET closedto = NULL,
revtrans = '0'|;
- }
}
# set close in defaults