$dbh->disconnect;
if ($update_available) {
- $form->{"stylesheet"} = "lx-office-erp.css";
$form->{"title"} = $main::locale->text("Dataset upgrade");
$form->header();
print $form->parse_html_template("dbupgrade/header");
}
# update the tables
- if (!open(FH, ">", $::lx_office_conf{paths}->{userspath} . "/nologin")) {
+ if (!$::lx_office_conf{debug}->{keep_installation_unlocked} && !open(FH, ">", $::lx_office_conf{paths}->{userspath} . "/nologin")) {
$form->show_generic_error($main::locale->text('A temporary file could not be created. ' .
'Please verify that the directory "#1" is writeable by the webserver.',
$::lx_office_conf{paths}->{userspath}),
# remove lock file
unlink($::lx_office_conf{paths}->{userspath} . "/nologin");
- my $menufile =
- $self->{"menustyle"} eq "v3" ? "menuv3.pl" :
- $self->{"menustyle"} eq "neu" ? "menunew.pl" :
- $self->{"menustyle"} eq "js" ? "menujs.pl" :
- "menu.pl";
-
- print $form->parse_html_template("dbupgrade/footer", { "menufile" => $menufile });
+ print $form->parse_html_template("dbupgrade/footer");
$rc = -2;
}
do_query($form, $dbh, $query, $form->{profit_determination});
$query = "UPDATE defaults SET inventory_system = ?";
do_query($form, $dbh, $query, $form->{inventory_system});
+ $query = "UPDATE defaults SET curr = ?";
+ do_query($form, $dbh, $query, $form->{defaultcurrency});
$dbh->disconnect;
taxnumber co_ustid duns menustyle template_format default_media
default_printer_id copies show_form_details favorites
pdonumber sdonumber hide_cvar_search_options mandatory_departments
- sepa_creditor_id);
+ sepa_creditor_id taxincluded_checked);
$main::lxdebug->leave_sub();
}
1;
-