Merge pull request 'Fix: importierte Belege haben kein Belegdatum und werden so nicht angezeigt' (#30) from fds2610-bot/Steuerkram:main into main
Reviewed-on: https://codeberg.org/fds2610/Steuerkram/pulls/30
This commit is contained in:
commit
cf5105378c
1 changed files with 2 additions and 2 deletions
|
|
@ -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'] !== '') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue