Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
delcroip authored Jul 5, 2020
2 parents 7510ee4 + 87d079c commit d4d5713
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/timesheet/class/TimesheetReport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public function getReportArray($forceGroup = false)
global $conf;
$resArray = array();
$first = true;

$sql = 'SELECT tsk.fk_projet as projectid, ptt.fk_user as userid, tsk.fk_projet as taskid, ptt.rowid as id,';
if(version_compare(DOL_VERSION, "4.9.9") >= 0) {
$sql .= ' (ptt.invoice_id > 0 or ptt.invoice_line_id>0) AS invoiced,';
Expand Down Expand Up @@ -280,6 +281,7 @@ public function getReportArray($forceGroup = false)
if($this->invoiceableOnly == 1) {
$sql .= ($first?'':'AND ').'tske.invoiceable = \'1\'';
}

$sql .= ($first?'':'AND ').' DATE(task_datehour) >= \''.$this->db->idate($this->startDate).'\'';
$sql .= ' AND DATE(task_datehour) <= \''.$this->db->idate($this->stopDate).'\'';
$sql .= ' AND (ptt.task_duration > 0 or LENGTH(ptt.note)>0)';
Expand Down

0 comments on commit d4d5713

Please sign in to comment.