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