sub save_dunning {
$main::lxdebug->enter_sub();
- my ($self, $myconfig, $form, $rows, $userspath, $spool, $sendmail) = @_;
+ my ($self, $myconfig, $form, $rows, $userspath, $spool) = @_;
# connect to database
my $dbh = $form->dbconnect_noauto($myconfig);
foreach my $level (values %{ $levels }) {
next unless scalar @{ $level };
- DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool, $sendmail);
+ DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool);
}
}
"customer_id" => $form->{"customer_id_$i"},
"next_dunning_config_id" => $form->{"next_dunning_config_id_$i"},
"email" => $form->{"email_$i"}, } ];
- DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool, $sendmail);
+ DN->save_dunning(\%myconfig, $form, $level, $userspath, $spool);
}
}
}
$form->{IN} = "$form->{type}.$suffix";
- $form->{OUT} =
- $form->{media} eq 'email' ? $sendmail :
- $form->{media} eq 'printer' ? "| $myconfig{printer}" : "";
+ $form->{OUT} = $form->{media} eq 'printer' ? "| $myconfig{printer}" : "";
# Save $form->{email} because it will be overwritten.
$form->{EMAIL_RECIPIENT} = $form->{email};