Skip to content
Snippets Groups Projects
Commit f73c059b authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4159 from belyas/develop

addLogCP and updateSoledCP methodes throwing warnings when assigning leave for a user
parents 939a3642 8c222743
No related branches found
No related tags found
No related merge requests found
......@@ -19,4 +19,5 @@
/dolimed*
/allscreens*
/ecommerce/
/cabinetmed*
\ No newline at end of file
/cabinetmed*
/conf/conf.php
\ No newline at end of file
......@@ -130,10 +130,15 @@ elseif($action == 'add_event')
$add_holiday = $holiday->getValueEventCp($event);
$new_holiday = $nb_holiday + $add_holiday;
// On ajoute la modification dans le LOG
$holiday->addLogCP($user->id,$userCP, $holiday->getNameEventCp($event),$new_holiday);
// add event to existing types of vacation
foreach ($typeleaves as $key => $leave) {
$vacationTypeID = $leave['rowid'];
$holiday->updateSoldeCP($userCP,$new_holiday);
// On ajoute la modification dans le LOG
$holiday->addLogCP($user->id,$userCP, $holiday->getNameEventCp($event),$new_holiday, $vacationTypeID);
$holiday->updateSoldeCP($userCP,$new_holiday, $vacationTypeID);
}
setEventMessages('AddEventToUserOkCP', '', 'mesgs');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment