Modification de l'appel de la génération du pdf
This commit is contained in:
parent
93a2febb28
commit
9ae57c2624
@ -412,7 +412,7 @@ class Expedition
|
|||||||
$mod = "pdf_expedition_rouget";
|
$mod = "pdf_expedition_rouget";
|
||||||
require_once $module_file_name;
|
require_once $module_file_name;
|
||||||
|
|
||||||
$pdf = new $mod($this->db, $this);
|
$pdf = new $mod($this->db);
|
||||||
|
|
||||||
|
|
||||||
$dir = DOL_DATA_ROOT . "/expedition/" . $this->id ;
|
$dir = DOL_DATA_ROOT . "/expedition/" . $this->id ;
|
||||||
@ -426,7 +426,7 @@ class Expedition
|
|||||||
|
|
||||||
if (file_exists($dir))
|
if (file_exists($dir))
|
||||||
{
|
{
|
||||||
$pdf->generate($file);
|
$pdf->generate($this, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user