forked from Wavyzz/dolibarr
Fix: il s'embrouillai avec la variable $fac
This commit is contained in:
@@ -71,8 +71,9 @@ class pdf_bernique extends ModelePDFFactures {
|
||||
// D<>finition de l'objet $fac (pour compatibilite ascendante)
|
||||
if (! is_object($fac))
|
||||
{
|
||||
$fac = new Facture($this->db,"",$fac);
|
||||
$ret=$fac->fetch($fac);
|
||||
$id = $fac
|
||||
$fac = new Facture($this->db,"",$id);
|
||||
$ret=$fac->fetch($id);
|
||||
}
|
||||
|
||||
// D<>finition de $dir et $file
|
||||
|
||||
@@ -72,8 +72,9 @@ class pdf_bulot extends ModelePDFFactures {
|
||||
// D<>finition de l'objet $fac (pour compatibilite ascendante)
|
||||
if (! is_object($fac))
|
||||
{
|
||||
$fac = new Facture($this->db,"",$fac);
|
||||
$ret=$fac->fetch($fac);
|
||||
$id = $fac
|
||||
$fac = new Facture($this->db,"",$id);
|
||||
$ret=$fac->fetch($id);
|
||||
}
|
||||
|
||||
// D<>finition de $dir et $file
|
||||
|
||||
@@ -133,8 +133,9 @@ class pdf_crabe extends ModelePDFFactures
|
||||
// D<>finition de l'objet $fac (pour compatibilite ascendante)
|
||||
if (! is_object($fac))
|
||||
{
|
||||
$fac = new Facture($this->db,"",$fac);
|
||||
$ret=$fac->fetch($fac);
|
||||
$id = $fac
|
||||
$fac = new Facture($this->db,"",$id);
|
||||
$ret=$fac->fetch($id);
|
||||
}
|
||||
|
||||
// D<>finition de $dir et $file
|
||||
|
||||
@@ -77,8 +77,9 @@ class pdf_huitre extends ModelePDFFactures {
|
||||
// D<>finition de l'objet $fac (pour compatibilite ascendante)
|
||||
if (! is_object($fac))
|
||||
{
|
||||
$fac = new Facture($this->db,"",$fac);
|
||||
$ret=$fac->fetch($fac);
|
||||
$id = $fac
|
||||
$fac = new Facture($this->db,"",$id);
|
||||
$ret=$fac->fetch($id);
|
||||
}
|
||||
|
||||
// D<>finition de $dir et $file
|
||||
|
||||
@@ -121,8 +121,9 @@ class pdf_oursin extends ModelePDFFactures
|
||||
// D<>finition de l'objet $fac (pour compatibilite ascendante)
|
||||
if (! is_object($fac))
|
||||
{
|
||||
$fac = new Facture($this->db,"",$fac);
|
||||
$ret=$fac->fetch($fac);
|
||||
$id = $fac
|
||||
$fac = new Facture($this->db,"",$id);
|
||||
$ret=$fac->fetch($id);
|
||||
}
|
||||
|
||||
// D<>finition de $dir et $file
|
||||
|
||||
Reference in New Issue
Block a user