Revert "#271 Account for acp closing date inn action filters (export)"

This reverts commit 3a7ed7ef8fd95909ffc3a2539b19c45e08007e46.
This commit is contained in:
nobohan 2024-07-02 16:24:45 +02:00
parent 3a7ed7ef8f
commit 41dd4d89f7
2 changed files with 2 additions and 7 deletions

View File

@ -1,5 +0,0 @@
kind: Fixed
body: Take into account the acp closing date in the acp works date filter
time: 2024-06-13T13:59:45.561891547+02:00
custom:
Issue: "271"

View File

@ -86,11 +86,11 @@ final readonly class AccompanyingPeriodWorkEndDateBetweenDateFilter implements F
}; };
$end = match ($data['keep_null']) { $end = match ($data['keep_null']) {
true => $qb->expr()->orX( true => $qb->expr()->orX(
$qb->expr()->gt('COALESCE(acp.closingDate, acpw.endDate)', ':'.$as), $qb->expr()->gt('acpw.endDate', ':'.$as),
$qb->expr()->isNull('acpw.endDate') $qb->expr()->isNull('acpw.endDate')
), ),
false => $qb->expr()->andX( false => $qb->expr()->andX(
$qb->expr()->gt('COALESCE(acp.closingDate, acpw.endDate)', ':'.$as), $qb->expr()->gt('acpw.endDate', ':'.$as),
$qb->expr()->isNotNull('acpw.endDate') $qb->expr()->isNotNull('acpw.endDate')
), ),
default => throw new \LogicException('This value is not supported'), default => throw new \LogicException('This value is not supported'),