From f8f40a9239a979714181e1b229b17b3ea9e86177 Mon Sep 17 00:00:00 2001 From: BENKE Charlene <1179011+defrance@users.noreply.github.com> Date: Tue, 30 Apr 2019 11:27:33 +0200 Subject: [PATCH] planned_timespent not present on task duration is the good one --- htdocs/core/modules/project/doc/pdf_timespent.modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/project/doc/pdf_timespent.modules.php b/htdocs/core/modules/project/doc/pdf_timespent.modules.php index 007bf9c8e1de5..2c69fbd6bab6b 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 @@ public function write_file($object, $outputlangs) //$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 @@ public function write_file($object, $outputlangs) $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');