|
@@ -145,7 +145,7 @@ $langs->load("boxes");
|
|
|
// Last leave requests
|
|
|
if (! empty($conf->holiday->enabled) && $user->rights->holiday->read)
|
|
|
{
|
|
|
- $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, x.rowid, x.rowid as ref, x.fk_type, x.date_debut as date_start, x.date_fin as date_end, x.halfday, x.tms as dm, x.statut as status";
|
|
|
+ $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.photo, u.statut, x.rowid, x.rowid as ref, x.fk_type, x.date_debut as date_start, x.date_fin as date_end, x.halfday, x.tms as dm, x.statut as status";
|
|
|
$sql.= " FROM ".MAIN_DB_PREFIX."holiday as x, ".MAIN_DB_PREFIX."user as u";
|
|
|
$sql.= " WHERE u.rowid = x.fk_user";
|
|
|
$sql.= " AND x.entity = ".$conf->entity;
|
|
@@ -187,9 +187,12 @@ if (! empty($conf->holiday->enabled) && $user->rights->holiday->read)
|
|
|
$userstatic->id=$obj->uid;
|
|
|
$userstatic->lastname=$obj->lastname;
|
|
|
$userstatic->firstname=$obj->firstname;
|
|
|
+ $userstatic->login=$obj->login;
|
|
|
+ $userstatic->photo=$obj->photo;
|
|
|
+ $userstatic->statut=$obj->statut;
|
|
|
print '<tr '.$bc[$var].'>';
|
|
|
print '<td>'.$holidaystatic->getNomUrl(1).'</td>';
|
|
|
- print '<td>'.$userstatic->getNomUrl(1, 'leave').'</td>';
|
|
|
+ print '<td>'.$userstatic->getNomUrl(-1, 'leave').'</td>';
|
|
|
print '<td>'.$typeleaves[$obj->fk_type]['label'].'</td>';
|
|
|
|
|
|
$starthalfday=($obj->halfday == -1 || $obj->halfday == 2)?'afternoon':'morning';
|
|
@@ -218,7 +221,7 @@ if (! empty($conf->holiday->enabled) && $user->rights->holiday->read)
|
|
|
// Last expense report (old module)
|
|
|
if (! empty($conf->deplacement->enabled) && $user->rights->deplacement->lire)
|
|
|
{
|
|
|
- $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, d.rowid, d.dated as date, d.tms as dm, d.km, d.fk_statut";
|
|
|
+ $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.statut, u.photo, d.rowid, d.dated as date, d.tms as dm, d.km, d.fk_statut";
|
|
|
$sql.= " FROM ".MAIN_DB_PREFIX."deplacement as d, ".MAIN_DB_PREFIX."user as u";
|
|
|
if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= ", ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
|
|
$sql.= " WHERE u.rowid = d.fk_user";
|
|
@@ -258,9 +261,12 @@ if (! empty($conf->deplacement->enabled) && $user->rights->deplacement->lire)
|
|
|
$userstatic->id=$obj->uid;
|
|
|
$userstatic->lastname=$obj->lastname;
|
|
|
$userstatic->firstname=$obj->firstname;
|
|
|
+ $userstatic->login=$obj->login;
|
|
|
+ $userstatic->statut=$obj->statut;
|
|
|
+ $userstatic->photo=$obj->photo;
|
|
|
print '<tr '.$bc[$var].'>';
|
|
|
print '<td>'.$deplacementstatic->getNomUrl(1).'</td>';
|
|
|
- print '<td>'.$userstatic->getNomUrl(1).'</td>';
|
|
|
+ print '<td>'.$userstatic->getNomUrl(-1).'</td>';
|
|
|
print '<td align="right">'.$obj->km.'</td>';
|
|
|
print '<td align="right">'.dol_print_date($db->jdate($obj->dm),'day').'</td>';
|
|
|
print '<td>'.$deplacementstatic->LibStatut($obj->fk_statut,3).'</td>';
|
|
@@ -282,7 +288,7 @@ if (! empty($conf->deplacement->enabled) && $user->rights->deplacement->lire)
|
|
|
// Last expense report (new module)
|
|
|
if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->lire)
|
|
|
{
|
|
|
- $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, x.rowid, x.ref, x.date_debut as date, x.tms as dm, x.total_ttc, x.fk_statut as status";
|
|
|
+ $sql = "SELECT u.rowid as uid, u.lastname, u.firstname, u.login, u.statut, u.photo, x.rowid, x.ref, x.date_debut as date, x.tms as dm, x.total_ttc, x.fk_statut as status";
|
|
|
$sql.= " FROM ".MAIN_DB_PREFIX."expensereport as x, ".MAIN_DB_PREFIX."user as u";
|
|
|
if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= ", ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
|
|
$sql.= " WHERE u.rowid = x.fk_user_author";
|
|
@@ -322,9 +328,12 @@ if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->lire
|
|
|
$userstatic->id=$obj->uid;
|
|
|
$userstatic->lastname=$obj->lastname;
|
|
|
$userstatic->firstname=$obj->firstname;
|
|
|
+ $userstatic->login=$obj->login;
|
|
|
+ $userstatic->statut=$obj->statut;
|
|
|
+ $userstatic->photo=$obj->photo;
|
|
|
print '<tr '.$bc[$var].'>';
|
|
|
print '<td>'.$expensereportstatic->getNomUrl(1).'</td>';
|
|
|
- print '<td>'.$userstatic->getNomUrl(1).'</td>';
|
|
|
+ print '<td>'.$userstatic->getNomUrl(-1).'</td>';
|
|
|
print '<td align="right">'.price($obj->total_ttc).'</td>';
|
|
|
print '<td align="right">'.dol_print_date($db->jdate($obj->dm),'day').'</td>';
|
|
|
print '<td>'.$expensereportstatic->LibStatut($obj->status,3).'</td>';
|