svg
This commit is contained in:
parent
8170e02dab
commit
ba8a19307e
@ -186,15 +186,17 @@ class TallydayController extends AbstractController
|
|||||||
$dates[$user->getId()]["validates"][0]["timeweek"]=$timeweek;
|
$dates[$user->getId()]["validates"][0]["timeweek"]=$timeweek;
|
||||||
}
|
}
|
||||||
|
|
||||||
// On recherche le pointage à valider
|
// On recherche le premier pointage non validé
|
||||||
if(isset($datenow))
|
$tallyday=$em->getRepository(("App:Tallyday"))->findOneBy(["user"=>$user,"validatemaster"=>false],["dateof"=>"ASC"]);
|
||||||
$datenow->add(new \DateInterval('P1D'));
|
if($tallyday)
|
||||||
|
$datenow= $tallyday->getDateof();
|
||||||
else
|
else
|
||||||
$datenow=new \DateTime();
|
$datenow=new \DateTime("now");
|
||||||
|
|
||||||
|
|
||||||
$datenow->modify("monday this week");
|
$datenow->modify("monday this week");
|
||||||
$dateend=new \DateTime("now");
|
$dateend=new \DateTime("now");
|
||||||
$dateend->modify("last day of this month");
|
$dateend->add(new \DateInterval("P14D"));
|
||||||
$dateend->modify("next sunday");
|
$dateend->modify("next sunday");
|
||||||
|
|
||||||
$i=0;
|
$i=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user