Fix: [Household] allow to set an enddate to member who is repositionned at the same date

addMovement was correct
leaveMovement were not, enddate was not written when startdate was same
This commit is contained in:
Mathieu Jaumotte 2023-08-29 15:51:08 +02:00 committed by Julie Lenaerts
parent 99cf7b8e8d
commit 05d86f1a70

View File

@ -167,7 +167,7 @@ class MembersEditor
$criteria->where( $criteria->where(
$expr->andX( $expr->andX(
$expr->lt('startDate', $date), $expr->lte('startDate', $date),
$expr->isNull('endDate') $expr->isNull('endDate')
) )
); );