From 027bd9c46f9d19700983b00b09c1841e03a0b070 Mon Sep 17 00:00:00 2001 From: fds2610-bot Date: Sat, 11 Apr 2026 19:38:09 +0200 Subject: [PATCH] Fix: importierte Belege haben kein Belegdatum und werden so nicht angezeigt --- src/Models/Beleg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/Beleg.php b/src/Models/Beleg.php index 214fe62..cbc8973 100644 --- a/src/Models/Beleg.php +++ b/src/Models/Beleg.php @@ -19,11 +19,11 @@ class Beleg $params = array_merge($params, [$s, $s, $s, $s]); } if (!empty($filter['year'])) { - $where[] = 'YEAR(b.beleg_datum) = ?'; + $where[] = '(YEAR(b.beleg_datum) = ? OR b.beleg_datum IS NULL)'; $params[] = (int)$filter['year']; } if (!empty($filter['month'])) { - $where[] = 'MONTH(b.beleg_datum) = ?'; + $where[] = '(MONTH(b.beleg_datum) = ? OR b.beleg_datum IS NULL)'; $params[] = (int)$filter['month']; } if (isset($filter['booked']) && $filter['booked'] !== '') {