Bug gefixed

This commit is contained in:
fds2610 2026-03-25 13:34:47 +01:00
parent 0f5b04a704
commit b6ef6fb4be
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ uploads/
backups/
.env
*.log
.claude/

View file

@ -118,7 +118,7 @@ class BelegController
'beleg_datum' => $_POST['beleg_datum'] ?? null,
'eingangs_datum'=> $_POST['eingangs_datum'] ?? date('Y-m-d'),
'rechnungs_nr' => $filenameWithoutExt,
'betrag_brutto' => $_POST['betrag_brutto'] !== '' ? $_POST['betrag_brutto'] : null,
'betrag_brutto' => ($_POST['betrag_brutto'] ?? '') !== '' ? $_POST['betrag_brutto'] : null,
'belegtyp' => $_POST['belegtyp'] ?? 'Eingangsrechnung',
'notes' => $_POST['notes'] ?? null,
]);