2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Regis Houssin
2006-06-09 14:38:19 +00:00
parent e2bb182a77
commit 4dbe1334fe
3 changed files with 25 additions and 18 deletions

View File

@@ -41,6 +41,7 @@ class Commande
{
var $db ;
var $id ;
var $ref;
var $socidp;
var $contactid;
var $projet_id;
@@ -1926,7 +1927,7 @@ class Commande
$file = $conf->commande->dir_output . "/" . $comref . "/" . $comref . ".pdf";
if (file_exists($file))
{
commande_delete_preview($this->db, $this->id);
commande_delete_preview($this->db, $this->id, $this->ref);
if (!dol_delete_file($file))
{