mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	#271 Account for acp closing date inn action filters (export)
This commit is contained in:
		
							
								
								
									
										5
									
								
								.changes/unreleased/Fixed-20240613-135945.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.changes/unreleased/Fixed-20240613-135945.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| 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" | ||||
| @@ -86,11 +86,11 @@ final readonly class AccompanyingPeriodWorkEndDateBetweenDateFilter implements F | ||||
|         }; | ||||
|         $end = match ($data['keep_null']) { | ||||
|             true => $qb->expr()->orX( | ||||
|                 $qb->expr()->gt('acpw.endDate', ':'.$as), | ||||
|                 $qb->expr()->gt('COALESCE(acp.closingDate, acpw.endDate)', ':'.$as), | ||||
|                 $qb->expr()->isNull('acpw.endDate') | ||||
|             ), | ||||
|             false => $qb->expr()->andX( | ||||
|                 $qb->expr()->gt('acpw.endDate', ':'.$as), | ||||
|                 $qb->expr()->gt('COALESCE(acp.closingDate, acpw.endDate)', ':'.$as), | ||||
|                 $qb->expr()->isNotNull('acpw.endDate') | ||||
|             ), | ||||
|             default => throw new \LogicException('This value is not supported'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user