Merge pull request #11088 from defrance/patch-141
planned_timespent not present on task
This commit is contained in:
commit
8c76c404bd
@ -260,7 +260,7 @@ class pdf_timespent extends ModelePDFProjects
|
|||||||
//$progress=($object->lines[$i]->progress?$object->lines[$i]->progress.'%':'');
|
//$progress=($object->lines[$i]->progress?$object->lines[$i]->progress.'%':'');
|
||||||
$datestart=dol_print_date($object->lines[$i]->date_start, 'day');
|
$datestart=dol_print_date($object->lines[$i]->date_start, 'day');
|
||||||
$dateend=dol_print_date($object->lines[$i]->date_end, '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;
|
$showpricebeforepagebreak=1;
|
||||||
|
|
||||||
@ -348,7 +348,7 @@ class pdf_timespent extends ModelePDFProjects
|
|||||||
$pdf->MultiCell($this->posxlabel-$this->posxref, 3, $outputlangs->convToOutputCharset($ref), 0, 'L');
|
$pdf->MultiCell($this->posxlabel-$this->posxref, 3, $outputlangs->convToOutputCharset($ref), 0, 'L');
|
||||||
// timespent
|
// timespent
|
||||||
$pdf->SetXY($this->posxtimespent, $curY);
|
$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
|
// Progress
|
||||||
//$pdf->SetXY($this->posxprogress, $curY);
|
//$pdf->SetXY($this->posxprogress, $curY);
|
||||||
//$pdf->MultiCell($this->posxdatestart-$this->posxprogress, 3, $progress, 0, 'R');
|
//$pdf->MultiCell($this->posxdatestart-$this->posxprogress, 3, $progress, 0, 'R');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user