From 62f6df1aeb9c84aceb9f547f1c28b27e9c9275b7 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Sun, 23 Apr 2023 17:18:51 +0200 Subject: [PATCH] fibu_buchungen added error when startdate is not set --- www/pages/fibu_buchungen.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/pages/fibu_buchungen.php b/www/pages/fibu_buchungen.php index 8987b2f4..efef3461 100644 --- a/www/pages/fibu_buchungen.php +++ b/www/pages/fibu_buchungen.php @@ -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=create", "Neu anlegen"); + $startdatum = $this->app->erp->Firmendaten('fibu_buchungen_startdatum'); + + if (empty($startdatum)) { + $msg .= '
Startdatum ("Buchungen erzeugen ab Datum") in den Firmendaten nicht gesetzt.
'; + } + $submit = $this->app->Secure->GetPOST('submit'); if ($submit == 'neuberechnen') { $this->fibu_rebuild_tables(); - $msg = "
Buchungen wurden neu berechnet.
"; + $msg .= "
Buchungen wurden neu berechnet.
"; } // For transfer to tablesearch