Skip to content

Commit

Permalink
Merge pull request #11088 from defrance/patch-141
Browse files Browse the repository at this point in the history
planned_timespent not present on task
  • Loading branch information
eldy committed May 2, 2019
2 parents a75223c + f8f40a9 commit 8c76c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/core/modules/project/doc/pdf_timespent.modules.php
Expand Up @@ -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;

Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 8c76c40

Please sign in to comment.