Fix sql of time spent per day
This commit is contained in:
parent
7c5aa148d9
commit
5138a09db3
@ -331,7 +331,7 @@ if ($id)
|
||||
$onlyopenedproject=1; // or -1
|
||||
$morewherefilter='';
|
||||
|
||||
if ($search_project_ref) $morewherefilter.=natural_search("p.ref", $search_project_ref);
|
||||
if ($search_project_ref) $morewherefilter.=natural_search(array("p.ref", "p.title"), $search_project_ref);
|
||||
if ($search_task_ref) $morewherefilter.=natural_search("t.ref", $search_task_ref);
|
||||
if ($search_task_label) $morewherefilter.=natural_search(array("t.ref", "t.label"), $search_task_label);
|
||||
if ($search_thirdparty) $morewherefilter.=natural_search("s.nom", $search_thirdparty);
|
||||
@ -516,7 +516,7 @@ if (! empty($conf->global->MAIN_DEFAULT_WORKING_DAYS))
|
||||
}
|
||||
|
||||
$statusofholidaytocheck = '3';
|
||||
$isavailablefordayanduser = $holiday->verifDateHolidayForTimestamp($usertoprocess->id, $daytoparse, $statusofholiday); // $daytoparse is a date with hours = 0
|
||||
$isavailablefordayanduser = $holiday->verifDateHolidayForTimestamp($usertoprocess->id, $daytoparse, $statusofholidaytocheck); // $daytoparse is a date with hours = 0
|
||||
$isavailable[$daytoparse]=$isavailablefordayanduser; // in projectLinesPerWeek later, we are using $firstdaytoshow and dol_time_plus_duree to loop on each day
|
||||
|
||||
$tmparray = dol_getdate($daytoparse,true); // detail of current day
|
||||
|
||||
@ -334,7 +334,7 @@ if ($id)
|
||||
$onlyopenedproject=1; // or -1
|
||||
$morewherefilter='';
|
||||
|
||||
if ($search_project_ref) $morewherefilter.=natural_search("p.ref", $search_project_ref);
|
||||
if ($search_project_ref) $morewherefilter.=natural_search(array("p.ref", "p.title"), $search_project_ref);
|
||||
if ($search_task_ref) $morewherefilter.=natural_search("t.ref", $search_task_ref);
|
||||
if ($search_task_label) $morewherefilter.=natural_search(array("t.ref", "t.label"), $search_task_label);
|
||||
if ($search_thirdparty) $morewherefilter.=natural_search("s.nom", $search_thirdparty);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user