Commit 77b0d559 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Système de contrôle des relances en cours

parent b3b62666
Loading
Loading
Loading
Loading
Loading
+21 −0
Changes for module/Oscar/src/Oscar/Entity/RecallDeclarationRepository.php: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php
/**
 * @author Stéphane Bouvry<stephane.bouvry@unicaen.fr>
 * @date: 17-11-21 16:03
 * @copyright Certic (c) 2017
 */

namespace Oscar\Entity;


use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\NoResultException;
use phpDocumentor\Reflection\Types\Integer;

class RecallDeclarationRepository extends EntityRepository
{
    public function getRecallDeclarationsPersonPeriod( int $personId, int $periodYear, int $periodMonth )
    {
        
    }
}
 No newline at end of file
+5 −1
Changes for module/Oscar/src/Oscar/Service/TimesheetService.php: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ use Oscar\Entity\Authentification;
use Oscar\Entity\Organization;
use Oscar\Entity\Person;
use Oscar\Entity\ProjectGrantRepository;
use Oscar\Entity\RecallDeclaration;
use Oscar\Entity\Referent;
use Oscar\Entity\TimeSheet;
use Oscar\Entity\TimesheetCommentPeriod;
@@ -2561,7 +2562,10 @@ class TimesheetService implements UseOscarUserContextService, UseOscarConfigurat
        $result['mailSend'] = false;

        // Vérification du dernier envois
        $recalls = ;

        /** @var RecallDeclarationRepository $recallDeclarationRepository */
        $recallDeclarationRepository = $this->getEntityManager()->getRepository(RecallDeclaration::class);



        if ($result['needSend']) {