Add Extrafields on PDF Models: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Tag: 2017 source edit
Line 78: Line 78:
*Just before the <source lang="php">// Affiche notes</source>
*Just before the <source lang="php">// Affiche notes</source>
*Add the code to load extrafield array in object <source lang="php">
*Add the code to load extrafield array in object <source lang="php">
$extrafields = new ExtraFields($db);
$extrafields = new ExtraFields($this->db);
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
</source>
</source>
Line 94: Line 94:
*Find <source lang="php">$object->fetch_thirdparty();</source>
*Find <source lang="php">$object->fetch_thirdparty();</source>
*Add, just after, the code to load extrafield array in object <source lang="php">
*Add, just after, the code to load extrafield array in object <source lang="php">
$extrafields = new ExtraFields($db);
$extrafieldsline = new ExtraFields($this->db);
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
$extralabelsline=$extrafieldsline->fetch_name_optionals_label($object->table_element);
</source>[[File:Add extrafields line in pdf 1.png]]
</source>[[File:Add extrafields line in pdf 1.png]]
*Find <source lang="php">// Loop on each lines
*Find <source lang="php">// Loop on each lines
676

edits

Navigation menu