fix : calcule des RTT pour les chauffeurs dans le récap des congés
This commit is contained in:
@@ -171,7 +171,8 @@ class LeaveRecapPrintProvider implements ProviderInterface
|
|||||||
$paid = 0;
|
$paid = 0;
|
||||||
$payments = $this->rttPaymentRepository->findByEmployeeAndYear($employee, $exerciseYear);
|
$payments = $this->rttPaymentRepository->findByEmployeeAndYear($employee, $exerciseYear);
|
||||||
foreach ($payments as $payment) {
|
foreach ($payments as $payment) {
|
||||||
$paid += $payment->getBase25Minutes() + $payment->getBase50Minutes();
|
$paid += $payment->getBase25Minutes() + $payment->getBonus25Minutes()
|
||||||
|
+ $payment->getBase50Minutes() + $payment->getBonus50Minutes();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $carry + $current->totalMinutes - $paid;
|
return $carry + $current->totalMinutes - $paid;
|
||||||
|
|||||||
Reference in New Issue
Block a user