local (*IN, *OUT);
my $userspath = $::lx_office_conf{paths}->{userspath};
+
$self->{"cwd"} = getcwd();
$self->{"tmpdir"} = $self->{cwd} . "/${userspath}";
$result = $template->parse(*STDOUT);
}
- Common::copy_file_to_webdav_folder($self) if ($self->{webdav});
if (!$result) {
$self->cleanup();
$self->error("$self->{IN} : " . $template->get_error());
$key = "all_payments" unless ($key);
- my $query = qq|SELECT * FROM payment_terms ORDER BY id|;
+ my $query = qq|SELECT * FROM payment_terms ORDER BY sortkey|;
$self->{$key} = selectall_hashref_query($self, $dbh, $query);