fibu_buchungen added error when startdate is not set

This commit is contained in:
OpenXE 2023-04-23 17:18:51 +02:00
parent 828c1b1a75
commit 62f6df1aeb

View File

@ -557,10 +557,16 @@ class Fibu_buchungen {
$this->app->erp->MenuEintrag("index.php?module=fibu_buchungen&action=list", "Übersicht"); $this->app->erp->MenuEintrag("index.php?module=fibu_buchungen&action=list", "Übersicht");
// $this->app->erp->MenuEintrag("index.php?module=fibu_buchungen&action=create", "Neu anlegen"); // $this->app->erp->MenuEintrag("index.php?module=fibu_buchungen&action=create", "Neu anlegen");
$startdatum = $this->app->erp->Firmendaten('fibu_buchungen_startdatum');
if (empty($startdatum)) {
$msg .= '<div class="error">Startdatum <a href="index.php?module=firmendaten&action=edit#tabs-8">("Buchungen erzeugen ab Datum")</a> in den Firmendaten nicht gesetzt.</div>';
}
$submit = $this->app->Secure->GetPOST('submit'); $submit = $this->app->Secure->GetPOST('submit');
if ($submit == 'neuberechnen') { if ($submit == 'neuberechnen') {
$this->fibu_rebuild_tables(); $this->fibu_rebuild_tables();
$msg = "<div class=\"info\">Buchungen wurden neu berechnet.</div>"; $msg .= "<div class=\"info\">Buchungen wurden neu berechnet.</div>";
} }
// For transfer to tablesearch // For transfer to tablesearch