|
|
@@ -42,6 +42,7 @@ class event
|
|
|
. "COUNT(" . DB_T_EVENTS_INSCRITS . ".id_salarie) AS m_global, "
|
|
|
. "COUNT(" . DB_T_EVENTS_INSCRITS . ".present) AS m_inscrit, "
|
|
|
. "" . DB_T_EVENTS . ".endDate, "
|
|
|
+ . "TIMESTAMPDIFF(HOUR, " . DB_T_EVENTS . ".startDate, " . DB_T_EVENTS . ".endDate) AS pastHours, "
|
|
|
. "IF(" . DB_T_EVENTS . ".type_emargement = 1, 'Contôle', IF(" . DB_T_EVENTS . ".type_emargement = 2, 'Autonome', 'Contrôle & Autonome')) AS type_emargement, "
|
|
|
. "IF(" . DB_T_EVENTS . ".type_inscription = 1, 'Incription', 'Libre') AS type_inscription, "
|
|
|
. "" . DB_T_EVENTS . ".actif, "
|