mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
fibu_buchungen added error when startdate is not set
This commit is contained in:
parent
828c1b1a75
commit
62f6df1aeb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user