FIX nblignes not calculated after hook and hook can't modify this value. Usefull for modules
This commit is contained in:
parent
d98415f9b5
commit
8b2541ebf9
@ -250,6 +250,9 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
global $action;
|
global $action;
|
||||||
$reshook=$hookmanager->executeHooks('beforePDFCreation',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('beforePDFCreation',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
|
||||||
|
// Set nblignes with the new facture lines content after hook
|
||||||
|
$nblignes = count($object->lines);
|
||||||
|
|
||||||
// Create pdf instance
|
// Create pdf instance
|
||||||
$pdf=pdf_getInstance($this->format);
|
$pdf=pdf_getInstance($this->format);
|
||||||
$default_font_size = pdf_getPDFFontSize($outputlangs); // Must be after pdf_getInstance
|
$default_font_size = pdf_getPDFFontSize($outputlangs); // Must be after pdf_getInstance
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user