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:
2023-08-29 15:51:08 +02:00
committed by Julien Fastré
parent fe5e1e5557
commit f0c6d00953

View File

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