Skip to content
Snippets Groups Projects
Commit 219ce73e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4417 from atm-arnaud/3.8_fix_factures_nblignes_after_hook

FIX nblignes not calculated after hook and hook can't modify this val...
parents 2386b79d 8b2541eb
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