diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 48758faefaf..a5ce9e8131b 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1439,8 +1439,8 @@ else * */ $comref = sanitize_string($commande->ref); - //$comref = str_replace("(","",$comref); - //$comref = str_replace(")","",$comref); + $comref = str_replace("(","",$comref); + $comref = str_replace(")","",$comref); $file = $conf->commande->dir_output . '/' . $comref . '/' . $comref . '.pdf'; $relativepath = $comref.'/'.$comref.'.pdf'; $filedir = $conf->commande->dir_output . '/' . $comref; diff --git a/htdocs/livraison/livraison.class.php b/htdocs/livraison/livraison.class.php index 11ae761389d..77a623d4c69 100644 --- a/htdocs/livraison/livraison.class.php +++ b/htdocs/livraison/livraison.class.php @@ -508,41 +508,6 @@ class Livraison } - /** - * Genere le pdf - */ - function PdfWrite() - { - global $conf; - - //LIVRAISON_ADDON_PDF - if (defined("LIVRAISON_ADDON_PDF") && strlen(LIVRAISON_ADDON_PDF) > 0) - { - $module_file_name = DOL_DOCUMENT_ROOT."/livraison/mods/pdf/pdf_".LIVRAISON_ADDON_PDF.".modules.php"; - - $mod = "pdf_".LIVRAISON_ADDON_PDF; - $this->fetch_commande(); - - require_once($module_file_name); - - $pdf = new $mod($this->db); - - $dir = $conf->livraison->dir_output . "/" .get_exdir($this->id); - - if (! file_exists($dir)) - { - create_exdir($dir); - } - - $file = $dir . $this->id . ".pdf"; - - if (file_exists($dir)) - { - $pdf->generate($this, $file); - } - } - } - /* * Lit la commande associée *