Skip to content
Snippets Groups Projects
Commit 8b2541eb authored by arnaud's avatar arnaud
Browse files

FIX nblignes not calculated after hook and hook can't modify this value. Usefull for modules

parent d98415f9
No related branches found
No related tags found
No related merge requests found
......@@ -250,6 +250,9 @@ class pdf_crabe extends ModelePDFFactures
global $action;
$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
$pdf=pdf_getInstance($this->format);
$default_font_size = pdf_getPDFFontSize($outputlangs); // Must be after pdf_getInstance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment