feat #16 = majoration de temps
This commit is contained in:
parent
0390c3b474
commit
138a83e8de
|
@ -94,9 +94,13 @@ class TallydayRepository extends ServiceEntityRepository
|
|||
|
||||
// Enlever du temps travailler les minutes sup payé
|
||||
$timeextra=$this->_em->getRepository("App:Timeextra")->getTimeextrauser($user, new \DateTime());
|
||||
if($timeextra[1]) {
|
||||
if($timeextra[1]>0) {
|
||||
$ework->sub(new \DateInterval("PT".$timeextra[1]."M"));
|
||||
}
|
||||
// Ajouter du temps sur des heures supplémentaires majorées
|
||||
else {
|
||||
$ework->add(new \DateInterval("PT".($timeextra[1]*-1)."M"));
|
||||
}
|
||||
|
||||
// Nbday worked
|
||||
$nbdaywork=count($tbdays);
|
||||
|
|
Loading…
Reference in New Issue