bugfix
This commit is contained in:
parent
c2460b155a
commit
2d2a7da535
@ -165,7 +165,7 @@ function commande_supplier_pdf_create($db, $comid, $modele='')
|
|||||||
if ( $obj->write_pdf_file($comid) > 0)
|
if ( $obj->write_pdf_file($comid) > 0)
|
||||||
{
|
{
|
||||||
// on supprime l'image correspondant au preview
|
// on supprime l'image correspondant au preview
|
||||||
commande_delete_preview($db, $comid);
|
commande_supplier_delete_preview($db, $comid);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/fourn/commande/modules/modules_commandefournisseur.php");
|
require_once(DOL_DOCUMENT_ROOT ."/fourn/commande/modules/modules_commandefournisseur.php");
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/fourn/fournisseur.commande.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/product.class.php");
|
||||||
|
|
||||||
|
|
||||||
@ -138,7 +139,7 @@ class pdf_muscadet extends ModelePDFCommandesSuppliers
|
|||||||
|
|
||||||
if ($conf->commande->dir_output)
|
if ($conf->commande->dir_output)
|
||||||
{
|
{
|
||||||
$com = new Commande($this->db);
|
$com = new CommandeFournisseur($this->db);
|
||||||
$ret=$com->fetch($id);
|
$ret=$com->fetch($id);
|
||||||
$nblignes = sizeof($com->lignes);
|
$nblignes = sizeof($com->lignes);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user