diff --git a/htdocs/core/modules/project/doc/pdf_timespent.modules.php b/htdocs/core/modules/project/doc/pdf_timespent.modules.php index 007bf9c8e1d..2c69fbd6bab 100644 --- a/htdocs/core/modules/project/doc/pdf_timespent.modules.php +++ b/htdocs/core/modules/project/doc/pdf_timespent.modules.php @@ -260,7 +260,7 @@ class pdf_timespent extends ModelePDFProjects //$progress=($object->lines[$i]->progress?$object->lines[$i]->progress.'%':''); $datestart=dol_print_date($object->lines[$i]->date_start, 'day'); $dateend=dol_print_date($object->lines[$i]->date_end, 'day'); - $planned_timespent=convertSecondToTime((int) $object->lines[$i]->planned_timespent, 'allhourmin'); + $duration=convertSecondToTime((int) $object->lines[$i]->duration, 'allhourmin'); $showpricebeforepagebreak=1; @@ -348,7 +348,7 @@ class pdf_timespent extends ModelePDFProjects $pdf->MultiCell($this->posxlabel-$this->posxref, 3, $outputlangs->convToOutputCharset($ref), 0, 'L'); // timespent $pdf->SetXY($this->posxtimespent, $curY); - $pdf->MultiCell($this->posxdatestart-$this->posxtimespent, 3, $planned_timespent?$planned_timespent:'', 0, 'R'); + $pdf->MultiCell($this->posxdatestart-$this->posxtimespent, 3, $duration?$duration:'', 0, 'R'); // Progress //$pdf->SetXY($this->posxprogress, $curY); //$pdf->MultiCell($this->posxdatestart-$this->posxprogress, 3, $progress, 0, 'R');