This commit is contained in:
Regis Houssin 2006-02-18 14:02:28 +00:00
parent c2460b155a
commit 2d2a7da535
2 changed files with 3 additions and 2 deletions

View File

@ -165,7 +165,7 @@ function commande_supplier_pdf_create($db, $comid, $modele='')
if ( $obj->write_pdf_file($comid) > 0)
{
// on supprime l'image correspondant au preview
commande_delete_preview($db, $comid);
commande_supplier_delete_preview($db, $comid);
return 1;
}
else

View File

@ -30,6 +30,7 @@
*/
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");
@ -138,7 +139,7 @@ class pdf_muscadet extends ModelePDFCommandesSuppliers
if ($conf->commande->dir_output)
{
$com = new Commande($this->db);
$com = new CommandeFournisseur($this->db);
$ret=$com->fetch($id);
$nblignes = sizeof($com->lignes);