From d7f4cfe5af7117c3a1dd6ef73e9d915768b1409e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 3 Jan 2007 22:19:20 +0000 Subject: [PATCH] Activation du module active un modele par defaut --- htdocs/includes/modules/modFacture.class.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/includes/modules/modFacture.class.php b/htdocs/includes/modules/modFacture.class.php index 24df726e174..36ed2e8916b 100644 --- a/htdocs/includes/modules/modFacture.class.php +++ b/htdocs/includes/modules/modFacture.class.php @@ -81,12 +81,12 @@ class modFacture extends DolibarrModules $this->const[$r][0] = "FACTURE_ADDON_PDF"; $this->const[$r][1] = "chaine"; - $this->const[$r][2] = "bulot"; + $this->const[$r][2] = "crabe"; $r++; $this->const[$r][0] = "FACTURE_ADDON"; $this->const[$r][1] = "chaine"; - $this->const[$r][2] = "pluton"; + $this->const[$r][2] = "terre"; $r++; $this->const[$r][0] = "FAC_FORCE_DATE_VALIDATION"; @@ -215,7 +215,10 @@ class modFacture extends DolibarrModules // Dir $this->dirs[0] = $conf->facture->dir_output; - $sql = array(); + $sql = array( + "DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = '".$this->const[0][2]."'", + "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type) VALUES('".$this->const[0][2]."','invoice')", + ); return $this->_init($sql); }