676
edits
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
| Line 79: | Line 79: | ||
$object->fetch_optionals($rowid,$extralabels); | $object->fetch_optionals($rowid,$extralabels); | ||
</source> | </source> | ||
*Add the code to | *Add the code to print the extrafiled <source lang="php"> | ||
$pdf->writeHTMLCell (190,3, $this->posxdesc-1, $tab_top-5, $outputlangs->convToOutputCharset($object->array_options['options_my_extra']),0,1); | $pdf->writeHTMLCell (190,3, $this->posxdesc-1, $tab_top-5, $outputlangs->convToOutputCharset($object->array_options['options_my_extra']),0,1); | ||
</source> | |||
== Line complementary attribute == | |||
*Find <source lang="php">$object->fetch_thirdparty();</source> | |||
*Add, just after, the code to load extrafield array in object <source lang="php"> | |||
$extrafields = new ExtraFields($db); | |||
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element); | |||
</source> | |||
*Find <source lang="php"> // Loop on each lines | |||
for ($i = 0; $i < $nblignes; $i++) | |||
{</source> | |||
*Add, just after, the code to load line extrafield into object <source lang="php"> | |||
$object->lines[$i]->fetch_optionals($object->lines[$i]->rowid,$extralabelsline); | |||
</source> | |||
*Find <source lang="php">$posYAfterDescription=$pdf->GetY();</source> | |||
*Add, just before, the code to display the line extrafiled <source lang="php"> | |||
$pdf->MultiCell(0, 3, $object->lines[$i]->array_options['options_my_line_extra'], 0, 'L', 0); | |||
</source> | </source> | ||
edits