feat : ajout de l'export récap. salaire
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled

This commit is contained in:
2026-03-16 12:25:41 +01:00
parent f0ee489c26
commit b93c4bf3e9
10 changed files with 975 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace App\Repository;
use App\Entity\MileageAllowance;
use DateTimeImmutable;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
@@ -17,4 +18,21 @@ final class MileageAllowanceRepository extends ServiceEntityRepository
{
parent::__construct($registry, MileageAllowance::class);
}
/**
* @return MileageAllowance[]
*/
public function findByMonth(DateTimeImmutable $from, DateTimeImmutable $to): array
{
return $this->createQueryBuilder('m')
->andWhere('m.month >= :from')
->andWhere('m.month <= :to')
->setParameter('from', $from)
->setParameter('to', $to)
->innerJoin('m.employee', 'e')
->addSelect('e')
->getQuery()
->getResult()
;
}
}