--
-- Host: localhost    Database: dolibarr
-- ------------------------------------------------------



--
-- Table structure for table `llx_accountingaccount`
--

CREATE TABLE `llx_accountingaccount` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_pcg_version` varchar(12) NOT NULL,
  `pcg_type` varchar(20) NOT NULL,
  `pcg_subtype` varchar(20) NOT NULL,
  `account_number` varchar(20) NOT NULL,
  `account_parent` varchar(20) default NULL,
  `label` varchar(128) NOT NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_accountingaccount_fk_pcg_version` (`fk_pcg_version`),
  CONSTRAINT `fk_accountingaccount_fk_pcg_version` FOREIGN KEY (`fk_pcg_version`) REFERENCES `llx_accountingsystem` (`pcg_version`)
) ENGINE=InnoDB AUTO_INCREMENT=439 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_accountingaccount`
--

INSERT INTO `llx_accountingaccount` (`rowid`, `fk_pcg_version`, `pcg_type`, `pcg_subtype`, `account_number`, `account_parent`, `label`) VALUES (1,'PCG99-ABREGE','CAPIT','CAPITAL','101','1','Capital'),(2,'PCG99-ABREGE','CAPIT','XXXXXX','105','1','Ecarts de réévaluation'),(3,'PCG99-ABREGE','CAPIT','XXXXXX','1061','1','Réserve légale'),(4,'PCG99-ABREGE','CAPIT','XXXXXX','1063','1','Réserves statutaires ou contractuelles'),(5,'PCG99-ABREGE','CAPIT','XXXXXX','1064','1','Réserves réglementées'),(6,'PCG99-ABREGE','CAPIT','XXXXXX','1068','1','Autres réserves'),(7,'PCG99-ABREGE','CAPIT','XXXXXX','108','1','Compte de l\'exploitant'),(8,'PCG99-ABREGE','CAPIT','XXXXXX','12','1','Résultat de l\'exercice'),(9,'PCG99-ABREGE','CAPIT','XXXXXX','145','1','Amortissements dérogatoires'),(10,'PCG99-ABREGE','CAPIT','XXXXXX','146','1','Provision spéciale de réévaluation'),(11,'PCG99-ABREGE','CAPIT','XXXXXX','147','1','Plus-values réinvesties'),(12,'PCG99-ABREGE','CAPIT','XXXXXX','148','1','Autres provisions réglementées'),(13,'PCG99-ABREGE','CAPIT','XXXXXX','15','1','Provisions pour risques et charges'),(14,'PCG99-ABREGE','CAPIT','XXXXXX','16','1','Emprunts et dettes assimilees'),(15,'PCG99-ABREGE','IMMO','XXXXXX','20','2','Immobilisations incorporelles'),(16,'PCG99-ABREGE','IMMO','XXXXXX','201','20','Frais d\'établissement'),(17,'PCG99-ABREGE','IMMO','XXXXXX','206','20','Droit au bail'),(18,'PCG99-ABREGE','IMMO','XXXXXX','207','20','Fonds commercial'),(19,'PCG99-ABREGE','IMMO','XXXXXX','208','20','Autres immobilisations incorporelles'),(20,'PCG99-ABREGE','IMMO','XXXXXX','21','2','Immobilisations corporelles'),(21,'PCG99-ABREGE','IMMO','XXXXXX','23','2','Immobilisations en cours'),(22,'PCG99-ABREGE','IMMO','XXXXXX','27','2','Autres immobilisations financieres'),(23,'PCG99-ABREGE','IMMO','XXXXXX','280','2','Amortissements des immobilisations incorporelles'),(24,'PCG99-ABREGE','IMMO','XXXXXX','281','2','Amortissements des immobilisations corporelles'),(25,'PCG99-ABREGE','IMMO','XXXXXX','290','2','Provisions pour dépréciation des immobilisations incorporelles'),(26,'PCG99-ABREGE','IMMO','XXXXXX','291','2','Provisions pour dépréciation des immobilisations corporelles'),(27,'PCG99-ABREGE','IMMO','XXXXXX','297','2','Provisions pour dépréciation des autres immobilisations financières'),(28,'PCG99-ABREGE','STOCK','XXXXXX','31','3','Matieres premières'),(29,'PCG99-ABREGE','STOCK','XXXXXX','32','3','Autres approvisionnements'),(30,'PCG99-ABREGE','STOCK','XXXXXX','33','3','En-cours de production de biens'),(31,'PCG99-ABREGE','STOCK','XXXXXX','34','3','En-cours de production de services'),(32,'PCG99-ABREGE','STOCK','XXXXXX','35','3','Stocks de produits'),(33,'PCG99-ABREGE','STOCK','XXXXXX','37','3','Stocks de marchandises'),(34,'PCG99-ABREGE','STOCK','XXXXXX','391','3','Provisions pour dépréciation des matières premières'),(35,'PCG99-ABREGE','STOCK','XXXXXX','392','3','Provisions pour dépréciation des autres approvisionnements'),(36,'PCG99-ABREGE','STOCK','XXXXXX','393','3','Provisions pour dépréciation des en-cours de production de biens'),(37,'PCG99-ABREGE','STOCK','XXXXXX','394','3','Provisions pour dépréciation des en-cours de production de services'),(38,'PCG99-ABREGE','STOCK','XXXXXX','395','3','Provisions pour dépréciation des stocks de produits'),(39,'PCG99-ABREGE','STOCK','XXXXXX','397','3','Provisions pour dépréciation des stocks de marchandises'),(40,'PCG99-ABREGE','TIERS','SUPPLIER','400','4','Fournisseurs et Comptes rattachés'),(41,'PCG99-ABREGE','TIERS','XXXXXX','409','4','Fournisseurs débiteurs'),(42,'PCG99-ABREGE','TIERS','CUSTOMER','410','4','Clients et Comptes rattachés'),(43,'PCG99-ABREGE','TIERS','XXXXXX','419','4','Clients créditeurs'),(44,'PCG99-ABREGE','TIERS','XXXXXX','421','4','Personnel'),(45,'PCG99-ABREGE','TIERS','XXXXXX','428','4','Personnel'),(46,'PCG99-ABREGE','TIERS','XXXXXX','43','4','Sécurité sociale et autres organismes sociaux'),(47,'PCG99-ABREGE','TIERS','XXXXXX','444','4','Etat - impôts sur bénéfice'),(48,'PCG99-ABREGE','TIERS','XXXXXX','445','4','Etat - Taxes sur chiffre affaire'),(49,'PCG99-ABREGE','TIERS','XXXXXX','447','4','Autres impôts, taxes et versements assimilés'),(50,'PCG99-ABREGE','TIERS','XXXXXX','45','4','Groupe et associes'),(51,'PCG99-ABREGE','TIERS','XXXXXX','455','45','Associés'),(52,'PCG99-ABREGE','TIERS','XXXXXX','46','4','Débiteurs divers et créditeurs divers'),(53,'PCG99-ABREGE','TIERS','XXXXXX','47','4','Comptes transitoires ou d\'attente'),(54,'PCG99-ABREGE','TIERS','XXXXXX','481','4','Charges à répartir sur plusieurs exercices'),(55,'PCG99-ABREGE','TIERS','XXXXXX','486','4','Charges constatées d\'avance'),(56,'PCG99-ABREGE','TIERS','XXXXXX','487','4','Produits constatés d\'avance'),(57,'PCG99-ABREGE','TIERS','XXXXXX','491','4','Provisions pour dépréciation des comptes de clients'),(58,'PCG99-ABREGE','TIERS','XXXXXX','496','4','Provisions pour dépréciation des comptes de débiteurs divers'),(59,'PCG99-ABREGE','FINAN','XXXXXX','50','5','Valeurs mobilières de placement'),(60,'PCG99-ABREGE','FINAN','BANK','51','5','Banques, établissements financiers et assimilés'),(61,'PCG99-ABREGE','FINAN','CASH','53','5','Caisse'),(62,'PCG99-ABREGE','FINAN','XXXXXX','54','5','Régies d\'avance et accréditifs'),(63,'PCG99-ABREGE','FINAN','XXXXXX','58','5','Virements internes'),(64,'PCG99-ABREGE','FINAN','XXXXXX','590','5','Provisions pour dépréciation des valeurs mobilières de placement'),(65,'PCG99-ABREGE','CHARGE','PRODUCT','60','6','Achats'),(66,'PCG99-ABREGE','CHARGE','XXXXXX','603','60','Variations des stocks'),(67,'PCG99-ABREGE','CHARGE','SERVICE','61','6','Services extérieurs'),(68,'PCG99-ABREGE','CHARGE','XXXXXX','62','6','Autres services extérieurs'),(69,'PCG99-ABREGE','CHARGE','XXXXXX','63','6','Impôts, taxes et versements assimiles'),(70,'PCG99-ABREGE','CHARGE','XXXXXX','641','6','Rémunérations du personnel'),(71,'PCG99-ABREGE','CHARGE','XXXXXX','644','6','Rémunération du travail de l\'exploitant'),(72,'PCG99-ABREGE','CHARGE','SOCIAL','645','6','Charges de sécurité sociale et de prévoyance'),(73,'PCG99-ABREGE','CHARGE','XXXXXX','646','6','Cotisations sociales personnelles de l\'exploitant'),(74,'PCG99-ABREGE','CHARGE','XXXXXX','65','6','Autres charges de gestion courante'),(75,'PCG99-ABREGE','CHARGE','XXXXXX','66','6','Charges financières'),(76,'PCG99-ABREGE','CHARGE','XXXXXX','67','6','Charges exceptionnelles'),(77,'PCG99-ABREGE','CHARGE','XXXXXX','681','6','Dotations aux amortissements et aux provisions'),(78,'PCG99-ABREGE','CHARGE','XXXXXX','686','6','Dotations aux amortissements et aux provisions'),(79,'PCG99-ABREGE','CHARGE','XXXXXX','687','6','Dotations aux amortissements et aux provisions'),(80,'PCG99-ABREGE','CHARGE','XXXXXX','691','6','Participation des salariés aux résultats'),(81,'PCG99-ABREGE','CHARGE','XXXXXX','695','6','Impôts sur les bénéfices'),(82,'PCG99-ABREGE','CHARGE','XXXXXX','697','6','Imposition forfaitaire annuelle des sociétés'),(83,'PCG99-ABREGE','CHARGE','XXXXXX','699','6','Produits'),(84,'PCG99-ABREGE','PROD','PRODUCT','701','7','Ventes de produits finis'),(85,'PCG99-ABREGE','PROD','SERVICE','706','7','Prestations de services'),(86,'PCG99-ABREGE','PROD','PRODUCT','707','7','Ventes de marchandises'),(87,'PCG99-ABREGE','PROD','PRODUCT','708','7','Produits des activités annexes'),(88,'PCG99-ABREGE','PROD','XXXXXX','709','7','Rabais, remises et ristournes accordés par l\'entreprise'),(89,'PCG99-ABREGE','PROD','XXXXXX','713','7','Variation des stocks'),(90,'PCG99-ABREGE','PROD','XXXXXX','72','7','Production immobilisée'),(91,'PCG99-ABREGE','PROD','XXXXXX','73','7','Produits nets partiels sur opérations à long terme'),(92,'PCG99-ABREGE','PROD','XXXXXX','74','7','Subventions d\'exploitation'),(93,'PCG99-ABREGE','PROD','XXXXXX','75','7','Autres produits de gestion courante'),(94,'PCG99-ABREGE','PROD','XXXXXX','753','75','Jetons de présence et rémunérations d\'administrateurs, gérants,...'),(95,'PCG99-ABREGE','PROD','XXXXXX','754','75','Ristournes perçues des coopératives'),(96,'PCG99-ABREGE','PROD','XXXXXX','755','75','Quotes-parts de résultat sur opérations faites en commun'),(97,'PCG99-ABREGE','PROD','XXXXXX','76','7','Produits financiers'),(98,'PCG99-ABREGE','PROD','XXXXXX','77','7','Produits exceptionnels'),(99,'PCG99-ABREGE','PROD','XXXXXX','781','7','Reprises sur amortissements et provisions'),(100,'PCG99-ABREGE','PROD','XXXXXX','786','7','Reprises sur provisions pour risques'),(101,'PCG99-ABREGE','PROD','XXXXXX','787','7','Reprises sur provisions'),(102,'PCG99-ABREGE','PROD','XXXXXX','79','7','Transferts de charges'),(103,'PCG99-BASE','CAPIT','XXXXXX','10','1','Capital  et réserves'),(104,'PCG99-BASE','CAPIT','CAPITAL','101','10','Capital'),(105,'PCG99-BASE','CAPIT','XXXXXX','104','10','Primes liées au capital social'),(106,'PCG99-BASE','CAPIT','XXXXXX','105','10','Ecarts de réévaluation'),(107,'PCG99-BASE','CAPIT','XXXXXX','106','10','Réserves'),(108,'PCG99-BASE','CAPIT','XXXXXX','107','10','Ecart d\'equivalence'),(109,'PCG99-BASE','CAPIT','XXXXXX','108','10','Compte de l\'exploitant'),(110,'PCG99-BASE','CAPIT','XXXXXX','109','10','Actionnaires : capital souscrit - non appelé'),(111,'PCG99-BASE','CAPIT','XXXXXX','11','1','Report à nouveau (solde créditeur ou débiteur)'),(112,'PCG99-BASE','CAPIT','XXXXXX','110','11','Report à nouveau (solde créditeur)'),(113,'PCG99-BASE','CAPIT','XXXXXX','119','11','Report à nouveau (solde débiteur)'),(114,'PCG99-BASE','CAPIT','XXXXXX','12','1','Résultat de l\'exercice (bénéfice ou perte)'),(115,'PCG99-BASE','CAPIT','XXXXXX','120','12','Résultat de l\'exercice (bénéfice)'),(116,'PCG99-BASE','CAPIT','XXXXXX','129','12','Résultat de l\'exercice (perte)'),(117,'PCG99-BASE','CAPIT','XXXXXX','13','1','Subventions d\'investissement'),(118,'PCG99-BASE','CAPIT','XXXXXX','131','13','Subventions d\'équipement'),(119,'PCG99-BASE','CAPIT','XXXXXX','138','13','Autres subventions d\'investissement'),(120,'PCG99-BASE','CAPIT','XXXXXX','139','13','Subventions d\'investissement inscrites au compte de résultat'),(121,'PCG99-BASE','CAPIT','XXXXXX','14','1','Provisions réglementées'),(122,'PCG99-BASE','CAPIT','XXXXXX','142','14','Provisions réglementées relatives aux immobilisations'),(123,'PCG99-BASE','CAPIT','XXXXXX','143','14','Provisions réglementées relatives aux stocks'),(124,'PCG99-BASE','CAPIT','XXXXXX','144','14','Provisions réglementées relatives aux autres éléments de l\'actif'),(125,'PCG99-BASE','CAPIT','XXXXXX','145','14','Amortissements dérogatoires'),(126,'PCG99-BASE','CAPIT','XXXXXX','146','14','Provision spéciale de réévaluation'),(127,'PCG99-BASE','CAPIT','XXXXXX','147','14','Plus-values réinvesties'),(128,'PCG99-BASE','CAPIT','XXXXXX','148','14','Autres provisions réglementées'),(129,'PCG99-BASE','CAPIT','XXXXXX','15','1','Provisions pour risques et charges'),(130,'PCG99-BASE','CAPIT','XXXXXX','151','15','Provisions pour risques'),(131,'PCG99-BASE','CAPIT','XXXXXX','153','15','Provisions pour pensions et obligations similaires'),(132,'PCG99-BASE','CAPIT','XXXXXX','154','15','Provisions pour restructurations'),(133,'PCG99-BASE','CAPIT','XXXXXX','155','15','Provisions pour impôts'),(134,'PCG99-BASE','CAPIT','XXXXXX','156','15','Provisions pour renouvellement des immobilisations (entreprises concessionnaires)'),(135,'PCG99-BASE','CAPIT','XXXXXX','157','15','Provisions pour charges à répartir sur plusieurs exercices'),(136,'PCG99-BASE','CAPIT','XXXXXX','158','15','Autres provisions pour charges'),(137,'PCG99-BASE','CAPIT','XXXXXX','16','1','Emprunts et dettes assimilees'),(138,'PCG99-BASE','CAPIT','XXXXXX','161','16','Emprunts obligataires convertibles'),(139,'PCG99-BASE','CAPIT','XXXXXX','163','16','Autres emprunts obligataires'),(140,'PCG99-BASE','CAPIT','XXXXXX','164','16','Emprunts auprès des établissements de crédit'),(141,'PCG99-BASE','CAPIT','XXXXXX','165','16','Dépôts et cautionnements reçus'),(142,'PCG99-BASE','CAPIT','XXXXXX','166','16','Participation des salariés aux résultats'),(143,'PCG99-BASE','CAPIT','XXXXXX','167','16','Emprunts et dettes assortis de conditions particulières'),(144,'PCG99-BASE','CAPIT','XXXXXX','168','16','Autres emprunts et dettes assimilées'),(145,'PCG99-BASE','CAPIT','XXXXXX','169','16','Primes de remboursement des obligations'),(146,'PCG99-BASE','CAPIT','XXXXXX','17','1','Dettes rattachées à des participations'),(147,'PCG99-BASE','CAPIT','XXXXXX','171','17','Dettes rattachées à des participations (groupe)'),(148,'PCG99-BASE','CAPIT','XXXXXX','174','17','Dettes rattachées à des participations (hors groupe)'),(149,'PCG99-BASE','CAPIT','XXXXXX','178','17','Dettes rattachées à des sociétés en participation'),(150,'PCG99-BASE','CAPIT','XXXXXX','18','1','Comptes de liaison des établissements et sociétés en participation'),(151,'PCG99-BASE','CAPIT','XXXXXX','181','18','Comptes de liaison des établissements'),(152,'PCG99-BASE','CAPIT','XXXXXX','186','18','Biens et prestations de services échangés entre établissements (charges)'),(153,'PCG99-BASE','CAPIT','XXXXXX','187','18','Biens et prestations de services échangés entre établissements (produits)'),(154,'PCG99-BASE','CAPIT','XXXXXX','188','18','Comptes de liaison des sociétés en participation'),(155,'PCG99-BASE','IMMO','XXXXXX','20','2','Immobilisations incorporelles'),(156,'PCG99-BASE','IMMO','XXXXXX','201','20','Frais d\'établissement'),(157,'PCG99-BASE','IMMO','XXXXXX','203','20','Frais de recherche et de développement'),(158,'PCG99-BASE','IMMO','XXXXXX','205','20','Concessions et droits similaires, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires'),(159,'PCG99-BASE','IMMO','XXXXXX','206','20','Droit au bail'),(160,'PCG99-BASE','IMMO','XXXXXX','207','20','Fonds commercial'),(161,'PCG99-BASE','IMMO','XXXXXX','208','20','Autres immobilisations incorporelles'),(162,'PCG99-BASE','IMMO','XXXXXX','21','2','Immobilisations corporelles'),(163,'PCG99-BASE','IMMO','XXXXXX','211','21','Terrains'),(164,'PCG99-BASE','IMMO','XXXXXX','212','21','Agencements et aménagements de terrains'),(165,'PCG99-BASE','IMMO','XXXXXX','213','21','Constructions'),(166,'PCG99-BASE','IMMO','XXXXXX','214','21','Constructions sur sol d\'autrui'),(167,'PCG99-BASE','IMMO','XXXXXX','215','21','Installations techniques, matériels et outillage industriels'),(168,'PCG99-BASE','IMMO','XXXXXX','218','21','Autres immobilisations corporelles'),(169,'PCG99-BASE','IMMO','XXXXXX','22','2','Immobilisations mises en concession'),(170,'PCG99-BASE','IMMO','XXXXXX','23','2','Immobilisations en cours'),(171,'PCG99-BASE','IMMO','XXXXXX','231','23','Immobilisations corporelles en cours'),(172,'PCG99-BASE','IMMO','XXXXXX','232','23','Immobilisations incorporelles en cours'),(173,'PCG99-BASE','IMMO','XXXXXX','237','23','Avances et acomptes versés sur immobilisations incorporelles'),(174,'PCG99-BASE','IMMO','XXXXXX','238','23','Avances et acomptes versés sur commandes d\'immobilisations corporelles'),(175,'PCG99-BASE','IMMO','XXXXXX','25','2','Parts dans des entreprises liées et créances sur des entreprises liées'),(176,'PCG99-BASE','IMMO','XXXXXX','26','2','Participations et créances rattachées à des participations'),(177,'PCG99-BASE','IMMO','XXXXXX','261','26','Titres de participation'),(178,'PCG99-BASE','IMMO','XXXXXX','266','26','Autres formes de participation'),(179,'PCG99-BASE','IMMO','XXXXXX','267','26','Créances rattachées à des participations'),(180,'PCG99-BASE','IMMO','XXXXXX','268','26','Créances rattachées à des sociétés en participation'),(181,'PCG99-BASE','IMMO','XXXXXX','269','26','Versements restant à effectuer sur titres de participation non libérés'),(182,'PCG99-BASE','IMMO','XXXXXX','27','2','Autres immobilisations financieres'),(183,'PCG99-BASE','IMMO','XXXXXX','271','27','Titres immobilisés autres que les titres immobilisés de l\'activité de portefeuille (droit de propriété)'),(184,'PCG99-BASE','IMMO','XXXXXX','272','27','Titres immobilisés (droit de créance)'),(185,'PCG99-BASE','IMMO','XXXXXX','273','27','Titres immobilisés de l\'activité de portefeuille'),(186,'PCG99-BASE','IMMO','XXXXXX','274','27','Prêts'),(187,'PCG99-BASE','IMMO','XXXXXX','275','27','Dépôts et cautionnements versés'),(188,'PCG99-BASE','IMMO','XXXXXX','276','27','Autres créances immobilisées'),(189,'PCG99-BASE','IMMO','XXXXXX','277','27','(Actions propres ou parts propres)'),(190,'PCG99-BASE','IMMO','XXXXXX','279','27','Versements restant à effectuer sur titres immobilisés non libérés'),(191,'PCG99-BASE','IMMO','XXXXXX','28','2','Amortissements des immobilisations'),(192,'PCG99-BASE','IMMO','XXXXXX','280','28','Amortissements des immobilisations incorporelles'),(193,'PCG99-BASE','IMMO','XXXXXX','281','28','Amortissements des immobilisations corporelles'),(194,'PCG99-BASE','IMMO','XXXXXX','282','28','Amortissements des immobilisations mises en concession'),(195,'PCG99-BASE','IMMO','XXXXXX','29','2','Dépréciations des immobilisations'),(196,'PCG99-BASE','IMMO','XXXXXX','290','29','Dépréciations des immobilisations incorporelles'),(197,'PCG99-BASE','IMMO','XXXXXX','291','29','Dépréciations des immobilisations corporelles'),(198,'PCG99-BASE','IMMO','XXXXXX','292','29','Dépréciations des immobilisations mises en concession'),(199,'PCG99-BASE','IMMO','XXXXXX','293','29','Dépréciations des immobilisations en cours'),(200,'PCG99-BASE','IMMO','XXXXXX','296','29','Provisions pour dépréciation des participations et créances rattachées à des participations'),(201,'PCG99-BASE','IMMO','XXXXXX','297','29','Provisions pour dépréciation des autres immobilisations financières'),(202,'PCG99-BASE','STOCK','XXXXXX','31','3','Matières premières (et fournitures)'),(203,'PCG99-BASE','STOCK','XXXXXX','311','31','Matières (ou groupe) A'),(204,'PCG99-BASE','STOCK','XXXXXX','312','31','Matières (ou groupe) B'),(205,'PCG99-BASE','STOCK','XXXXXX','317','31','Fournitures A, B, C,'),(206,'PCG99-BASE','STOCK','XXXXXX','32','3','Autres approvisionnements'),(207,'PCG99-BASE','STOCK','XXXXXX','321','32','Matières consommables'),(208,'PCG99-BASE','STOCK','XXXXXX','322','32','Fournitures consommables'),(209,'PCG99-BASE','STOCK','XXXXXX','326','32','Emballages'),(210,'PCG99-BASE','STOCK','XXXXXX','33','3','En-cours de production de biens'),(211,'PCG99-BASE','STOCK','XXXXXX','331','33','Produits en cours'),(212,'PCG99-BASE','STOCK','XXXXXX','335','33','Travaux en cours'),(213,'PCG99-BASE','STOCK','XXXXXX','34','3','En-cours de production de services'),(214,'PCG99-BASE','STOCK','XXXXXX','341','34','Etudes en cours'),(215,'PCG99-BASE','STOCK','XXXXXX','345','34','Prestations de services en cours'),(216,'PCG99-BASE','STOCK','XXXXXX','35','3','Stocks de produits'),(217,'PCG99-BASE','STOCK','XXXXXX','351','35','Produits intermédiaires'),(218,'PCG99-BASE','STOCK','XXXXXX','355','35','Produits finis'),(219,'PCG99-BASE','STOCK','XXXXXX','358','35','Produits résiduels (ou matières de récupération)'),(220,'PCG99-BASE','STOCK','XXXXXX','37','3','Stocks de marchandises'),(221,'PCG99-BASE','STOCK','XXXXXX','371','37','Marchandises (ou groupe) A'),(222,'PCG99-BASE','STOCK','XXXXXX','372','37','Marchandises (ou groupe) B'),(223,'PCG99-BASE','STOCK','XXXXXX','39','3','Provisions pour dépréciation des stocks et en-cours'),(224,'PCG99-BASE','STOCK','XXXXXX','391','39','Provisions pour dépréciation des matières premières'),(225,'PCG99-BASE','STOCK','XXXXXX','392','39','Provisions pour dépréciation des autres approvisionnements'),(226,'PCG99-BASE','STOCK','XXXXXX','393','39','Provisions pour dépréciation des en-cours de production de biens'),(227,'PCG99-BASE','STOCK','XXXXXX','394','39','Provisions pour dépréciation des en-cours de production de services'),(228,'PCG99-BASE','STOCK','XXXXXX','395','39','Provisions pour dépréciation des stocks de produits'),(229,'PCG99-BASE','STOCK','XXXXXX','397','39','Provisions pour dépréciation des stocks de marchandises'),(230,'PCG99-BASE','TIERS','XXXXXX','40','4','Fournisseurs et Comptes rattachés'),(231,'PCG99-BASE','TIERS','XXXXXX','400','40','Fournisseurs et Comptes rattachés'),(232,'PCG99-BASE','TIERS','SUPPLIER','401','40','Fournisseurs'),(233,'PCG99-BASE','TIERS','XXXXXX','403','40','Fournisseurs - Effets à payer'),(234,'PCG99-BASE','TIERS','XXXXXX','404','40','Fournisseurs d\'immobilisations'),(235,'PCG99-BASE','TIERS','XXXXXX','405','40','Fournisseurs d\'immobilisations - Effets à payer'),(236,'PCG99-BASE','TIERS','XXXXXX','408','40','Fournisseurs - Factures non parvenues'),(237,'PCG99-BASE','TIERS','XXXXXX','409','40','Fournisseurs débiteurs'),(238,'PCG99-BASE','TIERS','XXXXXX','41','4','Clients et comptes rattachés'),(239,'PCG99-BASE','TIERS','XXXXXX','410','41','Clients et Comptes rattachés'),(240,'PCG99-BASE','TIERS','CUSTOMER','411','41','Clients'),(241,'PCG99-BASE','TIERS','XXXXXX','413','41','Clients - Effets à recevoir'),(242,'PCG99-BASE','TIERS','XXXXXX','416','41','Clients douteux ou litigieux'),(243,'PCG99-BASE','TIERS','XXXXXX','418','41','Clients - Produits non encore facturés'),(244,'PCG99-BASE','TIERS','XXXXXX','419','41','Clients créditeurs'),(245,'PCG99-BASE','TIERS','XXXXXX','42','4','Personnel et comptes rattachés'),(246,'PCG99-BASE','TIERS','XXXXXX','421','42','Personnel - Rémunérations dues'),(247,'PCG99-BASE','TIERS','XXXXXX','422','42','Comités d\'entreprises, d\'établissement, ...'),(248,'PCG99-BASE','TIERS','XXXXXX','424','42','Participation des salariés aux résultats'),(249,'PCG99-BASE','TIERS','XXXXXX','425','42','Personnel - Avances et acomptes'),(250,'PCG99-BASE','TIERS','XXXXXX','426','42','Personnel - Dépôts'),(251,'PCG99-BASE','TIERS','XXXXXX','427','42','Personnel - Oppositions'),(252,'PCG99-BASE','TIERS','XXXXXX','428','42','Personnel - Charges à payer et produits à recevoir'),(253,'PCG99-BASE','TIERS','XXXXXX','43','4','Sécurité sociale et autres organismes sociaux'),(254,'PCG99-BASE','TIERS','XXXXXX','431','43','Sécurité sociale'),(255,'PCG99-BASE','TIERS','XXXXXX','437','43','Autres organismes sociaux'),(256,'PCG99-BASE','TIERS','XXXXXX','438','43','Organismes sociaux - Charges à payer et produits à recevoir'),(257,'PCG99-BASE','TIERS','XXXXXX','44','4','État et autres collectivités publiques'),(258,'PCG99-BASE','TIERS','XXXXXX','441','44','État - Subventions à recevoir'),(259,'PCG99-BASE','TIERS','XXXXXX','442','44','Etat - Impôts et taxes recouvrables sur des tiers'),(260,'PCG99-BASE','TIERS','XXXXXX','443','44','Opérations particulières avec l\'Etat, les collectivités publiques, les organismes internationaux'),(261,'PCG99-BASE','TIERS','XXXXXX','444','44','Etat - Impôts sur les bénéfices'),(262,'PCG99-BASE','TIERS','XXXXXX','445','44','Etat - Taxes sur le chiffre d\'affaires'),(263,'PCG99-BASE','TIERS','XXXXXX','446','44','Obligations cautionnées'),(264,'PCG99-BASE','TIERS','XXXXXX','447','44','Autres impôts, taxes et versements assimilés'),(265,'PCG99-BASE','TIERS','XXXXXX','448','44','Etat - Charges à payer et produits à recevoir'),(266,'PCG99-BASE','TIERS','XXXXXX','449','44','Quotas d\'émission à restituer à l\'Etat'),(267,'PCG99-BASE','TIERS','XXXXXX','45','4','Groupe et associes'),(268,'PCG99-BASE','TIERS','XXXXXX','451','45','Groupe'),(269,'PCG99-BASE','TIERS','XXXXXX','455','45','Associés - Comptes courants'),(270,'PCG99-BASE','TIERS','XXXXXX','456','45','Associés - Opérations sur le capital'),(271,'PCG99-BASE','TIERS','XXXXXX','457','45','Associés - Dividendes à payer'),(272,'PCG99-BASE','TIERS','XXXXXX','458','45','Associés - Opérations faites en commun et en G.I.E.'),(273,'PCG99-BASE','TIERS','XXXXXX','46','4','Débiteurs divers et créditeurs divers'),(274,'PCG99-BASE','TIERS','XXXXXX','462','46','Créances sur cessions d\'immobilisations'),(275,'PCG99-BASE','TIERS','XXXXXX','464','46','Dettes sur acquisitions de valeurs mobilières de placement'),(276,'PCG99-BASE','TIERS','XXXXXX','465','46','Créances sur cessions de valeurs mobilières de placement'),(277,'PCG99-BASE','TIERS','XXXXXX','467','46','Autres comptes débiteurs ou créditeurs'),(278,'PCG99-BASE','TIERS','XXXXXX','468','46','Divers - Charges à payer et produits à recevoir'),(279,'PCG99-BASE','TIERS','XXXXXX','47','4','Comptes transitoires ou d\'attente'),(280,'PCG99-BASE','TIERS','XXXXXX','471','47','Comptes d\'attente'),(281,'PCG99-BASE','TIERS','XXXXXX','476','47','Différence de conversion - Actif'),(282,'PCG99-BASE','TIERS','XXXXXX','477','47','Différences de conversion - Passif'),(283,'PCG99-BASE','TIERS','XXXXXX','478','47','Autres comptes transitoires'),(284,'PCG99-BASE','TIERS','XXXXXX','48','4','Comptes de régularisation'),(285,'PCG99-BASE','TIERS','XXXXXX','481','48','Charges à répartir sur plusieurs exercices'),(286,'PCG99-BASE','TIERS','XXXXXX','486','48','Charges constatées d\'avance'),(287,'PCG99-BASE','TIERS','XXXXXX','487','48','Produits constatés d\'avance'),(288,'PCG99-BASE','TIERS','XXXXXX','488','48','Comptes de répartition périodique des charges et des produits'),(289,'PCG99-BASE','TIERS','XXXXXX','489','48','Quotas d\'émission alloués par l\'Etat'),(290,'PCG99-BASE','TIERS','XXXXXX','49','4','Provisions pour dépréciation des comptes de tiers'),(291,'PCG99-BASE','TIERS','XXXXXX','491','49','Provisions pour dépréciation des comptes de clients'),(292,'PCG99-BASE','TIERS','XXXXXX','495','49','Provisions pour dépréciation des comptes du groupe et des associés'),(293,'PCG99-BASE','TIERS','XXXXXX','496','49','Provisions pour dépréciation des comptes de débiteurs divers'),(294,'PCG99-BASE','FINAN','XXXXXX','50','5','Valeurs mobilières de placement'),(295,'PCG99-BASE','FINAN','XXXXXX','501','50','Parts dans des entreprises liées'),(296,'PCG99-BASE','FINAN','XXXXXX','502','50','Actions propres'),(297,'PCG99-BASE','FINAN','XXXXXX','503','50','Actions'),(298,'PCG99-BASE','FINAN','XXXXXX','504','50','Autres titres conférant un droit de propriété'),(299,'PCG99-BASE','FINAN','XXXXXX','505','50','Obligations et bons émis par la société et rachetés par elle'),(300,'PCG99-BASE','FINAN','XXXXXX','506','50','Obligations'),(301,'PCG99-BASE','FINAN','XXXXXX','507','50','Bons du Trésor et bons de caisse à court terme'),(302,'PCG99-BASE','FINAN','XXXXXX','508','50','Autres valeurs mobilières de placement et autres créances assimilées'),(303,'PCG99-BASE','FINAN','XXXXXX','509','50','Versements restant à effectuer sur valeurs mobilières de placement non libérées'),(304,'PCG99-BASE','FINAN','XXXXXX','51','5','Banques, établissements financiers et assimilés'),(305,'PCG99-BASE','FINAN','XXXXXX','511','51','Valeurs à l\'encaissement'),(306,'PCG99-BASE','FINAN','BANK','512','51','Banques'),(307,'PCG99-BASE','FINAN','XXXXXX','514','51','Chèques postaux'),(308,'PCG99-BASE','FINAN','XXXXXX','515','51','\"Caisses\" du Trésor et des établissements publics'),(309,'PCG99-BASE','FINAN','XXXXXX','516','51','Sociétés de bourse'),(310,'PCG99-BASE','FINAN','XXXXXX','517','51','Autres organismes financiers'),(311,'PCG99-BASE','FINAN','XXXXXX','518','51','Intérêts courus'),(312,'PCG99-BASE','FINAN','XXXXXX','519','51','Concours bancaires courants'),(313,'PCG99-BASE','FINAN','XXXXXX','52','5','Instruments de trésorerie'),(314,'PCG99-BASE','FINAN','CASH','53','5','Caisse'),(315,'PCG99-BASE','FINAN','XXXXXX','531','53','Caisse siège social'),(316,'PCG99-BASE','FINAN','XXXXXX','532','53','Caisse succursale (ou usine) A'),(317,'PCG99-BASE','FINAN','XXXXXX','533','53','Caisse succursale (ou usine) B'),(318,'PCG99-BASE','FINAN','XXXXXX','54','5','Régies d\'avance et accréditifs'),(319,'PCG99-BASE','FINAN','XXXXXX','58','5','Virements internes'),(320,'PCG99-BASE','FINAN','XXXXXX','59','5','Provisions pour dépréciation des comptes financiers'),(321,'PCG99-BASE','FINAN','XXXXXX','590','59','Provisions pour dépréciation des valeurs mobilières de placement'),(322,'PCG99-BASE','CHARGE','PRODUCT','60','6','Achats'),(323,'PCG99-BASE','CHARGE','XXXXXX','601','60','Achats stockés - Matières premières (et fournitures)'),(324,'PCG99-BASE','CHARGE','XXXXXX','602','60','Achats stockés - Autres approvisionnements'),(325,'PCG99-BASE','CHARGE','XXXXXX','603','60','Variations des stocks (approvisionnements et marchandises)'),(326,'PCG99-BASE','CHARGE','XXXXXX','604','60','Achats stockés - Matières premières (et fournitures)'),(327,'PCG99-BASE','CHARGE','XXXXXX','605','60','Achats de matériel, équipements et travaux'),(328,'PCG99-BASE','CHARGE','XXXXXX','606','60','Achats non stockés de matière et fournitures'),(329,'PCG99-BASE','CHARGE','XXXXXX','607','60','Achats de marchandises'),(330,'PCG99-BASE','CHARGE','XXXXXX','608','60','(Compte réservé, le cas échéant, à la récapitulation des frais accessoires incorporés aux achats)'),(331,'PCG99-BASE','CHARGE','XXXXXX','609','60','Rabais, remises et ristournes obtenus sur achats'),(332,'PCG99-BASE','CHARGE','SERVICE','61','6','Services extérieurs'),(333,'PCG99-BASE','CHARGE','XXXXXX','611','61','Sous-traitance générale'),(334,'PCG99-BASE','CHARGE','XXXXXX','612','61','Redevances de crédit-bail'),(335,'PCG99-BASE','CHARGE','XXXXXX','613','61','Locations'),(336,'PCG99-BASE','CHARGE','XXXXXX','614','61','Charges locatives et de copropriété'),(337,'PCG99-BASE','CHARGE','XXXXXX','615','61','Entretien et réparations'),(338,'PCG99-BASE','CHARGE','XXXXXX','616','61','Primes d\'assurances'),(339,'PCG99-BASE','CHARGE','XXXXXX','617','61','Etudes et recherches'),(340,'PCG99-BASE','CHARGE','XXXXXX','618','61','Divers'),(341,'PCG99-BASE','CHARGE','XXXXXX','619','61','Rabais, remises et ristournes obtenus sur services extérieurs'),(342,'PCG99-BASE','CHARGE','XXXXXX','62','6','Autres services extérieurs'),(343,'PCG99-BASE','CHARGE','XXXXXX','621','62','Personnel extérieur à l\'entreprise'),(344,'PCG99-BASE','CHARGE','XXXXXX','622','62','Rémunérations d\'intermédiaires et honoraires'),(345,'PCG99-BASE','CHARGE','XXXXXX','623','62','Publicité, publications, relations publiques'),(346,'PCG99-BASE','CHARGE','XXXXXX','624','62','Transports de biens et transports collectifs du personnel'),(347,'PCG99-BASE','CHARGE','XXXXXX','625','62','Déplacements, missions et réceptions'),(348,'PCG99-BASE','CHARGE','XXXXXX','626','62','Frais postaux et de télécommunications'),(349,'PCG99-BASE','CHARGE','XXXXXX','627','62','Services bancaires et assimilés'),(350,'PCG99-BASE','CHARGE','XXXXXX','628','62','Divers'),(351,'PCG99-BASE','CHARGE','XXXXXX','629','62','Rabais, remises et ristournes obtenus sur autres services extérieurs'),(352,'PCG99-BASE','CHARGE','XXXXXX','63','6','Impôts, taxes et versements assimilés'),(353,'PCG99-BASE','CHARGE','XXXXXX','631','63','Impôts, taxes et versements assimilés sur rémunérations (administrations des impôts)'),(354,'PCG99-BASE','CHARGE','XXXXXX','633','63','Impôts, taxes et versements assimilés sur rémunérations (autres organismes)'),(355,'PCG99-BASE','CHARGE','XXXXXX','635','63','Autres impôts, taxes et versements assimilés (administrations des impôts)'),(356,'PCG99-BASE','CHARGE','XXXXXX','637','63','Autres impôts, taxes et versements assimilés (autres organismes)'),(357,'PCG99-BASE','CHARGE','XXXXXX','64','6','Charges de personnel'),(358,'PCG99-BASE','CHARGE','XXXXXX','641','64','Rémunérations du personnel'),(359,'PCG99-BASE','CHARGE','XXXXXX','644','64','Rémunération du travail de l\'exploitant'),(360,'PCG99-BASE','CHARGE','SOCIAL','645','64','Charges de sécurité sociale et de prévoyance'),(361,'PCG99-BASE','CHARGE','XXXXXX','646','64','Cotisations sociales personnelles de l\'exploitant'),(362,'PCG99-BASE','CHARGE','XXXXXX','647','64','Autres charges sociales'),(363,'PCG99-BASE','CHARGE','XXXXXX','648','64','Autres charges de personnel'),(364,'PCG99-BASE','CHARGE','XXXXXX','65','6','Autres charges de gestion courante'),(365,'PCG99-BASE','CHARGE','XXXXXX','651','65','Redevances pour concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires'),(366,'PCG99-BASE','CHARGE','XXXXXX','653','65','Jetons de présence'),(367,'PCG99-BASE','CHARGE','XXXXXX','654','65','Pertes sur créances irrécouvrables'),(368,'PCG99-BASE','CHARGE','XXXXXX','655','65','Quote-part de résultat sur opérations faites en commun'),(369,'PCG99-BASE','CHARGE','XXXXXX','658','65','Charges diverses de gestion courante'),(370,'PCG99-BASE','CHARGE','XXXXXX','66','6','Charges financières'),(371,'PCG99-BASE','CHARGE','XXXXXX','661','66','Charges d\'intérêts'),(372,'PCG99-BASE','CHARGE','XXXXXX','664','66','Pertes sur créances liées à des participations'),(373,'PCG99-BASE','CHARGE','XXXXXX','665','66','Escomptes accordés'),(374,'PCG99-BASE','CHARGE','XXXXXX','666','66','Pertes de change'),(375,'PCG99-BASE','CHARGE','XXXXXX','667','66','Charges nettes sur cessions de valeurs mobilières de placement'),(376,'PCG99-BASE','CHARGE','XXXXXX','668','66','Autres charges financières'),(377,'PCG99-BASE','CHARGE','XXXXXX','67','6','Charges exceptionnelles'),(378,'PCG99-BASE','CHARGE','XXXXXX','671','67','Charges exceptionnelles sur opérations de gestion'),(379,'PCG99-BASE','CHARGE','XXXXXX','672','67','(Compte à la disposition des entités pour enregistrer, en cours d\'exercice, les charges sur exercices antérieurs)'),(380,'PCG99-BASE','CHARGE','XXXXXX','675','67','Valeurs comptables des éléments d\'actif cédés'),(381,'PCG99-BASE','CHARGE','XXXXXX','678','67','Autres charges exceptionnelles'),(382,'PCG99-BASE','CHARGE','XXXXXX','68','6','Dotations aux amortissements et aux provisions'),(383,'PCG99-BASE','CHARGE','XXXXXX','681','68','Dotations aux amortissements et aux provisions - Charges d\'exploitation'),(384,'PCG99-BASE','CHARGE','XXXXXX','686','68','Dotations aux amortissements et aux provisions - Charges financières'),(385,'PCG99-BASE','CHARGE','XXXXXX','687','68','Dotations aux amortissements et aux provisions - Charges exceptionnelles'),(386,'PCG99-BASE','CHARGE','XXXXXX','69','6','Participation des salariés - impôts sur les bénéfices et assimiles'),(387,'PCG99-BASE','CHARGE','XXXXXX','691','69','Participation des salariés aux résultats'),(388,'PCG99-BASE','CHARGE','XXXXXX','695','69','Impôts sur les bénéfices'),(389,'PCG99-BASE','CHARGE','XXXXXX','696','69','Suppléments d\'impôt sur les sociétés liés aux distributions'),(390,'PCG99-BASE','CHARGE','XXXXXX','697','69','Imposition forfaitaire annuelle des sociétés'),(391,'PCG99-BASE','CHARGE','XXXXXX','698','69','Intégration fiscale'),(392,'PCG99-BASE','CHARGE','XXXXXX','699','69','Produits - Reports en arrière des déficits'),(393,'PCG99-BASE','PROD','XXXXXX','70','7','Ventes de produits fabriqués, prestations de services, marchandises'),(394,'PCG99-BASE','PROD','PRODUCT','701','70','Ventes de produits finis'),(395,'PCG99-BASE','PROD','XXXXXX','702','70','Ventes de produits intermédiaires'),(396,'PCG99-BASE','PROD','XXXXXX','703','70','Ventes de produits résiduels'),(397,'PCG99-BASE','PROD','XXXXXX','704','70','Travaux'),(398,'PCG99-BASE','PROD','XXXXXX','705','70','Etudes'),(399,'PCG99-BASE','PROD','SERVICE','706','70','Prestations de services'),(400,'PCG99-BASE','PROD','PRODUCT','707','70','Ventes de marchandises'),(401,'PCG99-BASE','PROD','PRODUCT','708','70','Produits des activités annexes'),(402,'PCG99-BASE','PROD','XXXXXX','709','70','Rabais, remises et ristournes accordés par l\'entreprise'),(403,'PCG99-BASE','PROD','XXXXXX','71','7','Production stockée (ou déstockage)'),(404,'PCG99-BASE','PROD','XXXXXX','713','71','Variation des stocks (en-cours de production, produits)'),(405,'PCG99-BASE','PROD','XXXXXX','72','7','Production immobilisée'),(406,'PCG99-BASE','PROD','XXXXXX','721','72','Immobilisations incorporelles'),(407,'PCG99-BASE','PROD','XXXXXX','722','72','Immobilisations corporelles'),(408,'PCG99-BASE','PROD','XXXXXX','74','7','Subventions d\'exploitation'),(409,'PCG99-BASE','PROD','XXXXXX','75','7','Autres produits de gestion courante'),(410,'PCG99-BASE','PROD','XXXXXX','751','75','Redevances pour concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires'),(411,'PCG99-BASE','PROD','XXXXXX','752','75','Revenus des immeubles non affectés à des activités professionnelles'),(412,'PCG99-BASE','PROD','XXXXXX','753','75','Jetons de présence et rémunérations d\'administrateurs, gérants,...'),(413,'PCG99-BASE','PROD','XXXXXX','754','75','Ristournes perçues des coopératives (provenant des excédents)'),(414,'PCG99-BASE','PROD','XXXXXX','755','75','Quotes-parts de résultat sur opérations faites en commun'),(415,'PCG99-BASE','PROD','XXXXXX','758','75','Produits divers de gestion courante'),(416,'PCG99-BASE','PROD','XXXXXX','76','7','Produits financiers'),(417,'PCG99-BASE','PROD','XXXXXX','761','76','Produits de participations'),(418,'PCG99-BASE','PROD','XXXXXX','762','76','Produits des autres immobilisations financières'),(419,'PCG99-BASE','PROD','XXXXXX','763','76','Revenus des autres créances'),(420,'PCG99-BASE','PROD','XXXXXX','764','76','Revenus des valeurs mobilières de placement'),(421,'PCG99-BASE','PROD','XXXXXX','765','76','Escomptes obtenus'),(422,'PCG99-BASE','PROD','XXXXXX','766','76','Gains de change'),(423,'PCG99-BASE','PROD','XXXXXX','767','76','Produits nets sur cessions de valeurs mobilières de placement'),(424,'PCG99-BASE','PROD','XXXXXX','768','76','Autres produits financiers'),(425,'PCG99-BASE','PROD','XXXXXX','77','7','Produits exceptionnels'),(426,'PCG99-BASE','PROD','XXXXXX','771','77','Produits exceptionnels sur opérations de gestion'),(427,'PCG99-BASE','PROD','XXXXXX','772','77','(Compte à la disposition des entités pour enregistrer, en cours d\'exercice, les produits sur exercices antérieurs)'),(428,'PCG99-BASE','PROD','XXXXXX','775','77','Produits des cessions d\'éléments d\'actif'),(429,'PCG99-BASE','PROD','XXXXXX','777','77','Quote-part des subventions d\'investissement virée au résultat de l\'exercice'),(430,'PCG99-BASE','PROD','XXXXXX','778','77','Autres produits exceptionnels'),(431,'PCG99-BASE','PROD','XXXXXX','78','7','Reprises sur amortissements et provisions'),(432,'PCG99-BASE','PROD','XXXXXX','781','78','Reprises sur amortissements et provisions (à inscrire dans les produits d\'exploitation)'),(433,'PCG99-BASE','PROD','XXXXXX','786','78','Reprises sur provisions pour risques (à inscrire dans les produits financiers)'),(434,'PCG99-BASE','PROD','XXXXXX','787','78','Reprises sur provisions (à inscrire dans les produits exceptionnels)'),(435,'PCG99-BASE','PROD','XXXXXX','79','7','Transferts de charges'),(436,'PCG99-BASE','PROD','XXXXXX','791','79','Transferts de charges d\'exploitation '),(437,'PCG99-BASE','PROD','XXXXXX','796','79','Transferts de charges financières'),(438,'PCG99-BASE','PROD','XXXXXX','797','79','Transferts de charges exceptionnelles');

--
-- Table structure for table `llx_accountingdebcred`
--

CREATE TABLE `llx_accountingdebcred` (
  `fk_transaction` int(11) NOT NULL,
  `account_number` varchar(20) NOT NULL,
  `amount` double NOT NULL,
  `direction` varchar(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_accountingdebcred`
--


--
-- Table structure for table `llx_accountingsystem`
--

CREATE TABLE `llx_accountingsystem` (
  `pcg_version` varchar(12) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `label` varchar(128) NOT NULL,
  `datec` varchar(12) NOT NULL,
  `fk_author` varchar(20) default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `active` smallint(6) default '0',
  PRIMARY KEY  (`pcg_version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_accountingsystem`
--

INSERT INTO `llx_accountingsystem` (`pcg_version`, `fk_pays`, `label`, `datec`, `fk_author`, `tms`, `active`) VALUES ('PCG99-ABREGE',1,'The simple accountancy french plan','2013-01-29',NULL,'2013-01-29 16:22:26',0),('PCG99-BASE',1,'The base accountancy french plan','2013-01-29',NULL,'2013-01-29 16:22:26',0);

--
-- Table structure for table `llx_accountingtransaction`
--

CREATE TABLE `llx_accountingtransaction` (
  `rowid` int(11) NOT NULL auto_increment,
  `label` varchar(128) NOT NULL,
  `datec` date NOT NULL,
  `fk_author` varchar(20) NOT NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_source` int(11) NOT NULL,
  `sourcetype` varchar(16) NOT NULL,
  `url` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_accountingtransaction`
--


--
-- Table structure for table `llx_actioncomm`
--

CREATE TABLE `llx_actioncomm` (
  `id` int(11) NOT NULL auto_increment,
  `ref_ext` varchar(128) default NULL,
  `entity` int(11) NOT NULL default '1',
  `datep` datetime default NULL,
  `datep2` datetime default NULL,
  `datea` datetime default NULL,
  `datea2` datetime default NULL,
  `fk_action` int(11) default NULL,
  `label` varchar(128) NOT NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_user_author` int(11) default NULL,
  `fk_user_mod` int(11) default NULL,
  `fk_project` int(11) default NULL,
  `fk_soc` int(11) default NULL,
  `fk_contact` int(11) default NULL,
  `fk_parent` int(11) NOT NULL default '0',
  `fk_user_action` int(11) default NULL,
  `fk_user_done` int(11) default NULL,
  `priority` smallint(6) default NULL,
  `fulldayevent` smallint(6) NOT NULL default '0',
  `punctual` smallint(6) NOT NULL default '1',
  `percent` smallint(6) NOT NULL default '0',
  `location` varchar(128) default NULL,
  `durationp` double default NULL,
  `durationa` double default NULL,
  `note` text,
  `fk_element` int(11) default NULL,
  `elementtype` varchar(16) default NULL,
  PRIMARY KEY  (`id`),
  KEY `idx_actioncomm_datea` (`datea`),
  KEY `idx_actioncomm_fk_soc` (`fk_soc`),
  KEY `idx_actioncomm_fk_contact` (`fk_contact`)
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_actioncomm`
--

INSERT INTO `llx_actioncomm` (`id`, `ref_ext`, `entity`, `datep`, `datep2`, `datea`, `datea2`, `fk_action`, `label`, `datec`, `tms`, `fk_user_author`, `fk_user_mod`, `fk_project`, `fk_soc`, `fk_contact`, `fk_parent`, `fk_user_action`, `fk_user_done`, `priority`, `fulldayevent`, `punctual`, `percent`, `location`, `durationp`, `durationa`, `note`, `fk_element`, `elementtype`) VALUES (1,NULL,1,'2013-01-29 21:44:04','2013-01-29 21:44:04',NULL,NULL,50,'Société WHYNOT ajoutée dans Dolibarr','2013-01-29 21:44:04','2013-01-29 20:44:04',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société WHYNOT ajoutée dans Dolibarr\nAuteur: admin',1,'societe'),(2,NULL,1,'2013-02-21 16:24:02','2013-02-21 16:24:02',NULL,NULL,50,'Société Cinémathèque de Toulouse ajoutée dans Dolibarr','2013-02-21 16:24:02','2013-02-21 15:24:02',1,NULL,NULL,2,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société Cinémathèque de Toulouse ajoutée dans Dolibarr\nAuteur: admin',2,'societe'),(3,NULL,1,'2013-02-21 16:50:57','2013-02-21 16:50:57',NULL,NULL,50,'Facture FA1202024 validée dans Dolibarr','2013-02-21 16:50:57','2013-02-21 15:50:57',1,NULL,NULL,2,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202024 validée dans Dolibarr\nAuteur: admin',2,'invoice'),(4,NULL,1,'2013-02-21 16:53:21','2013-02-21 16:53:21',NULL,NULL,50,'Société PROXIMA ajoutée dans Dolibarr','2013-02-21 16:53:21','2013-02-21 15:53:21',1,NULL,NULL,3,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société PROXIMA ajoutée dans Dolibarr\nAuteur: admin',3,'societe'),(5,NULL,1,'2013-02-21 17:09:53','2013-02-21 17:09:53',NULL,NULL,50,'Facture FA1202025 validée dans Dolibarr','2013-02-21 17:09:53','2013-02-21 16:09:53',1,NULL,NULL,3,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202025 validée dans Dolibarr\nAuteur: admin',3,'invoice'),(6,NULL,1,'2013-02-21 17:16:56','2013-02-21 17:16:56',NULL,NULL,50,'Société FRICON GIMET ajoutée dans Dolibarr','2013-02-21 17:16:56','2013-02-21 16:16:56',1,NULL,NULL,4,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société FRICON GIMET ajoutée dans Dolibarr\nAuteur: admin',4,'societe'),(7,NULL,1,'2013-02-21 17:20:09','2013-02-21 17:20:09',NULL,NULL,50,'Facture FA1202026 validée dans Dolibarr','2013-02-21 17:20:09','2013-02-21 16:20:09',1,NULL,NULL,4,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202026 validée dans Dolibarr\nAuteur: admin',4,'invoice'),(8,NULL,1,'2013-02-21 17:25:51','2013-02-21 17:25:51',NULL,NULL,50,'Société BENNES LOCATION SERVICES ajoutée dans Dolibarr','2013-02-21 17:25:51','2013-02-21 16:25:51',1,NULL,NULL,5,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société BENNES LOCATION SERVICES ajoutée dans Dolibarr\nAuteur: admin',5,'societe'),(9,NULL,1,'2013-02-21 17:30:43','2013-02-21 17:30:43',NULL,NULL,50,'Facture FA1202027 validée dans Dolibarr','2013-02-21 17:30:43','2013-02-21 16:30:43',1,NULL,NULL,5,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202027 validée dans Dolibarr\nAuteur: admin',5,'invoice'),(10,NULL,1,'2013-02-28 15:44:18','2013-02-28 15:44:18',NULL,NULL,50,'Facture FA1202028 validée dans Dolibarr','2013-02-28 15:44:18','2013-02-28 14:44:18',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202028 validée dans Dolibarr\nAuteur: admin',6,'invoice'),(11,NULL,1,'2013-02-28 15:46:59','2013-02-28 15:46:59',NULL,NULL,50,'Facture FA1202029 validée dans Dolibarr','2013-02-28 15:46:59','2013-02-28 14:46:59',1,NULL,NULL,5,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202029 validée dans Dolibarr\nAuteur: admin',7,'invoice'),(12,NULL,1,'2013-02-28 15:53:29','2013-02-28 15:53:29',NULL,NULL,50,'Société LESER ajoutée dans Dolibarr','2013-02-28 15:53:29','2013-02-28 14:53:29',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société LESER ajoutée dans Dolibarr\nAuteur: admin',6,'societe'),(13,NULL,1,'2013-02-28 16:01:35','2013-02-28 16:01:35',NULL,NULL,50,'Facture FA1203030 validée dans Dolibarr','2013-02-28 16:01:35','2013-02-28 15:01:35',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1203030 validée dans Dolibarr\nAuteur: admin',8,'invoice'),(14,NULL,1,'2013-02-28 16:07:55','2013-02-28 16:07:55',NULL,NULL,50,'Société CARAVANES 31 ajoutée dans Dolibarr','2013-02-28 16:07:55','2013-02-28 15:07:55',1,NULL,NULL,7,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société CARAVANES 31 ajoutée dans Dolibarr\nAuteur: admin',7,'societe'),(15,NULL,1,'2013-02-28 16:12:00','2013-02-28 16:12:00',NULL,NULL,50,'Facture FA1204031 validée dans Dolibarr','2013-02-28 16:12:00','2013-02-28 15:12:00',1,NULL,NULL,7,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1204031 validée dans Dolibarr\nAuteur: admin',9,'invoice'),(16,NULL,1,'2013-02-28 17:14:39','2013-02-28 17:14:39',NULL,NULL,50,'Facture FA1205032 validée dans Dolibarr','2013-02-28 17:14:39','2013-02-28 16:14:39',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1205032 validée dans Dolibarr\nAuteur: admin',10,'invoice'),(17,NULL,1,'2013-02-28 17:18:33','2013-02-28 17:18:33',NULL,NULL,50,'Facture FA1202024 passée à payée dans Dolibarr','2013-02-28 17:18:33','2013-02-28 16:18:33',1,NULL,NULL,2,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202024 passée à payée dans Dolibarr\nAuteur: admin',2,'invoice'),(18,NULL,1,'2013-02-28 17:20:46','2013-02-28 17:20:46',NULL,NULL,50,'Facture FA1202026 passée à payée dans Dolibarr','2013-02-28 17:20:46','2013-02-28 16:20:46',1,NULL,NULL,4,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202026 passée à payée dans Dolibarr\nAuteur: admin',4,'invoice'),(19,NULL,1,'2013-02-28 17:27:36','2013-02-28 17:27:36',NULL,NULL,50,'Facture FA1202027 passée à payée dans Dolibarr','2013-02-28 17:27:36','2013-02-28 16:27:36',1,NULL,NULL,5,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202027 passée à payée dans Dolibarr\nAuteur: admin',5,'invoice'),(20,NULL,1,'2013-02-28 17:27:36','2013-02-28 17:27:36',NULL,NULL,50,'Facture FA1202029 passée à payée dans Dolibarr','2013-02-28 17:27:36','2013-02-28 16:27:36',1,NULL,NULL,5,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202029 passée à payée dans Dolibarr\nAuteur: admin',7,'invoice'),(21,NULL,1,'2013-02-28 17:29:25','2013-02-28 17:29:25',NULL,NULL,50,'Facture FA1202028 passée à payée dans Dolibarr','2013-02-28 17:29:25','2013-02-28 16:29:25',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202028 passée à payée dans Dolibarr\nAuteur: admin',6,'invoice'),(22,NULL,1,'2013-03-01 08:18:33','2013-03-01 08:18:33',NULL,NULL,50,'Facture FA1202025 passée à payée dans Dolibarr','2013-03-01 08:18:33','2013-03-01 07:18:33',1,NULL,NULL,3,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1202025 passée à payée dans Dolibarr\nAuteur: admin',3,'invoice'),(23,NULL,1,'2013-03-01 08:23:20','2013-03-01 08:23:20',NULL,NULL,50,'Facture FA1203030 passée à payée dans Dolibarr','2013-03-01 08:23:20','2013-03-01 07:23:20',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1203030 passée à payée dans Dolibarr\nAuteur: admin',8,'invoice'),(24,NULL,1,'2013-03-01 08:24:59','2013-03-01 08:24:59',NULL,NULL,50,'Facture FA1204031 passée à payée dans Dolibarr','2013-03-01 08:24:59','2013-03-01 07:24:59',1,NULL,NULL,7,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1204031 passée à payée dans Dolibarr\nAuteur: admin',9,'invoice'),(25,NULL,1,'2013-03-01 08:47:40','2013-03-01 08:47:40',NULL,NULL,50,'Facture FA1205032 passée à payée dans Dolibarr','2013-03-01 08:47:40','2013-03-01 07:47:40',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1205032 passée à payée dans Dolibarr\nAuteur: admin',10,'invoice'),(26,NULL,1,'2013-03-02 14:42:59','2013-03-02 14:42:59',NULL,NULL,50,'Société LUCIEN OPTICIEN ajoutée dans Dolibarr','2013-03-02 14:42:59','2013-03-02 13:42:59',1,NULL,NULL,8,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société LUCIEN OPTICIEN ajoutée dans Dolibarr\nAuteur: admin',8,'societe'),(27,NULL,1,'2013-03-02 14:51:32','2013-03-02 14:51:32',NULL,NULL,50,'Facture FA1205033 validée dans Dolibarr','2013-03-02 14:51:32','2013-03-02 13:51:32',1,NULL,NULL,8,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1205033 validée dans Dolibarr\nAuteur: admin',11,'invoice'),(28,NULL,1,'2013-03-02 14:56:16','2013-03-02 14:56:16',NULL,NULL,50,'Facture FA1207034 validée dans Dolibarr','2013-03-02 14:56:16','2013-03-02 13:56:16',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1207034 validée dans Dolibarr\nAuteur: admin',12,'invoice'),(29,NULL,1,'2013-03-02 15:00:14','2013-03-02 15:00:14',NULL,NULL,50,'Facture FA1207035 validée dans Dolibarr','2013-03-02 15:00:14','2013-03-02 14:00:14',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1207035 validée dans Dolibarr\nAuteur: admin',1,'invoice'),(30,NULL,1,'2013-03-02 15:07:02','2013-03-02 15:07:02',NULL,NULL,50,'Facture FA1208036 validée dans Dolibarr','2013-03-02 15:07:02','2013-03-02 14:07:02',1,NULL,NULL,7,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1208036 validée dans Dolibarr\nAuteur: admin',13,'invoice'),(31,NULL,1,'2013-03-02 15:14:10','2013-03-02 15:14:10',NULL,NULL,50,'Facture FA1208037 validée dans Dolibarr','2013-03-02 15:14:10','2013-03-02 14:14:10',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1208037 validée dans Dolibarr\nAuteur: admin',14,'invoice'),(32,NULL,1,'2013-03-02 15:17:01','2013-03-02 15:17:01',NULL,NULL,50,'Facture FA1209038 validée dans Dolibarr','2013-03-02 15:17:01','2013-03-02 14:17:01',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1209038 validée dans Dolibarr\nAuteur: admin',15,'invoice'),(33,NULL,1,'2013-03-02 15:22:25','2013-03-02 15:22:25',NULL,NULL,50,'Société Jean Jacques VERCHERE ajoutée dans Dolibarr','2013-03-02 15:22:25','2013-03-02 14:22:25',1,NULL,NULL,9,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société Jean Jacques VERCHERE ajoutée dans Dolibarr\nAuteur: admin',9,'societe'),(34,NULL,1,'2013-03-03 09:42:43','2013-03-03 09:42:43',NULL,NULL,50,'Facture FA1207034 passée à payée dans Dolibarr','2013-03-03 09:42:43','2013-03-03 08:42:43',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1207034 passée à payée dans Dolibarr\nAuteur: admin',12,'invoice'),(35,NULL,1,'2013-03-03 09:45:31','2013-03-03 09:45:31',NULL,NULL,50,'Facture FA1207035 passée à payée dans Dolibarr','2013-03-03 09:45:31','2013-03-03 08:45:31',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1207035 passée à payée dans Dolibarr\nAuteur: admin',1,'invoice'),(36,NULL,1,'2013-03-03 09:46:54','2013-03-03 09:46:54',NULL,NULL,50,'Facture FA1208036 passée à payée dans Dolibarr','2013-03-03 09:46:54','2013-03-03 08:46:54',1,NULL,NULL,7,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1208036 passée à payée dans Dolibarr\nAuteur: admin',13,'invoice'),(37,NULL,1,'2013-03-03 09:48:01','2013-03-03 09:48:01',NULL,NULL,50,'Facture FA1208037 passée à payée dans Dolibarr','2013-03-03 09:48:01','2013-03-03 08:48:01',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1208037 passée à payée dans Dolibarr\nAuteur: admin',14,'invoice'),(38,NULL,1,'2013-03-03 09:48:59','2013-03-03 09:48:59',NULL,NULL,50,'Facture FA1209038 passée à payée dans Dolibarr','2013-03-03 09:48:59','2013-03-03 08:48:59',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1209038 passée à payée dans Dolibarr\nAuteur: admin',15,'invoice'),(39,NULL,1,'2013-03-03 10:00:05','2013-03-03 10:00:05',NULL,NULL,50,'Facture FA1210039 validée dans Dolibarr','2013-03-03 10:00:05','2013-03-03 09:00:05',1,NULL,NULL,9,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1210039 validée dans Dolibarr\nAuteur: admin',16,'invoice'),(40,NULL,1,'2013-03-03 10:02:39','2013-03-03 10:02:39',NULL,NULL,50,'Facture FA1210039 passée à payée dans Dolibarr','2013-03-03 10:02:39','2013-03-03 09:02:39',1,NULL,NULL,9,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1210039 passée à payée dans Dolibarr\nAuteur: admin',16,'invoice'),(41,NULL,1,'2013-03-03 10:11:20','2013-03-03 10:11:20',NULL,NULL,50,'Facture FA1211040 validée dans Dolibarr','2013-03-03 10:11:20','2013-03-03 09:11:20',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1211040 validée dans Dolibarr\nAuteur: admin',17,'invoice'),(42,NULL,1,'2013-03-03 10:12:33','2013-03-03 10:12:33',NULL,NULL,50,'Facture FA1211040 passée à payée dans Dolibarr','2013-03-03 10:12:33','2013-03-03 09:12:33',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1211040 passée à payée dans Dolibarr\nAuteur: admin',17,'invoice'),(43,NULL,1,'2013-03-03 10:19:36','2013-03-03 10:19:36',NULL,NULL,50,'Société CLIP INDUSTRIE ajoutée dans Dolibarr','2013-03-03 10:19:36','2013-03-03 09:19:36',1,NULL,NULL,10,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société CLIP INDUSTRIE ajoutée dans Dolibarr\nAuteur: admin',10,'societe'),(44,NULL,1,'2013-03-03 10:37:29','2013-03-03 10:37:29',NULL,NULL,50,'Facture FA1211041 validée dans Dolibarr','2013-03-03 10:37:29','2013-03-03 09:37:29',1,NULL,NULL,10,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1211041 validée dans Dolibarr\nAuteur: admin',18,'invoice'),(45,NULL,1,'2013-03-03 11:11:13','2013-03-03 11:11:13',NULL,NULL,50,'Facture FA1211041 passée à payée dans Dolibarr','2013-03-03 11:11:14','2013-03-03 10:11:14',1,NULL,NULL,10,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1211041 passée à payée dans Dolibarr\nAuteur: admin',18,'invoice'),(46,NULL,1,'2013-03-03 19:26:28','2013-03-03 19:26:28',NULL,NULL,50,'Facture FA1301042 validée dans Dolibarr','2013-03-03 19:26:28','2013-03-03 18:26:28',1,NULL,NULL,10,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301042 validée dans Dolibarr\nAuteur: admin',19,'invoice'),(47,NULL,1,'2013-03-03 19:27:45','2013-03-03 19:27:45',NULL,NULL,50,'Facture FA1301042 validée dans Dolibarr','2013-03-03 19:27:45','2013-03-03 18:27:45',1,NULL,NULL,10,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301042 validée dans Dolibarr\nAuteur: admin',19,'invoice'),(48,NULL,1,'2013-03-03 19:54:52','2013-03-03 19:54:52',NULL,NULL,50,'Facture FA1301042 passée à payée dans Dolibarr','2013-03-03 19:54:52','2013-03-03 18:54:52',1,NULL,NULL,10,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301042 passée à payée dans Dolibarr\nAuteur: admin',19,'invoice'),(49,NULL,1,'2013-03-03 19:58:29','2013-03-03 19:58:29',NULL,NULL,50,'Société REPER ajoutée dans Dolibarr','2013-03-03 19:58:29','2013-03-03 18:58:29',1,NULL,NULL,11,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société REPER ajoutée dans Dolibarr\nAuteur: admin',11,'societe'),(50,NULL,1,'2013-03-03 20:00:21','2013-03-03 20:00:21',NULL,NULL,50,'Facture FA1301043 validée dans Dolibarr','2013-03-03 20:00:21','2013-03-03 19:00:21',1,NULL,NULL,11,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301043 validée dans Dolibarr\nAuteur: admin',20,'invoice'),(51,NULL,1,'2013-03-03 20:03:35','2013-03-03 20:03:35',NULL,NULL,50,'Facture FA1301044 validée dans Dolibarr','2013-03-03 20:03:35','2013-03-03 19:03:35',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301044 validée dans Dolibarr\nAuteur: admin',21,'invoice'),(52,NULL,1,'2013-03-03 20:12:06','2013-03-03 20:12:06',NULL,NULL,50,'Société NIKITA PUBLICITE ajoutée dans Dolibarr','2013-03-03 20:12:06','2013-03-03 19:12:06',1,NULL,NULL,12,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société NIKITA PUBLICITE ajoutée dans Dolibarr\nAuteur: admin',12,'societe'),(53,NULL,1,'2013-03-03 20:13:37','2013-03-03 20:13:37',NULL,NULL,50,'Facture FA1301045 validée dans Dolibarr','2013-03-03 20:13:37','2013-03-03 19:13:37',1,NULL,NULL,12,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301045 validée dans Dolibarr\nAuteur: admin',22,'invoice'),(54,NULL,1,'2013-03-03 20:15:48','2013-03-03 20:15:48',NULL,NULL,50,'Facture FA1301045 passée à payée dans Dolibarr','2013-03-03 20:15:48','2013-03-03 19:15:48',1,NULL,NULL,12,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301045 passée à payée dans Dolibarr\nAuteur: admin',22,'invoice'),(55,NULL,1,'2013-03-03 20:17:08','2013-03-03 20:17:08',NULL,NULL,50,'Facture FA1301043 passée à payée dans Dolibarr','2013-03-03 20:17:08','2013-03-03 19:17:08',1,NULL,NULL,11,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301043 passée à payée dans Dolibarr\nAuteur: admin',20,'invoice'),(56,NULL,1,'2013-03-03 20:22:34','2013-03-03 20:22:34',NULL,NULL,50,'Facture FA1205033 annulée dans Dolibarr','2013-03-03 20:22:34','2013-03-03 19:22:34',1,NULL,NULL,8,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1205033 annulée dans Dolibarr\nAuteur: admin',11,'invoice'),(57,NULL,1,'2013-03-04 18:26:23','2013-03-04 18:26:23',NULL,NULL,50,'Facture FA1301046 validée dans Dolibarr','2013-03-04 18:26:23','2013-03-04 17:26:23',1,NULL,NULL,2,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301046 validée dans Dolibarr\nAuteur: admin',23,'invoice'),(58,NULL,1,'2013-03-04 18:27:36','2013-03-04 18:27:36',NULL,NULL,50,'Facture FA1301046 passée à payée dans Dolibarr','2013-03-04 18:27:36','2013-03-04 17:27:36',1,NULL,NULL,2,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301046 passée à payée dans Dolibarr\nAuteur: admin',23,'invoice'),(59,NULL,1,'2013-03-04 18:34:27','2013-03-04 18:34:27',NULL,NULL,50,'Facture FA1301047 validée dans Dolibarr','2013-03-04 18:34:27','2013-03-04 17:34:27',1,NULL,NULL,8,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301047 validée dans Dolibarr\nAuteur: admin',24,'invoice'),(60,NULL,1,'2013-03-04 18:35:01','2013-03-04 18:35:01',NULL,NULL,50,'Facture FA1301047 passée à payée dans Dolibarr','2013-03-04 18:35:01','2013-03-04 17:35:01',1,NULL,NULL,8,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301047 passée à payée dans Dolibarr\nAuteur: admin',24,'invoice'),(61,NULL,1,'2013-03-04 18:40:54','2013-03-04 18:40:54',NULL,NULL,50,'Facture FA1301048 validée dans Dolibarr','2013-03-04 18:40:54','2013-03-04 17:40:54',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301048 validée dans Dolibarr\nAuteur: admin',25,'invoice'),(62,NULL,1,'2013-03-04 18:42:12','2013-03-04 18:42:12',NULL,NULL,50,'Facture FA1301048 passée à payée dans Dolibarr','2013-03-04 18:42:12','2013-03-04 17:42:12',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301048 passée à payée dans Dolibarr\nAuteur: admin',25,'invoice'),(63,NULL,1,'2013-03-04 18:45:11','2013-03-04 18:45:11',NULL,NULL,50,'Facture FA1302049 validée dans Dolibarr','2013-03-04 18:45:11','2013-03-04 17:45:11',1,NULL,NULL,4,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1302049 validée dans Dolibarr\nAuteur: admin',26,'invoice'),(64,NULL,1,'2013-03-04 18:47:34','2013-03-04 18:47:34',NULL,NULL,50,'Facture FA1302050 validée dans Dolibarr','2013-03-04 18:47:34','2013-03-04 17:47:34',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1302050 validée dans Dolibarr\nAuteur: admin',27,'invoice'),(65,NULL,1,'2013-03-04 18:49:56','2013-03-04 18:49:56',NULL,NULL,50,'Société BUROCAP ajoutée dans Dolibarr','2013-03-04 18:49:56','2013-03-04 17:49:56',1,NULL,NULL,28,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Société BUROCAP ajoutée dans Dolibarr\nAuteur: admin',28,'societe'),(66,NULL,1,'2013-03-04 18:55:31','2013-03-04 18:55:31',NULL,NULL,50,'Facture FA1302051 validée dans Dolibarr','2013-03-04 18:55:31','2013-03-04 17:55:31',1,NULL,NULL,28,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1302051 validée dans Dolibarr\nAuteur: admin',28,'invoice'),(67,NULL,1,'2013-03-04 19:24:07','2013-03-04 19:24:07',NULL,NULL,50,'Facture FA1301044 passée à payée dans Dolibarr','2013-03-04 19:24:07','2013-03-04 18:24:07',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1301044 passée à payée dans Dolibarr\nAuteur: admin',21,'invoice'),(68,NULL,1,'2013-03-04 19:28:03','2013-03-04 19:28:03',NULL,NULL,50,'Facture FA1302050 passée à payée dans Dolibarr','2013-03-04 19:28:03','2013-03-04 18:28:03',1,NULL,NULL,6,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1302050 passée à payée dans Dolibarr\nAuteur: admin',27,'invoice'),(69,NULL,1,'2013-03-07 19:35:00','2013-03-07 19:35:00',NULL,NULL,50,'Facture FA1302049 validée dans Dolibarr','2013-03-07 19:35:00','2013-03-07 18:35:00',1,NULL,NULL,4,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1302049 validée dans Dolibarr\nAuteur: admin',26,'invoice'),(70,NULL,1,'2013-03-08 11:34:20','2013-03-08 11:34:20',NULL,NULL,50,'Facture FA1303052 validée dans Dolibarr','2013-03-08 11:34:20','2013-03-08 10:34:20',1,NULL,NULL,11,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1303052 validée dans Dolibarr\nAuteur: admin',29,'invoice'),(71,NULL,1,'2013-03-08 11:35:53','2013-03-08 11:35:53',NULL,NULL,50,'Facture FA1303052 validée dans Dolibarr','2013-03-08 11:35:53','2013-03-08 10:35:53',1,NULL,NULL,11,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1303052 validée dans Dolibarr\nAuteur: admin',29,'invoice'),(72,NULL,1,'2013-03-08 11:49:34','2013-03-08 11:49:34',NULL,NULL,50,'Facture FA1303053 validée dans Dolibarr','2013-03-08 11:49:34','2013-03-08 10:49:34',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1303053 validée dans Dolibarr\nAuteur: admin',30,'invoice'),(73,NULL,1,'2013-03-08 11:51:38','2013-03-08 11:51:38',NULL,NULL,50,'Facture FA1303053 validée dans Dolibarr','2013-03-08 11:51:38','2013-03-08 10:51:38',1,NULL,NULL,1,NULL,0,NULL,1,0,0,1,-1,'',NULL,NULL,'Facture FA1303053 validée dans Dolibarr\nAuteur: admin',30,'invoice');

--
-- Table structure for table `llx_adherent`
--

CREATE TABLE `llx_adherent` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(30) default NULL,
  `civilite` varchar(6) default NULL,
  `nom` varchar(50) default NULL,
  `prenom` varchar(50) default NULL,
  `login` varchar(50) default NULL,
  `pass` varchar(50) default NULL,
  `fk_adherent_type` int(11) NOT NULL,
  `morphy` varchar(3) NOT NULL,
  `societe` varchar(50) default NULL,
  `fk_soc` int(11) default NULL,
  `adresse` text,
  `cp` varchar(30) default NULL,
  `ville` varchar(50) default NULL,
  `fk_departement` int(11) default NULL,
  `pays` int(11) default NULL,
  `email` varchar(255) default NULL,
  `phone` varchar(30) default NULL,
  `phone_perso` varchar(30) default NULL,
  `phone_mobile` varchar(30) default NULL,
  `naiss` date default NULL,
  `photo` varchar(255) default NULL,
  `statut` smallint(6) NOT NULL default '0',
  `public` smallint(6) NOT NULL default '0',
  `datefin` datetime default NULL,
  `note` text,
  `datevalid` datetime default NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_user_author` int(11) default NULL,
  `fk_user_mod` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_adherent_login` (`login`,`entity`),
  UNIQUE KEY `uk_adherent_fk_soc` (`fk_soc`),
  KEY `idx_adherent_fk_adherent_type` (`fk_adherent_type`),
  CONSTRAINT `adherent_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_adherent_adherent_type` FOREIGN KEY (`fk_adherent_type`) REFERENCES `llx_adherent_type` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_adherent`
--


--
-- Table structure for table `llx_adherent_extrafields`
--

CREATE TABLE `llx_adherent_extrafields` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_adherent_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_adherent_extrafields`
--


--
-- Table structure for table `llx_adherent_type`
--

CREATE TABLE `llx_adherent_type` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `statut` smallint(6) NOT NULL default '0',
  `libelle` varchar(50) NOT NULL,
  `cotisation` varchar(3) NOT NULL default 'yes',
  `vote` varchar(3) NOT NULL default 'yes',
  `note` text,
  `mail_valid` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_adherent_type_libelle` (`libelle`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_adherent_type`
--


--
-- Table structure for table `llx_bank`
--

CREATE TABLE `llx_bank` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `datev` date default NULL,
  `dateo` date default NULL,
  `amount` double(24,8) NOT NULL default '0.00000000',
  `label` varchar(255) default NULL,
  `fk_account` int(11) default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_rappro` int(11) default NULL,
  `fk_type` varchar(6) default NULL,
  `num_releve` varchar(50) default NULL,
  `num_chq` varchar(50) default NULL,
  `rappro` tinyint(4) default '0',
  `note` text,
  `fk_bordereau` int(11) default '0',
  `banque` varchar(255) default NULL,
  `emetteur` varchar(255) default NULL,
  `author` varchar(40) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_bank_datev` (`datev`),
  KEY `idx_bank_dateo` (`dateo`),
  KEY `idx_bank_fk_account` (`fk_account`),
  KEY `idx_bank_rappro` (`rappro`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_bank`
--

INSERT INTO `llx_bank` (`rowid`, `datec`, `datev`, `dateo`, `amount`, `label`, `fk_account`, `fk_user_author`, `fk_user_rappro`, `fk_type`, `num_releve`, `num_chq`, `rappro`, `note`, `fk_bordereau`, `banque`, `emetteur`, `author`) VALUES (1,'2013-02-21 16:33:56','1984-01-01','1984-01-01',0.00000000,'(Solde initial)',1,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(2,'2013-02-28 17:18:33','2012-03-02','2012-03-02',104.65000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'3000986',0,NULL,3,'Banque Courtois','Cinémathèque de Toulouse',NULL),(3,'2013-02-28 17:20:46','2012-03-13','2012-03-13',236.21000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'2924',0,NULL,4,'Crédit Agricole Midi Toulousain','FRICON GIMET',NULL),(4,'2013-02-28 17:27:36','2012-03-13','2012-03-13',299.00000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'3425406',0,NULL,4,'Crédit Mutuel','BENNES LOCATION SERVICES',NULL),(5,'2013-02-28 17:29:25','2012-03-30','2012-03-30',533.72000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'2033887',0,NULL,5,'CIC','WHYNOT',NULL),(6,'2013-03-01 08:18:33','2012-03-02','2012-03-02',472.42000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'3137587',0,NULL,3,'Crédit Mutuel','PROXIMA',NULL),(7,'2013-03-01 08:23:20','2012-03-30','2012-03-30',135.27000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'6170494',0,NULL,5,'LCL','LESER',NULL),(8,'2013-03-01 08:24:59','2012-04-27','2012-04-27',134.55000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'3169223',0,NULL,6,'Crédit Mutuel','CARAVANES 31',NULL),(9,'2013-03-01 08:45:39','2012-04-27','2012-04-27',700.00000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,NULL,0,NULL,6,NULL,'LESER',NULL),(11,'2013-03-01 08:47:40','2012-05-22','2012-05-22',1620.24000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'0837461',0,NULL,7,'LCL','LESER',NULL),(12,'2013-03-03 09:42:43','2012-08-29','2012-08-29',236.21000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'0837461',0,NULL,10,'LCL','LESER',NULL),(13,'2013-03-03 09:44:44','2012-08-16','2012-08-16',549.56000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'0776019',0,NULL,9,'CIC','WHYNOT',NULL),(14,'2013-03-03 09:45:31','2012-07-11','2012-07-11',549.56000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,NULL,0,NULL,8,NULL,'WHYNOT',NULL),(15,'2013-03-03 09:46:54','2012-09-17','2012-09-17',400.36000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'2496030',0,NULL,11,'LBP','CARAVANES 31',NULL),(16,'2013-03-03 09:48:01','2012-10-19','2012-10-19',334.88000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'2114747',0,NULL,13,'CIC','WHYNOT',NULL),(17,'2013-03-03 09:48:59','2012-10-05','2012-10-05',251.16000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,NULL,0,NULL,12,NULL,'LESER',NULL),(18,'2013-03-03 10:02:39','2012-11-29','2012-11-29',60.00000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'78',0,NULL,14,'CAMT','Jean Jacques VERCHERE',NULL),(19,'2013-03-03 10:12:33','2013-01-11','2013-01-11',71.76000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'200',0,NULL,15,'BP','WHYNOT',NULL),(20,'2013-03-03 11:10:34','2012-12-12','2012-12-12',2221.25000000,'(CustomerInvoicePayment)',1,1,NULL,'VIR',NULL,NULL,0,NULL,0,'BNP','CLIP INDUSTRIE',NULL),(21,'2013-03-03 19:54:52','2013-01-28','2013-01-28',1360.54000000,'(CustomerInvoicePayment)',1,1,NULL,'VIR',NULL,NULL,0,NULL,0,NULL,'CLIP INDUSTRIE',NULL),(22,'2013-03-03 20:15:48','2013-02-11','2013-02-11',472.42000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'1101099',0,NULL,16,'Banque Courtois','NIKITA PUBLICITE',NULL),(23,'2013-03-03 20:17:08','2013-02-11','2013-02-11',179.40000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'34',0,NULL,16,'Banque Populaire','REPER',NULL),(24,'2013-03-04 18:27:36','2013-02-06','2013-02-06',269.10000000,'(CustomerInvoicePayment)',1,1,NULL,'VIR',NULL,NULL,0,NULL,0,NULL,'Cinémathèque de Toulouse',NULL),(25,'2013-03-04 18:35:01','2013-01-31','2013-01-31',239.19000000,'(CustomerInvoicePayment)',1,1,NULL,'LIQ',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(26,'2013-03-04 18:42:12','2013-02-10','2013-02-10',191.36000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'6170544',0,NULL,16,'LCL','LESER',NULL),(27,'2013-03-04 19:24:07','2013-02-19','2013-02-19',77.74000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'235',0,NULL,17,'BP','WHYNOT',NULL),(28,'2013-03-04 19:28:03','2013-02-18','2013-02-18',191.36000000,'(CustomerInvoicePayment)',1,1,NULL,'CHQ',NULL,'6170552',0,NULL,17,'LCL','LESER',NULL);

--
-- Table structure for table `llx_bank_categ`
--

CREATE TABLE `llx_bank_categ` (
  `rowid` int(11) NOT NULL auto_increment,
  `label` varchar(255) default NULL,
  `entity` int(11) NOT NULL default '1',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_bank_categ`
--


--
-- Table structure for table `llx_bank_class`
--

CREATE TABLE `llx_bank_class` (
  `lineid` int(11) NOT NULL,
  `fk_categ` int(11) NOT NULL,
  UNIQUE KEY `uk_bank_class_lineid` (`lineid`,`fk_categ`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_bank_class`
--


--
-- Table structure for table `llx_bank_url`
--

CREATE TABLE `llx_bank_url` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_bank` int(11) default NULL,
  `url_id` int(11) default NULL,
  `url` varchar(255) default NULL,
  `label` varchar(255) default NULL,
  `type` varchar(20) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_bank_url` (`fk_bank`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_bank_url`
--

INSERT INTO `llx_bank_url` (`rowid`, `fk_bank`, `url_id`, `url`, `label`, `type`) VALUES (1,2,1,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(2,2,2,'/dolibarr/comm/fiche.php?socid=','Cinémathèque de Toulouse','company'),(3,3,2,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(4,3,4,'/dolibarr/comm/fiche.php?socid=','FRICON GIMET','company'),(5,4,3,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(6,4,5,'/dolibarr/comm/fiche.php?socid=','BENNES LOCATION SERVICES','company'),(7,5,4,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(8,5,1,'/dolibarr/comm/fiche.php?socid=','WHYNOT','company'),(9,6,5,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(10,6,3,'/dolibarr/comm/fiche.php?socid=','PROXIMA','company'),(11,7,6,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(12,7,6,'/dolibarr/comm/fiche.php?socid=','LESER','company'),(13,8,7,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(14,8,7,'/dolibarr/comm/fiche.php?socid=','CARAVANES 31','company'),(15,9,8,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(16,9,6,'/dolibarr/comm/fiche.php?socid=','LESER','company'),(19,11,10,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(20,11,6,'/dolibarr/comm/fiche.php?socid=','LESER','company'),(21,12,11,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(22,12,6,'/dolibarr/comm/fiche.php?socid=','LESER','company'),(23,13,12,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(24,13,1,'/dolibarr/comm/fiche.php?socid=','WHYNOT','company'),(25,14,13,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(26,14,1,'/dolibarr/comm/fiche.php?socid=','WHYNOT','company'),(27,15,14,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(28,15,7,'/dolibarr/comm/fiche.php?socid=','CARAVANES 31','company'),(29,16,15,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(30,16,1,'/dolibarr/comm/fiche.php?socid=','WHYNOT','company'),(31,17,16,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(32,17,6,'/dolibarr/comm/fiche.php?socid=','LESER','company'),(33,18,17,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(34,18,9,'/dolibarr/comm/fiche.php?socid=','Jean Jacques VERCHERE','company'),(35,19,18,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(36,19,1,'/dolibarr/comm/fiche.php?socid=','WHYNOT','company'),(37,20,19,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(38,20,10,'/dolibarr/comm/fiche.php?socid=','CLIP INDUSTRIE','company'),(39,21,20,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(40,21,10,'/dolibarr/comm/fiche.php?socid=','CLIP INDUSTRIE','company'),(41,22,21,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(42,22,12,'/dolibarr/comm/fiche.php?socid=','NIKITA PUBLICITE','company'),(43,23,22,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(44,23,11,'/dolibarr/comm/fiche.php?socid=','REPER','company'),(45,24,23,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(46,24,2,'/dolibarr/comm/fiche.php?socid=','Cinémathèque de Toulouse','company'),(47,25,24,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(48,25,8,'/dolibarr/comm/fiche.php?socid=','LUCIEN OPTICIEN','company'),(49,26,25,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(50,26,6,'/dolibarr/comm/fiche.php?socid=','LESER','company'),(51,27,26,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(52,27,1,'/dolibarr/comm/fiche.php?socid=','WHYNOT','company'),(53,28,27,'/dolibarr/compta/paiement/fiche.php?id=','(paiement)','payment'),(54,28,6,'/dolibarr/comm/fiche.php?socid=','LESER','company');

--
-- Table structure for table `llx_bookmark`
--

CREATE TABLE `llx_bookmark` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) default NULL,
  `fk_user` int(11) NOT NULL,
  `dateb` datetime default NULL,
  `url` varchar(128) NOT NULL,
  `target` varchar(16) default NULL,
  `title` varchar(64) default NULL,
  `favicon` varchar(24) default NULL,
  `position` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_bookmark_url` (`fk_user`,`url`),
  UNIQUE KEY `uk_bookmark_title` (`fk_user`,`title`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_bookmark`
--


--
-- Table structure for table `llx_bordereau_cheque`
--

CREATE TABLE `llx_bordereau_cheque` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime NOT NULL,
  `date_bordereau` date default NULL,
  `number` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `amount` double(24,8) NOT NULL,
  `nbcheque` smallint(6) NOT NULL,
  `fk_bank_account` int(11) default NULL,
  `fk_user_author` int(11) default NULL,
  `note` text,
  `statut` smallint(6) NOT NULL default '0',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_bordereau_cheque` (`number`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_bordereau_cheque`
--

INSERT INTO `llx_bordereau_cheque` (`rowid`, `datec`, `date_bordereau`, `number`, `entity`, `amount`, `nbcheque`, `fk_bank_account`, `fk_user_author`, `note`, `statut`) VALUES (3,'2013-03-06 11:36:39','2013-03-06','1',1,577.07000000,2,1,1,NULL,1),(4,'2013-03-06 11:37:55','2013-03-06','2',1,535.21000000,2,1,1,NULL,1),(5,'2013-03-06 11:39:10','2013-03-06','3',1,668.99000000,2,1,1,NULL,1),(6,'2013-03-06 11:40:10','2013-03-06','4',1,834.55000000,2,1,1,NULL,1),(7,'2013-03-06 11:41:31','2013-03-06','5',1,1620.24000000,1,1,1,NULL,1),(8,'2013-03-06 11:42:26','2013-03-06','6',1,549.56000000,1,1,1,NULL,1),(9,'2013-03-06 11:43:12','2013-03-06','7',1,549.56000000,1,1,1,NULL,1),(10,'2013-03-06 11:43:55','2013-03-06','8',1,236.21000000,1,1,1,NULL,1),(11,'2013-03-06 11:44:36','2013-03-06','9',1,400.36000000,1,1,1,NULL,1),(12,'2013-03-06 11:45:17','2013-03-06','10',1,251.16000000,1,1,1,NULL,1),(13,'2013-03-06 11:46:08','2013-03-06','11',1,334.88000000,1,1,1,NULL,1),(14,'2013-03-06 11:46:55','2013-03-06','12',1,60.00000000,1,1,1,NULL,1),(15,'2013-03-06 11:47:47','2013-03-06','13',1,71.76000000,1,1,1,NULL,1),(16,'2013-03-06 11:49:11','2013-03-06','14',1,843.18000000,3,1,1,NULL,1),(17,'2013-03-06 11:49:50','2013-03-06','15',1,269.10000000,2,1,1,NULL,1);

--
-- Table structure for table `llx_boxes`
--

CREATE TABLE `llx_boxes` (
  `rowid` int(11) NOT NULL auto_increment,
  `box_id` int(11) NOT NULL,
  `position` smallint(6) NOT NULL,
  `box_order` varchar(3) NOT NULL,
  `fk_user` int(11) NOT NULL default '0',
  `maxline` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_boxes` (`box_id`,`position`,`fk_user`),
  KEY `idx_boxes_boxid` (`box_id`),
  KEY `idx_boxes_fk_user` (`fk_user`),
  CONSTRAINT `fk_boxes_box_id` FOREIGN KEY (`box_id`) REFERENCES `llx_boxes_def` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_boxes`
--

INSERT INTO `llx_boxes` (`rowid`, `box_id`, `position`, `box_order`, `fk_user`, `maxline`) VALUES (1,1,0,'A01',0,NULL),(2,2,0,'B12',0,NULL),(3,3,0,'A11',0,NULL),(4,4,0,'B10',0,NULL),(6,6,0,'A09',0,NULL),(7,7,0,'B08',0,NULL),(8,8,0,'A07',0,NULL),(9,9,0,'B06',0,NULL),(10,10,0,'A05',0,NULL),(11,11,0,'B04',0,NULL),(12,12,0,'A03',0,NULL),(13,13,0,'B02',0,NULL),(14,14,0,'A13',0,NULL),(15,15,0,'0',0,NULL),(16,16,0,'0',0,NULL),(17,17,0,'0',0,NULL);

--
-- Table structure for table `llx_boxes_def`
--

CREATE TABLE `llx_boxes_def` (
  `rowid` int(11) NOT NULL auto_increment,
  `file` varchar(200) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `note` varchar(130) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_boxes_def` (`file`,`entity`,`note`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_boxes_def`
--

INSERT INTO `llx_boxes_def` (`rowid`, `file`, `entity`, `tms`, `note`) VALUES (1,'box_clients.php',1,'2013-01-29 16:27:38',NULL),(2,'box_prospect.php',1,'2013-01-29 16:27:38',NULL),(3,'box_contacts.php',1,'2013-01-29 16:27:38',NULL),(4,'box_propales.php',1,'2013-01-29 16:27:44',NULL),(6,'box_contracts.php',1,'2013-01-29 16:27:52',NULL),(7,'box_services_expired.php',1,'2013-01-29 16:27:52',NULL),(8,'box_services_contracts.php',1,'2013-01-29 16:27:52',NULL),(9,'box_factures_imp.php',1,'2013-01-29 16:28:19',NULL),(10,'box_factures.php',1,'2013-01-29 16:28:19',NULL),(11,'box_comptes.php',1,'2013-01-29 16:28:19',NULL),(12,'box_actions.php',1,'2013-01-29 16:29:06',NULL),(13,'box_commandes.php',1,'2013-01-29 20:48:43',NULL),(14,'box_produits.php',1,'2013-01-29 20:49:12',NULL),(15,'box_fournisseurs.php',1,'2013-03-07 11:57:57',NULL),(16,'box_factures_fourn_imp.php',1,'2013-03-07 11:57:57',NULL),(17,'box_factures_fourn.php',1,'2013-03-07 11:57:57',NULL);

--
-- Table structure for table `llx_c_action_trigger`
--

CREATE TABLE `llx_c_action_trigger` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(32) NOT NULL,
  `label` varchar(128) NOT NULL,
  `description` varchar(255) default NULL,
  `elementtype` varchar(16) NOT NULL,
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_action_trigger_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_action_trigger`
--

INSERT INTO `llx_c_action_trigger` (`rowid`, `code`, `label`, `description`, `elementtype`, `rang`) VALUES (1,'FICHEINTER_VALIDATE','Intervention validated','Executed when a intervention is validated','ficheinter',18),(2,'BILL_VALIDATE','Customer invoice validated','Executed when a customer invoice is approved','facture',6),(3,'ORDER_SUPPLIER_APPROVE','Supplier order request approved','Executed when a supplier order is approved','order_supplier',11),(4,'ORDER_SUPPLIER_REFUSE','Supplier order request refused','Executed when a supplier order is refused','order_supplier',12),(5,'ORDER_VALIDATE','Customer order validate','Executed when a customer order is validated','commande',4),(6,'PROPAL_VALIDATE','Customer proposal validated','Executed when a commercial proposal is validated','propal',2),(7,'WITHDRAW_TRANSMIT','Withdraw command transmitted','Executed when a withdrawal command is transmited','withdraw',25),(8,'WITHDRAW_CREDIT','Withdraw credited','Executed when a withdrawal is credited','withdraw',26),(9,'WITHDRAW_EMIT','Withdraw emit','Executed when a withdrawal is emited','withdraw',27),(10,'COMPANY_CREATE','Third party created','Executed when a third party is created','societe',1),(11,'CONTRACT_VALIDATE','Contract validated','Executed when a contract is validated','contrat',17),(12,'PROPAL_SENTBYMAIL','Commercial proposal sent by mail','Executed when a commercial proposal is sent by mail','propal',3),(13,'ORDER_SENTBYMAIL','Customer order sent by mail','Executed when a customer order is sent by mail ','commande',5),(14,'BILL_PAYED','Customer invoice payed','Executed when a customer invoice is payed','facture',7),(15,'BILL_CANCEL','Customer invoice canceled','Executed when a customer invoice is conceled','facture',8),(16,'BILL_SENTBYMAIL','Customer invoice sent by mail','Executed when a customer invoice is sent by mail','facture',9),(17,'ORDER_SUPPLIER_VALIDATE','Supplier order validated','Executed when a supplier order is validated','order_supplier',10),(18,'ORDER_SUPPLIER_SENTBYMAIL','Supplier order sent by mail','Executed when a supplier order is sent by mail','order_supplier',13),(19,'BILL_SUPPLIER_VALIDATE','Supplier invoice validated','Executed when a supplier invoice is validated','invoice_supplier',14),(20,'BILL_SUPPLIER_PAYED','Supplier invoice payed','Executed when a supplier invoice is payed','invoice_supplier',15),(21,'BILL_SUPPLIER_SENTBYMAIL','Supplier invoice sent by mail','Executed when a supplier invoice is sent by mail','invoice_supplier',16),(22,'SHIPPING_VALIDATE','Shipping validated','Executed when a shipping is validated','shipping',19),(23,'SHIPPING_SENTBYMAIL','Shipping sent by mail','Executed when a shipping is sent by mail','shipping',20),(24,'MEMBER_VALIDATE','Member validated','Executed when a member is validated','member',21),(25,'MEMBER_SUBSCRIPTION','Member subscribed','Executed when a member is subscribed','member',22),(26,'MEMBER_RESILIATE','Member resiliated','Executed when a member is resiliated','member',23),(27,'MEMBER_DELETE','Member deleted','Executed when a member is deleted','member',24);

--
-- Table structure for table `llx_c_actioncomm`
--

CREATE TABLE `llx_c_actioncomm` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `type` varchar(10) NOT NULL default 'system',
  `libelle` varchar(48) NOT NULL,
  `module` varchar(16) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `todo` tinyint(4) default NULL,
  `position` int(11) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_actioncomm`
--

INSERT INTO `llx_c_actioncomm` (`id`, `code`, `type`, `libelle`, `module`, `active`, `todo`, `position`) VALUES (1,'AC_TEL','system','Phone call',NULL,1,NULL,2),(2,'AC_FAX','system','Send Fax',NULL,1,NULL,3),(3,'AC_PROP','system','Send commercial proposal by email','propal',1,NULL,10),(4,'AC_EMAIL','system','Send Email',NULL,1,NULL,4),(5,'AC_RDV','system','Rendez-vous',NULL,1,NULL,1),(8,'AC_COM','system','Send customer order by email','order',1,NULL,8),(9,'AC_FAC','system','Send customer invoice by email','invoice',1,NULL,6),(10,'AC_SHIP','system','Send shipping by email','shipping',1,NULL,11),(30,'AC_SUP_ORD','system','Send supplier order by email','order_supplier',1,NULL,9),(31,'AC_SUP_INV','system','Send supplier invoice by email','invoice_supplier',1,NULL,7),(50,'AC_OTH','system','Other',NULL,1,NULL,5);

--
-- Table structure for table `llx_c_availability`
--

CREATE TABLE `llx_c_availability` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(30) NOT NULL,
  `label` varchar(60) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_availability` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_availability`
--

INSERT INTO `llx_c_availability` (`rowid`, `code`, `label`, `active`) VALUES (1,'AV_NOW','Immediate',1),(2,'AV_1W','1 week',1),(3,'AV_2W','2 weeks',1),(4,'AV_3W','3 weeks',1);

--
-- Table structure for table `llx_c_barcode_type`
--

CREATE TABLE `llx_c_barcode_type` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `libelle` varchar(50) NOT NULL,
  `coder` varchar(16) NOT NULL,
  `example` varchar(16) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_barcode_type` (`code`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_barcode_type`
--


--
-- Table structure for table `llx_c_chargesociales`
--

CREATE TABLE `llx_c_chargesociales` (
  `id` int(11) NOT NULL auto_increment,
  `libelle` varchar(80) default NULL,
  `deductible` smallint(6) NOT NULL default '0',
  `active` tinyint(4) NOT NULL default '1',
  `code` varchar(12) NOT NULL,
  `fk_pays` int(11) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=231 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_chargesociales`
--

INSERT INTO `llx_c_chargesociales` (`id`, `libelle`, `deductible`, `active`, `code`, `fk_pays`, `module`) VALUES (1,'Allocations familiales',1,1,'TAXFAM',1,NULL),(2,'CSG Deductible',1,1,'TAXCSGD',1,NULL),(3,'CSG/CRDS NON Deductible',0,1,'TAXCSGND',1,NULL),(10,'Taxe apprentissage',0,1,'TAXAPP',1,NULL),(11,'Taxe professionnelle',0,1,'TAXPRO',1,NULL),(12,'Cotisation fonciere des entreprises',0,1,'TAXCFE',1,NULL),(13,'Cotisation sur la valeur ajoutee des entreprises',0,1,'TAXCVAE',1,NULL),(20,'Impots locaux/fonciers',0,1,'TAXFON',1,NULL),(25,'Impots revenus',0,1,'TAXREV',1,NULL),(30,'Assurance Sante',0,1,'TAXSECU',1,NULL),(40,'Mutuelle',0,1,'TAXMUT',1,NULL),(50,'Assurance vieillesse',0,1,'TAXRET',1,NULL),(60,'Assurance Chomage',0,1,'TAXCHOM',1,NULL),(201,'ONSS',1,1,'TAXBEONSS',2,NULL),(210,'Precompte professionnel',1,1,'TAXBEPREPRO',2,NULL),(220,'Prime existence',1,1,'TAXBEPRIEXI',2,NULL),(230,'Precompte immobilier',1,1,'TAXBEPREIMMO',2,NULL);

--
-- Table structure for table `llx_c_civilite`
--

CREATE TABLE `llx_c_civilite` (
  `rowid` int(11) NOT NULL,
  `code` varchar(6) NOT NULL,
  `civilite` varchar(50) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_civilite`
--

INSERT INTO `llx_c_civilite` (`rowid`, `code`, `civilite`, `active`, `module`) VALUES (1,'MME','Madame',1,NULL),(3,'MR','Monsieur',1,NULL),(5,'MLE','Mademoiselle',1,NULL),(7,'MTRE','Maître',1,NULL),(8,'DR','Docteur',1,NULL);

--
-- Table structure for table `llx_c_currencies`
--

CREATE TABLE `llx_c_currencies` (
  `code_iso` varchar(3) NOT NULL,
  `label` varchar(64) NOT NULL,
  `unicode` varchar(32) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`code_iso`),
  UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_currencies`
--

INSERT INTO `llx_c_currencies` (`code_iso`, `label`, `unicode`, `active`) VALUES ('AED','United Arab Emirates Dirham',NULL,1),('AFN','Afghanistan Afghani','[1547]',1),('ALL','Albania Lek','[76,101,107]',1),('ANG','Netherlands Antilles Guilder','[402]',1),('ARP','Pesos argentins',NULL,0),('ARS','Argentino Peso','[36]',1),('ATS','Shiliing autrichiens',NULL,0),('AUD','Australia Dollar','[36]',1),('AWG','Aruba Guilder','[402]',1),('AZN','Azerbaijan New Manat','[1084,1072,1085]',1),('BAM','Bosnia and Herzegovina Convertible Marka','[75,77]',1),('BBD','Barbados Dollar','[36]',1),('BEF','Francs belges',NULL,0),('BGN','Bulgaria Lev','[1083,1074]',1),('BMD','Bermuda Dollar','[36]',1),('BND','Brunei Darussalam Dollar','[36]',1),('BOB','Bolivia Boliviano','[36,98]',1),('BRL','Brazil Real','[82,36]',1),('BSD','Bahamas Dollar','[36]',1),('BWP','Botswana Pula','[80]',1),('BYR','Belarus Ruble','[112,46]',1),('BZD','Belize Dollar','[66,90,36]',1),('CAD','Canada Dollar','[36]',1),('CHF','Switzerland Franc','[67,72,70]',1),('CLP','Chile Peso','[36]',1),('CNY','China Yuan Renminbi','[165]',1),('COP','Colombia Peso','[36]',1),('CRC','Costa Rica Colon','[8353]',1),('CUP','Cuba Peso','[8369]',1),('CZK','Czech Republic Koruna','[75,269]',1),('DEM','Deutsch mark',NULL,0),('DKK','Denmark Krone','[107,114]',1),('DOP','Dominican Republic Peso','[82,68,36]',1),('DZD','Algeria Dinar',NULL,1),('EEK','Estonia Kroon','[107,114]',1),('EGP','Egypt Pound','[163]',1),('ESP','Pesete',NULL,0),('EUR','Euro Member Countries','[8364]',1),('FIM','Mark finlandais',NULL,0),('FJD','Fiji Dollar','[36]',1),('FKP','Falkland Islands (Malvinas) Pound','[163]',1),('FRF','Francs francais',NULL,0),('GBP','United Kingdom Pound','[163]',1),('GGP','Guernsey Pound','[163]',1),('GHC','Ghana Cedis','[162]',1),('GIP','Gibraltar Pound','[163]',1),('GRD','Drachme (grece)',NULL,0),('GTQ','Guatemala Quetzal','[81]',1),('GYD','Guyana Dollar','[36]',1),('HKD','Hong Kong Dollar','[36]',1),('HNL','Honduras Lempira','[76]',1),('HRK','Croatia Kuna','[107,110]',1),('HUF','Hungary Forint','[70,116]',1),('IDR','Indonesia Rupiah','[82,112]',1),('IEP','Livres irlandaises',NULL,0),('ILS','Israel Shekel','[8362]',1),('IMP','Isle of Man Pound','[163]',1),('INR','India Rupee',NULL,1),('IRR','Iran Rial','[65020]',1),('ISK','Iceland Krona','[107,114]',1),('ITL','Lires',NULL,0),('JEP','Jersey Pound','[163]',1),('JMD','Jamaica Dollar','[74,36]',1),('JPY','Japan Yen','[165]',1),('KGS','Kyrgyzstan Som','[1083,1074]',1),('KHR','Cambodia Riel','[6107]',1),('KPW','Korea (North) Won','[8361]',1),('KRW','Korea (South) Won','[8361]',1),('KYD','Cayman Islands Dollar','[36]',1),('KZT','Kazakhstan Tenge','[1083,1074]',1),('LAK','Laos Kip','[8365]',1),('LBP','Lebanon Pound','[163]',1),('LKR','Sri Lanka Rupee','[8360]',1),('LRD','Liberia Dollar','[36]',1),('LTL','Lithuania Litas','[76,116]',1),('LUF','Francs luxembourgeois',NULL,0),('LVL','Latvia Lat','[76,115]',1),('MAD','Morocco Dirham',NULL,1),('MKD','Macedonia Denar','[1076,1077,1085]',1),('MNT','Mongolia Tughrik','[8366]',1),('MRO','Mauritania Ouguiya',NULL,1),('MUR','Mauritius Rupee','[8360]',1),('MXN','Mexico Peso','[36]',1),('MXP','Pesos Mexicans',NULL,0),('MYR','Malaysia Ringgit','[82,77]',1),('MZN','Mozambique Metical','[77,84]',1),('NAD','Namibia Dollar','[36]',1),('NGN','Nigeria Naira','[8358]',1),('NIO','Nicaragua Cordoba','[67,36]',1),('NLG','Florins',NULL,0),('NOK','Norway Krone','[107,114]',1),('NPR','Nepal Rupee','[8360]',1),('NZD','New Zealand Dollar','[36]',1),('OMR','Oman Rial','[65020]',1),('PAB','Panama Balboa','[66,47,46]',1),('PEN','Peru Nuevo Sol','[83,47,46]',1),('PHP','Philippines Peso','[8369]',1),('PKR','Pakistan Rupee','[8360]',1),('PLN','Poland Zloty','[122,322]',1),('PTE','Escudos',NULL,0),('PYG','Paraguay Guarani','[71,115]',1),('QAR','Qatar Riyal','[65020]',1),('RON','Romania New Leu','[108,101,105]',1),('RSD','Serbia Dinar','[1044,1080,1085,46]',1),('RUB','Russia Ruble','[1088,1091,1073]',1),('SAR','Saudi Arabia Riyal','[65020]',1),('SBD','Solomon Islands Dollar','[36]',1),('SCR','Seychelles Rupee','[8360]',1),('SEK','Sweden Krona','[107,114]',1),('SGD','Singapore Dollar','[36]',1),('SHP','Saint Helena Pound','[163]',1),('SKK','Couronnes slovaques',NULL,0),('SOS','Somalia Shilling','[83]',1),('SRD','Suriname Dollar','[36]',1),('SUR','Rouble',NULL,0),('SVC','El Salvador Colon','[36]',1),('SYP','Syria Pound','[163]',1),('THB','Thailand Baht','[3647]',1),('TND','Tunisia Dinar',NULL,1),('TRL','Turkey Lira','[84,76]',1),('TRY','Turkey Lira','[8356]',1),('TTD','Trinidad and Tobago Dollar','[84,84,36]',1),('TVD','Tuvalu Dollar','[36]',1),('TWD','Taiwan New Dollar','[78,84,36]',1),('UAH','Ukraine Hryvna','[8372]',1),('USD','United States Dollar','[36]',1),('UYU','Uruguay Peso','[36,85]',1),('UZS','Uzbekistan Som','[1083,1074]',1),('VEF','Venezuela Bolivar Fuerte','[66,115]',1),('VND','Viet Nam Dong','[8363]',1),('XAF','Communaute Financiere Africaine (BEAC) CFA Franc',NULL,1),('XCD','East Caribbean Dollar','[36]',1),('XEU','Ecus',NULL,0),('XOF','Communaute Financiere Africaine (BCEAO) Franc',NULL,1),('YER','Yemen Rial','[65020]',1),('ZAR','South Africa Rand','[82]',1),('ZWD','Zimbabwe Dollar','[90,36]',1);

--
-- Table structure for table `llx_c_departements`
--

CREATE TABLE `llx_c_departements` (
  `rowid` int(11) NOT NULL auto_increment,
  `code_departement` varchar(6) NOT NULL,
  `fk_region` int(11) default NULL,
  `cheflieu` varchar(50) default NULL,
  `tncc` int(11) default NULL,
  `ncc` varchar(50) default NULL,
  `nom` varchar(50) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
  KEY `idx_departements_fk_region` (`fk_region`)
) ENGINE=InnoDB AUTO_INCREMENT=651 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_departements`
--

INSERT INTO `llx_c_departements` (`rowid`, `code_departement`, `fk_region`, `cheflieu`, `tncc`, `ncc`, `nom`, `active`) VALUES (1,'0',0,'0',0,'-','-',1),(2,'01',82,'01053',5,'AIN','Ain',1),(3,'02',22,'02408',5,'AISNE','Aisne',1),(4,'03',83,'03190',5,'ALLIER','Allier',1),(5,'04',93,'04070',4,'ALPES-DE-HAUTE-PROVENCE','Alpes-de-Haute-Provence',1),(6,'05',93,'05061',4,'HAUTES-ALPES','Hautes-Alpes',1),(7,'06',93,'06088',4,'ALPES-MARITIMES','Alpes-Maritimes',1),(8,'07',82,'07186',5,'ARDECHE','Ardèche',1),(9,'08',21,'08105',4,'ARDENNES','Ardennes',1),(10,'09',73,'09122',5,'ARIEGE','Ariège',1),(11,'10',21,'10387',5,'AUBE','Aube',1),(12,'11',91,'11069',5,'AUDE','Aude',1),(13,'12',73,'12202',5,'AVEYRON','Aveyron',1),(14,'13',93,'13055',4,'BOUCHES-DU-RHONE','Bouches-du-Rhône',1),(15,'14',25,'14118',2,'CALVADOS','Calvados',1),(16,'15',83,'15014',2,'CANTAL','Cantal',1),(17,'16',54,'16015',3,'CHARENTE','Charente',1),(18,'17',54,'17300',3,'CHARENTE-MARITIME','Charente-Maritime',1),(19,'18',24,'18033',2,'CHER','Cher',1),(20,'19',74,'19272',3,'CORREZE','Corrèze',1),(21,'2A',94,'2A004',3,'CORSE-DU-SUD','Corse-du-Sud',1),(22,'2B',94,'2B033',3,'HAUTE-CORSE','Haute-Corse',1),(23,'21',26,'21231',3,'COTE-D OR','Côte-d Or',1),(24,'22',53,'22278',4,'COTES-D ARMOR','Côtes-d Armor',1),(25,'23',74,'23096',3,'CREUSE','Creuse',1),(26,'24',72,'24322',3,'DORDOGNE','Dordogne',1),(27,'25',43,'25056',2,'DOUBS','Doubs',1),(28,'26',82,'26362',3,'DROME','Drôme',1),(29,'27',23,'27229',5,'EURE','Eure',1),(30,'28',24,'28085',1,'EURE-ET-LOIR','Eure-et-Loir',1),(31,'29',53,'29232',2,'FINISTERE','Finistère',1),(32,'30',91,'30189',2,'GARD','Gard',1),(33,'31',73,'31555',3,'HAUTE-GARONNE','Haute-Garonne',1),(34,'32',73,'32013',2,'GERS','Gers',1),(35,'33',72,'33063',3,'GIRONDE','Gironde',1),(36,'34',91,'34172',5,'HERAULT','Hérault',1),(37,'35',53,'35238',1,'ILLE-ET-VILAINE','Ille-et-Vilaine',1),(38,'36',24,'36044',5,'INDRE','Indre',1),(39,'37',24,'37261',1,'INDRE-ET-LOIRE','Indre-et-Loire',1),(40,'38',82,'38185',5,'ISERE','Isère',1),(41,'39',43,'39300',2,'JURA','Jura',1),(42,'40',72,'40192',4,'LANDES','Landes',1),(43,'41',24,'41018',0,'LOIR-ET-CHER','Loir-et-Cher',1),(44,'42',82,'42218',3,'LOIRE','Loire',1),(45,'43',83,'43157',3,'HAUTE-LOIRE','Haute-Loire',1),(46,'44',52,'44109',3,'LOIRE-ATLANTIQUE','Loire-Atlantique',1),(47,'45',24,'45234',2,'LOIRET','Loiret',1),(48,'46',73,'46042',2,'LOT','Lot',1),(49,'47',72,'47001',0,'LOT-ET-GARONNE','Lot-et-Garonne',1),(50,'48',91,'48095',3,'LOZERE','Lozère',1),(51,'49',52,'49007',0,'MAINE-ET-LOIRE','Maine-et-Loire',1),(52,'50',25,'50502',3,'MANCHE','Manche',1),(53,'51',21,'51108',3,'MARNE','Marne',1),(54,'52',21,'52121',3,'HAUTE-MARNE','Haute-Marne',1),(55,'53',52,'53130',3,'MAYENNE','Mayenne',1),(56,'54',41,'54395',0,'MEURTHE-ET-MOSELLE','Meurthe-et-Moselle',1),(57,'55',41,'55029',3,'MEUSE','Meuse',1),(58,'56',53,'56260',2,'MORBIHAN','Morbihan',1),(59,'57',41,'57463',3,'MOSELLE','Moselle',1),(60,'58',26,'58194',3,'NIEVRE','Nièvre',1),(61,'59',31,'59350',2,'NORD','Nord',1),(62,'60',22,'60057',5,'OISE','Oise',1),(63,'61',25,'61001',5,'ORNE','Orne',1),(64,'62',31,'62041',2,'PAS-DE-CALAIS','Pas-de-Calais',1),(65,'63',83,'63113',2,'PUY-DE-DOME','Puy-de-Dôme',1),(66,'64',72,'64445',4,'PYRENEES-ATLANTIQUES','Pyrénées-Atlantiques',1),(67,'65',73,'65440',4,'HAUTES-PYRENEES','Hautes-Pyrénées',1),(68,'66',91,'66136',4,'PYRENEES-ORIENTALES','Pyrénées-Orientales',1),(69,'67',42,'67482',2,'BAS-RHIN','Bas-Rhin',1),(70,'68',42,'68066',2,'HAUT-RHIN','Haut-Rhin',1),(71,'69',82,'69123',2,'RHONE','Rhône',1),(72,'70',43,'70550',3,'HAUTE-SAONE','Haute-Saône',1),(73,'71',26,'71270',0,'SAONE-ET-LOIRE','Saône-et-Loire',1),(74,'72',52,'72181',3,'SARTHE','Sarthe',1),(75,'73',82,'73065',3,'SAVOIE','Savoie',1),(76,'74',82,'74010',3,'HAUTE-SAVOIE','Haute-Savoie',1),(77,'75',11,'75056',0,'PARIS','Paris',1),(78,'76',23,'76540',3,'SEINE-MARITIME','Seine-Maritime',1),(79,'77',11,'77288',0,'SEINE-ET-MARNE','Seine-et-Marne',1),(80,'78',11,'78646',4,'YVELINES','Yvelines',1),(81,'79',54,'79191',4,'DEUX-SEVRES','Deux-Sèvres',1),(82,'80',22,'80021',3,'SOMME','Somme',1),(83,'81',73,'81004',2,'TARN','Tarn',1),(84,'82',73,'82121',0,'TARN-ET-GARONNE','Tarn-et-Garonne',1),(85,'83',93,'83137',2,'VAR','Var',1),(86,'84',93,'84007',0,'VAUCLUSE','Vaucluse',1),(87,'85',52,'85191',3,'VENDEE','Vendée',1),(88,'86',54,'86194',3,'VIENNE','Vienne',1),(89,'87',74,'87085',3,'HAUTE-VIENNE','Haute-Vienne',1),(90,'88',41,'88160',4,'VOSGES','Vosges',1),(91,'89',26,'89024',5,'YONNE','Yonne',1),(92,'90',43,'90010',0,'TERRITOIRE DE BELFORT','Territoire de Belfort',1),(93,'91',11,'91228',5,'ESSONNE','Essonne',1),(94,'92',11,'92050',4,'HAUTS-DE-SEINE','Hauts-de-Seine',1),(95,'93',11,'93008',3,'SEINE-SAINT-DENIS','Seine-Saint-Denis',1),(96,'94',11,'94028',2,'VAL-DE-MARNE','Val-de-Marne',1),(97,'95',11,'95500',2,'VAL-D OISE','Val-d Oise',1),(98,'971',1,'97105',3,'GUADELOUPE','Guadeloupe',1),(99,'972',2,'97209',3,'MARTINIQUE','Martinique',1),(100,'973',3,'97302',3,'GUYANE','Guyane',1),(101,'974',4,'97411',3,'REUNION','Réunion',1),(102,'01',201,'',1,'ANVERS','Anvers',1),(103,'02',203,'',3,'BRUXELLES-CAPITALE','Bruxelles-Capitale',1),(104,'03',202,'',2,'BRABANT-WALLON','Brabant-Wallon',1),(105,'04',201,'',1,'BRABANT-FLAMAND','Brabant-Flamand',1),(106,'05',201,'',1,'FLANDRE-OCCIDENTALE','Flandre-Occidentale',1),(107,'06',201,'',1,'FLANDRE-ORIENTALE','Flandre-Orientale',1),(108,'07',202,'',2,'HAINAUT','Hainaut',1),(109,'08',201,'',2,'LIEGE','Liège',1),(110,'09',202,'',1,'LIMBOURG','Limbourg',1),(111,'10',202,'',2,'LUXEMBOURG','Luxembourg',1),(112,'11',201,'',2,'NAMUR','Namur',1),(113,'AG',315,NULL,NULL,NULL,'AGRIGENTO',1),(114,'AL',312,NULL,NULL,NULL,'ALESSANDRIA',1),(115,'AN',310,NULL,NULL,NULL,'ANCONA',1),(116,'AO',319,NULL,NULL,NULL,'AOSTA',1),(117,'AR',316,NULL,NULL,NULL,'AREZZO',1),(118,'AP',310,NULL,NULL,NULL,'ASCOLI PICENO',1),(119,'AT',312,NULL,NULL,NULL,'ASTI',1),(120,'AV',304,NULL,NULL,NULL,'AVELLINO',1),(121,'BA',313,NULL,NULL,NULL,'BARI',1),(122,'BT',313,NULL,NULL,NULL,'BARLETTA-ANDRIA-TRANI',1),(123,'BL',320,NULL,NULL,NULL,'BELLUNO',1),(124,'BN',304,NULL,NULL,NULL,'BENEVENTO',1),(125,'BG',309,NULL,NULL,NULL,'BERGAMO',1),(126,'BI',312,NULL,NULL,NULL,'BIELLA',1),(127,'BO',305,NULL,NULL,NULL,'BOLOGNA',1),(128,'BZ',317,NULL,NULL,NULL,'BOLZANO',1),(129,'BS',309,NULL,NULL,NULL,'BRESCIA',1),(130,'BR',313,NULL,NULL,NULL,'BRINDISI',1),(131,'CA',314,NULL,NULL,NULL,'CAGLIARI',1),(132,'CL',315,NULL,NULL,NULL,'CALTANISSETTA',1),(133,'CB',311,NULL,NULL,NULL,'CAMPOBASSO',1),(134,'CI',314,NULL,NULL,NULL,'CARBONIA-IGLESIAS',1),(135,'CE',304,NULL,NULL,NULL,'CASERTA',1),(136,'CT',315,NULL,NULL,NULL,'CATANIA',1),(137,'CZ',303,NULL,NULL,NULL,'CATANZARO',1),(138,'CH',301,NULL,NULL,NULL,'CHIETI',1),(139,'CO',309,NULL,NULL,NULL,'COMO',1),(140,'CS',303,NULL,NULL,NULL,'COSENZA',1),(141,'CR',309,NULL,NULL,NULL,'CREMONA',1),(142,'KR',303,NULL,NULL,NULL,'CROTONE',1),(143,'CN',312,NULL,NULL,NULL,'CUNEO',1),(144,'EN',315,NULL,NULL,NULL,'ENNA',1),(145,'FM',310,NULL,NULL,NULL,'FERMO',1),(146,'FE',305,NULL,NULL,NULL,'FERRARA',1),(147,'FI',316,NULL,NULL,NULL,'FIRENZE',1),(148,'FG',313,NULL,NULL,NULL,'FOGGIA',1),(149,'FC',305,NULL,NULL,NULL,'FORLI-CESENA',1),(150,'FR',307,NULL,NULL,NULL,'FROSINONE',1),(151,'GE',308,NULL,NULL,NULL,'GENOVA',1),(152,'GO',306,NULL,NULL,NULL,'GORIZIA',1),(153,'GR',316,NULL,NULL,NULL,'GROSSETO',1),(154,'IM',308,NULL,NULL,NULL,'IMPERIA',1),(155,'IS',311,NULL,NULL,NULL,'ISERNIA',1),(156,'SP',308,NULL,NULL,NULL,'LA SPEZIA',1),(157,'AQ',301,NULL,NULL,NULL,'L AQUILA',1),(158,'LT',307,NULL,NULL,NULL,'LATINA',1),(159,'LE',313,NULL,NULL,NULL,'LECCE',1),(160,'LC',309,NULL,NULL,NULL,'LECCO',1),(161,'LI',314,NULL,NULL,NULL,'LIVORNO',1),(162,'LO',309,NULL,NULL,NULL,'LODI',1),(163,'LU',316,NULL,NULL,NULL,'LUCCA',1),(164,'MC',310,NULL,NULL,NULL,'MACERATA',1),(165,'MN',309,NULL,NULL,NULL,'MANTOVA',1),(166,'MS',316,NULL,NULL,NULL,'MASSA-CARRARA',1),(167,'MT',302,NULL,NULL,NULL,'MATERA',1),(168,'VS',314,NULL,NULL,NULL,'MEDIO CAMPIDANO',1),(169,'ME',315,NULL,NULL,NULL,'MESSINA',1),(170,'MI',309,NULL,NULL,NULL,'MILANO',1),(171,'MB',309,NULL,NULL,NULL,'MONZA e BRIANZA',1),(172,'MO',305,NULL,NULL,NULL,'MODENA',1),(173,'NA',304,NULL,NULL,NULL,'NAPOLI',1),(174,'NO',312,NULL,NULL,NULL,'NOVARA',1),(175,'NU',314,NULL,NULL,NULL,'NUORO',1),(176,'OG',314,NULL,NULL,NULL,'OGLIASTRA',1),(177,'OT',314,NULL,NULL,NULL,'OLBIA-TEMPIO',1),(178,'OR',314,NULL,NULL,NULL,'ORISTANO',1),(179,'PD',320,NULL,NULL,NULL,'PADOVA',1),(180,'PA',315,NULL,NULL,NULL,'PALERMO',1),(181,'PR',305,NULL,NULL,NULL,'PARMA',1),(182,'PV',309,NULL,NULL,NULL,'PAVIA',1),(183,'PG',318,NULL,NULL,NULL,'PERUGIA',1),(184,'PU',310,NULL,NULL,NULL,'PESARO e URBINO',1),(185,'PE',301,NULL,NULL,NULL,'PESCARA',1),(186,'PC',305,NULL,NULL,NULL,'PIACENZA',1),(187,'PI',316,NULL,NULL,NULL,'PISA',1),(188,'PT',316,NULL,NULL,NULL,'PISTOIA',1),(189,'PN',306,NULL,NULL,NULL,'PORDENONE',1),(190,'PZ',302,NULL,NULL,NULL,'POTENZA',1),(191,'PO',316,NULL,NULL,NULL,'PRATO',1),(192,'RG',315,NULL,NULL,NULL,'RAGUSA',1),(193,'RA',305,NULL,NULL,NULL,'RAVENNA',1),(194,'RC',303,NULL,NULL,NULL,'REGGIO CALABRIA',1),(195,'RE',305,NULL,NULL,NULL,'REGGIO NELL EMILIA',1),(196,'RI',307,NULL,NULL,NULL,'RIETI',1),(197,'RN',305,NULL,NULL,NULL,'RIMINI',1),(198,'RM',307,NULL,NULL,NULL,'ROMA',1),(199,'RO',320,NULL,NULL,NULL,'ROVIGO',1),(200,'SA',304,NULL,NULL,NULL,'SALERNO',1),(201,'SS',314,NULL,NULL,NULL,'SASSARI',1),(202,'SV',308,NULL,NULL,NULL,'SAVONA',1),(203,'SI',316,NULL,NULL,NULL,'SIENA',1),(204,'SR',315,NULL,NULL,NULL,'SIRACUSA',1),(205,'SO',309,NULL,NULL,NULL,'SONDRIO',1),(206,'TA',313,NULL,NULL,NULL,'TARANTO',1),(207,'TE',301,NULL,NULL,NULL,'TERAMO',1),(208,'TR',318,NULL,NULL,NULL,'TERNI',1),(209,'TO',312,NULL,NULL,NULL,'TORINO',1),(210,'TP',315,NULL,NULL,NULL,'TRAPANI',1),(211,'TN',317,NULL,NULL,NULL,'TRENTO',1),(212,'TV',320,NULL,NULL,NULL,'TREVISO',1),(213,'TS',306,NULL,NULL,NULL,'TRIESTE',1),(214,'UD',306,NULL,NULL,NULL,'UDINE',1),(215,'VA',309,NULL,NULL,NULL,'VARESE',1),(216,'VE',320,NULL,NULL,NULL,'VENEZIA',1),(217,'VB',312,NULL,NULL,NULL,'VERBANO-CUSIO-OSSOLA',1),(218,'VC',312,NULL,NULL,NULL,'VERCELLI',1),(219,'VR',320,NULL,NULL,NULL,'VERONA',1),(220,'VV',303,NULL,NULL,NULL,'VIBO VALENTIA',1),(221,'VI',320,NULL,NULL,NULL,'VICENZA',1),(222,'VT',307,NULL,NULL,NULL,'VITERBO',1),(223,'NSW',2801,'',1,'','New South Wales',1),(224,'VIC',2801,'',1,'','Victoria',1),(225,'QLD',2801,'',1,'','Queensland',1),(226,'SA',2801,'',1,'','South Australia',1),(227,'ACT',2801,'',1,'','Australia Capital Territory',1),(228,'TAS',2801,'',1,'','Tasmania',1),(229,'WA',2801,'',1,'','Western Australia',1),(230,'NT',2801,'',1,'','Northern Territory',1),(231,'01',419,'',19,'PAIS VASCO','País Vasco',1),(232,'02',404,'',4,'ALBACETE','Albacete',1),(233,'03',411,'',11,'ALICANTE','Alicante',1),(234,'04',401,'',1,'ALMERIA','Almería',1),(235,'05',403,'',3,'AVILA','Avila',1),(236,'06',412,'',12,'BADAJOZ','Badajoz',1),(237,'07',414,'',14,'ISLAS BALEARES','Islas Baleares',1),(238,'08',406,'',6,'BARCELONA','Barcelona',1),(239,'09',403,'',8,'BURGOS','Burgos',1),(240,'10',412,'',12,'CACERES','Cáceres',1),(241,'11',401,'',1,'CADIz','Cádiz',1),(242,'12',411,'',11,'CASTELLON','Castellón',1),(243,'13',404,'',4,'CIUDAD REAL','Ciudad Real',1),(244,'14',401,'',1,'CORDOBA','Córdoba',1),(245,'15',413,'',13,'LA CORUÑA','La Coruña',1),(246,'16',404,'',4,'CUENCA','Cuenca',1),(247,'17',406,'',6,'GERONA','Gerona',1),(248,'18',401,'',1,'GRANADA','Granada',1),(249,'19',404,'',4,'GUADALAJARA','Guadalajara',1),(250,'20',419,'',19,'GUIPUZCOA','Guipúzcoa',1),(251,'21',401,'',1,'HUELVA','Huelva',1),(252,'22',402,'',2,'HUESCA','Huesca',1),(253,'23',401,'',1,'JAEN','Jaén',1),(254,'24',403,'',3,'LEON','León',1),(255,'25',406,'',6,'LERIDA','Lérida',1),(256,'26',415,'',15,'LA RIOJA','La Rioja',1),(257,'27',413,'',13,'LUGO','Lugo',1),(258,'28',416,'',16,'MADRID','Madrid',1),(259,'29',401,'',1,'MALAGA','Málaga',1),(260,'30',417,'',17,'MURCIA','Murcia',1),(261,'31',408,'',8,'NAVARRA','Navarra',1),(262,'32',413,'',13,'ORENSE','Orense',1),(263,'33',418,'',18,'ASTURIAS','Asturias',1),(264,'34',403,'',3,'PALENCIA','Palencia',1),(265,'35',405,'',5,'LAS PALMAS','Las Palmas',1),(266,'36',413,'',13,'PONTEVEDRA','Pontevedra',1),(267,'37',403,'',3,'SALAMANCA','Salamanca',1),(268,'38',405,'',5,'STA. CRUZ DE TENERIFE','Sta. Cruz de Tenerife',1),(269,'39',410,'',10,'CANTABRIA','Cantabria',1),(270,'40',403,'',3,'SEGOVIA','Segovia',1),(271,'41',401,'',1,'SEVILLA','Sevilla',1),(272,'42',403,'',3,'SORIA','Soria',1),(273,'43',406,'',6,'TARRAGONA','Tarragona',1),(274,'44',402,'',2,'TERUEL','Teruel',1),(275,'45',404,'',5,'TOLEDO','Toledo',1),(276,'46',411,'',11,'VALENCIA','Valencia',1),(277,'47',403,'',3,'VALLADOLID','Valladolid',1),(278,'48',419,'',19,'VIZCAYA','Vizcaya',1),(279,'49',403,'',3,'ZAMORA','Zamora',1),(280,'50',402,'',1,'ZARAGOZA','Zaragoza',1),(281,'51',407,'',7,'CEUTA','Ceuta',1),(282,'52',409,'',9,'MELILLA','Melilla',1),(283,'53',420,'',20,'OTROS','Otros',1),(284,'BW',501,NULL,NULL,'BADEN-WÜRTTEMBERG','Baden-Württemberg',1),(285,'BY',501,NULL,NULL,'BAYERN','Bayern',1),(286,'BE',501,NULL,NULL,'BERLIN','Berlin',1),(287,'BB',501,NULL,NULL,'BRANDENBURG','Brandenburg',1),(288,'HB',501,NULL,NULL,'BREMEN','Bremen',1),(289,'HH',501,NULL,NULL,'HAMBURG','Hamburg',1),(290,'HE',501,NULL,NULL,'HESSEN','Hessen',1),(291,'MV',501,NULL,NULL,'MECKLENBURG-VORPOMMERN','Mecklenburg-Vorpommern',1),(292,'NI',501,NULL,NULL,'NIEDERSACHSEN','Niedersachsen',1),(293,'NW',501,NULL,NULL,'NORDRHEIN-WESTFALEN','Nordrhein-Westfalen',1),(294,'RP',501,NULL,NULL,'RHEINLAND-PFALZ','Rheinland-Pfalz',1),(295,'SL',501,NULL,NULL,'SAARLAND','Saarland',1),(296,'SN',501,NULL,NULL,'SACHSEN','Sachsen',1),(297,'ST',501,NULL,NULL,'SACHSEN-ANHALT','Sachsen-Anhalt',1),(298,'SH',501,NULL,NULL,'SCHLESWIG-HOLSTEIN','Schleswig-Holstein',1),(299,'TH',501,NULL,NULL,'THÜRINGEN','Thüringen',1),(300,'AG',601,NULL,NULL,'ARGOVIE','Argovie',1),(301,'AI',601,NULL,NULL,'APPENZELL RHODES INTERIEURES','Appenzell Rhodes intérieures',1),(302,'AR',601,NULL,NULL,'APPENZELL RHODES EXTERIEURES','Appenzell Rhodes extérieures',1),(303,'BE',601,NULL,NULL,'BERNE','Berne',1),(304,'BL',601,NULL,NULL,'BALE CAMPAGNE','Bâle Campagne',1),(305,'BS',601,NULL,NULL,'BALE VILLE','Bâle Ville',1),(306,'FR',601,NULL,NULL,'FRIBOURG','Fribourg',1),(307,'GE',601,NULL,NULL,'GENEVE','Genève',1),(308,'GL',601,NULL,NULL,'GLARIS','Glaris',1),(309,'GR',601,NULL,NULL,'GRISONS','Grisons',1),(310,'JU',601,NULL,NULL,'JURA','Jura',1),(311,'LU',601,NULL,NULL,'LUCERNE','Lucerne',1),(312,'NE',601,NULL,NULL,'NEUCHATEL','Neuchâtel',1),(313,'NW',601,NULL,NULL,'NIDWALD','Nidwald',1),(314,'OW',601,NULL,NULL,'OBWALD','Obwald',1),(315,'SG',601,NULL,NULL,'SAINT-GALL','Saint-Gall',1),(316,'SH',601,NULL,NULL,'SCHAFFHOUSE','Schaffhouse',1),(317,'SO',601,NULL,NULL,'SOLEURE','Soleure',1),(318,'SZ',601,NULL,NULL,'SCHWYZ','Schwyz',1),(319,'TG',601,NULL,NULL,'THURGOVIE','Thurgovie',1),(320,'TI',601,NULL,NULL,'TESSIN','Tessin',1),(321,'UR',601,NULL,NULL,'URI','Uri',1),(322,'VD',601,NULL,NULL,'VAUD','Vaud',1),(323,'VS',601,NULL,NULL,'VALAIS','Valais',1),(324,'ZG',601,NULL,NULL,'ZUG','Zug',1),(325,'ZH',601,NULL,NULL,'ZURICH','Zürich',1),(326,'AL',1101,'',0,'ALABAMA','Alabama',1),(327,'AK',1101,'',0,'ALASKA','Alaska',1),(328,'AZ',1101,'',0,'ARIZONA','Arizona',1),(329,'AR',1101,'',0,'ARKANSAS','Arkansas',1),(330,'CA',1101,'',0,'CALIFORNIA','California',1),(331,'CO',1101,'',0,'COLORADO','Colorado',1),(332,'CT',1101,'',0,'CONNECTICUT','Connecticut',1),(333,'DE',1101,'',0,'DELAWARE','Delaware',1),(334,'FL',1101,'',0,'FLORIDA','Florida',1),(335,'GA',1101,'',0,'GEORGIA','Georgia',1),(336,'HI',1101,'',0,'HAWAII','Hawaii',1),(337,'ID',1101,'',0,'IDAHO','Idaho',1),(338,'IL',1101,'',0,'ILLINOIS','Illinois',1),(339,'IN',1101,'',0,'INDIANA','Indiana',1),(340,'IA',1101,'',0,'IOWA','Iowa',1),(341,'KS',1101,'',0,'KANSAS','Kansas',1),(342,'KY',1101,'',0,'KENTUCKY','Kentucky',1),(343,'LA',1101,'',0,'LOUISIANA','Louisiana',1),(344,'ME',1101,'',0,'MAINE','Maine',1),(345,'MD',1101,'',0,'MARYLAND','Maryland',1),(346,'MA',1101,'',0,'MASSACHUSSETTS','Massachusetts',1),(347,'MI',1101,'',0,'MICHIGAN','Michigan',1),(348,'MN',1101,'',0,'MINNESOTA','Minnesota',1),(349,'MS',1101,'',0,'MISSISSIPPI','Mississippi',1),(350,'MO',1101,'',0,'MISSOURI','Missouri',1),(351,'MT',1101,'',0,'MONTANA','Montana',1),(352,'NE',1101,'',0,'NEBRASKA','Nebraska',1),(353,'NV',1101,'',0,'NEVADA','Nevada',1),(354,'NH',1101,'',0,'NEW HAMPSHIRE','New Hampshire',1),(355,'NJ',1101,'',0,'NEW JERSEY','New Jersey',1),(356,'NM',1101,'',0,'NEW MEXICO','New Mexico',1),(357,'NY',1101,'',0,'NEW YORK','New York',1),(358,'NC',1101,'',0,'NORTH CAROLINA','North Carolina',1),(359,'ND',1101,'',0,'NORTH DAKOTA','North Dakota',1),(360,'OH',1101,'',0,'OHIO','Ohio',1),(361,'OK',1101,'',0,'OKLAHOMA','Oklahoma',1),(362,'OR',1101,'',0,'OREGON','Oregon',1),(363,'PA',1101,'',0,'PENNSYLVANIA','Pennsylvania',1),(364,'RI',1101,'',0,'RHODE ISLAND','Rhode Island',1),(365,'SC',1101,'',0,'SOUTH CAROLINA','South Carolina',1),(366,'SD',1101,'',0,'SOUTH DAKOTA','South Dakota',1),(367,'TN',1101,'',0,'TENNESSEE','Tennessee',1),(368,'TX',1101,'',0,'TEXAS','Texas',1),(369,'UT',1101,'',0,'UTAH','Utah',1),(370,'VT',1101,'',0,'VERMONT','Vermont',1),(371,'VA',1101,'',0,'VIRGINIA','Virginia',1),(372,'WA',1101,'',0,'WASHINGTON','Washington',1),(373,'WV',1101,'',0,'WEST VIRGINIA','West Virginia',1),(374,'WI',1101,'',0,'WISCONSIN','Wisconsin',1),(375,'WY',1101,'',0,'WYOMING','Wyoming',1),(376,'SS',8601,NULL,NULL,NULL,'San Salvador',1),(377,'SA',8603,NULL,NULL,NULL,'Santa Ana',1),(378,'AH',8603,NULL,NULL,NULL,'Ahuachapan',1),(379,'SO',8603,NULL,NULL,NULL,'Sonsonate',1),(380,'US',8602,NULL,NULL,NULL,'Usulutan',1),(381,'SM',8602,NULL,NULL,NULL,'San Miguel',1),(382,'MO',8602,NULL,NULL,NULL,'Morazan',1),(383,'LU',8602,NULL,NULL,NULL,'La Union',1),(384,'LL',8601,NULL,NULL,NULL,'La Libertad',1),(385,'CH',8601,NULL,NULL,NULL,'Chalatenango',1),(386,'CA',8601,NULL,NULL,NULL,'Cabañas',1),(387,'LP',8601,NULL,NULL,NULL,'La Paz',1),(388,'SV',8601,NULL,NULL,NULL,'San Vicente',1),(389,'CU',8601,NULL,NULL,NULL,'Cuscatlan',1),(390,'2301',2301,'',0,'CATAMARCA','Catamarca',1),(391,'2302',2301,'',0,'JUJUY','Jujuy',1),(392,'2303',2301,'',0,'TUCAMAN','Tucamán',1),(393,'2304',2301,'',0,'SANTIAGO DEL ESTERO','Santiago del Estero',1),(394,'2305',2301,'',0,'SALTA','Salta',1),(395,'2306',2302,'',0,'CHACO','Chaco',1),(396,'2307',2302,'',0,'CORRIENTES','Corrientes',1),(397,'2308',2302,'',0,'ENTRE RIOS','Entre Ríos',1),(398,'2309',2302,'',0,'FORMOSA MISIONES','Formosa Misiones',1),(399,'2310',2302,'',0,'SANTA FE','Santa Fe',1),(400,'2311',2303,'',0,'LA RIOJA','La Rioja',1),(401,'2312',2303,'',0,'MENDOZA','Mendoza',1),(402,'2313',2303,'',0,'SAN JUAN','San Juan',1),(403,'2314',2303,'',0,'SAN LUIS','San Luis',1),(404,'2315',2304,'',0,'CORDOBA','Córdoba',1),(405,'2316',2304,'',0,'BUENOS AIRES','Buenos Aires',1),(406,'2317',2304,'',0,'CABA','Caba',1),(407,'2318',2305,'',0,'LA PAMPA','La Pampa',1),(408,'2319',2305,'',0,'NEUQUEN','Neuquén',1),(409,'2320',2305,'',0,'RIO NEGRO','Río Negro',1),(410,'2321',2305,'',0,'CHUBUT','Chubut',1),(411,'2322',2305,'',0,'SANTA CRUZ','Santa Cruz',1),(412,'2323',2305,'',0,'TIERRA DEL FUEGO','Tierra del Fuego',1),(413,'2324',2305,'',0,'ISLAS MALVINAS','Islas Malvinas',1),(414,'2325',2305,'',0,'ANTARTIDA','Antártida',1),(415,'AC',5601,'ACRE',0,'AC','Acre',1),(416,'AL',5601,'ALAGOAS',0,'AL','Alagoas',1),(417,'AP',5601,'AMAPA',0,'AP','Amapá',1),(418,'AM',5601,'AMAZONAS',0,'AM','Amazonas',1),(419,'BA',5601,'BAHIA',0,'BA','Bahia',1),(420,'CE',5601,'CEARA',0,'CE','Ceará',1),(421,'ES',5601,'ESPIRITO SANTO',0,'ES','Espirito Santo',1),(422,'GO',5601,'GOIAS',0,'GO','Goiás',1),(423,'MA',5601,'MARANHAO',0,'MA','Maranhão',1),(424,'MT',5601,'MATO GROSSO',0,'MT','Mato Grosso',1),(425,'MS',5601,'MATO GROSSO DO SUL',0,'MS','Mato Grosso do Sul',1),(426,'MG',5601,'MINAS GERAIS',0,'MG','Minas Gerais',1),(427,'PA',5601,'PARA',0,'PA','Pará',1),(428,'PB',5601,'PARAIBA',0,'PB','Paraiba',1),(429,'PR',5601,'PARANA',0,'PR','Paraná',1),(430,'PE',5601,'PERNAMBUCO',0,'PE','Pernambuco',1),(431,'PI',5601,'PIAUI',0,'PI','Piauí',1),(432,'RJ',5601,'RIO DE JANEIRO',0,'RJ','Rio de Janeiro',1),(433,'RN',5601,'RIO GRANDE DO NORTE',0,'RN','Rio Grande do Norte',1),(434,'RS',5601,'RIO GRANDE DO SUL',0,'RS','Rio Grande do Sul',1),(435,'RO',5601,'RONDONIA',0,'RO','Rondônia',1),(436,'RR',5601,'RORAIMA',0,'RR','Roraima',1),(437,'SC',5601,'SANTA CATARINA',0,'SC','Santa Catarina',1),(438,'SE',5601,'SERGIPE',0,'SE','Sergipe',1),(439,'SP',5601,'SAO PAULO',0,'SP','Sao Paulo',1),(440,'TO',5601,'TOCANTINS',0,'TO','Tocantins',1),(441,'DF',5601,'DISTRITO FEDERAL',0,'DF','Distrito Federal',1),(442,'151',6715,'',0,'151','Arica',1),(443,'152',6715,'',0,'152','Parinacota',1),(444,'011',6701,'',0,'011','Iquique',1),(445,'014',6701,'',0,'014','Tamarugal',1),(446,'021',6702,'',0,'021','Antofagasa',1),(447,'022',6702,'',0,'022','El Loa',1),(448,'023',6702,'',0,'023','Tocopilla',1),(449,'031',6703,'',0,'031','Copiapó',1),(450,'032',6703,'',0,'032','Chañaral',1),(451,'033',6703,'',0,'033','Huasco',1),(452,'041',6704,'',0,'041','Elqui',1),(453,'042',6704,'',0,'042','Choapa',1),(454,'043',6704,'',0,'043','Limarí',1),(455,'051',6705,'',0,'051','Valparaíso',1),(456,'052',6705,'',0,'052','Isla de Pascua',1),(457,'053',6705,'',0,'053','Los Andes',1),(458,'054',6705,'',0,'054','Petorca',1),(459,'055',6705,'',0,'055','Quillota',1),(460,'056',6705,'',0,'056','San Antonio',1),(461,'057',6705,'',0,'057','San Felipe de Aconcagua',1),(462,'058',6705,'',0,'058','Marga Marga',1),(463,'061',6706,'',0,'061','Cachapoal',1),(464,'062',6706,'',0,'062','Cardenal Caro',1),(465,'063',6706,'',0,'063','Colchagua',1),(466,'071',6707,'',0,'071','Talca',1),(467,'072',6707,'',0,'072','Cauquenes',1),(468,'073',6707,'',0,'073','Curicó',1),(469,'074',6707,'',0,'074','Linares',1),(470,'081',6708,'',0,'081','Concepción',1),(471,'082',6708,'',0,'082','Arauco',1),(472,'083',6708,'',0,'083','Biobío',1),(473,'084',6708,'',0,'084','Ñuble',1),(474,'091',6709,'',0,'091','Cautín',1),(475,'092',6709,'',0,'092','Malleco',1),(476,'141',6714,'',0,'141','Valdivia',1),(477,'142',6714,'',0,'142','Ranco',1),(478,'101',6710,'',0,'101','Llanquihue',1),(479,'102',6710,'',0,'102','Chiloé',1),(480,'103',6710,'',0,'103','Osorno',1),(481,'104',6710,'',0,'104','Palena',1),(482,'111',6711,'',0,'111','Coihaique',1),(483,'112',6711,'',0,'112','Aisén',1),(484,'113',6711,'',0,'113','Capitán Prat',1),(485,'114',6711,'',0,'114','General Carrera',1),(486,'121',6712,'',0,'121','Magallanes',1),(487,'122',6712,'',0,'122','Antártica Chilena',1),(488,'123',6712,'',0,'123','Tierra del Fuego',1),(489,'124',6712,'',0,'124','Última Esperanza',1),(490,'131',6713,'',0,'131','Santiago',1),(491,'132',6713,'',0,'132','Cordillera',1),(492,'133',6713,'',0,'133','Chacabuco',1),(493,'134',6713,'',0,'134','Maipo',1),(494,'135',6713,'',0,'135','Melipilla',1),(495,'136',6713,'',0,'136','Talagante',1),(496,'AN',11701,NULL,0,'AN','Andaman & Nicobar',1),(497,'AP',11701,NULL,0,'AP','Andhra Pradesh',1),(498,'AR',11701,NULL,0,'AR','Arunachal Pradesh',1),(499,'AS',11701,NULL,0,'AS','Assam',1),(500,'BR',11701,NULL,0,'BR','Bihar',1),(501,'CG',11701,NULL,0,'CG','Chattisgarh',1),(502,'CH',11701,NULL,0,'CH','Chandigarh',1),(503,'DD',11701,NULL,0,'DD','Daman & Diu',1),(504,'DL',11701,NULL,0,'DL','Delhi',1),(505,'DN',11701,NULL,0,'DN','Dadra and Nagar Haveli',1),(506,'GA',11701,NULL,0,'GA','Goa',1),(507,'GJ',11701,NULL,0,'GJ','Gujarat',1),(508,'HP',11701,NULL,0,'HP','Himachal Pradesh',1),(509,'HR',11701,NULL,0,'HR','Haryana',1),(510,'JH',11701,NULL,0,'JH','Jharkhand',1),(511,'JK',11701,NULL,0,'JK','Jammu & Kashmir',1),(512,'KA',11701,NULL,0,'KA','Karnataka',1),(513,'KL',11701,NULL,0,'KL','Kerala',1),(514,'LD',11701,NULL,0,'LD','Lakshadweep',1),(515,'MH',11701,NULL,0,'MH','Maharashtra',1),(516,'ML',11701,NULL,0,'ML','Meghalaya',1),(517,'MN',11701,NULL,0,'MN','Manipur',1),(518,'MP',11701,NULL,0,'MP','Madhya Pradesh',1),(519,'MZ',11701,NULL,0,'MZ','Mizoram',1),(520,'NL',11701,NULL,0,'NL','Nagaland',1),(521,'OR',11701,NULL,0,'OR','Orissa',1),(522,'PB',11701,NULL,0,'PB','Punjab',1),(523,'PY',11701,NULL,0,'PY','Puducherry',1),(524,'RJ',11701,NULL,0,'RJ','Rajasthan',1),(525,'SK',11701,NULL,0,'SK','Sikkim',1),(526,'TN',11701,NULL,0,'TN','Tamil Nadu',1),(527,'TR',11701,NULL,0,'TR','Tripura',1),(528,'UL',11701,NULL,0,'UL','Uttarakhand',1),(529,'UP',11701,NULL,0,'UP','Uttar Pradesh',1),(530,'WB',11701,NULL,0,'WB','West Bengal',1),(531,'DIF',15401,'',0,'DIF','Distrito Federal',1),(532,'AGS',15401,'',0,'AGS','Aguascalientes',1),(533,'BCN',15401,'',0,'BCN','Baja California Norte',1),(534,'BCS',15401,'',0,'BCS','Baja California Sur',1),(535,'CAM',15401,'',0,'CAM','Campeche',1),(536,'CHP',15401,'',0,'CHP','Chiapas',1),(537,'CHI',15401,'',0,'CHI','Chihuahua',1),(538,'COA',15401,'',0,'COA','Coahuila',1),(539,'COL',15401,'',0,'COL','Colima',1),(540,'DUR',15401,'',0,'DUR','Durango',1),(541,'GTO',15401,'',0,'GTO','Guanajuato',1),(542,'GRO',15401,'',0,'GRO','Guerrero',1),(543,'HGO',15401,'',0,'HGO','Hidalgo',1),(544,'JAL',15401,'',0,'JAL','Jalisco',1),(545,'MEX',15401,'',0,'MEX','México',1),(546,'MIC',15401,'',0,'MIC','Michoacán de Ocampo',1),(547,'MOR',15401,'',0,'MOR','Morelos',1),(548,'NAY',15401,'',0,'NAY','Nayarit',1),(549,'NLE',15401,'',0,'NLE','Nuevo León',1),(550,'OAX',15401,'',0,'OAX','Oaxaca',1),(551,'PUE',15401,'',0,'PUE','Puebla',1),(552,'QRO',15401,'',0,'QRO','Querétaro',1),(553,'ROO',15401,'',0,'ROO','Quintana Roo',1),(554,'SLP',15401,'',0,'SLP','San Luis Potosí',1),(555,'SIN',15401,'',0,'SIN','Sinaloa',1),(556,'SON',15401,'',0,'SON','Sonora',1),(557,'TAB',15401,'',0,'TAB','Tabasco',1),(558,'TAM',15401,'',0,'TAM','Tamaulipas',1),(559,'TLX',15401,'',0,'TLX','Tlaxcala',1),(560,'VER',15401,'',0,'VER','Veracruz',1),(561,'YUC',15401,'',0,'YUC','Yucatán',1),(562,'ZAC',15401,'',0,'ZAC','Zacatecas',1),(563,'ANT',7001,'',0,'ANT','Antioquia',1),(564,'BOL',7001,'',0,'BOL','Bolívar',1),(565,'BOY',7001,'',0,'BOY','Boyacá',1),(566,'CAL',7001,'',0,'CAL','Caldas',1),(567,'CAU',7001,'',0,'CAU','Cauca',1),(568,'CUN',7001,'',0,'CUN','Cundinamarca',1),(569,'HUI',7001,'',0,'HUI','Huila',1),(570,'LAG',7001,'',0,'LAG','La Guajira',1),(571,'MET',7001,'',0,'MET','Meta',1),(572,'NAR',7001,'',0,'NAR','Nariño',1),(573,'NDS',7001,'',0,'NDS','Norte de Santander',1),(574,'SAN',7001,'',0,'SAN','Santander',1),(575,'SUC',7001,'',0,'SUC','Sucre',1),(576,'TOL',7001,'',0,'TOL','Tolima',1),(577,'VAC',7001,'',0,'VAC','Valle del Cauca',1),(578,'RIS',7001,'',0,'RIS','Risalda',1),(579,'ATL',7001,'',0,'ATL','Atlántico',1),(580,'COR',7001,'',0,'COR','Córdoba',1),(581,'SAP',7001,'',0,'SAP','San Andrés, Providencia y Santa Catalina',1),(582,'ARA',7001,'',0,'ARA','Arauca',1),(583,'CAS',7001,'',0,'CAS','Casanare',1),(584,'AMA',7001,'',0,'AMA','Amazonas',1),(585,'CAQ',7001,'',0,'CAQ','Caquetá',1),(586,'CHO',7001,'',0,'CHO','Chocó',1),(587,'GUA',7001,'',0,'GUA','Guainía',1),(588,'GUV',7001,'',0,'GUV','Guaviare',1),(589,'PUT',7001,'',0,'PUT','Putumayo',1),(590,'QUI',7001,'',0,'QUI','Quindío',1),(591,'VAU',7001,'',0,'VAU','Vaupés',1),(592,'BOG',7001,'',0,'BOG','Bogotá',1),(593,'VID',7001,'',0,'VID','Vichada',1),(594,'CES',7001,'',0,'CES','Cesar',1),(595,'MAG',7001,'',0,'MAG','Magdalena',1),(596,'AT',11401,'',0,'AT','Atlántida',1),(597,'CH',11401,'',0,'CH','Choluteca',1),(598,'CL',11401,'',0,'CL','Colón',1),(599,'CM',11401,'',0,'CM','Comayagua',1),(600,'CO',11401,'',0,'CO','Copán',1),(601,'CR',11401,'',0,'CR','Cortés',1),(602,'EP',11401,'',0,'EP','El Paraíso',1),(603,'FM',11401,'',0,'FM','Francisco Morazán',1),(604,'GD',11401,'',0,'GD','Gracias a Dios',1),(605,'IN',11401,'',0,'IN','Intibucá',1),(606,'IB',11401,'',0,'IB','Islas de la Bahía',1),(607,'LP',11401,'',0,'LP','La Paz',1),(608,'LM',11401,'',0,'LM','Lempira',1),(609,'OC',11401,'',0,'OC','Ocotepeque',1),(610,'OL',11401,'',0,'OL','Olancho',1),(611,'SB',11401,'',0,'SB','Santa Bárbara',1),(612,'VL',11401,'',0,'VL','Valle',1),(613,'YO',11401,'',0,'YO','Yoro',1),(614,'DC',11401,'',0,'DC','Distrito Central',1),(615,'CC',4601,'Oistins',0,'CC','Christ Church',1),(616,'SA',4601,'Greenland',0,'SA','Saint Andrew',1),(617,'SG',4601,'Bulkeley',0,'SG','Saint George',1),(618,'JA',4601,'Holetown',0,'JA','Saint James',1),(619,'SJ',4601,'Four Roads',0,'SJ','Saint John',1),(620,'SB',4601,'Bathsheba',0,'SB','Saint Joseph',1),(621,'SL',4601,'Crab Hill',0,'SL','Saint Lucy',1),(622,'SM',4601,'Bridgetown',0,'SM','Saint Michael',1),(623,'SP',4601,'Speightstown',0,'SP','Saint Peter',1),(624,'SC',4601,'Crane',0,'SC','Saint Philip',1),(625,'ST',4601,'Hillaby',0,'ST','Saint Thomas',1),(626,'VE-L',23201,'',0,'VE-L','Mérida',1),(627,'VE-T',23201,'',0,'VE-T','Trujillo',1),(628,'VE-E',23201,'',0,'VE-E','Barinas',1),(629,'VE-M',23202,'',0,'VE-M','Miranda',1),(630,'VE-W',23202,'',0,'VE-W','Vargas',1),(631,'VE-A',23202,'',0,'VE-A','Distrito Capital',1),(632,'VE-D',23203,'',0,'VE-D','Aragua',1),(633,'VE-G',23203,'',0,'VE-G','Carabobo',1),(634,'VE-I',23204,'',0,'VE-I','Falcón',1),(635,'VE-K',23204,'',0,'VE-K','Lara',1),(636,'VE-U',23204,'',0,'VE-U','Yaracuy',1),(637,'VE-F',23205,'',0,'VE-F','Bolívar',1),(638,'VE-X',23205,'',0,'VE-X','Amazonas',1),(639,'VE-Y',23205,'',0,'VE-Y','Delta Amacuro',1),(640,'VE-O',23206,'',0,'VE-O','Nueva Esparta',1),(641,'VE-Z',23206,'',0,'VE-Z','Dependencias Federales',1),(642,'VE-C',23207,'',0,'VE-C','Apure',1),(643,'VE-J',23207,'',0,'VE-J','Guárico',1),(644,'VE-H',23207,'',0,'VE-H','Cojedes',1),(645,'VE-P',23207,'',0,'VE-P','Portuguesa',1),(646,'VE-B',23208,'',0,'VE-B','Anzoátegui',1),(647,'VE-N',23208,'',0,'VE-N','Monagas',1),(648,'VE-R',23208,'',0,'VE-R','Sucre',1),(649,'VE-V',23209,'',0,'VE-V','Zulia',1),(650,'VE-S',23209,'',0,'VE-S','Táchira',1);

--
-- Table structure for table `llx_c_ecotaxe`
--

CREATE TABLE `llx_c_ecotaxe` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(64) NOT NULL,
  `libelle` varchar(255) default NULL,
  `price` double(24,8) default NULL,
  `organization` varchar(255) default NULL,
  `fk_pays` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_ecotaxe` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_ecotaxe`
--

INSERT INTO `llx_c_ecotaxe` (`rowid`, `code`, `libelle`, `price`, `organization`, `fk_pays`, `active`) VALUES (1,'ER-A-A','Materiels electriques < 0,2kg',0.01000000,'ERP',1,1),(2,'ER-A-B','Materiels electriques >= 0,2 kg et < 0,5 kg',0.03000000,'ERP',1,1),(3,'ER-A-C','Materiels electriques >= 0,5 kg et < 1 kg',0.04000000,'ERP',1,1),(4,'ER-A-D','Materiels electriques >= 1 kg et < 2 kg',0.13000000,'ERP',1,1),(5,'ER-A-E','Materiels electriques >= 2 kg et < 4kg',0.21000000,'ERP',1,1),(6,'ER-A-F','Materiels electriques >= 4 kg et < 8 kg',0.42000000,'ERP',1,1),(7,'ER-A-G','Materiels electriques >= 8 kg et < 15 kg',0.84000000,'ERP',1,1),(8,'ER-A-H','Materiels electriques >= 15 kg et < 20 kg',1.25000000,'ERP',1,1),(9,'ER-A-I','Materiels electriques >= 20 kg et < 30 kg',1.88000000,'ERP',1,1),(10,'ER-A-J','Materiels electriques >= 30 kg',3.34000000,'ERP',1,1),(11,'ER-M-1','TV, Moniteurs < 9kg',0.84000000,'ERP',1,1),(12,'ER-M-2','TV, Moniteurs >= 9kg et < 15kg',1.67000000,'ERP',1,1),(13,'ER-M-3','TV, Moniteurs >= 15kg et < 30kg',3.34000000,'ERP',1,1),(14,'ER-M-4','TV, Moniteurs >= 30 kg',6.69000000,'ERP',1,1),(15,'EC-A-A','Materiels electriques  0,2 kg max',0.00840000,'Ecologic',1,1),(16,'EC-A-B','Materiels electriques 0,21 kg min - 0,50 kg max',0.02500000,'Ecologic',1,1),(17,'EC-A-C','Materiels electriques  0,51 kg min - 1 kg max',0.04000000,'Ecologic',1,1),(18,'EC-A-D','Materiels electriques  1,01 kg min - 2,5 kg max',0.13000000,'Ecologic',1,1),(19,'EC-A-E','Materiels electriques  2,51 kg min - 4 kg max',0.21000000,'Ecologic',1,1),(20,'EC-A-F','Materiels electriques 4,01 kg min - 8 kg max',0.42000000,'Ecologic',1,1),(21,'EC-A-G','Materiels electriques  8,01 kg min - 12 kg max',0.63000000,'Ecologic',1,1),(22,'EC-A-H','Materiels electriques 12,01 kg min - 20 kg max',1.05000000,'Ecologic',1,1),(23,'EC-A-I','Materiels electriques  20,01 kg min',1.88000000,'Ecologic',1,1),(24,'EC-M-1','TV, Moniteurs 9 kg max',0.84000000,'Ecologic',1,1),(25,'EC-M-2','TV, Moniteurs 9,01 kg min - 18 kg max',1.67000000,'Ecologic',1,1),(26,'EC-M-3','TV, Moniteurs 18,01 kg min - 36 kg max',3.34000000,'Ecologic',1,1),(27,'EC-M-4','TV, Moniteurs 36,01 kg min',6.69000000,'Ecologic',1,1),(28,'ES-M-1','TV, Moniteurs <= 20 pouces',0.84000000,'Eco-systemes',1,1),(29,'ES-M-2','TV, Moniteurs > 20 pouces et <= 32 pouces',3.34000000,'Eco-systemes',1,1),(30,'ES-M-3','TV, Moniteurs > 32 pouces et autres grands ecrans',6.69000000,'Eco-systemes',1,1),(31,'ES-A-A','Ordinateur fixe, Audio home systems (HIFI), elements hifi separes',0.84000000,'Eco-systemes',1,1),(32,'ES-A-B','Ordinateur portable, CD-RCR, VCR, lecteurs et enregistreurs DVD, instruments de musique et caisses de resonance, haut parleurs...',0.25000000,'Eco-systemes',1,1),(33,'ES-A-C','Imprimante, photocopieur, telecopieur',0.42000000,'Eco-systemes',1,1),(34,'ES-A-D','Accessoires, clavier, souris, PDA, imprimante photo, appareil photo, gps, telephone, repondeur, telephone sans fil, modem, telecommande, casque, camescope, baladeur mp3, radio portable, radio K7 et CD portable, radio reveil',0.08400000,'Eco-systemes',1,1),(35,'ES-A-E','GSM',0.00840000,'Eco-systemes',1,1),(36,'ES-A-F','Jouets et equipements de loisirs et de sports < 0,5 kg',0.04200000,'Eco-systemes',1,1),(37,'ES-A-G','Jouets et equipements de loisirs et de sports > 0,5 kg',0.17000000,'Eco-systemes',1,1),(38,'ES-A-H','Jouets et equipements de loisirs et de sports > 10 kg',1.25000000,'Eco-systemes',1,1);

--
-- Table structure for table `llx_c_effectif`
--

CREATE TABLE `llx_c_effectif` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_effectif`
--

INSERT INTO `llx_c_effectif` (`id`, `code`, `libelle`, `active`, `module`) VALUES (0,'EF0','-',1,NULL),(1,'EF1-5','1 - 5',1,NULL),(2,'EF6-10','6 - 10',1,NULL),(3,'EF11-50','11 - 50',1,NULL),(4,'EF51-100','51 - 100',1,NULL),(5,'EF100-500','100 - 500',1,NULL),(6,'EF500-','> 500',1,NULL);

--
-- Table structure for table `llx_c_field_list`
--

CREATE TABLE `llx_c_field_list` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `element` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `name` varchar(32) NOT NULL,
  `alias` varchar(32) NOT NULL,
  `title` varchar(32) NOT NULL,
  `align` varchar(6) default 'left',
  `sort` tinyint(4) NOT NULL default '1',
  `search` tinyint(4) NOT NULL default '0',
  `enabled` varchar(255) default '1',
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_field_list`
--


--
-- Table structure for table `llx_c_forme_juridique`
--

CREATE TABLE `llx_c_forme_juridique` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `libelle` varchar(255) default NULL,
  `isvatexempted` tinyint(4) NOT NULL default '0',
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_forme_juridique` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=154 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_forme_juridique`
--

INSERT INTO `llx_c_forme_juridique` (`rowid`, `code`, `fk_pays`, `libelle`, `isvatexempted`, `active`, `module`) VALUES (1,0,0,'-',0,1,NULL),(2,2301,23,'Monotributista',0,1,NULL),(3,2302,23,'Sociedad Civil',0,1,NULL),(4,2303,23,'Sociedades Comerciales',0,1,NULL),(5,2304,23,'Sociedades de Hecho',0,1,NULL),(6,2305,23,'Sociedades Irregulares',0,1,NULL),(7,2306,23,'Sociedad Colectiva',0,1,NULL),(8,2307,23,'Sociedad en Comandita Simple',0,1,NULL),(9,2308,23,'Sociedad de Capital e Industria',0,1,NULL),(10,2309,23,'Sociedad Accidental o en participación',0,1,NULL),(11,2310,23,'Sociedad de Responsabilidad Limitada',0,1,NULL),(12,2311,23,'Sociedad Anónima',0,1,NULL),(13,2312,23,'Sociedad Anónima con Participación Estatal Mayoritaria',0,1,NULL),(14,2313,23,'Sociedad en Comandita por Acciones (arts. 315 a 324, LSC)',0,1,NULL),(15,11,1,'Artisan Commerçant (EI)',0,1,NULL),(16,12,1,'Commerçant (EI)',0,1,NULL),(17,13,1,'Artisan (EI)',0,1,NULL),(18,14,1,'Officier public ou ministériel',0,1,NULL),(19,15,1,'Profession libérale (EI)',0,1,NULL),(20,16,1,'Exploitant agricole',0,1,NULL),(21,17,1,'Agent commercial',0,1,NULL),(22,18,1,'Associé Gérant de société',0,1,NULL),(23,19,1,'Personne physique',0,1,NULL),(24,21,1,'Indivision',0,1,NULL),(25,22,1,'Société créée de fait',0,1,NULL),(26,23,1,'Société en participation',0,1,NULL),(27,27,1,'Paroisse hors zone concordataire',0,1,NULL),(28,29,1,'Groupement de droit privé non doté de la personnalité morale',0,1,NULL),(29,31,1,'Personne morale de droit étranger, immatriculée au RCS',0,1,NULL),(30,32,1,'Personne morale de droit étranger, non immatriculée au RCS',0,1,NULL),(31,35,1,'Régime auto-entrepreneur',0,1,NULL),(32,41,1,'Établissement public ou régie à caractère industriel ou commercial',0,1,NULL),(33,51,1,'Société coopérative commerciale particulière',0,1,NULL),(34,52,1,'Société en nom collectif',0,1,NULL),(35,53,1,'Société en commandite',0,1,NULL),(36,54,1,'Société à responsabilité limitée (SARL)',0,1,NULL),(37,55,1,'Société anonyme à conseil d administration',0,1,NULL),(38,56,1,'Société anonyme à directoire',0,1,NULL),(39,57,1,'Société par actions simplifiée',0,1,NULL),(40,58,1,'Entreprise Unipersonnelle à Responsabilité Limitée (EURL)',0,1,NULL),(41,61,1,'Caisse d\'épargne et de prévoyance',0,1,NULL),(42,62,1,'Groupement d\'intérêt économique (GIE)',0,1,NULL),(43,63,1,'Société coopérative agricole',0,1,NULL),(44,64,1,'Société non commerciale d assurances',0,1,NULL),(45,65,1,'Société civile',0,1,NULL),(46,69,1,'Personnes de droit privé inscrites au RCS',0,1,NULL),(47,71,1,'Administration de l état',0,1,NULL),(48,72,1,'Collectivité territoriale',0,1,NULL),(49,73,1,'Établissement public administratif',0,1,NULL),(50,74,1,'Personne morale de droit public administratif',0,1,NULL),(51,81,1,'Organisme gérant régime de protection social à adhésion obligatoire',0,1,NULL),(52,82,1,'Organisme mutualiste',0,1,NULL),(53,83,1,'Comité d entreprise',0,1,NULL),(54,84,1,'Organisme professionnel',0,1,NULL),(55,85,1,'Organisme de retraite à adhésion non obligatoire',0,1,NULL),(56,91,1,'Syndicat de propriétaires',0,1,NULL),(57,92,1,'Association loi 1901 ou assimilé',0,1,NULL),(58,93,1,'Fondation',0,1,NULL),(59,99,1,'Personne morale de droit privé',0,1,NULL),(60,200,2,'Indépendant',0,1,NULL),(61,201,2,'SPRL - Société à responsabilité limitée',0,1,NULL),(62,202,2,'SA   - Société Anonyme',0,1,NULL),(63,203,2,'SCRL - Société coopérative à responsabilité limitée',0,1,NULL),(64,204,2,'ASBL - Association sans but Lucratif',0,1,NULL),(65,205,2,'SCRI - Société coopérative à responsabilité illimitée',0,1,NULL),(66,206,2,'SCS  - Société en commandite simple',0,1,NULL),(67,207,2,'SCA  - Société en commandite par action',0,1,NULL),(68,208,2,'SNC  - Société en nom collectif',0,1,NULL),(69,209,2,'GIE  - Groupement d intérêt économique',0,1,NULL),(70,210,2,'GEIE - Groupement européen d intérêt économique',0,1,NULL),(71,500,5,'GmbH - Gesellschaft mit beschränkter Haftung',0,1,NULL),(72,501,5,'AG - Aktiengesellschaft ',0,1,NULL),(73,502,5,'GmbH&Co. KG - Gesellschaft mit beschränkter Haftung & Compagnie Kommanditgesellschaft',0,1,NULL),(74,503,5,'Gewerbe - Personengesellschaft',0,1,NULL),(75,504,5,'UG - Unternehmergesellschaft -haftungsbeschränkt-',0,1,NULL),(76,505,5,'GbR - Gesellschaft des bürgerlichen Rechts',0,1,NULL),(77,506,5,'KG - Kommanditgesellschaft',0,1,NULL),(78,507,5,'Ltd. - Limited Company',0,1,NULL),(79,508,5,'OHG - Offene Handelsgesellschaft',0,1,NULL),(80,301,3,'Società semplice',0,1,NULL),(81,302,3,'Società in nome collettivo s.n.c.',0,1,NULL),(82,303,3,'Società in accomandita semplice s.a.s.',0,1,NULL),(83,304,3,'Società per azioni s.p.a.',0,1,NULL),(84,305,3,'Società a responsabilità limitata s.r.l.',0,1,NULL),(85,306,3,'Società in accomandita per azioni s.a.p.a.',0,1,NULL),(86,307,3,'Società cooperativa',0,1,NULL),(87,308,3,'Società consortile',0,1,NULL),(88,309,3,'Società europea',0,1,NULL),(89,310,3,'Società cooperativa europea',0,1,NULL),(90,311,3,'Società unipersonale',0,1,NULL),(91,312,3,'Società di professionisti',0,1,NULL),(92,313,3,'Società di fatto',0,1,NULL),(93,314,3,'Società occulta',0,1,NULL),(94,315,3,'Società apparente',0,1,NULL),(95,316,3,'Impresa individuale ',0,1,NULL),(96,317,3,'Impresa coniugale',0,1,NULL),(97,318,3,'Impresa familiare',0,1,NULL),(98,600,6,'Raison Individuelle',0,1,NULL),(99,601,6,'Société Simple',0,1,NULL),(100,602,6,'Société en nom collectif',0,1,NULL),(101,603,6,'Société en commandite',0,1,NULL),(102,604,6,'Société anonyme (SA)',0,1,NULL),(103,605,6,'Société en commandite par actions',0,1,NULL),(104,606,6,'Société à responsabilité limitée (SARL)',0,1,NULL),(105,607,6,'Société coopérative',0,1,NULL),(106,608,6,'Association',0,1,NULL),(107,609,6,'Fondation',0,1,NULL),(108,700,7,'Sole Trader',0,1,NULL),(109,701,7,'Partnership',0,1,NULL),(110,702,7,'Private Limited Company by shares (LTD)',0,1,NULL),(111,703,7,'Public Limited Company',0,1,NULL),(112,704,7,'Workers Cooperative',0,1,NULL),(113,705,7,'Limited Liability Partnership',0,1,NULL),(114,706,7,'Franchise',0,1,NULL),(115,1000,10,'Société à responsabilité limitée (SARL)',0,1,NULL),(116,1001,10,'Société en Nom Collectif (SNC)',0,1,NULL),(117,1002,10,'Société en Commandite Simple (SCS)',0,1,NULL),(118,1003,10,'société en participation',0,1,NULL),(119,1004,10,'Société Anonyme (SA)',0,1,NULL),(120,1005,10,'Société Unipersonnelle à Responsabilité Limitée (SUARL)',0,1,NULL),(121,1006,10,'Groupement d\'intérêt économique (GEI)',0,1,NULL),(122,1007,10,'Groupe de sociétés',0,1,NULL),(123,401,4,'Empresario Individual',0,1,NULL),(124,402,4,'Comunidad de Bienes',0,1,NULL),(125,403,4,'Sociedad Civil',0,1,NULL),(126,404,4,'Sociedad Colectiva',0,1,NULL),(127,405,4,'Sociedad Limitada',0,1,NULL),(128,406,4,'Sociedad Anónima',0,1,NULL),(129,407,4,'Sociedad Comandataria por Acciones',0,1,NULL),(130,408,4,'Sociedad Comandataria Simple',0,1,NULL),(131,409,4,'Sociedad Laboral',0,1,NULL),(132,410,4,'Sociedad Cooperativa',0,1,NULL),(133,411,4,'Sociedad de Garantía Recíproca',0,1,NULL),(134,412,4,'Entidad de Capital-Riesgo',0,1,NULL),(135,413,4,'Agrupación de Interés Económico',0,1,NULL),(136,414,4,'Sociedad de Inversión Mobiliaria',0,1,NULL),(137,415,4,'Agrupación sin Ánimo de Lucro',0,1,NULL),(138,15201,152,'Mauritius Private Company Limited By Shares',0,1,NULL),(139,15202,152,'Mauritius Company Limited By Guarantee',0,1,NULL),(140,15203,152,'Mauritius Public Company Limited By Shares',0,1,NULL),(141,15204,152,'Mauritius Foreign Company',0,1,NULL),(142,15205,152,'Mauritius GBC1 (Offshore Company)',0,1,NULL),(143,15206,152,'Mauritius GBC2 (International Company)',0,1,NULL),(144,15207,152,'Mauritius General Partnership',0,1,NULL),(145,15208,152,'Mauritius Limited Partnership',0,1,NULL),(146,15209,152,'Mauritius Sole Proprietorship',0,1,NULL),(147,15210,152,'Mauritius Trusts',0,1,NULL),(148,15401,154,'Sociedad en nombre colectivo',0,1,NULL),(149,15402,154,'Sociedad en comandita simple',0,1,NULL),(150,15403,154,'Sociedad de responsabilidad limitada',0,1,NULL),(151,15404,154,'Sociedad anónima',0,1,NULL),(152,15405,154,'Sociedad en comandita por acciones',0,1,NULL),(153,15406,154,'Sociedad cooperativa',0,1,NULL);

--
-- Table structure for table `llx_c_input_method`
--

CREATE TABLE `llx_c_input_method` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(30) default NULL,
  `libelle` varchar(60) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_input_method` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_input_method`
--

INSERT INTO `llx_c_input_method` (`rowid`, `code`, `libelle`, `active`, `module`) VALUES (1,'OrderByMail','Courrier',1,NULL),(2,'OrderByFax','Fax',1,NULL),(3,'OrderByEMail','EMail',1,NULL),(4,'OrderByPhone','Téléphone',1,NULL),(5,'OrderByWWW','En ligne',1,NULL);

--
-- Table structure for table `llx_c_input_reason`
--

CREATE TABLE `llx_c_input_reason` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(30) default NULL,
  `label` varchar(60) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_input_reason` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_input_reason`
--

INSERT INTO `llx_c_input_reason` (`rowid`, `code`, `label`, `active`, `module`) VALUES (1,'SRC_INTE','Web site',1,NULL),(2,'SRC_CAMP_MAIL','Mailing campaign',1,NULL),(3,'SRC_CAMP_PHO','Phone campaign',1,NULL),(4,'SRC_CAMP_FAX','Fax campaign',1,NULL),(5,'SRC_COMM','Commercial contact',1,NULL),(6,'SRC_SHOP','Shop contact',1,NULL),(7,'SRC_CAMP_EMAIL','EMailing campaign',1,NULL);

--
-- Table structure for table `llx_c_paiement`
--

CREATE TABLE `llx_c_paiement` (
  `id` int(11) NOT NULL,
  `code` varchar(6) NOT NULL,
  `libelle` varchar(30) default NULL,
  `type` smallint(6) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_paiement`
--

INSERT INTO `llx_c_paiement` (`id`, `code`, `libelle`, `type`, `active`, `module`) VALUES (0,'','-',3,1,NULL),(1,'TIP','TIP',2,1,NULL),(2,'VIR','Virement',2,1,NULL),(3,'PRE','Prélèvement',2,1,NULL),(4,'LIQ','Espèces',2,1,NULL),(6,'CB','Carte Bancaire',2,1,NULL),(7,'CHQ','Chèque',2,1,NULL),(50,'VAD','Paiement en ligne',2,0,NULL),(51,'TRA','Traite',2,0,NULL),(52,'LCR','LCR',2,0,NULL),(53,'FAC','Factor',2,0,NULL),(54,'PRO','Proforma',2,0,NULL);

--
-- Table structure for table `llx_c_paper_format`
--

CREATE TABLE `llx_c_paper_format` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(16) NOT NULL,
  `label` varchar(50) NOT NULL,
  `width` float(6,2) default '0.00',
  `height` float(6,2) default '0.00',
  `unit` varchar(5) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=226 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_paper_format`
--

INSERT INTO `llx_c_paper_format` (`rowid`, `code`, `label`, `width`, `height`, `unit`, `active`, `module`) VALUES (1,'EU4A0','Format 4A0',1682.00,2378.00,'mm',1,NULL),(2,'EU2A0','Format 2A0',1189.00,1682.00,'mm',1,NULL),(3,'EUA0','Format A0',840.00,1189.00,'mm',1,NULL),(4,'EUA1','Format A1',594.00,840.00,'mm',1,NULL),(5,'EUA2','Format A2',420.00,594.00,'mm',1,NULL),(6,'EUA3','Format A3',297.00,420.00,'mm',1,NULL),(7,'EUA4','Format A4',210.00,297.00,'mm',1,NULL),(8,'EUA5','Format A5',148.00,210.00,'mm',1,NULL),(9,'EUA6','Format A6',105.00,148.00,'mm',1,NULL),(100,'USLetter','Format Letter (A)',216.00,279.00,'mm',1,NULL),(105,'USLegal','Format Legal',216.00,356.00,'mm',1,NULL),(110,'USExecutive','Format Executive',190.00,254.00,'mm',1,NULL),(115,'USLedger','Format Ledger/Tabloid (B)',279.00,432.00,'mm',1,NULL),(200,'CAP1','Format Canadian P1',560.00,860.00,'mm',1,NULL),(205,'CAP2','Format Canadian P2',430.00,560.00,'mm',1,NULL),(210,'CAP3','Format Canadian P3',280.00,430.00,'mm',1,NULL),(215,'CAP4','Format Canadian P4',215.00,280.00,'mm',1,NULL),(220,'CAP5','Format Canadian P5',140.00,215.00,'mm',1,NULL),(225,'CAP6','Format Canadian P6',107.00,140.00,'mm',1,NULL);

--
-- Table structure for table `llx_c_payment_term`
--

CREATE TABLE `llx_c_payment_term` (
  `rowid` int(11) NOT NULL,
  `code` varchar(16) default NULL,
  `sortorder` smallint(6) default NULL,
  `active` tinyint(4) default '1',
  `libelle` varchar(255) default NULL,
  `libelle_facture` text,
  `fdm` tinyint(4) default NULL,
  `nbjour` smallint(6) default NULL,
  `decalage` smallint(6) default NULL,
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_payment_term`
--

INSERT INTO `llx_c_payment_term` (`rowid`, `code`, `sortorder`, `active`, `libelle`, `libelle_facture`, `fdm`, `nbjour`, `decalage`, `module`) VALUES (1,'RECEP',1,1,'A réception','Réception de facture',0,0,NULL,NULL),(2,'30D',2,1,'30 jours','Réglement à 30 jours',0,30,NULL,NULL),(3,'30DENDMONTH',3,1,'30 jours fin de mois','Réglement à 30 jours fin de mois',1,30,NULL,NULL),(4,'60D',4,1,'60 jours','Réglement à 60 jours',0,60,NULL,NULL),(5,'60DENDMONTH',5,1,'60 jours fin de mois','Réglement à 60 jours fin de mois',1,60,NULL,NULL);

--
-- Table structure for table `llx_c_pays`
--

CREATE TABLE `llx_c_pays` (
  `rowid` int(11) NOT NULL,
  `code` varchar(2) NOT NULL,
  `code_iso` varchar(3) default NULL,
  `libelle` varchar(50) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_c_pays_code` (`code`),
  UNIQUE KEY `idx_c_pays_libelle` (`libelle`),
  UNIQUE KEY `idx_c_pays_code_iso` (`code_iso`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_pays`
--

INSERT INTO `llx_c_pays` (`rowid`, `code`, `code_iso`, `libelle`, `active`) VALUES (0,'',NULL,'-',1),(1,'FR',NULL,'France',1),(2,'BE',NULL,'Belgium',1),(3,'IT',NULL,'Italy',1),(4,'ES',NULL,'Spain',1),(5,'DE',NULL,'Germany',1),(6,'CH',NULL,'Suisse',1),(7,'GB',NULL,'United Kingdom',1),(8,'IE',NULL,'Irland',1),(9,'CN',NULL,'China',1),(10,'TN',NULL,'Tunisie',1),(11,'US',NULL,'United States',1),(12,'MA',NULL,'Maroc',1),(13,'DZ',NULL,'Algérie',1),(14,'CA',NULL,'Canada',1),(15,'TG',NULL,'Togo',1),(16,'GA',NULL,'Gabon',1),(17,'NL',NULL,'Nerderland',1),(18,'HU',NULL,'Hongrie',1),(19,'RU',NULL,'Russia',1),(20,'SE',NULL,'Sweden',1),(21,'CI',NULL,'Côte d\'Ivoire',1),(22,'SN',NULL,'Sénégal',1),(23,'AR',NULL,'Argentine',1),(24,'CM',NULL,'Cameroun',1),(25,'PT',NULL,'Portugal',1),(26,'SA',NULL,'Arabie Saoudite',1),(27,'MC',NULL,'Monaco',1),(28,'AU',NULL,'Australia',1),(29,'SG',NULL,'Singapour',1),(30,'AF',NULL,'Afghanistan',1),(31,'AX',NULL,'Iles Aland',1),(32,'AL',NULL,'Albanie',1),(33,'AS',NULL,'Samoa américaines',1),(34,'AD',NULL,'Andorre',1),(35,'AO',NULL,'Angola',1),(36,'AI',NULL,'Anguilla',1),(37,'AQ',NULL,'Antarctique',1),(38,'AG',NULL,'Antigua-et-Barbuda',1),(39,'AM',NULL,'Arménie',1),(40,'AW',NULL,'Aruba',1),(41,'AT',NULL,'Autriche',1),(42,'AZ',NULL,'Azerbaïdjan',1),(43,'BS',NULL,'Bahamas',1),(44,'BH',NULL,'Bahreïn',1),(45,'BD',NULL,'Bangladesh',1),(46,'BB',NULL,'Barbade',1),(47,'BY',NULL,'Biélorussie',1),(48,'BZ',NULL,'Belize',1),(49,'BJ',NULL,'Bénin',1),(50,'BM',NULL,'Bermudes',1),(51,'BT',NULL,'Bhoutan',1),(52,'BO',NULL,'Bolivie',1),(53,'BA',NULL,'Bosnie-Herzégovine',1),(54,'BW',NULL,'Botswana',1),(55,'BV',NULL,'Ile Bouvet',1),(56,'BR',NULL,'Brazil',1),(57,'IO',NULL,'Territoire britannique de l\'Océan Indien',1),(58,'BN',NULL,'Brunei',1),(59,'BG',NULL,'Bulgarie',1),(60,'BF',NULL,'Burkina Faso',1),(61,'BI',NULL,'Burundi',1),(62,'KH',NULL,'Cambodge',1),(63,'CV',NULL,'Cap-Vert',1),(64,'KY',NULL,'Iles Cayman',1),(65,'CF',NULL,'République centrafricaine',1),(66,'TD',NULL,'Tchad',1),(67,'CL',NULL,'Chili',1),(68,'CX',NULL,'Ile Christmas',1),(69,'CC',NULL,'Iles des Cocos (Keeling)',1),(70,'CO',NULL,'Colombie',1),(71,'KM',NULL,'Comores',1),(72,'CG',NULL,'Congo',1),(73,'CD',NULL,'République démocratique du Congo',1),(74,'CK',NULL,'Iles Cook',1),(75,'CR',NULL,'Costa Rica',1),(76,'HR',NULL,'Croatie',1),(77,'CU',NULL,'Cuba',1),(78,'CY',NULL,'Chypre',1),(79,'CZ',NULL,'République Tchèque',1),(80,'DK',NULL,'Danemark',1),(81,'DJ',NULL,'Djibouti',1),(82,'DM',NULL,'Dominique',1),(83,'DO',NULL,'République Dominicaine',1),(84,'EC',NULL,'Equateur',1),(85,'EG',NULL,'Egypte',1),(86,'SV',NULL,'Salvador',1),(87,'GQ',NULL,'Guinée Equatoriale',1),(88,'ER',NULL,'Erythrée',1),(89,'EE',NULL,'Estonie',1),(90,'ET',NULL,'Ethiopie',1),(91,'FK',NULL,'Iles Falkland',1),(92,'FO',NULL,'Iles Féroé',1),(93,'FJ',NULL,'Iles Fidji',1),(94,'FI',NULL,'Finlande',1),(95,'GF',NULL,'Guyane française',1),(96,'PF',NULL,'Polynésie française',1),(97,'TF',NULL,'Terres australes françaises',1),(98,'GM',NULL,'Gambie',1),(99,'GE',NULL,'Géorgie',1),(100,'GH',NULL,'Ghana',1),(101,'GI',NULL,'Gibraltar',1),(102,'GR',NULL,'Grèce',1),(103,'GL',NULL,'Groenland',1),(104,'GD',NULL,'Grenade',1),(106,'GU',NULL,'Guam',1),(107,'GT',NULL,'Guatemala',1),(108,'GN',NULL,'Guinée',1),(109,'GW',NULL,'Guinée-Bissao',1),(111,'HT',NULL,'Haiti',1),(112,'HM',NULL,'Iles Heard et McDonald',1),(113,'VA',NULL,'Saint-Siège (Vatican)',1),(114,'HN',NULL,'Honduras',1),(115,'HK',NULL,'Hong Kong',1),(116,'IS',NULL,'Islande',1),(117,'IN',NULL,'India',1),(118,'ID',NULL,'Indonésie',1),(119,'IR',NULL,'Iran',1),(120,'IQ',NULL,'Iraq',1),(121,'IL',NULL,'Israel',1),(122,'JM',NULL,'Jamaïque',1),(123,'JP',NULL,'Japon',1),(124,'JO',NULL,'Jordanie',1),(125,'KZ',NULL,'Kazakhstan',1),(126,'KE',NULL,'Kenya',1),(127,'KI',NULL,'Kiribati',1),(128,'KP',NULL,'Corée du Nord',1),(129,'KR',NULL,'Corée du Sud',1),(130,'KW',NULL,'Koweït',1),(131,'KG',NULL,'Kirghizistan',1),(132,'LA',NULL,'Laos',1),(133,'LV',NULL,'Lettonie',1),(134,'LB',NULL,'Liban',1),(135,'LS',NULL,'Lesotho',1),(136,'LR',NULL,'Liberia',1),(137,'LY',NULL,'Libye',1),(138,'LI',NULL,'Liechtenstein',1),(139,'LT',NULL,'Lituanie',1),(140,'LU',NULL,'Luxembourg',1),(141,'MO',NULL,'Macao',1),(142,'MK',NULL,'ex-République yougoslave de Macédoine',1),(143,'MG',NULL,'Madagascar',1),(144,'MW',NULL,'Malawi',1),(145,'MY',NULL,'Malaisie',1),(146,'MV',NULL,'Maldives',1),(147,'ML',NULL,'Mali',1),(148,'MT',NULL,'Malte',1),(149,'MH',NULL,'Iles Marshall',1),(151,'MR',NULL,'Mauritanie',1),(152,'MU',NULL,'Maurice',1),(153,'YT',NULL,'Mayotte',1),(154,'MX',NULL,'Mexique',1),(155,'FM',NULL,'Micronésie',1),(156,'MD',NULL,'Moldavie',1),(157,'MN',NULL,'Mongolie',1),(158,'MS',NULL,'Monserrat',1),(159,'MZ',NULL,'Mozambique',1),(160,'MM',NULL,'Birmanie (Myanmar)',1),(161,'NA',NULL,'Namibie',1),(162,'NR',NULL,'Nauru',1),(163,'NP',NULL,'Népal',1),(164,'AN',NULL,'Antilles néerlandaises',1),(165,'NC',NULL,'Nouvelle-Calédonie',1),(166,'NZ',NULL,'Nouvelle-Zélande',1),(167,'NI',NULL,'Nicaragua',1),(168,'NE',NULL,'Niger',1),(169,'NG',NULL,'Nigeria',1),(170,'NU',NULL,'Nioué',1),(171,'NF',NULL,'Ile Norfolk',1),(172,'MP',NULL,'Mariannes du Nord',1),(173,'NO',NULL,'Norvège',1),(174,'OM',NULL,'Oman',1),(175,'PK',NULL,'Pakistan',1),(176,'PW',NULL,'Palaos',1),(177,'PS',NULL,'Territoire Palestinien Occupé',1),(178,'PA',NULL,'Panama',1),(179,'PG',NULL,'Papouasie-Nouvelle-Guinée',1),(180,'PY',NULL,'Paraguay',1),(181,'PE',NULL,'Pérou',1),(182,'PH',NULL,'Philippines',1),(183,'PN',NULL,'Iles Pitcairn',1),(184,'PL',NULL,'Pologne',1),(185,'PR',NULL,'Porto Rico',1),(186,'QA',NULL,'Qatar',1),(188,'RO',NULL,'Roumanie',1),(189,'RW',NULL,'Rwanda',1),(190,'SH',NULL,'Sainte-Hélène',1),(191,'KN',NULL,'Saint-Christophe-et-Niévès',1),(192,'LC',NULL,'Sainte-Lucie',1),(193,'PM',NULL,'Saint-Pierre-et-Miquelon',1),(194,'VC',NULL,'Saint-Vincent-et-les-Grenadines',1),(195,'WS',NULL,'Samoa',1),(196,'SM',NULL,'Saint-Marin',1),(197,'ST',NULL,'Sao Tomé-et-Principe',1),(198,'RS',NULL,'Serbie',1),(199,'SC',NULL,'Seychelles',1),(200,'SL',NULL,'Sierra Leone',1),(201,'SK',NULL,'Slovaquie',1),(202,'SI',NULL,'Slovénie',1),(203,'SB',NULL,'Iles Salomon',1),(204,'SO',NULL,'Somalie',1),(205,'ZA',NULL,'Afrique du Sud',1),(206,'GS',NULL,'Iles Géorgie du Sud et Sandwich du Sud',1),(207,'LK',NULL,'Sri Lanka',1),(208,'SD',NULL,'Soudan',1),(209,'SR',NULL,'Suriname',1),(210,'SJ',NULL,'Iles Svalbard et Jan Mayen',1),(211,'SZ',NULL,'Swaziland',1),(212,'SY',NULL,'Syrie',1),(213,'TW',NULL,'Taïwan',1),(214,'TJ',NULL,'Tadjikistan',1),(215,'TZ',NULL,'Tanzanie',1),(216,'TH',NULL,'Thaïlande',1),(217,'TL',NULL,'Timor Oriental',1),(218,'TK',NULL,'Tokélaou',1),(219,'TO',NULL,'Tonga',1),(220,'TT',NULL,'Trinité-et-Tobago',1),(221,'TR',NULL,'Turquie',1),(222,'TM',NULL,'Turkménistan',1),(223,'TC',NULL,'Iles Turks-et-Caicos',1),(224,'TV',NULL,'Tuvalu',1),(225,'UG',NULL,'Ouganda',1),(226,'UA',NULL,'Ukraine',1),(227,'AE',NULL,'Émirats arabes unis',1),(228,'UM',NULL,'Iles mineures éloignées des États-Unis',1),(229,'UY',NULL,'Uruguay',1),(230,'UZ',NULL,'Ouzbékistan',1),(231,'VU',NULL,'Vanuatu',1),(232,'VE',NULL,'Vénézuela',1),(233,'VN',NULL,'Viêt Nam',1),(234,'VG',NULL,'Iles Vierges britanniques',1),(235,'VI',NULL,'Iles Vierges américaines',1),(236,'WF',NULL,'Wallis-et-Futuna',1),(237,'EH',NULL,'Sahara occidental',1),(238,'YE',NULL,'Yémen',1),(239,'ZM',NULL,'Zambie',1),(240,'ZW',NULL,'Zimbabwe',1),(241,'GG',NULL,'Guernesey',1),(242,'IM',NULL,'Ile de Man',1),(243,'JE',NULL,'Jersey',1),(244,'ME',NULL,'Monténégro',1),(245,'BL',NULL,'Saint-Barthélemy',1),(246,'MF',NULL,'Saint-Martin',1);

--
-- Table structure for table `llx_c_propalst`
--

CREATE TABLE `llx_c_propalst` (
  `id` smallint(6) NOT NULL,
  `code` varchar(12) NOT NULL,
  `label` varchar(30) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_propalst`
--

INSERT INTO `llx_c_propalst` (`id`, `code`, `label`, `active`) VALUES (0,'PR_DRAFT','Brouillon',1),(1,'PR_OPEN','Ouverte',1),(2,'PR_SIGNED','Signée',1),(3,'PR_NOTSIGNED','Non Signée',1),(4,'PR_FAC','Facturée',1);

--
-- Table structure for table `llx_c_prospectlevel`
--

CREATE TABLE `llx_c_prospectlevel` (
  `code` varchar(12) NOT NULL,
  `label` varchar(30) default NULL,
  `sortorder` smallint(6) default NULL,
  `active` smallint(6) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_prospectlevel`
--

INSERT INTO `llx_c_prospectlevel` (`code`, `label`, `sortorder`, `active`, `module`) VALUES ('PL_HIGH','High',4,1,NULL),('PL_LOW','Low',2,1,NULL),('PL_MEDIUM','Medium',3,1,NULL),('PL_NONE','None',1,1,NULL);

--
-- Table structure for table `llx_c_regions`
--

CREATE TABLE `llx_c_regions` (
  `rowid` int(11) NOT NULL auto_increment,
  `code_region` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `cheflieu` varchar(50) default NULL,
  `tncc` int(11) default NULL,
  `nom` varchar(50) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `code_region` (`code_region`),
  KEY `idx_c_regions_fk_pays` (`fk_pays`),
  CONSTRAINT `fk_c_regions_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_pays` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=23210 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_regions`
--

INSERT INTO `llx_c_regions` (`rowid`, `code_region`, `fk_pays`, `cheflieu`, `tncc`, `nom`, `active`) VALUES (1,0,0,'0',0,'-',1),(101,1,1,'97105',3,'Guadeloupe',1),(102,2,1,'97209',3,'Martinique',1),(103,3,1,'97302',3,'Guyane',1),(104,4,1,'97411',3,'Réunion',1),(105,11,1,'75056',1,'Île-de-France',1),(106,21,1,'51108',0,'Champagne-Ardenne',1),(107,22,1,'80021',0,'Picardie',1),(108,23,1,'76540',0,'Haute-Normandie',1),(109,24,1,'45234',2,'Centre',1),(110,25,1,'14118',0,'Basse-Normandie',1),(111,26,1,'21231',0,'Bourgogne',1),(112,31,1,'59350',2,'Nord-Pas-de-Calais',1),(113,41,1,'57463',0,'Lorraine',1),(114,42,1,'67482',1,'Alsace',1),(115,43,1,'25056',0,'Franche-Comté',1),(116,52,1,'44109',4,'Pays de la Loire',1),(117,53,1,'35238',0,'Bretagne',1),(118,54,1,'86194',2,'Poitou-Charentes',1),(119,72,1,'33063',1,'Aquitaine',1),(120,73,1,'31555',0,'Midi-Pyrénées',1),(121,74,1,'87085',2,'Limousin',1),(122,82,1,'69123',2,'Rhône-Alpes',1),(123,83,1,'63113',1,'Auvergne',1),(124,91,1,'34172',2,'Languedoc-Roussillon',1),(125,93,1,'13055',0,'Provence-Alpes-Côte d\'Azur',1),(126,94,1,'2A004',0,'Corse',1),(201,201,2,'',1,'Flandre',1),(202,202,2,'',2,'Wallonie',1),(203,203,2,'',3,'Bruxelles-Capitale',1),(301,301,3,NULL,1,'Abruzzo',1),(302,302,3,NULL,1,'Basilicata',1),(303,303,3,NULL,1,'Calabria',1),(304,304,3,NULL,1,'Campania',1),(305,305,3,NULL,1,'Emilia-Romagna',1),(306,306,3,NULL,1,'Friuli-Venezia Giulia',1),(307,307,3,NULL,1,'Lazio',1),(308,308,3,NULL,1,'Liguria',1),(309,309,3,NULL,1,'Lombardia',1),(310,310,3,NULL,1,'Marche',1),(311,311,3,NULL,1,'Molise',1),(312,312,3,NULL,1,'Piemonte',1),(313,313,3,NULL,1,'Puglia',1),(314,314,3,NULL,1,'Sardegna',1),(315,315,3,NULL,1,'Sicilia',1),(316,316,3,NULL,1,'Toscana',1),(317,317,3,NULL,1,'Trentino-Alto Adige',1),(318,318,3,NULL,1,'Umbria',1),(319,319,3,NULL,1,'Valle d Aosta',1),(320,320,3,NULL,1,'Veneto',1),(401,401,4,'',0,'Andalucia',1),(402,402,4,'',0,'Aragón',1),(403,403,4,'',0,'Castilla y León',1),(404,404,4,'',0,'Castilla la Mancha',1),(405,405,4,'',0,'Canarias',1),(406,406,4,'',0,'Cataluña',1),(407,407,4,'',0,'Comunidad de Ceuta',1),(408,408,4,'',0,'Comunidad Foral de Navarra',1),(409,409,4,'',0,'Comunidad de Melilla',1),(410,410,4,'',0,'Cantabria',1),(411,411,4,'',0,'Comunidad Valenciana',1),(412,412,4,'',0,'Extemadura',1),(413,413,4,'',0,'Galicia',1),(414,414,4,'',0,'Islas Baleares',1),(415,415,4,'',0,'La Rioja',1),(416,416,4,'',0,'Comunidad de Madrid',1),(417,417,4,'',0,'Región de Murcia',1),(418,418,4,'',0,'Principado de Asturias',1),(419,419,4,'',0,'Pais Vasco',1),(420,420,4,'',0,'Otros',1),(501,501,5,'',0,'Deutschland',1),(601,601,6,'',1,'Cantons',1),(1001,1001,10,'',0,'Ariana',1),(1002,1002,10,'',0,'Béja',1),(1003,1003,10,'',0,'Ben Arous',1),(1004,1004,10,'',0,'Bizerte',1),(1005,1005,10,'',0,'Gabès',1),(1006,1006,10,'',0,'Gafsa',1),(1007,1007,10,'',0,'Jendouba',1),(1008,1008,10,'',0,'Kairouan',1),(1009,1009,10,'',0,'Kasserine',1),(1010,1010,10,'',0,'Kébili',1),(1011,1011,10,'',0,'La Manouba',1),(1012,1012,10,'',0,'Le Kef',1),(1013,1013,10,'',0,'Mahdia',1),(1014,1014,10,'',0,'Médenine',1),(1015,1015,10,'',0,'Monastir',1),(1016,1016,10,'',0,'Nabeul',1),(1017,1017,10,'',0,'Sfax',1),(1018,1018,10,'',0,'Sidi Bouzid',1),(1019,1019,10,'',0,'Siliana',1),(1020,1020,10,'',0,'Sousse',1),(1021,1021,10,'',0,'Tataouine',1),(1022,1022,10,'',0,'Tozeur',1),(1023,1023,10,'',0,'Tunis',1),(1024,1024,10,'',0,'Zaghouan',1),(1101,1101,11,'',0,'United-States',1),(2301,2301,23,'',0,'Norte',1),(2302,2302,23,'',0,'Litoral',1),(2303,2303,23,'',0,'Cuyana',1),(2304,2304,23,'',0,'Central',1),(2305,2305,23,'',0,'Patagonia',1),(2801,2801,28,'',0,'Australia',1),(4601,4601,46,'',0,'Barbados',1),(5601,5601,56,'',0,'Brasil',1),(6701,6701,67,NULL,NULL,'Tarapacá',1),(6702,6702,67,NULL,NULL,'Antofagasta',1),(6703,6703,67,NULL,NULL,'Atacama',1),(6704,6704,67,NULL,NULL,'Coquimbo',1),(6705,6705,67,NULL,NULL,'Valparaíso',1),(6706,6706,67,NULL,NULL,'General Bernardo O Higgins',1),(6707,6707,67,NULL,NULL,'Maule',1),(6708,6708,67,NULL,NULL,'Biobío',1),(6709,6709,67,NULL,NULL,'Raucanía',1),(6710,6710,67,NULL,NULL,'Los Lagos',1),(6711,6711,67,NULL,NULL,'Aysén General Carlos Ibáñez del Campo',1),(6712,6712,67,NULL,NULL,'Magallanes y Antártica Chilena',1),(6713,6713,67,NULL,NULL,'Metropolitana de Santiago',1),(6714,6714,67,NULL,NULL,'Los Ríos',1),(6715,6715,67,NULL,NULL,'Arica y Parinacota',1),(7001,7001,70,'',0,'Colombie',1),(8601,8601,86,NULL,NULL,'Central',1),(8602,8602,86,NULL,NULL,'Oriental',1),(8603,8603,86,NULL,NULL,'Occidental',1),(11401,11401,114,'',0,'Honduras',1),(11701,11701,117,'',0,'India',1),(15201,15201,152,'',0,'Rivière Noire',1),(15202,15202,152,'',0,'Flacq',1),(15203,15203,152,'',0,'Grand Port',1),(15204,15204,152,'',0,'Moka',1),(15205,15205,152,'',0,'Pamplemousses',1),(15206,15206,152,'',0,'Plaines Wilhems',1),(15207,15207,152,'',0,'Port-Louis',1),(15208,15208,152,'',0,'Rivière du Rempart',1),(15209,15209,152,'',0,'Savanne',1),(15210,15210,152,'',0,'Rodrigues',1),(15211,15211,152,'',0,'Les îles Agaléga',1),(15212,15212,152,'',0,'Les écueils des Cargados Carajos',1),(15401,15401,154,'',0,'Mexique',1),(23201,23201,232,'',0,'Los Andes',1),(23202,23202,232,'',0,'Capital',1),(23203,23203,232,'',0,'Central',1),(23204,23204,232,'',0,'Cento Occidental',1),(23205,23205,232,'',0,'Guayana',1),(23206,23206,232,'',0,'Insular',1),(23207,23207,232,'',0,'Los Llanos',1),(23208,23208,232,'',0,'Nor-Oriental',1),(23209,23209,232,'',0,'Zuliana',1);

--
-- Table structure for table `llx_c_shipment_mode`
--

CREATE TABLE `llx_c_shipment_mode` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `code` varchar(30) NOT NULL,
  `libelle` varchar(50) NOT NULL,
  `description` text,
  `active` tinyint(4) default '0',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_shipment_mode`
--

INSERT INTO `llx_c_shipment_mode` (`rowid`, `tms`, `code`, `libelle`, `description`, `active`, `module`) VALUES (1,'2013-01-29 16:22:26','CATCH','Catch','Catch by client',1,NULL),(2,'2013-01-29 16:22:26','TRANS','Transporter','Generic transporter',1,NULL),(3,'2013-01-29 16:22:26','COLSUI','Colissimo Suivi','Colissimo Suivi',0,NULL),(4,'2013-01-29 16:22:26','LETTREMAX','Lettre Max','Courrier Suivi et Lettre Max',0,NULL);

--
-- Table structure for table `llx_c_stcomm`
--

CREATE TABLE `llx_c_stcomm` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_stcomm`
--

INSERT INTO `llx_c_stcomm` (`id`, `code`, `libelle`, `active`) VALUES (-1,'ST_NO','Ne pas contacter',1),(0,'ST_NEVER','Jamais contacté',1),(1,'ST_TODO','A contacter',1),(2,'ST_PEND','Contact en cours',1),(3,'ST_DONE','Contactée',1);

--
-- Table structure for table `llx_c_tva`
--

CREATE TABLE `llx_c_tva` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `localtax1` double NOT NULL default '0',
  `localtax2` double NOT NULL default '0',
  `recuperableonly` int(11) NOT NULL default '0',
  `note` varchar(128) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `accountancy_code` varchar(15) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2462 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_tva`
--

INSERT INTO `llx_c_tva` (`rowid`, `fk_pays`, `taux`, `localtax1`, `localtax2`, `recuperableonly`, `note`, `active`, `accountancy_code`) VALUES (11,1,19.6,0,0,0,'VAT standard rate (France hors DOM-TOM)',1,NULL),(12,1,8.5,0,0,0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL),(13,1,8.5,0,0,1,'VAT standard rate (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par acheteur',0,NULL),(14,1,5.5,0,0,0,'VAT reduced rate (France hors DOM-TOM)',1,NULL),(15,1,0,0,0,0,'VAT Rate 0 ou non applicable',1,NULL),(16,1,2.1,0,0,0,'VAT super-reduced rate',1,NULL),(17,1,7,0,0,0,'VAT reduced rate',1,NULL),(21,2,21,0,0,0,'VAT standard rate',1,NULL),(22,2,6,0,0,0,'VAT reduced rate',1,NULL),(23,2,0,0,0,0,'VAT Rate 0 ou non applicable',1,NULL),(24,2,12,0,0,0,'VAT reduced rate',1,NULL),(31,3,21,0,0,0,'VAT standard rate',1,NULL),(32,3,10,0,0,0,'VAT reduced rate',1,NULL),(33,3,4,0,0,0,'VAT super-reduced rate',1,NULL),(34,3,0,0,0,0,'VAT Rate 0',1,NULL),(41,4,21,5.2,0,0,'VAT standard rate',1,NULL),(42,4,10,1.4,0,0,'VAT reduced rate',1,NULL),(43,4,4,0.5,0,0,'VAT super-reduced rate',1,NULL),(44,4,0,0,0,0,'VAT Rate 0',1,NULL),(51,5,19,0,0,0,'allgemeine Ust.',1,NULL),(52,5,7,0,0,0,'ermäßigte USt.',1,NULL),(53,5,0,0,0,0,'keine USt.',1,NULL),(54,5,5.5,0,0,0,'USt. Forst',0,NULL),(55,5,10.7,0,0,0,'USt. Landwirtschaft',0,NULL),(61,6,8,0,0,0,'VAT standard rate',1,NULL),(62,6,3.8,0,0,0,'VAT reduced rate',1,NULL),(63,6,2.5,0,0,0,'VAT super-reduced rate',1,NULL),(64,6,0,0,0,0,'VAT Rate 0',1,NULL),(71,7,20,0,0,0,'VAT standard rate',1,NULL),(72,7,17.5,0,0,0,'VAT standard rate before 2011',1,NULL),(73,7,5,0,0,0,'VAT reduced rate',1,NULL),(74,7,0,0,0,0,'VAT Rate 0',1,NULL),(91,9,17,0,0,0,'VAT standard rate',1,NULL),(92,9,13,0,0,0,'VAT reduced rate 0',1,NULL),(93,9,3,0,0,0,'VAT super reduced rate 0',1,NULL),(94,9,0,0,0,0,'VAT Rate 0',1,NULL),(101,10,6,0,0,0,'VAT 6%',1,NULL),(102,10,12,0,0,0,'VAT 12%',1,NULL),(103,10,18,0,0,0,'VAT 18%',1,NULL),(104,10,7.5,0,0,0,'VAT 6% Majoré à 25% (7.5%)',1,NULL),(105,10,15,0,0,0,'VAT 12% Majoré à 25% (15%)',1,NULL),(106,10,22.5,0,0,0,'VAT 18% Majoré à 25% (22.5%)',1,NULL),(107,10,0,0,0,0,'VAT Rate 0',1,NULL),(111,11,0,0,0,0,'No Sales Tax',1,NULL),(112,11,4,0,0,0,'Sales Tax 4%',1,NULL),(113,11,6,0,0,0,'Sales Tax 6%',1,NULL),(121,12,20,0,0,0,'VAT standard rate',1,NULL),(122,12,14,0,0,0,'VAT reduced rate',1,NULL),(123,12,10,0,0,0,'VAT reduced rate',1,NULL),(124,12,7,0,0,0,'VAT super-reduced rate',1,NULL),(125,12,0,0,0,0,'VAT Rate 0',1,NULL),(141,14,7,0,0,0,'VAT standard rate',1,NULL),(142,14,0,0,0,0,'VAT Rate 0',1,NULL),(171,17,19,0,0,0,'Algemeen BTW tarief',1,NULL),(172,17,6,0,0,0,'Verlaagd BTW tarief',1,NULL),(173,17,0,0,0,0,'0 BTW tarief',1,NULL),(174,17,21,0,0,0,'Algemeen BTW tarief (vanaf 1 oktober 2012)',0,NULL),(201,20,25,0,0,0,'VAT standard rate',1,NULL),(202,20,12,0,0,0,'VAT reduced rate',1,NULL),(203,20,6,0,0,0,'VAT super-reduced rate',1,NULL),(204,20,0,0,0,0,'VAT Rate 0',1,NULL),(231,23,21,0,0,0,'IVA standard rate',1,NULL),(232,23,10.5,0,0,0,'IVA reduced rate',1,NULL),(233,23,0,0,0,0,'IVA Rate 0',1,NULL),(251,25,23,0,0,0,'VAT standard rate',1,NULL),(252,25,13,0,0,0,'VAT reduced rate',1,NULL),(253,25,0,0,0,0,'VAT Rate 0',1,NULL),(254,25,6,0,0,0,'VAT reduced rate',1,NULL),(281,28,10,0,0,0,'VAT standard rate',1,NULL),(282,28,0,0,0,0,'VAT Rate 0',1,NULL),(411,41,20,0,0,0,'VAT standard rate',1,NULL),(412,41,10,0,0,0,'VAT reduced rate',1,NULL),(413,41,0,0,0,0,'VAT Rate 0',1,NULL),(461,46,0,0,0,0,'No VAT',1,NULL),(462,46,15,0,0,0,'VAT 15%',1,NULL),(463,46,7.5,0,0,0,'VAT 7.5%',1,NULL),(561,56,0,0,0,0,'VAT reduced rate',1,NULL),(591,59,20,0,0,0,'VAT standard rate',1,NULL),(592,59,7,0,0,0,'VAT reduced rate',1,NULL),(593,59,0,0,0,0,'VAT Rate 0',1,NULL),(671,67,19,0,0,0,'VAT standard rate',1,NULL),(672,67,0,0,0,0,'VAT Rate 0',1,NULL),(801,80,25,0,0,0,'VAT standard rate',1,NULL),(802,80,0,0,0,0,'VAT Rate 0',1,NULL),(861,86,13,0,0,0,'IVA 13',1,NULL),(862,86,0,0,0,0,'SIN IVA',1,NULL),(1141,114,0,0,0,0,'No ISV',1,NULL),(1142,114,12,0,0,0,'ISV 12%',1,NULL),(1161,116,25.5,0,0,0,'VAT standard rate',1,NULL),(1162,116,7,0,0,0,'VAT reduced rate',1,NULL),(1163,116,0,0,0,0,'VAT rate 0',1,NULL),(1171,117,12.5,0,0,0,'VAT standard rate',1,NULL),(1172,117,4,0,0,0,'VAT reduced rate',1,NULL),(1173,117,1,0,0,0,'VAT super-reduced rate',1,NULL),(1174,117,0,0,0,0,'VAT Rate 0',1,NULL),(1231,123,0,0,0,0,'VAT Rate 0',1,NULL),(1232,123,5,0,0,0,'VAT Rate 5',1,NULL),(1401,140,15,0,0,0,'VAT standard rate',1,NULL),(1402,140,12,0,0,0,'VAT reduced rate',1,NULL),(1403,140,6,0,0,0,'VAT reduced rate',1,NULL),(1404,140,3,0,0,0,'VAT super-reduced rate',1,NULL),(1405,140,0,0,0,0,'VAT Rate 0',1,NULL),(1521,152,0,0,0,0,'VAT Rate 0',1,NULL),(1522,152,15,0,0,0,'VAT Rate 15',1,NULL),(1541,154,0,0,0,0,'No VAT',1,NULL),(1542,154,16,0,0,0,'VAT 16%',1,NULL),(1543,154,10,0,0,0,'VAT Frontero',1,NULL),(1662,166,15,0,0,0,'VAT standard rate',1,NULL),(1663,166,0,0,0,0,'VAT Rate 0',1,NULL),(1731,173,25,0,0,0,'VAT standard rate',1,NULL),(1732,173,14,0,0,0,'VAT reduced rate',1,NULL),(1733,173,8,0,0,0,'VAT reduced rate',1,NULL),(1734,173,0,0,0,0,'VAT Rate 0',1,NULL),(1841,184,20,0,0,0,'VAT standard rate',1,NULL),(1842,184,7,0,0,0,'VAT reduced rate',1,NULL),(1843,184,3,0,0,0,'VAT reduced rate',1,NULL),(1844,184,0,0,0,0,'VAT Rate 0',1,NULL),(1881,188,24,0,0,0,'VAT standard rate',1,NULL),(1882,188,9,0,0,0,'VAT reduced rate',1,NULL),(1883,188,0,0,0,0,'VAT Rate 0',1,NULL),(1884,188,5,0,0,0,'VAT reduced rate',1,NULL),(1931,193,0,0,0,0,'No VAT in SPM',1,NULL),(2011,201,19,0,0,0,'VAT standard rate',1,NULL),(2012,201,10,0,0,0,'VAT reduced rate',1,NULL),(2013,201,0,0,0,0,'VAT Rate 0',1,NULL),(2021,202,20,0,0,0,'VAT standard rate',1,NULL),(2022,202,8.5,0,0,0,'VAT reduced rate',1,NULL),(2023,202,0,0,0,0,'VAT Rate 0',1,NULL),(2261,226,20,0,0,0,'VAT standart rate',1,NULL),(2262,226,0,0,0,0,'VAT Rate 0',1,NULL),(2321,232,0,0,0,0,'No VAT',1,NULL),(2322,232,12,0,0,0,'VAT 12%',1,NULL),(2323,232,8,0,0,0,'VAT 8%',1,NULL),(2461,246,0,0,0,0,'VAT Rate 0',1,NULL);

--
-- Table structure for table `llx_c_type_contact`
--

CREATE TABLE `llx_c_type_contact` (
  `rowid` int(11) NOT NULL,
  `element` varchar(30) NOT NULL,
  `source` varchar(8) NOT NULL default 'external',
  `code` varchar(16) NOT NULL,
  `libelle` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_c_type_contact_uk` (`element`,`source`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_type_contact`
--

INSERT INTO `llx_c_type_contact` (`rowid`, `element`, `source`, `code`, `libelle`, `active`, `module`) VALUES (10,'contrat','internal','SALESREPSIGN','Commercial signataire du contrat',1,NULL),(11,'contrat','internal','SALESREPFOLL','Commercial suivi du contrat',1,NULL),(20,'contrat','external','BILLING','Contact client facturation contrat',1,NULL),(21,'contrat','external','CUSTOMER','Contact client suivi contrat',1,NULL),(22,'contrat','external','SALESREPSIGN','Contact client signataire contrat',1,NULL),(31,'propal','internal','SALESREPFOLL','Commercial à l\'origine de la propale',1,NULL),(40,'propal','external','BILLING','Contact client facturation propale',1,NULL),(41,'propal','external','CUSTOMER','Contact client suivi propale',1,NULL),(50,'facture','internal','SALESREPFOLL','Responsable suivi du paiement',1,NULL),(60,'facture','external','BILLING','Contact client facturation',1,NULL),(61,'facture','external','SHIPPING','Contact client livraison',1,NULL),(62,'facture','external','SERVICE','Contact client prestation',1,NULL),(70,'invoice_supplier','internal','SALESREPFOLL','Responsable suivi du paiement',1,NULL),(71,'invoice_supplier','external','BILLING','Contact fournisseur facturation',1,NULL),(72,'invoice_supplier','external','SHIPPING','Contact fournisseur livraison',1,NULL),(73,'invoice_supplier','external','SERVICE','Contact fournisseur prestation',1,NULL),(91,'commande','internal','SALESREPFOLL','Responsable suivi de la commande',1,NULL),(100,'commande','external','BILLING','Contact client facturation commande',1,NULL),(101,'commande','external','CUSTOMER','Contact client suivi commande',1,NULL),(102,'commande','external','SHIPPING','Contact client livraison commande',1,NULL),(120,'fichinter','internal','INTERREPFOLL','Responsable suivi de l\'intervention',1,NULL),(121,'fichinter','internal','INTERVENING','Intervenant',1,NULL),(130,'fichinter','external','BILLING','Contact client facturation intervention',1,NULL),(131,'fichinter','external','CUSTOMER','Contact client suivi de l\'intervention',1,NULL),(140,'order_supplier','internal','SALESREPFOLL','Responsable suivi de la commande',1,NULL),(141,'order_supplier','internal','SHIPPING','Responsable réception de la commande',1,NULL),(142,'order_supplier','external','BILLING','Contact fournisseur facturation commande',1,NULL),(143,'order_supplier','external','CUSTOMER','Contact fournisseur suivi commande',1,NULL),(145,'order_supplier','external','SHIPPING','Contact fournisseur livraison commande',1,NULL),(160,'project','internal','PROJECTLEADER','Chef de Projet',1,NULL),(161,'project','internal','CONTRIBUTOR','Intervenant',1,NULL),(170,'project','external','PROJECTLEADER','Chef de Projet',1,NULL),(171,'project','external','CONTRIBUTOR','Intervenant',1,NULL),(180,'project_task','internal','TASKEXECUTIVE','Responsable',1,NULL),(181,'project_task','internal','CONTRIBUTOR','Intervenant',1,NULL),(190,'project_task','external','TASKEXECUTIVE','Responsable',1,NULL),(191,'project_task','external','CONTRIBUTOR','Intervenant',1,NULL);

--
-- Table structure for table `llx_c_type_fees`
--

CREATE TABLE `llx_c_type_fees` (
  `id` int(11) NOT NULL auto_increment,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_type_fees`
--

INSERT INTO `llx_c_type_fees` (`id`, `code`, `libelle`, `active`, `module`) VALUES (1,'TF_OTHER','Other',1,NULL),(2,'TF_TRIP','Trip',1,NULL),(3,'TF_LUNCH','Lunch',1,NULL);

--
-- Table structure for table `llx_c_typent`
--

CREATE TABLE `llx_c_typent` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_typent`
--

INSERT INTO `llx_c_typent` (`id`, `code`, `libelle`, `active`, `module`) VALUES (0,'TE_UNKNOWN','-',1,NULL),(1,'TE_STARTUP','Start-up',0,NULL),(2,'TE_GROUP','Grand groupe',1,NULL),(3,'TE_MEDIUM','PME/PMI',1,NULL),(4,'TE_SMALL','TPE',1,NULL),(5,'TE_ADMIN','Administration',1,NULL),(6,'TE_WHOLE','Grossiste',0,NULL),(7,'TE_RETAIL','Revendeur',0,NULL),(8,'TE_PRIVATE','Particulier',1,NULL),(100,'TE_OTHER','Autres',1,NULL);

--
-- Table structure for table `llx_c_ziptown`
--

CREATE TABLE `llx_c_ziptown` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(5) default NULL,
  `fk_county` int(11) default NULL,
  `fk_pays` int(11) NOT NULL default '0',
  `zip` varchar(10) NOT NULL,
  `town` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_ziptown_fk_pays` (`zip`,`town`,`fk_pays`),
  KEY `idx_c_ziptown_fk_county` (`fk_county`),
  KEY `idx_c_ziptown_fk_pays` (`fk_pays`),
  KEY `idx_c_ziptown_zip` (`zip`),
  CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `llx_c_departements` (`rowid`),
  CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_pays` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_ziptown`
--


--
-- Table structure for table `llx_categorie`
--

CREATE TABLE `llx_categorie` (
  `rowid` int(11) NOT NULL auto_increment,
  `label` varchar(255) default NULL,
  `type` tinyint(4) NOT NULL default '1',
  `entity` int(11) NOT NULL default '1',
  `description` text,
  `fk_soc` int(11) default NULL,
  `visible` tinyint(4) NOT NULL default '1',
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_categorie_ref` (`label`,`type`,`entity`),
  KEY `idx_categorie_type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie`
--


--
-- Table structure for table `llx_categorie_association`
--

CREATE TABLE `llx_categorie_association` (
  `fk_categorie_mere` int(11) NOT NULL,
  `fk_categorie_fille` int(11) NOT NULL,
  UNIQUE KEY `uk_categorie_association` (`fk_categorie_mere`,`fk_categorie_fille`),
  UNIQUE KEY `uk_categorie_association_fk_categorie_fille` (`fk_categorie_fille`),
  CONSTRAINT `fk_categorie_asso_fk_categorie_fille` FOREIGN KEY (`fk_categorie_fille`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_asso_fk_categorie_mere` FOREIGN KEY (`fk_categorie_mere`) REFERENCES `llx_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie_association`
--


--
-- Table structure for table `llx_categorie_fournisseur`
--

CREATE TABLE `llx_categorie_fournisseur` (
  `fk_categorie` int(11) NOT NULL,
  `fk_societe` int(11) NOT NULL,
  PRIMARY KEY  (`fk_categorie`,`fk_societe`),
  KEY `idx_categorie_fournisseur_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_fournisseur_fk_societe` (`fk_societe`),
  CONSTRAINT `fk_categorie_fournisseur_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_fournisseur_fk_soc` FOREIGN KEY (`fk_societe`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie_fournisseur`
--


--
-- Table structure for table `llx_categorie_member`
--

CREATE TABLE `llx_categorie_member` (
  `fk_categorie` int(11) NOT NULL,
  `fk_member` int(11) NOT NULL,
  PRIMARY KEY  (`fk_categorie`,`fk_member`),
  KEY `idx_categorie_member_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_member_fk_member` (`fk_member`),
  CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_member_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `llx_adherent` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie_member`
--


--
-- Table structure for table `llx_categorie_product`
--

CREATE TABLE `llx_categorie_product` (
  `fk_categorie` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL,
  PRIMARY KEY  (`fk_categorie`,`fk_product`),
  KEY `idx_categorie_product_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_product_fk_product` (`fk_product`),
  CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie_product`
--


--
-- Table structure for table `llx_categorie_societe`
--

CREATE TABLE `llx_categorie_societe` (
  `fk_categorie` int(11) NOT NULL,
  `fk_societe` int(11) NOT NULL,
  PRIMARY KEY  (`fk_categorie`,`fk_societe`),
  KEY `idx_categorie_societe_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_societe_fk_societe` (`fk_societe`),
  CONSTRAINT `fk_categorie_societe_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  CONSTRAINT `fk_categorie_societe_fk_soc` FOREIGN KEY (`fk_societe`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie_societe`
--


--
-- Table structure for table `llx_chargesociales`
--

CREATE TABLE `llx_chargesociales` (
  `rowid` int(11) NOT NULL auto_increment,
  `date_ech` datetime NOT NULL,
  `libelle` varchar(80) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `date_creation` datetime default NULL,
  `date_valid` datetime default NULL,
  `fk_type` int(11) NOT NULL,
  `amount` double NOT NULL default '0',
  `paye` smallint(6) NOT NULL default '0',
  `periode` date default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_chargesociales`
--


--
-- Table structure for table `llx_commande`
--

CREATE TABLE `llx_commande` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(255) default NULL,
  `ref_int` varchar(255) default NULL,
  `ref_client` varchar(255) default NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `date_creation` datetime default NULL,
  `date_valid` datetime default NULL,
  `date_cloture` datetime default NULL,
  `date_commande` date default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_user_cloture` int(11) default NULL,
  `source` smallint(6) default NULL,
  `fk_statut` smallint(6) default '0',
  `amount_ht` double default '0',
  `remise_percent` double default '0',
  `remise_absolue` double default '0',
  `remise` double default '0',
  `tva` double(24,8) default '0.00000000',
  `localtax1` double(24,8) default '0.00000000',
  `localtax2` double(24,8) default '0.00000000',
  `total_ht` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `note` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `facture` tinyint(4) default '0',
  `fk_account` int(11) default NULL,
  `fk_currency` varchar(2) default NULL,
  `fk_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `date_livraison` date default NULL,
  `fk_availability` int(11) default NULL,
  `fk_demand_reason` int(11) default NULL,
  `fk_adresse_livraison` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_commande_ref` (`ref`,`entity`),
  KEY `idx_commande_fk_soc` (`fk_soc`),
  KEY `idx_commande_fk_user_author` (`fk_user_author`),
  KEY `idx_commande_fk_user_valid` (`fk_user_valid`),
  KEY `idx_commande_fk_user_cloture` (`fk_user_cloture`),
  KEY `idx_commande_fk_projet` (`fk_projet`),
  KEY `idx_commande_fk_account` (`fk_account`),
  KEY `idx_commande_fk_currency` (`fk_currency`),
  CONSTRAINT `fk_commande_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_commande_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_commande_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_commande_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande`
--


--
-- Table structure for table `llx_commande_fournisseur`
--

CREATE TABLE `llx_commande_fournisseur` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(30) default NULL,
  `ref_supplier` varchar(30) default NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) default '0',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `date_creation` datetime default NULL,
  `date_valid` datetime default NULL,
  `date_cloture` datetime default NULL,
  `date_commande` date default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_user_cloture` int(11) default NULL,
  `source` smallint(6) NOT NULL,
  `fk_statut` smallint(6) default '0',
  `amount_ht` double default '0',
  `remise_percent` double default '0',
  `remise` double default '0',
  `tva` double(24,8) default '0.00000000',
  `localtax1` double(24,8) default '0.00000000',
  `localtax2` double(24,8) default '0.00000000',
  `total_ht` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `note` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `fk_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `fk_methode_commande` int(11) default '0',
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_commande_fournisseur_ref` (`ref`,`fk_soc`,`entity`),
  KEY `idx_commande_fournisseur_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_commande_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande_fournisseur`
--


--
-- Table structure for table `llx_commande_fournisseur_dispatch`
--

CREATE TABLE `llx_commande_fournisseur_dispatch` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_commande` int(11) default NULL,
  `fk_product` int(11) default NULL,
  `qty` float default NULL,
  `fk_entrepot` int(11) default NULL,
  `fk_user` int(11) default NULL,
  `datec` datetime default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande_fournisseur_dispatch`
--


--
-- Table structure for table `llx_commande_fournisseur_log`
--

CREATE TABLE `llx_commande_fournisseur_log` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datelog` datetime NOT NULL,
  `fk_commande` int(11) NOT NULL,
  `fk_statut` smallint(6) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `comment` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande_fournisseur_log`
--


--
-- Table structure for table `llx_commande_fournisseurdet`
--

CREATE TABLE `llx_commande_fournisseurdet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_commande` int(11) NOT NULL,
  `fk_product` int(11) default NULL,
  `ref` varchar(50) default NULL,
  `label` varchar(255) default NULL,
  `description` text,
  `tva_tx` double(6,3) default '0.000',
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `qty` double default NULL,
  `remise_percent` double default '0',
  `remise` double default '0',
  `subprice` double(24,8) default '0.00000000',
  `total_ht` double(24,8) default '0.00000000',
  `total_tva` double(24,8) default '0.00000000',
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `product_type` int(11) default '0',
  `date_start` datetime default NULL,
  `date_end` datetime default NULL,
  `info_bits` int(11) default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande_fournisseurdet`
--


--
-- Table structure for table `llx_commandedet`
--

CREATE TABLE `llx_commandedet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_commande` int(11) NOT NULL,
  `fk_parent_line` int(11) default NULL,
  `fk_product` int(11) default NULL,
  `description` text,
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default NULL,
  `localtax2_tx` double(6,3) default NULL,
  `qty` double default NULL,
  `remise_percent` double default '0',
  `remise` double default '0',
  `fk_remise_except` int(11) default NULL,
  `price` double default NULL,
  `subprice` double(24,8) default '0.00000000',
  `total_ht` double(24,8) default '0.00000000',
  `total_tva` double(24,8) default '0.00000000',
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `product_type` int(11) default '0',
  `date_start` datetime default NULL,
  `date_end` datetime default NULL,
  `info_bits` int(11) default '0',
  `marge_tx` double(6,3) default '0.000',
  `marque_tx` double(6,3) default '0.000',
  `special_code` int(10) unsigned default '0',
  `rang` int(11) default '0',
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_commandedet_fk_commande` (`fk_commande`),
  KEY `idx_commandedet_fk_product` (`fk_product`),
  CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `llx_commande` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commandedet`
--


--
-- Table structure for table `llx_compta`
--

CREATE TABLE `llx_compta` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `datev` date default NULL,
  `amount` double NOT NULL default '0',
  `label` varchar(255) default NULL,
  `fk_compta_account` int(11) default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `valid` tinyint(4) default '0',
  `note` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_compta`
--


--
-- Table structure for table `llx_compta_account`
--

CREATE TABLE `llx_compta_account` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `number` varchar(12) default NULL,
  `label` varchar(255) default NULL,
  `fk_user_author` int(11) default NULL,
  `note` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_compta_account`
--


--
-- Table structure for table `llx_compta_compte_generaux`
--

CREATE TABLE `llx_compta_compte_generaux` (
  `rowid` int(11) NOT NULL auto_increment,
  `date_creation` datetime default NULL,
  `numero` varchar(50) default NULL,
  `intitule` varchar(255) default NULL,
  `fk_user_author` int(11) default NULL,
  `note` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `numero` (`numero`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_compta_compte_generaux`
--


--
-- Table structure for table `llx_const`
--

CREATE TABLE `llx_const` (
  `rowid` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `value` text NOT NULL,
  `type` varchar(6) default NULL,
  `visible` tinyint(4) NOT NULL default '1',
  `note` text,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_const` (`name`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=232 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_const`
--

INSERT INTO `llx_const` (`rowid`, `name`, `entity`, `value`, `type`, `visible`, `note`, `tms`) VALUES (2,'MAIN_FEATURES_LEVEL',0,'0','chaine',1,'Level of features to show (0=stable only, 1=stable+experimental, 2=stable+experimental+development','2013-01-29 16:22:26'),(3,'SYSLOG_FILE_ON',0,'1','chaine',0,'Log to file Directory where to write log file','2013-01-29 16:22:26'),(4,'SYSLOG_FILE',0,'DOL_DATA_ROOT/dolibarr.log','chaine',0,'Directory where to write log file','2013-01-29 16:22:26'),(5,'SYSLOG_LEVEL',0,'7','chaine',0,'Level of debug info to show','2013-01-29 16:22:26'),(6,'MAIN_MAIL_SMTP_SERVER',0,'','chaine',0,'Host or ip address for SMTP server','2013-01-29 16:22:26'),(7,'MAIN_MAIL_SMTP_PORT',0,'','chaine',0,'Port for SMTP server','2013-01-29 16:22:26'),(8,'MAIN_UPLOAD_DOC',0,'2048','chaine',0,'Max size for file upload (0 means no upload allowed)','2013-01-29 16:22:26'),(10,'MAIN_MAIL_EMAIL_FROM',1,'dolibarr-robot@domain.com','chaine',0,'EMail emetteur pour les emails automatiques Dolibarr','2013-01-29 16:22:26'),(11,'MAIN_SIZE_LISTE_LIMIT',0,'25','chaine',0,'Longueur maximum des listes','2013-01-29 16:22:26'),(12,'MAIN_SHOW_WORKBOARD',0,'1','yesno',0,'Affichage tableau de bord de travail Dolibarr','2013-01-29 16:22:26'),(13,'MAIN_MENU_STANDARD',1,'eldy_backoffice.php','chaine',0,'Module de gestion de la barre de menu pour utilisateurs internes','2013-01-29 16:22:26'),(14,'MAIN_MENUFRONT_STANDARD',1,'eldy_frontoffice.php','chaine',0,'Module de gestion de la barre de menu pour utilisateurs externes','2013-01-29 16:22:26'),(15,'MAIN_MENU_SMARTPHONE',1,'eldy_backoffice.php','chaine',0,'Module de gestion de la barre de menu smartphone pour utilisateurs internes','2013-01-29 16:22:26'),(16,'MAIN_MENUFRONT_SMARTPHONE',1,'eldy_frontoffice.php','chaine',0,'Module de gestion de la barre de menu smartphone pour utilisateurs externes','2013-01-29 16:22:26'),(17,'MAIN_DELAY_ACTIONS_TODO',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur actions planifiées non réalisées','2013-01-29 16:22:26'),(18,'MAIN_DELAY_ORDERS_TO_PROCESS',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes clients non traitées','2013-01-29 16:22:26'),(19,'MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes fournisseurs non traitées','2013-01-29 16:22:26'),(20,'MAIN_DELAY_PROPALS_TO_CLOSE',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales à cloturer','2013-01-29 16:22:26'),(21,'MAIN_DELAY_PROPALS_TO_BILL',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales non facturées','2013-01-29 16:22:26'),(22,'MAIN_DELAY_CUSTOMER_BILLS_UNPAYED',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures client impayées','2013-01-29 16:22:26'),(23,'MAIN_DELAY_SUPPLIER_BILLS_TO_PAY',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures fournisseur impayées','2013-01-29 16:22:26'),(24,'MAIN_DELAY_NOT_ACTIVATED_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services à activer','2013-01-29 16:22:26'),(25,'MAIN_DELAY_RUNNING_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services expirés','2013-01-29 16:22:26'),(26,'MAIN_DELAY_MEMBERS',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur cotisations adhérent en retard','2013-01-29 16:22:26'),(27,'MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE',1,'62','chaine',0,'Tolérance de retard avant alerte (en jours) sur rapprochements bancaires à faire','2013-01-29 16:22:26'),(28,'SOCIETE_NOLIST_COURRIER',0,'1','yesno',0,'Liste les fichiers du repertoire courrier','2013-01-29 16:22:26'),(29,'SOCIETE_CODECLIENT_ADDON',1,'mod_codeclient_leopard','yesno',0,'Module to control third parties codes','2013-01-29 16:22:26'),(30,'SOCIETE_CODECOMPTA_ADDON',1,'mod_codecompta_panicum','yesno',0,'Module to control third parties codes','2013-01-29 16:22:26'),(31,'MAILING_EMAIL_FROM',1,'dolibarr@domain.com','chaine',0,'EMail emmetteur pour les envois d emailings','2013-01-29 16:22:26'),(32,'MAIN_MODULE_USER',0,'1',NULL,0,NULL,'2013-01-29 16:22:48'),(33,'MAIN_VERSION_LAST_INSTALL',0,'3.2.3','chaine',0,'Dolibarr version when install','2013-01-29 16:22:48'),(34,'MAIN_REMOVE_INSTALL_WARNING',0,'1','chaine',1,'Disable install warnings','2013-01-29 16:22:48'),(35,'MAIN_LANG_DEFAULT',1,'auto','chaine',0,'Default language','2013-01-29 16:22:48'),(68,'MAIN_SEARCHFORM_SOCIETE',1,'1','yesno',0,'Show form for quick company search','2013-01-29 16:27:38'),(69,'MAIN_SEARCHFORM_CONTACT',1,'1','yesno',0,'Show form for quick contact search','2013-01-29 16:27:38'),(70,'COMPANY_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/thirdparties','chaine',0,NULL,'2013-01-29 16:27:38'),(71,'MAIN_MODULE_PROPALE',1,'1',NULL,0,NULL,'2013-01-29 16:27:44'),(72,'PROPALE_ADDON_PDF',1,'azur','chaine',0,'Nom du gestionnaire de generation des propales en PDF','2013-01-29 16:27:44'),(73,'PROPALE_ADDON',1,'mod_propale_marbre','chaine',0,'Nom du gestionnaire de numerotation des propales','2013-01-29 16:27:44'),(74,'PROPALE_VALIDITY_DURATION',1,'15','chaine',0,'Duration of validity of business proposals','2013-01-29 16:27:44'),(75,'PROPALE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/proposals','chaine',0,NULL,'2013-01-29 16:27:44'),(78,'COMMANDE_ADDON_PDF',1,'einstein','chaine',0,'Nom du gestionnaire de generation des commandes en PDF','2013-01-29 16:27:49'),(79,'COMMANDE_ADDON',1,'mod_commande_marbre','chaine',0,'Nom du gestionnaire de numerotation des commandes','2013-01-29 16:27:49'),(80,'COMMANDE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/orders','chaine',0,NULL,'2013-01-29 16:27:49'),(82,'MAIN_MODULE_CONTRAT',1,'1',NULL,0,NULL,'2013-01-29 16:27:52'),(83,'CONTRACT_ADDON',1,'mod_contract_serpis','chaine',0,'Nom du gestionnaire de numerotation des contrats','2013-01-29 16:27:52'),(84,'MAIN_MODULE_SERVICE',1,'1',NULL,0,NULL,'2013-01-29 16:27:52'),(85,'MAIN_MODULE_FICHEINTER',1,'1',NULL,0,NULL,'2013-01-29 16:27:54'),(86,'FICHEINTER_ADDON_PDF',1,'soleil','chaine',0,NULL,'2013-01-29 16:27:54'),(89,'MAIN_MODULE_COMPTABILITE',1,'1',NULL,0,NULL,'2013-01-29 16:28:18'),(90,'MAIN_MODULE_FACTURE',1,'1',NULL,0,NULL,'2013-01-29 16:28:19'),(93,'FACTURE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/invoices','chaine',0,NULL,'2013-01-29 16:28:19'),(95,'MAIN_MODULE_BANQUE',1,'1',NULL,0,NULL,'2013-01-29 16:28:19'),(96,'MAIN_MODULE_TAX',1,'1',NULL,0,NULL,'2013-01-29 16:28:36'),(97,'MAIN_MODULE_DEPLACEMENT',1,'1',NULL,0,NULL,'2013-01-29 16:28:45'),(98,'MAIN_MODULE_AGENDA',1,'1',NULL,0,NULL,'2013-01-29 16:29:06'),(99,'MAIN_AGENDA_ACTIONAUTO_COMPANY_CREATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(100,'MAIN_AGENDA_ACTIONAUTO_CONTRACT_VALIDATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(101,'MAIN_AGENDA_ACTIONAUTO_PROPAL_VALIDATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(102,'MAIN_AGENDA_ACTIONAUTO_PROPAL_SENTBYMAIL',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(103,'MAIN_AGENDA_ACTIONAUTO_ORDER_VALIDATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(104,'MAIN_AGENDA_ACTIONAUTO_ORDER_SENTBYMAIL',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(105,'MAIN_AGENDA_ACTIONAUTO_BILL_VALIDATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(106,'MAIN_AGENDA_ACTIONAUTO_BILL_PAYED',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(107,'MAIN_AGENDA_ACTIONAUTO_BILL_CANCEL',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(108,'MAIN_AGENDA_ACTIONAUTO_BILL_SENTBYMAIL',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(109,'MAIN_AGENDA_ACTIONAUTO_ORDER_SUPPLIER_VALIDATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(110,'MAIN_AGENDA_ACTIONAUTO_BILL_SUPPLIER_VALIDATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(111,'MAIN_AGENDA_ACTIONAUTO_SHIPPING_VALIDATE',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(112,'MAIN_AGENDA_ACTIONAUTO_SHIPPING_SENTBYMAIL',1,'1','chaine',0,NULL,'2013-01-29 16:29:06'),(113,'MAIN_MODULE_EXPORT',1,'1',NULL,0,NULL,'2013-01-29 16:29:18'),(114,'MAIN_MODULE_IMPORT',1,'1',NULL,0,NULL,'2013-01-29 16:29:24'),(115,'MAIN_MODULE_FCKEDITOR',1,'1',NULL,0,NULL,'2013-01-29 16:29:48'),(116,'FCKEDITOR_ENABLE_SOCIETE',1,'1','yesno',0,'Activation fckeditor sur notes autres','2013-01-29 16:29:48'),(117,'FCKEDITOR_ENABLE_PRODUCTDESC',1,'1','yesno',0,'Activation fckeditor sur notes produits','2013-01-29 16:29:48'),(118,'FCKEDITOR_ENABLE_MAILING',1,'1','yesno',0,'Activation fckeditor sur emailing','2013-01-29 16:29:48'),(119,'MAIN_MODULE_EXPEDITION',1,'1',NULL,0,NULL,'2013-01-29 20:48:43'),(120,'EXPEDITION_ADDON_PDF',1,'rouget','chaine',0,'Nom du gestionnaire de generation des bons expeditions en PDF','2013-01-29 20:48:43'),(121,'EXPEDITION_ADDON',1,'elevement','chaine',0,'Nom du gestionnaire du type d\'expedition','2013-01-29 20:48:43'),(122,'LIVRAISON_ADDON_PDF',1,'typhon','chaine',0,'Nom du gestionnaire de generation des bons de reception en PDF','2013-01-29 20:48:43'),(123,'LIVRAISON_ADDON',1,'mod_livraison_jade','chaine',0,'Nom du gestionnaire de numerotation des bons de reception','2013-01-29 20:48:43'),(124,'EXPEDITION_ADDON_NUMBER',1,'mod_expedition_safor','chaine',0,'Nom du gestionnaire de numerotation des expeditions','2013-01-29 20:48:43'),(125,'MAIN_MODULE_COMMANDE',1,'1',NULL,0,NULL,'2013-01-29 20:48:43'),(127,'MAIN_MODULE_PRODUCT',1,'1',NULL,0,NULL,'2013-01-29 20:49:12'),(128,'MAIN_SEARCHFORM_PRODUITSERVICE',1,'1','yesno',0,'Show form for quick product search','2013-01-29 20:49:12'),(145,'MAIN_PDF_FORMAT',1,'EUA4','chaine',0,'','2013-01-29 21:02:29'),(146,'MAIN_PROFID1_IN_ADDRESS',1,'0','chaine',0,'','2013-01-29 21:02:29'),(147,'MAIN_PROFID2_IN_ADDRESS',1,'1','chaine',0,'','2013-01-29 21:02:29'),(148,'MAIN_PROFID3_IN_ADDRESS',1,'1','chaine',0,'','2013-01-29 21:02:29'),(149,'MAIN_PROFID4_IN_ADDRESS',1,'0','chaine',0,'','2013-01-29 21:02:29'),(150,'MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT',1,'0','chaine',0,'','2013-01-29 21:02:29'),(153,'MAIN_INFO_SOCIETE_PAYS',1,'1:FR:France','chaine',0,'','2013-02-19 07:57:41'),(154,'MAIN_INFO_SOCIETE_NOM',1,'Pierre PRESTAT','chaine',0,'','2013-02-19 07:57:41'),(155,'MAIN_INFO_SOCIETE_ADRESSE',1,'12 avenue Georges Pompidou\r\nBat Foch','chaine',0,'','2013-02-19 07:57:41'),(156,'MAIN_INFO_SOCIETE_VILLE',1,'TOULOUSE','chaine',0,'','2013-02-19 07:57:41'),(157,'MAIN_INFO_SOCIETE_CP',1,'31500','chaine',0,'','2013-02-19 07:57:41'),(158,'MAIN_INFO_SOCIETE_DEPARTEMENT',1,'0','chaine',0,'','2013-02-19 07:57:41'),(159,'MAIN_MONNAIE',1,'EUR','chaine',0,'','2013-02-19 07:57:41'),(160,'MAIN_INFO_SOCIETE_TEL',1,'05 82 74 48 51','chaine',0,'','2013-02-19 07:57:41'),(161,'MAIN_INFO_SOCIETE_MAIL',1,'pprestat@gmail.com','chaine',0,'','2013-02-19 07:57:41'),(162,'MAIN_INFO_SOCIETE_LOGO',1,'Logo PP 2010 666x335.jpg','chaine',0,'','2013-02-19 07:57:41'),(163,'MAIN_INFO_SOCIETE_LOGO_SMALL',1,'Logo PP 2010 666x335_small.jpg','chaine',0,'','2013-02-19 07:57:41'),(164,'MAIN_INFO_SOCIETE_LOGO_MINI',1,'Logo PP 2010 666x335_mini.jpg','chaine',0,'','2013-02-19 07:57:41'),(165,'MAIN_INFO_SOCIETE_FORME_JURIDIQUE',1,'15','chaine',0,'','2013-02-19 07:57:41'),(166,'MAIN_INFO_SIREN',1,'387652035','chaine',0,'','2013-02-19 07:57:41'),(167,'MAIN_INFO_SIRET',1,'38765203500057','chaine',0,'','2013-02-19 07:57:41'),(168,'MAIN_INFO_APE',1,'6209Z','chaine',0,'','2013-02-19 07:57:41'),(169,'MAIN_INFO_TVAINTRA',1,'FR31387652035','chaine',0,'','2013-02-19 07:57:41'),(170,'SOCIETE_FISCAL_MONTH_START',1,'1','chaine',0,'','2013-02-19 07:57:41'),(171,'FACTURE_TVAOPTION',1,'reel','chaine',0,'','2013-02-19 07:57:41'),(177,'FICHEINTER_ADDON',1,'arctic','chaine',0,'','2013-02-21 08:10:01'),(182,'FACTURE_ADDON_PDF',1,'pierre','chaine',0,'','2013-02-21 15:00:33'),(193,'FACTURE_ADDON',1,'mod_facture_mercure','chaine',0,'','2013-02-21 15:48:03'),(197,'PRODUIT_MULTIPRICES',1,'1','chaine',0,'','2013-03-03 08:53:47'),(198,'PRODUIT_MULTIPRICES_LIMIT',1,'5','chaine',0,'','2013-03-03 08:53:47'),(205,'FACTURE_MERCURE_MASK_INVOICE',1,'FA{yy}{mm}{000}','chaine',0,'','2013-03-06 10:34:15'),(206,'FACTURE_MERCURE_MASK_CREDIT',1,'FV{yy}{mm}{000}','chaine',0,'','2013-03-06 10:34:15'),(207,'FACTURE_RIB_NUMBER',1,'1','chaine',0,'','2013-03-07 11:44:36'),(208,'FACTURE_CHQ_NUMBER',1,'0','chaine',0,'','2013-03-07 11:44:36'),(211,'FACTURE_FREE_TEXT',1,'En cas de paiement anticipé aucun escompte n\'est prévu.\r\nTout règlement intervenant le jour suivant la date de règlement\r\nengendre des pénalités de retard au taux de 10% annuel.','chaine',0,'','2013-03-07 11:47:45'),(212,'FACTURE_DRAFT_WATERMARK',1,'Brouillon','chaine',0,'','2013-03-07 11:48:12'),(213,'COMPTA_PRODUCT_BUY_ACCOUNT',1,'607100','string',0,'','2013-03-07 11:55:15'),(214,'COMPTA_PRODUCT_SOLD_ACCOUNT',1,'707100','string',0,'','2013-03-07 11:55:57'),(215,'COMPTA_SERVICE_BUY_ACCOUNT',1,'606100','string',0,'','2013-03-07 11:56:06'),(216,'COMPTA_SERVICE_SOLD_ACCOUNT',1,'706100','string',0,'','2013-03-07 11:56:15'),(217,'COMPTA_VAT_ACCOUNT',1,'445719','string',0,'','2013-03-07 11:56:24'),(219,'COMPTA_ACCOUNT_SUPPLIER',1,'401000','string',0,'','2013-03-07 11:56:41'),(220,'COMPTA_ACCOUNT_CUSTOMER',1,'411000','string',0,'','2013-03-07 11:56:50'),(221,'MAIN_MODULE_FOURNISSEUR',1,'1',NULL,0,NULL,'2013-03-07 11:57:57'),(222,'COMMANDE_SUPPLIER_ADDON_PDF',1,'muscadet','chaine',0,NULL,'2013-03-07 11:57:57'),(223,'COMMANDE_SUPPLIER_ADDON',1,'mod_commande_fournisseur_muguet','chaine',0,NULL,'2013-03-07 11:57:57'),(224,'INVOICE_SUPPLIER_ADDON_PDF',1,'canelle','chaine',0,NULL,'2013-03-07 11:57:57'),(225,'MAIN_MODULE_SOCIETE',1,'1',NULL,0,NULL,'2013-03-07 11:57:57'),(230,'FICHINTER_ARTIC_MASK',1,'Int{cccc}{yy}{mm}{dd}-{0000}','chaine',0,'','2013-03-08 10:28:41'),(231,'SYSTEMTOOLS_MYSQLDUMP',1,'C:\\TMP\\mysql5.0.45\\bin\\mysqldump.exe','chaine',0,'','2013-03-11 07:26:08');

--
-- Table structure for table `llx_contrat`
--

CREATE TABLE `llx_contrat` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) default NULL,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `date_contrat` datetime default NULL,
  `statut` smallint(6) default '0',
  `mise_en_service` datetime default NULL,
  `fin_validite` datetime default NULL,
  `date_cloture` datetime default NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) default NULL,
  `fk_commercial_signature` int(11) NOT NULL,
  `fk_commercial_suivi` int(11) NOT NULL,
  `fk_user_author` int(11) NOT NULL default '0',
  `fk_user_mise_en_service` int(11) default NULL,
  `fk_user_cloture` int(11) default NULL,
  `note` text,
  `note_public` text,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_contrat_ref` (`ref`,`entity`),
  KEY `idx_contrat_fk_soc` (`fk_soc`),
  KEY `idx_contrat_fk_user_author` (`fk_user_author`),
  CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_contrat`
--


--
-- Table structure for table `llx_contratdet`
--

CREATE TABLE `llx_contratdet` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_contrat` int(11) NOT NULL,
  `fk_product` int(11) default NULL,
  `statut` smallint(6) default '0',
  `label` text,
  `description` text,
  `fk_remise_except` int(11) default NULL,
  `date_commande` datetime default NULL,
  `date_ouverture_prevue` datetime default NULL,
  `date_ouverture` datetime default NULL,
  `date_fin_validite` datetime default NULL,
  `date_cloture` datetime default NULL,
  `tva_tx` double(6,3) default '0.000',
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `qty` double NOT NULL,
  `remise_percent` double default '0',
  `subprice` double(24,8) default '0.00000000',
  `price_ht` double default NULL,
  `remise` double default '0',
  `total_ht` double(24,8) default '0.00000000',
  `total_tva` double(24,8) default '0.00000000',
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `info_bits` int(11) default '0',
  `fk_user_author` int(11) NOT NULL default '0',
  `fk_user_ouverture` int(11) default NULL,
  `fk_user_cloture` int(11) default NULL,
  `commentaire` text,
  PRIMARY KEY  (`rowid`),
  KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
  KEY `idx_contratdet_fk_product` (`fk_product`),
  KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
  KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
  KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`),
  CONSTRAINT `fk_contratdet_fk_contrat` FOREIGN KEY (`fk_contrat`) REFERENCES `llx_contrat` (`rowid`),
  CONSTRAINT `fk_contratdet_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_contratdet`
--


--
-- Table structure for table `llx_contratdet_log`
--

CREATE TABLE `llx_contratdet_log` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_contratdet` int(11) NOT NULL,
  `date` datetime NOT NULL,
  `statut` smallint(6) NOT NULL,
  `fk_user_author` int(11) NOT NULL,
  `commentaire` text,
  PRIMARY KEY  (`rowid`),
  KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  KEY `idx_contratdet_log_date` (`date`),
  CONSTRAINT `fk_contratdet_log_fk_contratdet` FOREIGN KEY (`fk_contratdet`) REFERENCES `llx_contratdet` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_contratdet_log`
--


--
-- Table structure for table `llx_cotisation`
--

CREATE TABLE `llx_cotisation` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `fk_adherent` int(11) default NULL,
  `dateadh` datetime default NULL,
  `datef` date default NULL,
  `cotisation` double default NULL,
  `fk_bank` int(11) default NULL,
  `note` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_cotisation` (`fk_adherent`,`dateadh`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_cotisation`
--


--
-- Table structure for table `llx_deplacement`
--

CREATE TABLE `llx_deplacement` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) default NULL,
  `entity` int(11) NOT NULL default '1',
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `dated` datetime default NULL,
  `fk_user` int(11) NOT NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  `type` varchar(12) NOT NULL,
  `fk_statut` int(11) NOT NULL default '1',
  `km` double default NULL,
  `fk_soc` int(11) default NULL,
  `fk_projet` int(11) default '0',
  `note` text,
  `note_public` text,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_deplacement`
--

INSERT INTO `llx_deplacement` (`rowid`, `ref`, `entity`, `datec`, `tms`, `dated`, `fk_user`, `fk_user_author`, `fk_user_modif`, `type`, `fk_statut`, `km`, `fk_soc`, `fk_projet`, `note`, `note_public`, `extraparams`) VALUES (1,NULL,1,'2013-03-03 10:22:06','2013-03-03 09:22:15','2012-11-22 12:00:00',1,1,1,'TF_TRIP',1,494,10,0,NULL,NULL,NULL);

--
-- Table structure for table `llx_document`
--

CREATE TABLE `llx_document` (
  `rowid` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `file_name` varchar(255) NOT NULL,
  `file_extension` varchar(5) NOT NULL,
  `date_generation` datetime default NULL,
  `fk_owner` int(11) default NULL,
  `fk_group` int(11) default NULL,
  `permissions` char(9) default 'rw-rw-rw',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_document`
--


--
-- Table structure for table `llx_document_generator`
--

CREATE TABLE `llx_document_generator` (
  `rowid` int(10) unsigned NOT NULL,
  `name` varchar(255) NOT NULL,
  `classfile` varchar(255) NOT NULL,
  `class` varchar(255) NOT NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_document_generator`
--


--
-- Table structure for table `llx_document_model`
--

CREATE TABLE `llx_document_model` (
  `rowid` int(11) NOT NULL auto_increment,
  `nom` varchar(50) default NULL,
  `entity` int(11) NOT NULL default '1',
  `type` varchar(20) NOT NULL,
  `libelle` varchar(255) default NULL,
  `description` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_document_model`
--

INSERT INTO `llx_document_model` (`rowid`, `nom`, `entity`, `type`, `libelle`, `description`) VALUES (1,'azur',1,'propal',NULL,NULL),(3,'soleil',1,'ficheinter',NULL,NULL),(5,'rouget',1,'shipping',NULL,NULL),(6,'typhon',1,'delivery',NULL,NULL),(7,'einstein',1,'order',NULL,NULL),(11,'oursin',1,'invoice','oursin',NULL),(12,'crabe',1,'invoice','crabe',NULL),(13,'generic_invoice_odt',1,'invoice','ODT templates','FACTURE_ADDON_PDF_ODT_PATH'),(15,'pierre',1,'invoice','pierre',NULL),(16,'muscadet',1,'order_supplier',NULL,NULL);

--
-- Table structure for table `llx_dolibarr_modules`
--

CREATE TABLE `llx_dolibarr_modules` (
  `numero` int(11) NOT NULL default '0',
  `entity` int(11) NOT NULL default '1',
  `active` tinyint(4) NOT NULL default '0',
  `active_date` datetime NOT NULL,
  `active_version` varchar(25) NOT NULL,
  PRIMARY KEY  (`numero`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_dolibarr_modules`
--

INSERT INTO `llx_dolibarr_modules` (`numero`, `entity`, `active`, `active_date`, `active_version`) VALUES (0,1,1,'2013-01-29 17:22:48','dolibarr'),(1,1,1,'2013-03-07 12:57:57','dolibarr'),(10,1,1,'2013-01-29 17:28:18','dolibarr'),(20,1,1,'2013-01-29 17:27:44','dolibarr'),(25,1,1,'2013-01-29 21:48:43','dolibarr'),(30,1,1,'2013-01-29 17:28:19','dolibarr'),(40,1,1,'2013-03-07 12:57:57','dolibarr'),(50,1,1,'2013-01-29 21:49:12','dolibarr'),(53,1,1,'2013-01-29 17:27:52','dolibarr'),(54,1,1,'2013-01-29 17:27:52','dolibarr'),(70,1,1,'2013-01-29 17:27:54','dolibarr'),(75,1,1,'2013-01-29 17:28:45','dolibarr'),(80,1,1,'2013-01-29 21:48:43','dolibarr'),(85,1,1,'2013-01-29 17:28:19','dolibarr'),(240,1,1,'2013-01-29 17:29:18','dolibarr'),(250,1,1,'2013-01-29 17:29:24','dolibarr'),(500,1,1,'2013-01-29 17:28:36','dolibarr'),(2000,1,1,'2013-01-29 17:29:48','dolibarr'),(2400,1,1,'2013-01-29 17:29:06','dolibarr');

--
-- Table structure for table `llx_domain`
--

CREATE TABLE `llx_domain` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `label` varchar(255) default NULL,
  `note` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_domain`
--


--
-- Table structure for table `llx_don`
--

CREATE TABLE `llx_don` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) default NULL,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_statut` smallint(6) NOT NULL default '0',
  `datec` datetime default NULL,
  `datedon` datetime default NULL,
  `amount` double default '0',
  `fk_paiement` int(11) default NULL,
  `prenom` varchar(50) default NULL,
  `nom` varchar(50) default NULL,
  `societe` varchar(50) default NULL,
  `adresse` text,
  `cp` varchar(30) default NULL,
  `ville` varchar(50) default NULL,
  `pays` varchar(50) default NULL,
  `email` varchar(255) default NULL,
  `phone` varchar(24) default NULL,
  `phone_mobile` varchar(24) default NULL,
  `public` smallint(6) NOT NULL default '1',
  `fk_don_projet` int(11) default NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_valid` int(11) default NULL,
  `note` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_don`
--


--
-- Table structure for table `llx_ecm_directories`
--

CREATE TABLE `llx_ecm_directories` (
  `rowid` int(11) NOT NULL auto_increment,
  `label` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `fk_parent` int(11) default NULL,
  `description` varchar(255) NOT NULL,
  `cachenbofdoc` int(11) NOT NULL default '0',
  `date_c` datetime default NULL,
  `date_m` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_user_c` int(11) default NULL,
  `fk_user_m` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_ecm_directories` (`label`,`fk_parent`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_ecm_directories`
--


--
-- Table structure for table `llx_ecm_documents`
--

CREATE TABLE `llx_ecm_documents` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `filename` varchar(255) NOT NULL,
  `filesize` int(11) NOT NULL,
  `filemime` varchar(32) NOT NULL,
  `fullpath_dol` varchar(255) NOT NULL,
  `fullpath_orig` varchar(255) NOT NULL,
  `description` text,
  `manualkeyword` text,
  `fk_create` int(11) NOT NULL,
  `fk_update` int(11) default NULL,
  `date_c` datetime NOT NULL,
  `date_u` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_directory` int(11) default NULL,
  `fk_status` smallint(6) default '0',
  `private` smallint(6) default '0',
  `crc` varchar(32) NOT NULL default '',
  `cryptkey` varchar(50) NOT NULL default '',
  `cipher` varchar(50) NOT NULL default 'twofish',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_ecm_documents` (`fullpath_dol`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_ecm_documents`
--


--
-- Table structure for table `llx_element_contact`
--

CREATE TABLE `llx_element_contact` (
  `rowid` int(11) NOT NULL auto_increment,
  `datecreate` datetime default NULL,
  `statut` smallint(6) default '5',
  `element_id` int(11) NOT NULL,
  `fk_c_type_contact` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
  KEY `fk_element_contact_fk_c_type_contact` (`fk_c_type_contact`),
  KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`),
  CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `llx_c_type_contact` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_element_contact`
--


--
-- Table structure for table `llx_element_element`
--

CREATE TABLE `llx_element_element` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_source` int(11) NOT NULL,
  `sourcetype` varchar(32) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_element_element_idx1` (`fk_source`,`sourcetype`,`fk_target`,`targettype`),
  KEY `idx_element_element_fk_target` (`fk_target`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_element_element`
--

INSERT INTO `llx_element_element` (`rowid`, `fk_source`, `sourcetype`, `fk_target`, `targettype`) VALUES (1,5,'fichinter',29,'facture'),(2,6,'fichinter',30,'facture');

--
-- Table structure for table `llx_element_lock`
--

CREATE TABLE `llx_element_lock` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_element` int(11) NOT NULL,
  `elementtype` varchar(16) NOT NULL,
  `datel` datetime default NULL,
  `datem` datetime default NULL,
  `fk_user_modif` int(11) default NULL,
  `status` tinyint(4) default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_element_lock`
--


--
-- Table structure for table `llx_entrepot`
--

CREATE TABLE `llx_entrepot` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `label` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `description` text,
  `lieu` varchar(64) default NULL,
  `address` varchar(255) default NULL,
  `cp` varchar(10) default NULL,
  `ville` varchar(50) default NULL,
  `fk_departement` int(11) default NULL,
  `fk_pays` int(11) default '0',
  `statut` tinyint(4) default '1',
  `valo_pmp` float(12,4) default NULL,
  `fk_user_author` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_entrepot_label` (`label`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_entrepot`
--


--
-- Table structure for table `llx_events`
--

CREATE TABLE `llx_events` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `type` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `dateevent` datetime default NULL,
  `fk_user` int(11) default NULL,
  `description` varchar(250) NOT NULL,
  `ip` varchar(32) NOT NULL,
  `user_agent` varchar(255) default NULL,
  `fk_object` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_events_dateevent` (`dateevent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_events`
--


--
-- Table structure for table `llx_expedition`
--

CREATE TABLE `llx_expedition` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `fk_soc` int(11) NOT NULL,
  `ref_ext` varchar(30) default NULL,
  `ref_int` varchar(30) default NULL,
  `ref_customer` varchar(30) default NULL,
  `date_creation` datetime default NULL,
  `fk_user_author` int(11) default NULL,
  `date_valid` datetime default NULL,
  `fk_user_valid` int(11) default NULL,
  `date_expedition` datetime default NULL,
  `date_delivery` datetime default NULL,
  `fk_address` int(11) default NULL,
  `fk_expedition_methode` int(11) default NULL,
  `tracking_number` varchar(50) default NULL,
  `fk_statut` smallint(6) default '0',
  `height` int(11) default NULL,
  `width` int(11) default NULL,
  `size_units` int(11) default NULL,
  `size` int(11) default NULL,
  `weight_units` int(11) default NULL,
  `weight` int(11) default NULL,
  `note` text,
  `model_pdf` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
  KEY `idx_expedition_fk_soc` (`fk_soc`),
  KEY `idx_expedition_fk_user_author` (`fk_user_author`),
  KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
  KEY `idx_expedition_fk_expedition_methode` (`fk_expedition_methode`),
  CONSTRAINT `fk_expedition_fk_expedition_methode` FOREIGN KEY (`fk_expedition_methode`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_expedition`
--


--
-- Table structure for table `llx_expeditiondet`
--

CREATE TABLE `llx_expeditiondet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_expedition` int(11) NOT NULL,
  `fk_origin_line` int(11) default NULL,
  `fk_entrepot` int(11) default NULL,
  `qty` double default NULL,
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`),
  CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_expeditiondet`
--


--
-- Table structure for table `llx_export_compta`
--

CREATE TABLE `llx_export_compta` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(12) NOT NULL,
  `date_export` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `note` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_export_compta`
--


--
-- Table structure for table `llx_export_model`
--

CREATE TABLE `llx_export_model` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_user` int(11) NOT NULL default '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_export_model` (`label`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_export_model`
--

INSERT INTO `llx_export_model` (`rowid`, `fk_user`, `label`, `type`, `field`) VALUES (1,0,'Export Produits','produit_1','p.rowid,p.ref,p.label,p.description,p.accountancy_code_sell,p.accountancy_code_buy,p.price,p.tva_tx,p.price_ttc,p.tosell,p.tobuy,p.datec,p.tms');

--
-- Table structure for table `llx_extrafields`
--

CREATE TABLE `llx_extrafields` (
  `rowid` int(11) NOT NULL auto_increment,
  `name` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `elementtype` varchar(64) NOT NULL default 'member',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `label` varchar(255) NOT NULL,
  `type` varchar(8) default NULL,
  `size` int(11) default '0',
  `pos` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_extrafields`
--


--
-- Table structure for table `llx_facture`
--

CREATE TABLE `llx_facture` (
  `rowid` int(11) NOT NULL auto_increment,
  `facnumber` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(255) default NULL,
  `ref_int` varchar(255) default NULL,
  `ref_client` varchar(255) default NULL,
  `type` smallint(6) NOT NULL default '0',
  `increment` varchar(10) default NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime default NULL,
  `datef` date default NULL,
  `date_valid` date default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `paye` smallint(6) NOT NULL default '0',
  `amount` double(24,8) NOT NULL default '0.00000000',
  `remise_percent` double default '0',
  `remise_absolue` double default '0',
  `remise` double default '0',
  `close_code` varchar(16) default NULL,
  `close_note` varchar(128) default NULL,
  `tva` double(24,8) default '0.00000000',
  `localtax1` double(24,8) default '0.00000000',
  `localtax2` double(24,8) default '0.00000000',
  `total` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `fk_statut` smallint(6) NOT NULL default '0',
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_facture_source` int(11) default NULL,
  `fk_projet` int(11) default NULL,
  `fk_account` int(11) default NULL,
  `fk_currency` varchar(2) default NULL,
  `fk_cond_reglement` int(11) NOT NULL default '1',
  `fk_mode_reglement` int(11) default NULL,
  `date_lim_reglement` date default NULL,
  `note` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_facture_uk_facnumber` (`facnumber`,`entity`),
  KEY `idx_facture_fk_soc` (`fk_soc`),
  KEY `idx_facture_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
  KEY `idx_facture_fk_projet` (`fk_projet`),
  KEY `idx_facture_fk_account` (`fk_account`),
  KEY `idx_facture_fk_currency` (`fk_currency`),
  CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facture`
--

INSERT INTO `llx_facture` (`rowid`, `facnumber`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `type`, `increment`, `fk_soc`, `datec`, `datef`, `date_valid`, `tms`, `paye`, `amount`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `total`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note`, `note_public`, `model_pdf`, `import_key`, `extraparams`) VALUES (1,'FA1207035',1,NULL,NULL,NULL,0,NULL,1,'2013-01-29 21:46:50','2012-07-09','2013-03-02','2013-03-03 08:45:31',1,0.00000000,NULL,NULL,0,NULL,NULL,180.12000000,0.00000000,0.00000000,919.00000000,1099.12000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-07-09',NULL,NULL,'pierre',NULL,NULL),(2,'FA1202024',1,NULL,NULL,NULL,0,NULL,2,'2013-02-21 16:39:33','2012-02-06','2013-02-21','2013-02-28 16:18:33',1,0.00000000,NULL,NULL,0,NULL,NULL,17.15000000,0.00000000,0.00000000,87.50000000,104.65000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2012-02-06',NULL,NULL,'pierre',NULL,NULL),(3,'FA1202025',1,NULL,NULL,NULL,0,NULL,3,'2013-02-21 16:54:55','2012-02-06','2013-02-21','2013-03-01 07:18:33',1,0.00000000,NULL,NULL,0,NULL,NULL,77.42000000,0.00000000,0.00000000,395.00000000,472.42000000,2,1,1,NULL,NULL,NULL,NULL,2,7,'2012-03-07',NULL,NULL,'pierre',NULL,NULL),(4,'FA1202026',1,NULL,NULL,NULL,0,NULL,4,'2013-02-21 17:18:28','2012-02-06','2013-02-21','2013-02-28 16:20:46',1,0.00000000,NULL,NULL,0,NULL,NULL,38.71000000,0.00000000,0.00000000,197.50000000,236.21000000,2,1,1,NULL,NULL,NULL,NULL,1,0,'2012-02-06',NULL,NULL,'pierre',NULL,NULL),(5,'FA1202027',1,NULL,NULL,NULL,0,NULL,5,'2013-02-21 17:26:27','2012-02-06','2013-02-21','2013-02-28 16:27:36',1,0.00000000,NULL,NULL,0,NULL,NULL,34.30000000,0.00000000,0.00000000,175.00000000,209.30000000,2,1,1,NULL,NULL,NULL,NULL,1,0,'2012-02-06',NULL,NULL,'pierre',NULL,NULL),(6,'FA1202028',1,NULL,NULL,NULL,0,NULL,1,'2013-02-28 15:27:31','2012-02-23','2013-02-28','2013-02-28 16:29:25',1,0.00000000,NULL,NULL,0,NULL,NULL,87.47000000,0.00000000,0.00000000,446.25000000,533.72000000,2,1,1,NULL,NULL,NULL,NULL,2,7,'2012-02-23',NULL,NULL,'pierre',NULL,NULL),(7,'FA1202029',1,NULL,NULL,NULL,0,NULL,5,'2013-02-28 15:45:59','2012-02-23','2013-02-28','2013-02-28 16:27:36',1,0.00000000,NULL,NULL,0,NULL,NULL,14.70000000,0.00000000,0.00000000,75.00000000,89.70000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-02-23',NULL,NULL,'pierre',NULL,NULL),(8,'FA1203030',1,NULL,NULL,NULL,0,NULL,6,'2013-02-28 15:56:56','2012-03-13','2013-02-28','2013-03-01 07:23:20',1,0.00000000,NULL,NULL,0,NULL,NULL,22.17000000,0.00000000,0.00000000,113.10000000,135.27000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-03-13',NULL,NULL,'pierre',NULL,NULL),(9,'FA1204031',1,NULL,NULL,NULL,0,NULL,7,'2013-02-28 16:10:22','2012-04-16','2013-02-28','2013-03-01 07:24:59',1,0.00000000,NULL,NULL,0,NULL,NULL,22.05000000,0.00000000,0.00000000,112.50000000,134.55000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-04-16',NULL,NULL,'pierre',NULL,NULL),(10,'FA1205032',1,NULL,NULL,NULL,0,NULL,6,'2013-02-28 16:44:22','2012-05-11','2013-02-28','2013-03-01 07:47:40',1,0.00000000,NULL,NULL,0,NULL,NULL,380.24000000,0.00000000,0.00000000,1940.00000000,2320.24000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-05-11',NULL,NULL,'pierre',NULL,NULL),(11,'FA1205033',1,NULL,NULL,NULL,0,NULL,8,'2013-03-02 14:45:24','2012-05-10','2013-03-02','2013-03-03 19:22:34',0,0.00000000,NULL,NULL,0,'badcustomer',NULL,274.40000000,0.00000000,0.00000000,1400.00000000,1674.40000000,3,1,1,NULL,NULL,NULL,NULL,1,7,'2012-05-10',NULL,NULL,'pierre',NULL,NULL),(12,'FA1207034',1,NULL,NULL,NULL,0,NULL,6,'2013-03-02 14:53:47','2012-07-06','2013-03-02','2013-03-03 08:42:43',1,0.00000000,NULL,NULL,0,NULL,NULL,38.71000000,0.00000000,0.00000000,197.50000000,236.21000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-07-06',NULL,NULL,'pierre',NULL,NULL),(13,'FA1208036',1,NULL,NULL,NULL,0,NULL,7,'2013-03-02 15:01:35','2012-08-14','2013-03-02','2013-03-03 08:46:54',1,0.00000000,NULL,NULL,0,NULL,NULL,65.61000000,0.00000000,0.00000000,334.75000000,400.36000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-08-14',NULL,NULL,'pierre',NULL,NULL),(14,'FA1208037',1,NULL,NULL,NULL,0,NULL,1,'2013-03-02 15:08:07','2012-08-16','2013-03-02','2013-03-03 08:48:01',1,0.00000000,NULL,NULL,0,NULL,NULL,54.88000000,0.00000000,0.00000000,280.00000000,334.88000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-08-16',NULL,NULL,'pierre',NULL,NULL),(15,'FA1209038',1,NULL,NULL,NULL,0,NULL,6,'2013-03-02 15:14:58','2012-09-21','2013-03-02','2013-03-03 08:48:59',1,0.00000000,NULL,NULL,0,NULL,NULL,41.16000000,0.00000000,0.00000000,210.00000000,251.16000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-09-21',NULL,NULL,'pierre',NULL,NULL),(16,'FA1210039',1,NULL,NULL,NULL,0,NULL,9,'2013-03-02 15:23:05','2012-10-19','2013-03-03','2013-03-03 09:02:39',1,0.00000000,NULL,NULL,0,NULL,NULL,9.83000000,0.00000000,0.00000000,50.17000000,60.00000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-10-19',NULL,NULL,'pierre',NULL,NULL),(17,'FA1211040',1,NULL,NULL,NULL,0,NULL,1,'2013-03-03 10:04:16','2012-11-19','2013-03-03','2013-03-03 09:12:33',1,0.00000000,NULL,NULL,0,NULL,NULL,11.76000000,0.00000000,0.00000000,60.00000000,71.76000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2012-11-19',NULL,NULL,'pierre',NULL,NULL),(18,'FA1211041',1,NULL,NULL,NULL,0,NULL,10,'2013-03-03 10:23:12','2012-11-23','2013-03-03','2013-03-03 10:11:13',1,0.00000000,NULL,NULL,0,NULL,NULL,323.05000000,0.00000000,0.00000000,1648.20000000,1971.25000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2012-11-23',NULL,NULL,'pierre',NULL,NULL),(19,'FA1301042',1,NULL,NULL,NULL,0,NULL,10,'2013-03-03 19:14:37','2013-01-02','2013-03-03','2013-03-03 18:54:52',1,0.00000000,NULL,NULL,0,NULL,NULL,222.96000000,0.00000000,0.00000000,1137.58000000,1360.54000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2013-01-02',NULL,NULL,'pierre',NULL,NULL),(20,'FA1301043',1,NULL,NULL,NULL,0,NULL,11,'2013-03-03 19:59:14','2013-01-03','2013-03-03','2013-03-03 19:17:08',1,0.00000000,NULL,NULL,0,NULL,NULL,29.40000000,0.00000000,0.00000000,150.00000000,179.40000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2013-01-03',NULL,NULL,'pierre',NULL,NULL),(21,'FA1301044',1,NULL,NULL,NULL,0,NULL,1,'2013-03-03 20:01:29','2013-01-11','2013-03-03','2013-03-04 18:24:07',1,0.00000000,NULL,NULL,0,NULL,NULL,12.74000000,0.00000000,0.00000000,65.00000000,77.74000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2013-01-11',NULL,NULL,'pierre',NULL,NULL),(22,'FA1301045',1,NULL,NULL,NULL,0,NULL,12,'2013-03-03 20:13:07','2013-01-28','2013-03-03','2013-03-03 19:15:48',1,0.00000000,NULL,NULL,0,NULL,NULL,77.42000000,0.00000000,0.00000000,395.00000000,472.42000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2013-01-28',NULL,NULL,'pierre',NULL,NULL),(23,'FA1301046',1,NULL,NULL,NULL,0,NULL,2,'2013-03-04 18:23:09','2013-01-30','2013-03-04','2013-03-04 17:27:36',1,0.00000000,NULL,NULL,0,NULL,NULL,44.10000000,0.00000000,0.00000000,225.00000000,269.10000000,2,1,1,NULL,NULL,NULL,NULL,1,2,'2013-01-30',NULL,NULL,'pierre',NULL,NULL),(24,'FA1301047',1,NULL,NULL,NULL,0,NULL,8,'2013-03-04 18:31:40','2013-01-31','2013-03-04','2013-03-04 17:35:01',1,0.00000000,NULL,NULL,0,NULL,NULL,39.19000000,0.00000000,0.00000000,200.00000000,239.19000000,2,1,1,NULL,NULL,NULL,NULL,1,0,'2013-01-31',NULL,NULL,'pierre',NULL,NULL),(25,'FA1301048',1,NULL,NULL,NULL,0,NULL,6,'2013-03-04 18:37:12','2013-01-31','2013-03-04','2013-03-04 17:42:11',1,0.00000000,NULL,NULL,0,NULL,NULL,31.36000000,0.00000000,0.00000000,160.00000000,191.36000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2013-02-05',NULL,NULL,'pierre',NULL,NULL),(26,'FA1302049',1,NULL,NULL,NULL,0,NULL,4,'2013-03-04 18:43:41','2013-02-13','2013-03-07','2013-03-07 18:37:36',0,0.00000000,NULL,NULL,0,NULL,NULL,66.15000000,0.00000000,0.00000000,337.50000000,403.65000000,1,1,1,NULL,NULL,NULL,NULL,1,2,'2013-02-13',NULL,NULL,'pierre',NULL,NULL),(27,'FA1302050',1,NULL,NULL,NULL,0,NULL,6,'2013-03-04 18:46:23','2013-02-13','2013-03-04','2013-03-04 18:28:03',1,0.00000000,NULL,NULL,0,NULL,NULL,31.36000000,0.00000000,0.00000000,160.00000000,191.36000000,2,1,1,NULL,NULL,NULL,NULL,1,7,'2013-02-15',NULL,NULL,'pierre',NULL,NULL),(28,'FA1302051',1,NULL,NULL,NULL,0,NULL,28,'2013-03-04 18:53:31','2013-02-20','2013-03-04','2013-03-04 17:55:31',0,0.00000000,NULL,NULL,0,NULL,NULL,117.60000000,0.00000000,0.00000000,600.00000000,717.60000000,1,1,1,NULL,NULL,NULL,NULL,1,7,'2013-02-22',NULL,NULL,'pierre',NULL,NULL),(29,'FA1303052',1,NULL,NULL,NULL,0,NULL,11,'2013-03-08 11:31:47','2013-03-08','2013-03-08','2013-03-08 10:35:52',0,0.00000000,NULL,NULL,0,NULL,NULL,14.70000000,0.00000000,0.00000000,75.00000000,89.70000000,1,1,1,NULL,NULL,NULL,NULL,1,2,'2013-03-08',NULL,NULL,'pierre',NULL,NULL),(30,'FA1303053',1,NULL,NULL,NULL,0,NULL,1,'2013-03-08 11:47:07','2013-03-08','2013-03-08','2013-03-08 10:51:38',0,0.00000000,NULL,NULL,0,NULL,NULL,38.22000000,0.00000000,0.00000000,195.00000000,233.22000000,1,1,1,NULL,NULL,NULL,NULL,1,2,'2013-03-08',NULL,NULL,'pierre',NULL,NULL);

--
-- Table structure for table `llx_facture_fourn`
--

CREATE TABLE `llx_facture_fourn` (
  `rowid` int(11) NOT NULL auto_increment,
  `facnumber` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(30) default NULL,
  `type` smallint(6) NOT NULL default '0',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime default NULL,
  `datef` date default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `libelle` varchar(255) default NULL,
  `paye` smallint(6) NOT NULL default '0',
  `amount` double(24,8) NOT NULL default '0.00000000',
  `remise` double(24,8) default '0.00000000',
  `close_code` varchar(16) default NULL,
  `close_note` varchar(128) default NULL,
  `tva` double(24,8) default '0.00000000',
  `localtax1` double(24,8) default '0.00000000',
  `localtax2` double(24,8) default '0.00000000',
  `total` double(24,8) default '0.00000000',
  `total_ht` double(24,8) default '0.00000000',
  `total_tva` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `fk_statut` smallint(6) NOT NULL default '0',
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_facture_source` int(11) default NULL,
  `fk_projet` int(11) default NULL,
  `fk_cond_reglement` int(11) NOT NULL default '1',
  `date_lim_reglement` date default NULL,
  `note` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_facture_fourn_ref` (`facnumber`,`fk_soc`,`entity`),
  KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
  KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
  KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fourn_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facture_fourn`
--


--
-- Table structure for table `llx_facture_fourn_det`
--

CREATE TABLE `llx_facture_fourn_det` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_facture_fourn` int(11) NOT NULL,
  `fk_product` int(11) default NULL,
  `ref` varchar(50) default NULL,
  `label` varchar(255) default NULL,
  `description` text,
  `pu_ht` double(24,8) default NULL,
  `pu_ttc` double(24,8) default NULL,
  `qty` double default NULL,
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `total_ht` double(24,8) default NULL,
  `tva` double(24,8) default NULL,
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default NULL,
  `product_type` int(11) default '0',
  `date_start` datetime default NULL,
  `date_end` datetime default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `llx_facture_fourn` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facture_fourn_det`
--


--
-- Table structure for table `llx_facture_rec`
--

CREATE TABLE `llx_facture_rec` (
  `rowid` int(11) NOT NULL auto_increment,
  `titre` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime default NULL,
  `amount` double(24,8) NOT NULL default '0.00000000',
  `remise` double default '0',
  `remise_percent` double default '0',
  `remise_absolue` double default '0',
  `tva` double(24,8) default '0.00000000',
  `localtax1` double(24,8) default '0.00000000',
  `localtax2` double(24,8) default '0.00000000',
  `total` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `fk_user_author` int(11) default NULL,
  `fk_projet` int(11) default NULL,
  `fk_cond_reglement` int(11) default '0',
  `fk_mode_reglement` int(11) default '0',
  `date_lim_reglement` date default NULL,
  `note` text,
  `note_public` text,
  `frequency` int(11) default NULL,
  `unit_frequency` varchar(2) default 'd',
  `date_when` datetime default NULL,
  `date_last_gen` datetime default NULL,
  `nb_gen_done` int(11) default NULL,
  `nb_gen_max` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
  KEY `idx_facture_rec_fk_soc` (`fk_soc`),
  KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_rec_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facture_rec`
--


--
-- Table structure for table `llx_facturedet`
--

CREATE TABLE `llx_facturedet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) default NULL,
  `fk_product` int(11) default NULL,
  `description` text,
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `qty` double default NULL,
  `remise_percent` double default '0',
  `remise` double default '0',
  `fk_remise_except` int(11) default NULL,
  `subprice` double(24,8) default NULL,
  `price` double(24,8) default NULL,
  `total_ht` double(24,8) default NULL,
  `total_tva` double(24,8) default NULL,
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default NULL,
  `product_type` int(11) default '0',
  `date_start` datetime default NULL,
  `date_end` datetime default NULL,
  `info_bits` int(11) default '0',
  `fk_code_ventilation` int(11) NOT NULL default '0',
  `fk_export_compta` int(11) NOT NULL default '0',
  `special_code` int(10) unsigned default '0',
  `rang` int(11) default '0',
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture`),
  KEY `idx_facturedet_fk_facture` (`fk_facture`),
  KEY `idx_facturedet_fk_product` (`fk_product`),
  CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facturedet`
--

INSERT INTO `llx_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `description`, `tva_tx`, `localtax1_tx`, `localtax2_tx`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `fk_code_ventilation`, `fk_export_compta`, `special_code`, `rang`, `import_key`) VALUES (1,1,NULL,1,'Mono poste',19.600,0.000,0.000,1,0,0,NULL,375.00000000,NULL,375.00000000,73.50000000,0.00000000,0.00000000,448.50000000,0,NULL,NULL,0,0,0,0,1,NULL),(3,1,NULL,2,'Réseau 4 postes',19.600,0.000,0.000,1,0,0,NULL,525.00000000,NULL,525.00000000,102.90000000,0.00000000,0.00000000,627.90000000,0,NULL,NULL,0,0,0,0,2,NULL),(4,1,NULL,3,'',19.600,0.000,0.000,1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,0,0,0,3,NULL),(5,1,NULL,4,'',19.600,0.000,0.000,1,0,0,NULL,19.00000000,NULL,19.00000000,3.72000000,0.00000000,0.00000000,22.72000000,1,NULL,NULL,0,0,0,0,4,NULL),(6,2,NULL,5,'- Probleme sur Jnal Caisse déséquilibré\r\n- Cloture et archivage exercice 2007\r\n- Création exercice 2012\r\n- Réindexation fichier comptable\r\n- Probleme solde initial rapprochement 2011',19.600,0.000,0.000,1.25,0,0,NULL,70.00000000,NULL,87.50000000,17.15000000,0.00000000,0.00000000,104.65000000,1,NULL,NULL,0,0,0,0,1,NULL),(7,3,NULL,6,'- MAJ Sage Compta v16.05 / Sage Paie v6.70\r\n- Convertion fichiers Cpta + Paie Nikita/Oceana\r\n- Paramètrages DADS 2011 + vérifications\r\n- Envoi DADS 2011 en N4DS\r\n- Création Paie 2012\r\n- Paramétrage Fillon 2012, tests, vérifications.',19.600,0.000,0.000,1,0,0,NULL,395.00000000,NULL,395.00000000,77.42000000,0.00000000,0.00000000,472.42000000,1,NULL,NULL,0,0,0,0,2,NULL),(8,3,NULL,NULL,'NIKITA',19.600,0.000,0.000,1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,1,NULL,NULL,0,0,0,0,1,NULL),(9,4,NULL,6,'- Création Profil avec rubriques Fillon 2012\r\n- Calcul et vérification Bulletins\r\n- Sauvegarde',19.600,0.000,0.000,0.5,0,0,NULL,395.00000000,NULL,197.50000000,38.71000000,0.00000000,0.00000000,236.21000000,1,NULL,NULL,0,0,0,0,1,NULL),(10,5,NULL,7,'- Installation Imprimante Brother  TCP/IP\r\n- Installation Pilote Imprimante + Scanner sur 3 Postes\r\n- Installation Sauvegarde disque externe MyBook / AllwaySync\r\n- Installation Imprimante HP CM1312 sur Poste Compta\r\n- Installation pilotes impr + scanner + fax HP CM1312',19.600,0.000,0.000,0.5,0,0,NULL,350.00000000,NULL,175.00000000,34.30000000,0.00000000,0.00000000,209.30000000,1,NULL,NULL,0,0,0,0,1,NULL),(11,6,NULL,8,'',19.600,0.000,0.000,12,0,0,NULL,25.00000000,NULL,300.00000000,58.80000000,0.00000000,0.00000000,358.80000000,1,'2012-06-01 00:00:00','2012-05-30 00:00:00',0,0,0,0,1,NULL),(12,6,NULL,9,'',19.600,0.000,0.000,1.5,0,0,NULL,65.00000000,NULL,97.50000000,19.11000000,0.00000000,0.00000000,116.61000000,1,NULL,NULL,0,0,0,0,2,NULL),(13,6,NULL,5,'',19.600,0.000,0.000,0.75,13.33,0,NULL,75.00000000,NULL,48.75000000,9.56000000,0.00000000,0.00000000,58.31000000,1,NULL,NULL,0,0,0,0,3,NULL),(14,7,NULL,5,'',19.600,0.000,0.000,1,0,0,NULL,75.00000000,NULL,75.00000000,14.70000000,0.00000000,0.00000000,89.70000000,1,NULL,NULL,0,0,0,0,1,NULL),(15,8,NULL,6,'',19.600,0.000,0.000,0.29,0,0,NULL,390.00000000,NULL,113.10000000,22.17000000,0.00000000,0.00000000,135.27000000,1,NULL,NULL,0,0,0,0,1,NULL),(16,9,NULL,5,'Poste Claudia\r\n- test tous composants\r\n- desactivation fonction veille\r\n\r\nPoste Comptabilité\r\n- Clôtures exercice 09/10 + Archivage\r\n- Creation exercice 12/13 + A nouveaux',19.600,0.000,0.000,1.5,0,0,NULL,75.00000000,NULL,112.50000000,22.05000000,0.00000000,0.00000000,134.55000000,1,NULL,NULL,0,0,0,0,1,NULL),(17,10,NULL,6,'',19.600,0.000,0.000,1,0,0,NULL,395.00000000,NULL,395.00000000,77.42000000,0.00000000,0.00000000,472.42000000,1,NULL,NULL,0,0,0,0,1,NULL),(18,10,NULL,10,'Mise à jour v16.05',19.600,0.000,0.000,1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,0,0,0,2,NULL),(19,10,NULL,11,'Mise à jour v16.05',19.600,0.000,0.000,1,0,0,NULL,345.50000000,NULL,345.50000000,67.72000000,0.00000000,0.00000000,413.22000000,0,NULL,NULL,0,0,0,0,3,NULL),(20,10,NULL,11,'Option Reseau 4 postes\r\n(Pays d\'origine: France)',19.600,0.000,0.000,1,0,0,NULL,154.50000000,NULL,154.50000000,30.28000000,0.00000000,0.00000000,184.78000000,0,NULL,NULL,0,0,0,0,4,NULL),(22,10,NULL,12,'Mise à jour v16.05 4 postes',19.600,0.000,0.000,1,0,0,NULL,497.50000000,NULL,497.50000000,97.51000000,0.00000000,0.00000000,595.01000000,0,NULL,NULL,0,0,0,0,6,NULL),(23,10,NULL,12,'Option Module Edition Pilotée',19.600,0.000,0.000,1,0,0,NULL,100.00000000,NULL,100.00000000,19.60000000,0.00000000,0.00000000,119.60000000,0,NULL,NULL,0,0,0,0,7,NULL),(24,10,NULL,11,'Option Module Edition Pilotée\r\n(Pays d\'origine: France)',19.600,0.000,0.000,1,0,0,NULL,447.50000000,NULL,447.50000000,87.71000000,0.00000000,0.00000000,535.21000000,0,NULL,NULL,0,0,0,0,5,NULL),(25,11,NULL,13,'- Tableur Excel Niveau 1',19.600,0.000,0.000,2,0,0,NULL,305.00000000,NULL,610.00000000,119.56000000,0.00000000,0.00000000,729.56000000,1,NULL,NULL,0,0,0,0,1,NULL),(26,11,NULL,14,'- Sage Windows Compta Ligne 30',19.600,0.000,0.000,2,0,0,NULL,395.00000000,NULL,790.00000000,154.84000000,0.00000000,0.00000000,944.84000000,1,NULL,NULL,0,0,0,0,2,NULL),(28,12,NULL,6,'Comptabilité :\r\n- Vue d\'ensemble\r\n- Fonctions de base : Structure / Traitement / Etats\r\n\r\nGestion Commerciale\r\n- Vue d\'ensemble\r\n- Saisie des règlements',19.600,0.000,0.000,0.5,0,0,NULL,395.00000000,NULL,197.50000000,38.71000000,0.00000000,0.00000000,236.21000000,1,NULL,NULL,0,0,0,0,2,NULL),(29,13,NULL,9,'PC-Compta\r\n-	Partage imprimante HP 8600 +\r\nPC-Claudia\r\n-	Connection réseau Imprimante HP 8500\r\n-	Ajout Imprimante HP 8500',19.600,0.000,0.000,2,0,0,NULL,65.00000000,NULL,130.00000000,25.48000000,0.00000000,0.00000000,155.48000000,1,NULL,NULL,0,0,0,0,1,NULL),(30,13,NULL,9,'PC-Claudia\r\n-	Changement Livebox : Paramétrage Réseau\r\nPC-Compta\r\n-	Changement Livebox : Paramétrage Réseau',19.600,0.000,0.000,1.15,0,0,NULL,65.00000000,NULL,74.75000000,14.65000000,0.00000000,0.00000000,89.40000000,1,NULL,NULL,0,0,0,0,2,NULL),(31,13,NULL,9,'PC-Claudia\r\n-	Changement Livebox : Paramétrage Réseau\r\nPC-Compta\r\n-	Changement Livebox : Paramétrage Réseau',19.600,0.000,0.000,2,0,0,NULL,65.00000000,NULL,130.00000000,25.48000000,0.00000000,0.00000000,155.48000000,1,NULL,NULL,0,0,0,0,3,NULL),(32,14,NULL,15,'Poste Cathy\r\n- installation Office 2011',19.600,0.000,0.000,1,0,0,NULL,65.00000000,NULL,65.00000000,12.74000000,0.00000000,0.00000000,77.74000000,1,NULL,NULL,0,0,0,0,1,NULL),(33,14,NULL,15,'3 postes\r\n-	Paramétrage SMTP Messagerie',19.600,0.000,0.000,1,0,0,NULL,65.00000000,NULL,65.00000000,12.74000000,0.00000000,0.00000000,77.74000000,1,NULL,NULL,0,0,0,0,2,NULL),(34,14,NULL,9,'Whynotserver\r\n-	Création Image disque (Chgt HD Server)\r\n-	Transfert sauvegardes sur disque externe WD 500 Go',19.600,0.000,0.000,1,0,0,NULL,75.00000000,NULL,75.00000000,14.70000000,0.00000000,0.00000000,89.70000000,1,NULL,NULL,0,0,0,0,3,NULL),(35,14,NULL,9,'Whynotserver\r\n-	Restauration Image disque  (Chgt HD Server)\r\n-	Transfert sauvegardes sur disque externe WD 500 Go\r\n-	Reinstallation Imprimantes',19.600,0.000,0.000,1,0,0,NULL,75.00000000,NULL,75.00000000,14.70000000,0.00000000,0.00000000,89.70000000,1,NULL,NULL,0,0,0,0,4,NULL),(36,15,NULL,9,'Alerte Virus\r\n-	Scan approfondi Malwarebyte + Spybot > negatif\r\n-	BitDefender : réglages Parefeu > ok',19.600,0.000,0.000,1.5,0,0,NULL,65.00000000,NULL,97.50000000,19.11000000,0.00000000,0.00000000,116.61000000,1,NULL,NULL,0,0,0,0,1,NULL),(37,15,NULL,5,'Sage Compta 30\r\n	- Anomalie Bilan comptes 401 n’apparaissent pas\r\n		 > Solde 401000 Débiteur\r\n		 > Ecritures 401CEE00 passées en 401000\r\nSage Gestcom 30\r\n	- Facture 59.80 indiquée comme règlée et non comptabilisée\r\n 		> Nouveau règlement en GC et comptabilisation\r\n	- Modèles de documents\r\n		 > Modif BC-FR / AR-CL / BL-CL',19.600,0.000,0.000,1.5,0,0,NULL,75.00000000,NULL,112.50000000,22.05000000,0.00000000,0.00000000,134.55000000,1,NULL,NULL,0,0,0,0,2,NULL),(38,16,NULL,15,'Pbl / Lecture carte Vitale (demande code PS1 sur le lecteur)\r\n-	Réactivation par code\r\n-	Test / fiche Patient changement Ok\r\n\r\nMaintenance Système PC\r\n-	Nettoyage base de registre\r\n-	Defragmentation base de registre\r\n-	Suppression fichiers & dossiers temporaires\r\n-	Nettoyage Spywares\r\n-	Nettoyage Raccourcis & Gest. Démarrage\r\n-	Vérification Disques + Défragmentation\r\n-	MAJ Antivirus + Analyse complète.',19.600,0.000,0.000,1,0,0,NULL,50.16722000,NULL,50.17000000,9.83000000,0.00000000,0.00000000,60.00000000,1,NULL,NULL,0,0,0,0,1,NULL),(39,17,NULL,15,'Mac de Com1\r\n-	Création image disque\r\n-	Réinstallation Mac Os Lion\r\n-	Import compte Com1\r\n-	Vérifications disque et optimisation du système\r\n-	Installation MS Office 2001',19.600,0.000,0.000,1,7.6923,0,NULL,65.00000000,NULL,60.00000000,11.76000000,0.00000000,0.00000000,71.76000000,1,NULL,NULL,0,0,0,0,1,NULL),(40,18,NULL,16,'',19.600,0.000,0.000,1,0,0,NULL,500.00000000,NULL,500.00000000,98.00000000,0.00000000,0.00000000,598.00000000,1,NULL,NULL,0,0,0,0,1,NULL),(41,18,NULL,16,'',19.600,0.000,0.000,1,0,0,NULL,500.00000000,NULL,500.00000000,98.00000000,0.00000000,0.00000000,598.00000000,1,NULL,NULL,0,0,0,0,2,NULL),(42,18,NULL,16,'',19.600,0.000,0.000,1,0,0,NULL,500.00000000,NULL,500.00000000,98.00000000,0.00000000,0.00000000,598.00000000,1,NULL,NULL,0,0,0,0,3,NULL),(43,18,NULL,17,'',19.600,0.000,0.000,494,0,0,NULL,0.30000000,NULL,148.20000000,29.05000000,0.00000000,0.00000000,177.25000000,1,NULL,NULL,0,0,0,0,4,NULL),(44,19,NULL,16,'',19.600,0.000,0.000,2,0,0,NULL,500.00000000,NULL,1000.00000000,196.00000000,0.00000000,0.00000000,1196.00000000,1,'2012-12-18 00:00:00','2012-12-19 00:00:00',0,0,0,0,1,NULL),(45,19,NULL,18,'',19.600,0.000,0.000,1,0,0,NULL,204.65000000,NULL,204.65000000,40.11000000,0.00000000,0.00000000,244.76000000,1,'2012-12-18 00:00:00','2012-12-19 00:00:00',0,0,0,0,2,NULL),(46,19,NULL,NULL,'Erreur / TVA',19.600,0.000,0.000,1,0,0,1,-67.07000000,NULL,-67.07000000,-13.15000000,0.00000000,0.00000000,-80.22000000,0,NULL,NULL,2,0,0,0,3,NULL),(47,20,NULL,5,'Gest Commerciale\r\n- archivage facturation 2001-09\r\nComptabilité\r\n- creation nouveau fichier\r\n- import plan comptable, plan tiers, taux de taxe\r\n- paramétrages\r\n- creation exercice 2012/13',19.600,0.000,0.000,2,0,0,NULL,75.00000000,NULL,150.00000000,29.40000000,0.00000000,0.00000000,179.40000000,1,NULL,NULL,0,0,0,0,1,NULL),(48,21,NULL,5,'Gestion Commerciale\r\n - modèle Facture client Factor\r\nBanque\r\n- création fiches Virements Fournisseurs',19.600,0.000,0.000,1,13.33,0,NULL,75.00000000,NULL,65.00000000,12.74000000,0.00000000,0.00000000,77.74000000,1,'2012-12-27 00:00:00','2012-12-27 00:00:00',0,0,0,0,1,NULL),(49,22,NULL,14,'',19.600,0.000,0.000,1,0,0,NULL,395.00000000,NULL,395.00000000,77.42000000,0.00000000,0.00000000,472.42000000,1,NULL,NULL,0,0,0,0,1,NULL),(50,23,NULL,5,'- Pbl caisse créditrice / Exercice 2008\r\n- Pbl report à nouveau / Cpte 213502\r\n- Clôture et archivage Exercices 2006-2007-2008',19.600,0.000,0.000,3,0,0,NULL,75.00000000,NULL,225.00000000,44.10000000,0.00000000,0.00000000,269.10000000,1,NULL,NULL,0,0,0,0,1,NULL),(51,24,NULL,15,'',19.600,0.000,0.000,3,0,0,NULL,66.66500000,NULL,200.00000000,39.19000000,0.00000000,0.00000000,239.19000000,1,NULL,NULL,0,0,0,0,1,NULL),(52,25,NULL,5,'- installation Sage L30 Compta + Gescom + Serveur (client)\r\n- connection réseau > Sage Server (Partage et autorisations)\r\n- import préférences\r\n- installation Sage Editions Pilotées Compta + Gestcom\r\n- paramétrages cubes d\'analyse',19.600,0.000,0.000,2,0,0,NULL,80.00000000,NULL,160.00000000,31.36000000,0.00000000,0.00000000,191.36000000,1,NULL,NULL,0,0,0,0,1,NULL),(53,26,NULL,5,'Sage 30 Paie\r\n- correctif rubr. 69277 SMIC Mensuel Fillon\r\n- suppression rubr. TEPA / Profils / Bulletins\r\nSage 30 Compta\r\n- archivage exercices 08-09 et 09-10\r\nSage 30 Gest. Com\r\n- archivage exercices 03-09\r\nBureautique\r\n-installation MS Office 2011 + MAJ\r\n-Sauvegarde dossiers FRICON + Documents',19.600,0.000,0.000,4.5,0,0,NULL,75.00000000,NULL,337.50000000,66.15000000,0.00000000,0.00000000,403.65000000,1,NULL,NULL,0,0,0,0,1,NULL),(54,27,NULL,5,'',19.600,0.000,0.000,2,0,0,NULL,80.00000000,NULL,160.00000000,31.36000000,0.00000000,0.00000000,191.36000000,1,NULL,NULL,0,0,0,0,1,NULL),(55,28,NULL,13,'Applications Google (niveau 1)\r\n- Google Mail\r\n- Google Agenda\r\n- Google Drive',19.600,0.000,0.000,2,0,0,NULL,300.00000000,NULL,600.00000000,117.60000000,0.00000000,0.00000000,717.60000000,1,NULL,NULL,0,0,0,0,1,NULL),(57,29,NULL,5,'- fiches clients\r\n- devis\r\n- modèle devis/facture',19.600,0.000,0.000,1,0,0,NULL,75.00000000,NULL,75.00000000,14.70000000,0.00000000,0.00000000,89.70000000,1,NULL,NULL,0,0,0,0,1,NULL),(59,30,NULL,5,'Poste Veronique / Server\r\n- instal. Sage GestCom + Compta / Mise en réseau\r\n- Mail : ajout compte IMAP\r\n- Préférences bureau\r\n- Sauvegarde compte sur disque WD 500\r\n\r\nPoste Sylvie / Com1\r\n- réinstall Office 2011\r\n- Reparation outils Disque / Macintosh HD\r\n- Maintenance Onyx',19.600,0.000,0.000,3,0,0,NULL,65.00000000,NULL,195.00000000,38.22000000,0.00000000,0.00000000,233.22000000,1,NULL,NULL,0,0,0,0,1,NULL);

--
-- Table structure for table `llx_facturedet_rec`
--

CREATE TABLE `llx_facturedet_rec` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) default NULL,
  `fk_product` int(11) default NULL,
  `product_type` int(11) default '0',
  `description` text,
  `tva_tx` double(6,3) default '19.600',
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `qty` double default NULL,
  `remise_percent` double default '0',
  `remise` double default '0',
  `subprice` double(24,8) default NULL,
  `price` double(24,8) default NULL,
  `total_ht` double(24,8) default NULL,
  `total_tva` double(24,8) default NULL,
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default NULL,
  `special_code` int(10) unsigned default '0',
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facturedet_rec`
--


--
-- Table structure for table `llx_fichinter`
--

CREATE TABLE `llx_fichinter` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) default '0',
  `fk_contrat` int(11) default '0',
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `date_valid` datetime default NULL,
  `datei` date default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_statut` smallint(6) default '0',
  `duree` double default NULL,
  `description` text,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  KEY `idx_fichinter_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_fichinter`
--

INSERT INTO `llx_fichinter` (`rowid`, `fk_soc`, `fk_projet`, `fk_contrat`, `ref`, `entity`, `tms`, `datec`, `date_valid`, `datei`, `fk_user_author`, `fk_user_valid`, `fk_statut`, `duree`, `description`, `note_private`, `note_public`, `model_pdf`, `extraparams`) VALUES (5,11,0,0,'IntREPR130206-0001',1,'2013-03-08 10:30:36','2013-03-08 11:29:53','2013-03-08 11:30:36',NULL,1,1,1,3600,'Intervention sur site Sage Ligne 30',NULL,NULL,'soleil',NULL),(6,1,0,0,'IntWHNT130219-0001',1,'2013-03-08 10:46:23','2013-03-08 11:43:22','2013-03-08 11:46:23',NULL,1,1,1,14400,'Intervention sur site',NULL,NULL,'soleil',NULL);

--
-- Table structure for table `llx_fichinterdet`
--

CREATE TABLE `llx_fichinterdet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_fichinter` int(11) default NULL,
  `date` datetime default NULL,
  `description` text,
  `duree` int(11) default NULL,
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`),
  CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `llx_fichinter` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_fichinterdet`
--

INSERT INTO `llx_fichinterdet` (`rowid`, `fk_fichinter`, `date`, `description`, `duree`, `rang`) VALUES (4,5,'2013-02-06 16:00:00','Date	Durée	 \r\n- fiches clients\r\n- devis\r\n- modèle devis/facture',3600,0),(5,6,'2013-02-13 15:00:00','Poste Veronique / Server\r\n- instal. Sage GestCom + Compta / Mise en réseau\r\n- Mail : ajout compte IMAP\r\n- Préférences bureau\r\n- Sauvegarde compte sur disque WD 500\r\nPoste Sylvie / Com1\r\n- réinstall Office 2011\r\n- Reparation outils Disque / Macintosh HD\r\n- Maintenance Onyx',14400,0);

--
-- Table structure for table `llx_import_model`
--

CREATE TABLE `llx_import_model` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_user` int(11) NOT NULL default '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_import_model` (`label`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_import_model`
--


--
-- Table structure for table `llx_livraison`
--

CREATE TABLE `llx_livraison` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `fk_soc` int(11) NOT NULL,
  `ref_ext` varchar(30) default NULL,
  `ref_int` varchar(30) default NULL,
  `ref_customer` varchar(30) default NULL,
  `date_creation` datetime default NULL,
  `fk_user_author` int(11) default NULL,
  `date_valid` datetime default NULL,
  `fk_user_valid` int(11) default NULL,
  `date_delivery` date default NULL,
  `fk_address` int(11) default NULL,
  `fk_statut` smallint(6) default '0',
  `total_ht` double(24,8) default '0.00000000',
  `note` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_livraison_uk_ref` (`ref`,`entity`),
  KEY `idx_livraison_fk_soc` (`fk_soc`),
  KEY `idx_livraison_fk_user_author` (`fk_user_author`),
  KEY `idx_livraison_fk_user_valid` (`fk_user_valid`),
  CONSTRAINT `fk_livraison_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_livraison_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_livraison_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_livraison`
--


--
-- Table structure for table `llx_livraisondet`
--

CREATE TABLE `llx_livraisondet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_livraison` int(11) default NULL,
  `fk_origin_line` int(11) default NULL,
  `fk_product` int(11) default NULL,
  `description` text,
  `qty` double default NULL,
  `subprice` double(24,8) default '0.00000000',
  `total_ht` double(24,8) default '0.00000000',
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  KEY `idx_livraisondet_fk_expedition` (`fk_livraison`),
  CONSTRAINT `fk_livraisondet_fk_livraison` FOREIGN KEY (`fk_livraison`) REFERENCES `llx_livraison` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_livraisondet`
--


--
-- Table structure for table `llx_localtax`
--

CREATE TABLE `llx_localtax` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datep` date default NULL,
  `datev` date default NULL,
  `amount` double default NULL,
  `label` varchar(255) default NULL,
  `note` text,
  `fk_bank` int(11) default NULL,
  `fk_user_creat` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_localtax`
--


--
-- Table structure for table `llx_mailing`
--

CREATE TABLE `llx_mailing` (
  `rowid` int(11) NOT NULL auto_increment,
  `statut` smallint(6) default '0',
  `titre` varchar(60) default NULL,
  `entity` int(11) NOT NULL default '1',
  `sujet` varchar(60) default NULL,
  `body` text,
  `bgcolor` varchar(8) default NULL,
  `bgimage` varchar(255) default NULL,
  `cible` varchar(60) default NULL,
  `nbemail` int(11) default NULL,
  `email_from` varchar(160) default NULL,
  `email_replyto` varchar(160) default NULL,
  `email_errorsto` varchar(160) default NULL,
  `tag` varchar(128) default NULL,
  `date_creat` datetime default NULL,
  `date_valid` datetime default NULL,
  `date_appro` datetime default NULL,
  `date_envoi` datetime default NULL,
  `fk_user_creat` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_user_appro` int(11) default NULL,
  `joined_file1` varchar(255) default NULL,
  `joined_file2` varchar(255) default NULL,
  `joined_file3` varchar(255) default NULL,
  `joined_file4` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_mailing`
--


--
-- Table structure for table `llx_mailing_cibles`
--

CREATE TABLE `llx_mailing_cibles` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_mailing` int(11) NOT NULL,
  `fk_contact` int(11) NOT NULL,
  `nom` varchar(160) default NULL,
  `prenom` varchar(160) default NULL,
  `email` varchar(160) NOT NULL,
  `other` varchar(255) default NULL,
  `tag` varchar(128) default NULL,
  `statut` smallint(6) NOT NULL default '0',
  `source_url` varchar(160) default NULL,
  `source_id` int(11) default NULL,
  `source_type` varchar(16) default NULL,
  `date_envoi` datetime default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  KEY `idx_mailing_cibles_email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_mailing_cibles`
--


--
-- Table structure for table `llx_menu`
--

CREATE TABLE `llx_menu` (
  `rowid` int(11) NOT NULL auto_increment,
  `menu_handler` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `module` varchar(64) default NULL,
  `type` varchar(4) NOT NULL,
  `mainmenu` varchar(100) NOT NULL,
  `leftmenu` varchar(100) default NULL,
  `fk_menu` int(11) NOT NULL,
  `fk_mainmenu` varchar(16) default NULL,
  `fk_leftmenu` varchar(16) default NULL,
  `position` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `target` varchar(100) default NULL,
  `titre` varchar(255) NOT NULL,
  `langs` varchar(100) default NULL,
  `level` smallint(6) default NULL,
  `perms` varchar(255) default NULL,
  `enabled` varchar(255) default '1',
  `usertype` int(11) NOT NULL default '0',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_menu_uk_menu` (`menu_handler`,`fk_menu`,`position`,`url`,`entity`),
  KEY `idx_menu_menuhandler_type` (`menu_handler`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_menu`
--

INSERT INTO `llx_menu` (`rowid`, `menu_handler`, `entity`, `module`, `type`, `mainmenu`, `leftmenu`, `fk_menu`, `fk_mainmenu`, `fk_leftmenu`, `position`, `url`, `target`, `titre`, `langs`, `level`, `perms`, `enabled`, `usertype`, `tms`) VALUES (1,'all',1,'agenda','top','agenda',NULL,0,NULL,NULL,100,'/comm/action/index.php','','Agenda','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(2,'all',1,'agenda','left','agenda',NULL,1,NULL,NULL,100,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Actions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(3,'all',1,'agenda','left','agenda',NULL,2,NULL,NULL,101,'/comm/action/fiche.php?mainmenu=agenda&amp;leftmenu=agenda&amp;action=create','','NewAction','commercial',NULL,'($user->rights->agenda->myactions->create||$user->rights->agenda->allactions->create)','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(4,'all',1,'agenda','left','agenda',NULL,2,NULL,NULL,102,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Calendar','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(5,'all',1,'agenda','left','agenda',NULL,4,NULL,NULL,103,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine','','MenuToDoMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(6,'all',1,'agenda','left','agenda',NULL,4,NULL,NULL,104,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine','','MenuDoneMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(7,'all',1,'agenda','left','agenda',NULL,4,NULL,NULL,105,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo','','MenuToDoActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2013-01-29 16:29:06'),(8,'all',1,'agenda','left','agenda',NULL,4,NULL,NULL,106,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done','','MenuDoneActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2013-01-29 16:29:06'),(9,'all',1,'agenda','left','agenda',NULL,2,NULL,NULL,112,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda','','List','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(10,'all',1,'agenda','left','agenda',NULL,9,NULL,NULL,113,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine','','MenuToDoMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(11,'all',1,'agenda','left','agenda',NULL,9,NULL,NULL,114,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine','','MenuDoneMyActions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06'),(12,'all',1,'agenda','left','agenda',NULL,9,NULL,NULL,115,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo','','MenuToDoActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2013-01-29 16:29:06'),(13,'all',1,'agenda','left','agenda',NULL,9,NULL,NULL,116,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done','','MenuDoneActions','agenda',NULL,'$user->rights->agenda->allactions->read','$user->rights->agenda->allactions->read',2,'2013-01-29 16:29:06'),(14,'all',1,'agenda','left','agenda',NULL,2,NULL,NULL,120,'/comm/action/rapport/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Reportings','agenda',NULL,'$user->rights->agenda->allactions->read','$conf->agenda->enabled',2,'2013-01-29 16:29:06');

--
-- Table structure for table `llx_notify`
--

CREATE TABLE `llx_notify` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `daten` datetime default NULL,
  `fk_action` int(11) NOT NULL,
  `fk_contact` int(11) default NULL,
  `fk_user` int(11) default NULL,
  `objet_type` varchar(24) NOT NULL,
  `objet_id` int(11) NOT NULL,
  `email` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_notify`
--


--
-- Table structure for table `llx_notify_def`
--

CREATE TABLE `llx_notify_def` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` date default NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_contact` int(11) default NULL,
  `fk_user` int(11) default NULL,
  `type` varchar(16) default 'email',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_notify_def`
--


--
-- Table structure for table `llx_paiement`
--

CREATE TABLE `llx_paiement` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datep` datetime default NULL,
  `amount` double(24,8) default '0.00000000',
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) default NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL default '0',
  `fk_user_creat` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  `statut` smallint(6) NOT NULL default '0',
  `fk_export_compta` int(11) NOT NULL default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_paiement`
--

INSERT INTO `llx_paiement` (`rowid`, `entity`, `datec`, `tms`, `datep`, `amount`, `fk_paiement`, `num_paiement`, `note`, `fk_bank`, `fk_user_creat`, `fk_user_modif`, `statut`, `fk_export_compta`) VALUES (1,1,'2013-02-28 17:18:33','2013-02-28 16:18:33','2012-03-02 12:00:00',104.65000000,7,'3000986','',2,1,NULL,0,0),(2,1,'2013-02-28 17:20:46','2013-02-28 16:20:46','2012-03-13 12:00:00',236.21000000,7,'2924','',3,1,NULL,0,0),(3,1,'2013-02-28 17:27:36','2013-02-28 16:27:36','2012-03-13 12:00:00',299.00000000,7,'3425406','',4,1,NULL,0,0),(4,1,'2013-02-28 17:29:25','2013-02-28 16:29:25','2012-03-30 12:00:00',533.72000000,7,'2033887','',5,1,NULL,0,0),(5,1,'2013-03-01 08:18:33','2013-03-01 07:18:33','2012-03-02 12:00:00',472.42000000,7,'3137587','',6,1,NULL,0,0),(6,1,'2013-03-01 08:23:20','2013-03-01 07:23:20','2012-03-30 12:00:00',135.27000000,7,'6170494','',7,1,NULL,0,0),(7,1,'2013-03-01 08:24:59','2013-03-01 07:24:59','2012-04-27 12:00:00',134.55000000,7,'3169223','',8,1,NULL,0,0),(8,1,'2013-03-01 08:45:39','2013-03-01 07:45:39','2012-04-27 12:00:00',700.00000000,7,'','',9,1,NULL,0,0),(10,1,'2013-03-01 08:47:40','2013-03-01 07:47:40','2012-05-22 12:00:00',1620.24000000,7,'0837461','',11,1,NULL,0,0),(11,1,'2013-03-03 09:42:43','2013-03-03 08:42:43','2012-08-29 12:00:00',236.21000000,7,'0837461','',12,1,NULL,0,0),(12,1,'2013-03-03 09:44:44','2013-03-03 08:44:44','2012-08-16 12:00:00',549.56000000,7,'0776019','',13,1,NULL,0,0),(13,1,'2013-03-03 09:45:31','2013-03-03 08:45:31','2012-07-11 12:00:00',549.56000000,7,'','',14,1,NULL,0,0),(14,1,'2013-03-03 09:46:54','2013-03-03 08:46:54','2012-09-17 12:00:00',400.36000000,7,'2496030','',15,1,NULL,0,0),(15,1,'2013-03-03 09:48:01','2013-03-03 08:48:01','2012-10-19 12:00:00',334.88000000,7,'2114747','',16,1,NULL,0,0),(16,1,'2013-03-03 09:48:59','2013-03-03 08:48:59','2012-10-05 12:00:00',251.16000000,7,'','',17,1,NULL,0,0),(17,1,'2013-03-03 10:02:39','2013-03-03 09:02:39','2012-11-29 12:00:00',60.00000000,7,'78','',18,1,NULL,0,0),(18,1,'2013-03-03 10:12:33','2013-03-03 09:12:33','2013-01-11 12:00:00',71.76000000,7,'200','',19,1,NULL,0,0),(19,1,'2013-03-03 11:10:34','2013-03-03 10:10:34','2012-12-12 12:00:00',2221.25000000,2,'','',20,1,NULL,0,0),(20,1,'2013-03-03 19:54:52','2013-03-03 18:54:52','2013-01-28 12:00:00',1360.54000000,2,'','',21,1,NULL,0,0),(21,1,'2013-03-03 20:15:48','2013-03-03 19:15:48','2013-02-11 12:00:00',472.42000000,7,'1101099','',22,1,NULL,0,0),(22,1,'2013-03-03 20:17:08','2013-03-03 19:17:08','2013-02-11 12:00:00',179.40000000,7,'34','',23,1,NULL,0,0),(23,1,'2013-03-04 18:27:36','2013-03-04 17:27:36','2013-02-06 12:00:00',269.10000000,2,'','',24,1,NULL,0,0),(24,1,'2013-03-04 18:35:01','2013-03-04 17:35:01','2013-01-31 12:00:00',239.19000000,4,'','',25,1,NULL,0,0),(25,1,'2013-03-04 18:42:11','2013-03-04 17:42:12','2013-02-10 12:00:00',191.36000000,7,'6170544','',26,1,NULL,0,0),(26,1,'2013-03-04 19:24:07','2013-03-04 18:24:07','2013-02-19 12:00:00',77.74000000,7,'235','',27,1,NULL,0,0),(27,1,'2013-03-04 19:28:03','2013-03-04 18:28:03','2013-02-18 12:00:00',191.36000000,7,'6170552','',28,1,NULL,0,0);

--
-- Table structure for table `llx_paiement_facture`
--

CREATE TABLE `llx_paiement_facture` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_paiement` int(11) default NULL,
  `fk_facture` int(11) default NULL,
  `amount` double(24,8) default '0.00000000',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_paiement_facture` (`fk_paiement`,`fk_facture`),
  KEY `idx_paiement_facture_fk_facture` (`fk_facture`),
  KEY `idx_paiement_facture_fk_paiement` (`fk_paiement`),
  CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `llx_paiement` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_paiement_facture`
--

INSERT INTO `llx_paiement_facture` (`rowid`, `fk_paiement`, `fk_facture`, `amount`) VALUES (1,1,2,104.65000000),(2,2,4,236.21000000),(3,3,5,209.30000000),(4,3,7,89.70000000),(5,4,6,533.72000000),(6,5,3,472.42000000),(7,6,8,135.27000000),(8,7,9,134.55000000),(9,8,10,700.00000000),(11,10,10,1620.24000000),(12,11,12,236.21000000),(13,12,1,549.56000000),(14,13,1,549.56000000),(15,14,13,400.36000000),(16,15,14,334.88000000),(17,16,15,251.16000000),(18,17,16,60.00000000),(19,18,17,71.76000000),(20,19,18,2221.25000000),(21,20,19,1360.54000000),(22,21,22,472.42000000),(23,22,20,179.40000000),(24,23,23,269.10000000),(25,24,24,239.19000000),(26,25,25,191.36000000),(27,26,21,77.74000000),(28,27,27,191.36000000);

--
-- Table structure for table `llx_paiementcharge`
--

CREATE TABLE `llx_paiementcharge` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_charge` int(11) default NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datep` datetime default NULL,
  `amount` double default '0',
  `fk_typepaiement` int(11) NOT NULL,
  `num_paiement` varchar(50) default NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_paiementcharge`
--


--
-- Table structure for table `llx_paiementfourn`
--

CREATE TABLE `llx_paiementfourn` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `datep` datetime default NULL,
  `amount` double default '0',
  `fk_user_author` int(11) default NULL,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) default NULL,
  `note` text,
  `fk_bank` int(11) NOT NULL,
  `statut` smallint(6) NOT NULL default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_paiementfourn`
--


--
-- Table structure for table `llx_paiementfourn_facturefourn`
--

CREATE TABLE `llx_paiementfourn_facturefourn` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_paiementfourn` int(11) default NULL,
  `fk_facturefourn` int(11) default NULL,
  `amount` double(24,8) default '0.00000000',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_paiementfourn_facturefourn` (`fk_paiementfourn`,`fk_facturefourn`),
  KEY `idx_paiementfourn_facturefourn_fk_facture` (`fk_facturefourn`),
  KEY `idx_paiementfourn_facturefourn_fk_paiement` (`fk_paiementfourn`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_paiementfourn_facturefourn`
--


--
-- Table structure for table `llx_prelevement_bons`
--

CREATE TABLE `llx_prelevement_bons` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(12) default NULL,
  `entity` int(11) NOT NULL default '1',
  `datec` datetime default NULL,
  `amount` double default '0',
  `statut` smallint(6) default '0',
  `credite` smallint(6) default '0',
  `note` text,
  `date_trans` datetime default NULL,
  `method_trans` smallint(6) default NULL,
  `fk_user_trans` int(11) default NULL,
  `date_credit` datetime default NULL,
  `fk_user_credit` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_prelevement_bons`
--


--
-- Table structure for table `llx_prelevement_facture`
--

CREATE TABLE `llx_prelevement_facture` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_facture` int(11) NOT NULL,
  `fk_prelevement_lignes` int(11) NOT NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`),
  CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `llx_prelevement_lignes` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_prelevement_facture`
--


--
-- Table structure for table `llx_prelevement_facture_demande`
--

CREATE TABLE `llx_prelevement_facture_demande` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_facture` int(11) NOT NULL,
  `amount` double NOT NULL,
  `date_demande` datetime NOT NULL,
  `traite` smallint(6) default '0',
  `date_traite` datetime default NULL,
  `fk_prelevement_bons` int(11) default NULL,
  `fk_user_demande` int(11) NOT NULL,
  `code_banque` varchar(7) default NULL,
  `code_guichet` varchar(6) default NULL,
  `number` varchar(255) default NULL,
  `cle_rib` varchar(5) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_prelevement_facture_demande`
--


--
-- Table structure for table `llx_prelevement_lignes`
--

CREATE TABLE `llx_prelevement_lignes` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_prelevement_bons` int(11) default NULL,
  `fk_soc` int(11) NOT NULL,
  `statut` smallint(6) default '0',
  `client_nom` varchar(255) default NULL,
  `amount` double default '0',
  `code_banque` varchar(7) default NULL,
  `code_guichet` varchar(6) default NULL,
  `number` varchar(255) default NULL,
  `cle_rib` varchar(5) default NULL,
  `note` text,
  PRIMARY KEY  (`rowid`),
  KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`),
  CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `llx_prelevement_bons` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_prelevement_lignes`
--


--
-- Table structure for table `llx_prelevement_rejet`
--

CREATE TABLE `llx_prelevement_rejet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_prelevement_lignes` int(11) default NULL,
  `date_rejet` datetime default NULL,
  `motif` int(11) default NULL,
  `date_creation` datetime default NULL,
  `fk_user_creation` int(11) default NULL,
  `note` text,
  `afacturer` tinyint(4) default '0',
  `fk_facture` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_prelevement_rejet`
--


--
-- Table structure for table `llx_product`
--

CREATE TABLE `llx_product` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(32) default NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `virtual` tinyint(4) NOT NULL default '0',
  `fk_parent` int(11) default '0',
  `label` varchar(255) NOT NULL,
  `description` text,
  `note` text,
  `customcode` varchar(32) default NULL,
  `fk_country` int(11) default NULL,
  `price` double(24,8) default '0.00000000',
  `price_ttc` double(24,8) default '0.00000000',
  `price_min` double(24,8) default '0.00000000',
  `price_min_ttc` double(24,8) default '0.00000000',
  `price_base_type` varchar(3) default 'HT',
  `tva_tx` double(6,3) default NULL,
  `recuperableonly` int(11) NOT NULL default '0',
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `fk_user_author` int(11) default NULL,
  `tosell` tinyint(4) default '1',
  `tobuy` tinyint(4) default '1',
  `fk_product_type` int(11) default '0',
  `duration` varchar(6) default NULL,
  `seuil_stock_alerte` int(11) default '0',
  `barcode` varchar(255) default NULL,
  `fk_barcode_type` int(11) default '0',
  `accountancy_code_sell` varchar(15) default NULL,
  `accountancy_code_buy` varchar(15) default NULL,
  `partnumber` varchar(32) default NULL,
  `weight` float default NULL,
  `weight_units` tinyint(4) default NULL,
  `length` float default NULL,
  `length_units` tinyint(4) default NULL,
  `surface` float default NULL,
  `surface_units` tinyint(4) default NULL,
  `volume` float default NULL,
  `volume_units` tinyint(4) default NULL,
  `stock` int(11) default NULL,
  `pmp` double(24,8) NOT NULL default '0.00000000',
  `canvas` varchar(32) default 'default@product',
  `finished` tinyint(4) default NULL,
  `hidden` tinyint(4) default '0',
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  KEY `idx_product_label` (`label`),
  KEY `idx_product_barcode` (`barcode`),
  KEY `idx_product_import_key` (`import_key`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product`
--

INSERT INTO `llx_product` (`rowid`, `ref`, `entity`, `ref_ext`, `datec`, `tms`, `virtual`, `fk_parent`, `label`, `description`, `note`, `customcode`, `fk_country`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax2_tx`, `fk_user_author`, `tosell`, `tobuy`, `fk_product_type`, `duration`, `seuil_stock_alerte`, `barcode`, `fk_barcode_type`, `accountancy_code_sell`, `accountancy_code_buy`, `partnumber`, `weight`, `weight_units`, `length`, `length_units`, `surface`, `surface_units`, `volume`, `volume_units`, `stock`, `pmp`, `canvas`, `finished`, `hidden`, `import_key`) VALUES (1,'LOSAMACO30',1,NULL,'2013-01-29 21:51:37','2013-02-28 16:43:33',0,0,'Logiciel SAGE COMPTA 30 Macintosh','','','',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,0,'',NULL,NULL,0,'707100','607100',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',1,0,NULL),(2,'LOSAMAGE30',1,NULL,'2013-01-29 22:11:05','2013-02-28 16:43:11',0,0,'Logiciel SAGE Gestion Commerciale 30 Macintosh','','','',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,0,'',NULL,NULL,0,'707100','607100',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',1,0,NULL),(3,'LOSAMASE30',1,NULL,'2013-01-29 22:16:46','2013-02-28 16:42:35',0,0,'Logiciel SAGE SERVEUR 30 Macintosh','','','',NULL,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,0,'',NULL,NULL,0,'707100','607100',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',1,0,NULL),(4,'PORT',1,NULL,'2013-01-29 22:17:44','2013-02-28 16:42:07',0,0,'Frais de port','','','',NULL,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,1,'',NULL,NULL,0,'708500','608500',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(5,'INTHSAG30',1,NULL,'2013-02-21 16:15:54','2013-03-04 17:39:33',0,0,'Intervention Sage Ligne 30 (heures)','','','',NULL,80.00000000,95.68000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'h',NULL,NULL,0,'706100','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(6,'INTJSAG30',1,NULL,'2013-02-21 16:57:18','2013-03-03 09:25:41',0,0,'Intervention Sage Ligne 30 (jours)','','','',NULL,395.00000000,472.42000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'d',NULL,NULL,0,'706100','606100',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(7,'INTJRES',1,NULL,'2013-02-21 17:28:00','2013-02-28 16:44:42',0,0,'Intervention Reseau (jours)','','','',NULL,350.00000000,418.60000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'d',NULL,NULL,0,'706100','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(8,'ASSA30',1,NULL,'2013-02-28 15:29:21','2013-02-28 16:45:30',0,0,'Assistance à distance Sage Ligne 30','','','',NULL,25.00000000,29.90000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'m',NULL,NULL,0,'706200','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(9,'INTHRES',1,NULL,'2013-02-28 15:32:09','2013-03-02 14:12:18',0,0,'Intervention Réseau (heures)','','','',NULL,75.00000000,89.70000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'h',NULL,NULL,0,'706100','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(10,'LOSAWISE30',1,NULL,'2013-02-28 16:47:57','2013-02-28 16:32:34',0,0,'Logiciel SAGE SERVEUR 30 Windows','','','',NULL,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,0,'',NULL,NULL,0,'707100','607100',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',1,0,NULL),(11,'LOSAWIGE30',1,NULL,'2013-02-28 16:56:36','2013-02-28 16:32:08',0,0,'Logiciel SAGE Gestion Commerciale 30 Windows','','','',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,0,'',NULL,NULL,0,'707100','607100',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',1,0,NULL),(12,'LOSAWICO30',1,NULL,'2013-02-28 17:05:53','2013-02-28 16:31:29',0,0,'Logiciel SAGE COMPTA 30 Windows','','','',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,0,'',NULL,NULL,0,'707100','607100',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,'',1,0,NULL),(13,'FOJBURO',1,NULL,'2013-03-02 14:47:01','2013-03-02 14:02:54',0,0,'Formation Bureautique (jours)','','','',NULL,305.00000000,364.78000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'d',NULL,NULL,0,'706500','606500',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(14,'FOJGEST',1,NULL,'2013-03-02 14:49:15','2013-03-02 14:02:23',0,0,'Formation Gestion (jours)','','','',NULL,395.00000000,472.42000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'',NULL,NULL,0,'706500','606500',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(15,'INTHBURO',1,NULL,'2013-03-02 15:09:31','2013-03-03 08:56:13',0,0,'Intervention Bureautique (heures)','','','',NULL,50.16722000,60.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'',NULL,NULL,0,'706100','606100',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(16,'INTJSAG100',1,NULL,'2013-03-03 10:26:15','2013-03-03 09:27:27',0,0,'Intervention Sage Ligne 100 (jours)','','','',NULL,500.00000000,598.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,0,1,'d',NULL,NULL,0,'706100','606100',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(17,'DPL',1,NULL,'2013-03-03 10:29:46','2013-03-03 09:32:28',0,0,'Deplacement voiture (A/R)','','','',NULL,0.30000000,0.35880000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1,1,1,'',NULL,NULL,0,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL),(18,'DPL1',1,NULL,'2013-03-03 19:17:30','2013-03-03 18:18:00',0,0,'Déplacement (Train, Hôtel, Restauration)','','','',NULL,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,1,1,1,1,'',NULL,NULL,0,'708500','608500',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,'',0,0,NULL);

--
-- Table structure for table `llx_product_association`
--

CREATE TABLE `llx_product_association` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_product_pere` int(11) NOT NULL default '0',
  `fk_product_fils` int(11) NOT NULL default '0',
  `qty` double default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
  KEY `idx_product_association_fils` (`fk_product_fils`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_association`
--


--
-- Table structure for table `llx_product_ca`
--

CREATE TABLE `llx_product_ca` (
  `fk_product` int(11) default NULL,
  `date_calcul` datetime default NULL,
  `year` smallint(5) unsigned default NULL,
  `ca_genere` float default NULL,
  UNIQUE KEY `fk_product` (`fk_product`,`year`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_ca`
--


--
-- Table structure for table `llx_product_extrafields`
--

CREATE TABLE `llx_product_extrafields` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_product_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_extrafields`
--


--
-- Table structure for table `llx_product_fournisseur_price`
--

CREATE TABLE `llx_product_fournisseur_price` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_product` int(11) default NULL,
  `fk_soc` int(11) default NULL,
  `ref_fourn` varchar(30) default NULL,
  `fk_availability` int(11) default NULL,
  `price` double(24,8) default '0.00000000',
  `quantity` double default NULL,
  `unitprice` double(24,8) default '0.00000000',
  `tva_tx` double(6,3) NOT NULL,
  `fk_user` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`entity`),
  KEY `idx_product_fournisseur_price_fk_user` (`fk_user`),
  KEY `idx_product_fourn_price_fk_product` (`fk_product`,`entity`),
  KEY `idx_product_fourn_price_fk_soc` (`fk_soc`,`entity`),
  CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_fournisseur_price`
--


--
-- Table structure for table `llx_product_fournisseur_price_log`
--

CREATE TABLE `llx_product_fournisseur_price_log` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `fk_product_fournisseur` int(11) NOT NULL,
  `price` double(24,8) default '0.00000000',
  `quantity` double default NULL,
  `fk_user` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_fournisseur_price_log`
--


--
-- Table structure for table `llx_product_lang`
--

CREATE TABLE `llx_product_lang` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_product` int(11) NOT NULL default '0',
  `lang` varchar(5) NOT NULL default '0',
  `label` varchar(255) NOT NULL,
  `description` text,
  `note` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`),
  CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_lang`
--


--
-- Table structure for table `llx_product_price`
--

CREATE TABLE `llx_product_price` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_product` int(11) NOT NULL,
  `date_price` datetime NOT NULL,
  `price_level` smallint(6) default '1',
  `price` double(24,8) default NULL,
  `price_ttc` double(24,8) default NULL,
  `price_min` double(24,8) default NULL,
  `price_min_ttc` double(24,8) default NULL,
  `price_base_type` varchar(3) default 'HT',
  `tva_tx` double(6,3) NOT NULL,
  `recuperableonly` int(11) NOT NULL default '0',
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `fk_user_author` int(11) default NULL,
  `tosell` tinyint(4) default '1',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_price`
--

INSERT INTO `llx_product_price` (`rowid`, `entity`, `tms`, `fk_product`, `date_price`, `price_level`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax2_tx`, `fk_user_author`, `tosell`) VALUES (1,1,'2013-01-29 20:51:37',1,'2013-01-29 21:51:37',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(2,1,'2013-01-29 21:11:05',2,'2013-01-29 22:11:05',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,0),(3,1,'2013-01-29 21:16:46',3,'2013-01-29 22:16:46',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(4,1,'2013-01-29 21:17:44',4,'2013-01-29 22:17:44',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(5,1,'2013-02-21 15:15:54',5,'2013-02-21 16:15:54',1,75.00000000,89.70000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(6,1,'2013-02-21 15:57:18',6,'2013-02-21 16:57:18',1,395.00000000,472.42000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(7,1,'2013-02-21 16:28:00',7,'2013-02-21 17:28:00',1,350.00000000,418.60000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(8,1,'2013-02-28 14:29:21',8,'2013-02-28 15:29:21',1,25.00000000,29.90000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(9,1,'2013-02-28 14:32:09',9,'2013-02-28 15:32:09',1,65.00000000,77.74000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(10,1,'2013-02-28 15:47:57',10,'2013-02-28 16:47:57',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,0),(11,1,'2013-02-28 15:56:36',11,'2013-02-28 16:56:36',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,0),(12,1,'2013-02-28 16:05:53',12,'2013-02-28 17:05:53',1,0.00000000,0.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,0),(13,1,'2013-03-02 13:47:01',13,'2013-03-02 14:47:01',1,305.00000000,364.78000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(14,1,'2013-03-02 13:49:15',14,'2013-03-02 14:49:15',1,395.00000000,472.42000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(15,1,'2013-03-02 14:09:31',15,'2013-03-02 15:09:31',1,65.00000000,77.74000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(16,1,'2013-03-02 14:12:18',9,'2013-03-02 15:12:18',1,75.00000000,89.70000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(19,1,'2013-03-03 08:56:13',15,'2013-03-03 09:56:13',2,50.16722000,60.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(21,1,'2013-03-03 09:26:57',16,'2013-03-03 10:26:57',1,500.00000000,598.00000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(23,1,'2013-03-03 09:30:22',17,'2013-03-03 10:30:22',1,0.30000000,0.30000000,0.00000000,0.00000000,'HT',0.000,0,0.000,0.000,1,1),(24,1,'2013-03-03 09:32:28',17,'2013-03-03 10:32:28',1,0.30000000,0.35880000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1),(25,1,'2013-03-03 18:17:30',18,'2013-03-03 19:17:30',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,1,1),(26,1,'2013-03-04 17:39:33',5,'2013-03-04 18:39:33',3,80.00000000,95.68000000,0.00000000,0.00000000,'HT',19.600,0,0.000,0.000,1,1);

--
-- Table structure for table `llx_product_stock`
--

CREATE TABLE `llx_product_stock` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `reel` double default NULL,
  `pmp` double(24,8) NOT NULL default '0.00000000',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_stock` (`fk_product`,`fk_entrepot`),
  KEY `idx_product_stock_fk_product` (`fk_product`),
  KEY `idx_product_stock_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_stock`
--


--
-- Table structure for table `llx_projet`
--

CREATE TABLE `llx_projet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) default NULL,
  `datec` date default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `dateo` date default NULL,
  `datee` date default NULL,
  `ref` varchar(50) default NULL,
  `entity` int(11) NOT NULL default '1',
  `title` varchar(255) NOT NULL,
  `description` text,
  `fk_user_creat` int(11) NOT NULL,
  `public` int(11) default NULL,
  `fk_statut` smallint(6) NOT NULL default '0',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  KEY `idx_projet_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_projet`
--


--
-- Table structure for table `llx_projet_task`
--

CREATE TABLE `llx_projet_task` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_projet` int(11) NOT NULL,
  `fk_task_parent` int(11) NOT NULL default '0',
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `dateo` datetime default NULL,
  `datee` datetime default NULL,
  `datev` datetime default NULL,
  `label` varchar(255) NOT NULL,
  `description` text,
  `duration_effective` double NOT NULL default '0',
  `progress` int(11) default '0',
  `priority` int(11) default '0',
  `fk_user_creat` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_statut` smallint(6) NOT NULL default '0',
  `note_private` text,
  `note_public` text,
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  KEY `idx_projet_task_fk_projet` (`fk_projet`),
  KEY `idx_projet_task_fk_user_creat` (`fk_user_creat`),
  KEY `idx_projet_task_fk_user_valid` (`fk_user_valid`),
  CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_projet_task`
--


--
-- Table structure for table `llx_projet_task_time`
--

CREATE TABLE `llx_projet_task_time` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_task` int(11) NOT NULL,
  `task_date` date default NULL,
  `task_duration` double default NULL,
  `fk_user` int(11) default NULL,
  `note` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_projet_task_time`
--


--
-- Table structure for table `llx_propal`
--

CREATE TABLE `llx_propal` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(255) default NULL,
  `ref_int` varchar(255) default NULL,
  `ref_client` varchar(255) default NULL,
  `fk_soc` int(11) default NULL,
  `fk_projet` int(11) default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `datep` date default NULL,
  `fin_validite` datetime default NULL,
  `date_valid` datetime default NULL,
  `date_cloture` datetime default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_user_cloture` int(11) default NULL,
  `fk_statut` smallint(6) NOT NULL default '0',
  `price` double default '0',
  `remise_percent` double default '0',
  `remise_absolue` double default '0',
  `remise` double default '0',
  `total_ht` double(24,8) default '0.00000000',
  `tva` double(24,8) default '0.00000000',
  `localtax1` double(24,8) default '0.00000000',
  `localtax2` double(24,8) default '0.00000000',
  `total` double(24,8) default '0.00000000',
  `fk_account` int(11) default NULL,
  `fk_currency` varchar(2) default NULL,
  `fk_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `note` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `date_livraison` date default NULL,
  `fk_availability` int(11) default NULL,
  `fk_demand_reason` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  `fk_adresse_livraison` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_propal_ref` (`ref`,`entity`),
  KEY `idx_propal_fk_soc` (`fk_soc`),
  KEY `idx_propal_fk_user_author` (`fk_user_author`),
  KEY `idx_propal_fk_user_valid` (`fk_user_valid`),
  KEY `idx_propal_fk_user_cloture` (`fk_user_cloture`),
  KEY `idx_propal_fk_projet` (`fk_projet`),
  KEY `idx_propal_fk_account` (`fk_account`),
  KEY `idx_propal_fk_currency` (`fk_currency`),
  CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_propal`
--


--
-- Table structure for table `llx_propaldet`
--

CREATE TABLE `llx_propaldet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_propal` int(11) NOT NULL,
  `fk_parent_line` int(11) default NULL,
  `fk_product` int(11) default NULL,
  `description` text,
  `fk_remise_except` int(11) default NULL,
  `tva_tx` double(6,3) default '0.000',
  `localtax1_tx` double(6,3) default '0.000',
  `localtax2_tx` double(6,3) default '0.000',
  `qty` double default NULL,
  `remise_percent` double default '0',
  `remise` double default '0',
  `price` double default NULL,
  `subprice` double(24,8) default '0.00000000',
  `total_ht` double(24,8) default '0.00000000',
  `total_tva` double(24,8) default '0.00000000',
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `product_type` int(11) default '0',
  `date_start` datetime default NULL,
  `date_end` datetime default NULL,
  `info_bits` int(11) default '0',
  `pa_ht` double(24,8) default '0.00000000',
  `marge_tx` double(6,3) default '0.000',
  `marque_tx` double(6,3) default '0.000',
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  KEY `idx_propaldet_fk_propal` (`fk_propal`),
  KEY `idx_propaldet_fk_product` (`fk_product`),
  CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `llx_propal` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_propaldet`
--


--
-- Table structure for table `llx_rights_def`
--

CREATE TABLE `llx_rights_def` (
  `id` int(11) NOT NULL default '0',
  `libelle` varchar(255) default NULL,
  `module` varchar(64) default NULL,
  `entity` int(11) NOT NULL default '1',
  `perms` varchar(50) default NULL,
  `subperms` varchar(50) default NULL,
  `type` varchar(1) default NULL,
  `bydefault` tinyint(4) default '0',
  PRIMARY KEY  (`id`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_rights_def`
--



--
-- Table structure for table `llx_societe`
--

CREATE TABLE `llx_societe` (
  `rowid` int(11) NOT NULL auto_increment,
  `nom` varchar(60) default NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(60) default NULL,
  `ref_int` varchar(60) default NULL,
  `statut` tinyint(4) default '0',
  `parent` int(11) default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `datea` datetime default NULL,
  `status` tinyint(4) default '1',
  `code_client` varchar(24) default NULL,
  `code_fournisseur` varchar(24) default NULL,
  `code_compta` varchar(24) default NULL,
  `code_compta_fournisseur` varchar(24) default NULL,
  `address` varchar(255) default NULL,
  `cp` varchar(10) default NULL,
  `ville` varchar(50) default NULL,
  `fk_departement` int(11) default '0',
  `fk_pays` int(11) default '0',
  `tel` varchar(20) default NULL,
  `fax` varchar(20) default NULL,
  `url` varchar(255) default NULL,
  `email` varchar(128) default NULL,
  `fk_secteur` int(11) default '0',
  `fk_effectif` int(11) default '0',
  `fk_typent` int(11) default '0',
  `fk_forme_juridique` int(11) default '0',
  `fk_currency` int(11) default '0',
  `siren` varchar(128) default NULL,
  `siret` varchar(128) default NULL,
  `ape` varchar(128) default NULL,
  `idprof4` varchar(128) default NULL,
  `idprof5` varchar(128) default NULL,
  `tva_intra` varchar(20) default NULL,
  `capital` double default NULL,
  `description` text,
  `fk_stcomm` int(11) NOT NULL default '0',
  `note` text,
  `services` tinyint(4) default '0',
  `prefix_comm` varchar(5) default NULL,
  `client` tinyint(4) default '0',
  `fournisseur` tinyint(4) default '0',
  `supplier_account` varchar(32) default NULL,
  `fk_prospectlevel` varchar(12) default NULL,
  `customer_bad` tinyint(4) default '0',
  `customer_rate` double default '0',
  `supplier_rate` double default '0',
  `fk_user_creat` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  `remise_client` double default '0',
  `mode_reglement` tinyint(4) default NULL,
  `cond_reglement` tinyint(4) default NULL,
  `tva_assuj` tinyint(4) default '1',
  `localtax1_assuj` tinyint(4) default '0',
  `localtax2_assuj` tinyint(4) default '0',
  `barcode` varchar(255) default NULL,
  `fk_barcode_type` int(11) default '0',
  `price_level` int(11) default NULL,
  `default_lang` varchar(6) default NULL,
  `logo` varchar(255) default NULL,
  `canvas` varchar(32) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  KEY `idx_societe_user_creat` (`fk_user_creat`),
  KEY `idx_societe_user_modif` (`fk_user_modif`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe`
--

INSERT INTO `llx_societe` (`rowid`, `nom`, `entity`, `ref_ext`, `ref_int`, `statut`, `parent`, `tms`, `datec`, `datea`, `status`, `code_client`, `code_fournisseur`, `code_compta`, `code_compta_fournisseur`, `address`, `cp`, `ville`, `fk_departement`, `fk_pays`, `tel`, `fax`, `url`, `email`, `fk_secteur`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `tva_intra`, `capital`, `description`, `fk_stcomm`, `note`, `services`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `customer_bad`, `customer_rate`, `supplier_rate`, `fk_user_creat`, `fk_user_modif`, `remise_client`, `mode_reglement`, `cond_reglement`, `tva_assuj`, `localtax1_assuj`, `localtax2_assuj`, `barcode`, `fk_barcode_type`, `price_level`, `default_lang`, `logo`, `canvas`, `import_key`) VALUES (1,'WHYNOT',1,NULL,NULL,0,NULL,'2013-03-08 10:51:18','2013-01-29 21:44:03','2013-03-08 11:51:18',1,'WYNT',NULL,NULL,NULL,'8 rue Maurice CAUNES','31200','TOULOUSE',0,1,'0561236842',NULL,NULL,'info@whynot-objet.fr',0,NULL,3,54,0,'503651747','50365174700019','7311Z','',NULL,'FR27503651747',25000,NULL,3,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,1,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(2,'Cinémathèque de Toulouse',1,NULL,NULL,0,NULL,'2013-02-21 15:31:01','2013-02-21 16:24:02','2013-02-21 16:30:23',1,'CNTQ',NULL,NULL,NULL,'69 rue du Taur\r\nBP 88024','31080','TOULOUSE Cedex 6',0,1,'0562303010',NULL,'www.lacinemathequedetoulouse.com',NULL,0,NULL,0,92,0,'324018928','32401892800030','','',NULL,'FR08324018928',0,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,2,1,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(3,'PROXIMA',1,NULL,NULL,0,NULL,'2013-02-21 15:54:06','2013-02-21 16:53:21','2013-02-21 16:53:21',1,'PXMA',NULL,NULL,NULL,'ZA Les Vignalis','31130','FLOURENS',0,1,NULL,NULL,NULL,NULL,0,NULL,0,NULL,0,'','','','',NULL,'',0,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,7,2,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(4,'FRICON GIMET',1,NULL,NULL,0,NULL,'2013-02-21 16:17:23','2013-02-21 17:16:56','2013-02-21 17:16:56',1,'FRGM',NULL,NULL,NULL,'17 route de Bruguières','31780','CASTELGINEST',0,1,'0561700997',NULL,NULL,NULL,0,NULL,3,58,0,'338353899','33835389900010','3320B','',NULL,'FR68338353899',60000,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,1,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(5,'BENNES LOCATION SERVICES',1,NULL,NULL,0,NULL,'2013-02-21 16:25:51','2013-02-21 17:25:51','2013-02-21 17:25:51',1,'BLS',NULL,NULL,NULL,'rue Breguet','31140','AUCAMVILLE',0,1,'0562751212',NULL,NULL,NULL,0,NULL,0,54,0,'411200983','41120098300038','','',NULL,'FR29411200983',0,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(6,'LESER',1,NULL,NULL,0,NULL,'2013-03-04 17:39:53','2013-02-28 15:53:29','2013-02-28 15:53:29',1,'LESE',NULL,NULL,NULL,'Impasse de Castelviel\r\nZ.A. Pinet','31180','ROUFFIAC TOLOSAN',0,1,'0562185673',NULL,NULL,NULL,0,NULL,0,58,0,'478272404','47827240400029','','',NULL,'FR14478272404',300000,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,1,NULL,NULL,NULL,0,3,NULL,NULL,NULL,NULL),(7,'CARAVANES 31',1,NULL,NULL,0,NULL,'2013-02-28 15:07:55','2013-02-28 16:07:55','2013-02-28 16:07:55',1,'CARAV',NULL,NULL,NULL,'145 Route de Paris','31140','SAINT ALBAN',0,1,'0562752198',NULL,NULL,'carav31@wanadoo.fr',0,NULL,4,54,0,'390648129','39064812900018','4511Z','',NULL,'FR02390648129',7622,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(8,'LUCIEN OPTICIEN',1,NULL,NULL,0,NULL,'2013-03-02 13:42:59','2013-03-02 14:42:59','2013-03-02 14:42:59',1,'LUCI',NULL,NULL,NULL,'39 boulevard de Strasbourg','31000','TOULOUSE',0,1,'0561214388',NULL,NULL,'lucien.opticien@gmail.com',0,NULL,4,54,0,'390501344','39050134400019','4778A','',NULL,'FR27390501344',7622,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(9,'Jean Jacques VERCHERE',1,NULL,NULL,0,NULL,'2013-03-03 08:58:30','2013-03-02 15:22:25','2013-03-02 15:22:25',1,'VERCH',NULL,NULL,NULL,'34 rue du 10 avril','31500','TOULOUSE',0,1,'0561610387',NULL,NULL,NULL,0,1,8,15,0,'312490477','31249047700014','8621Z','',NULL,'',0,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,1,NULL,NULL,NULL,0,2,NULL,NULL,NULL,NULL),(10,'CLIP INDUSTRIE',1,NULL,NULL,0,NULL,'2013-03-03 09:19:36','2013-03-03 10:19:36','2013-03-03 10:19:36',1,'CLIPI',NULL,NULL,NULL,'Z.A. de la Pile\r\n247 avenue Jean Monnet','13760','SAINT CANNAT',0,1,NULL,NULL,NULL,NULL,0,NULL,0,57,0,'343771820','34377182000051','7112B','',NULL,'FR26343771820',41.91,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(11,'REPER',1,NULL,NULL,0,NULL,'2013-03-08 10:24:44','2013-03-03 19:58:29','2013-03-08 11:24:44',1,'REPR',NULL,NULL,NULL,'20 rue François Verdier','31130','QUINT FONSEGRIVES',0,1,NULL,NULL,NULL,NULL,0,NULL,0,NULL,0,'','','','',NULL,'',0,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,7,1,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(12,'NIKITA PUBLICITE',1,NULL,NULL,0,NULL,'2013-03-03 19:12:27','2013-03-03 20:12:06','2013-03-03 20:12:06',1,'NIKI',NULL,NULL,NULL,'7 rue Joseph Marie Jacquard','82000','MONTAUBAN',0,1,NULL,NULL,NULL,NULL,0,NULL,3,54,0,'321762882','32176288200058','7311Z','',NULL,'FR45321762882',56000,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,7,1,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL),(27,'Frederic RICHET',1,NULL,NULL,0,NULL,'2013-03-04 12:37:42',NULL,NULL,1,'',NULL,NULL,NULL,'rue de Cavaillé','31330','LARA',0,1,'0561823808',NULL,NULL,NULL,0,NULL,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,NULL,0,NULL,NULL,1,0,0,NULL,0,NULL,NULL,NULL,NULL,'20130304133742'),(28,'BUROCAP',1,NULL,NULL,0,NULL,'2013-03-04 17:52:52','2013-03-04 18:49:56','2013-03-04 18:52:52',1,'BRCP',NULL,NULL,NULL,'26 rue de l\'Autan Noir','31240','L\'UNION',0,1,NULL,NULL,NULL,NULL,0,NULL,4,58,0,'478147440','47814744000018','4778C','',NULL,'FR27478147440',7500,NULL,0,NULL,0,NULL,1,0,NULL,NULL,0,0,0,1,1,0,NULL,NULL,1,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `llx_societe_address`
--

CREATE TABLE `llx_societe_address` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `label` varchar(30) default NULL,
  `fk_soc` int(11) default '0',
  `name` varchar(60) default NULL,
  `address` varchar(255) default NULL,
  `cp` varchar(10) default NULL,
  `ville` varchar(50) default NULL,
  `fk_pays` int(11) default '0',
  `tel` varchar(20) default NULL,
  `fax` varchar(20) default NULL,
  `note` text,
  `fk_user_creat` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_address`
--


--
-- Table structure for table `llx_societe_commerciaux`
--

CREATE TABLE `llx_societe_commerciaux` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) default NULL,
  `fk_user` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_commerciaux`
--

INSERT INTO `llx_societe_commerciaux` (`rowid`, `fk_soc`, `fk_user`) VALUES (1,1,1),(2,2,1),(3,3,1),(4,4,1),(5,5,1),(6,6,1),(7,7,1),(8,8,1),(9,9,1),(10,10,1),(11,11,1),(12,12,1),(13,28,1);

--
-- Table structure for table `llx_societe_extrafields`
--

CREATE TABLE `llx_societe_extrafields` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_societe_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_extrafields`
--


--
-- Table structure for table `llx_societe_log`
--

CREATE TABLE `llx_societe_log` (
  `id` int(11) NOT NULL auto_increment,
  `datel` datetime default NULL,
  `fk_soc` int(11) default NULL,
  `fk_statut` int(11) default NULL,
  `fk_user` int(11) default NULL,
  `author` varchar(30) default NULL,
  `label` varchar(128) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_log`
--


--
-- Table structure for table `llx_societe_prices`
--

CREATE TABLE `llx_societe_prices` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) default '0',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `fk_user_author` int(11) default NULL,
  `price_level` tinyint(4) default '1',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_prices`
--

INSERT INTO `llx_societe_prices` (`rowid`, `fk_soc`, `tms`, `datec`, `fk_user_author`, `price_level`) VALUES (1,9,'2013-03-03 08:58:30','2013-03-03 09:58:30',1,2),(2,6,'2013-03-04 17:39:53','2013-03-04 18:39:53',1,3);

--
-- Table structure for table `llx_societe_remise`
--

CREATE TABLE `llx_societe_remise` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `fk_user_author` int(11) default NULL,
  `remise_client` double(6,3) NOT NULL default '0.000',
  `note` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_remise`
--


--
-- Table structure for table `llx_societe_remise_except`
--

CREATE TABLE `llx_societe_remise_except` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime default NULL,
  `amount_ht` double(24,8) NOT NULL,
  `amount_tva` double(24,8) NOT NULL default '0.00000000',
  `amount_ttc` double(24,8) NOT NULL default '0.00000000',
  `tva_tx` double(6,3) NOT NULL default '0.000',
  `fk_user` int(11) NOT NULL,
  `fk_facture_line` int(11) default NULL,
  `fk_facture` int(11) default NULL,
  `fk_facture_source` int(11) default NULL,
  `description` varchar(255) NOT NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`),
  CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_remise_except`
--

INSERT INTO `llx_societe_remise_except` (`rowid`, `fk_soc`, `datec`, `amount_ht`, `amount_tva`, `amount_ttc`, `tva_tx`, `fk_user`, `fk_facture_line`, `fk_facture`, `fk_facture_source`, `description`) VALUES (1,10,'2013-03-03 19:25:22',67.07000000,13.15000000,80.22000000,19.600,1,46,NULL,NULL,'Erreur / TVA');

--
-- Table structure for table `llx_societe_rib`
--

CREATE TABLE `llx_societe_rib` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `label` varchar(30) default NULL,
  `bank` varchar(255) default NULL,
  `code_banque` varchar(7) default NULL,
  `code_guichet` varchar(6) default NULL,
  `number` varchar(255) default NULL,
  `cle_rib` varchar(5) default NULL,
  `bic` varchar(10) default NULL,
  `iban_prefix` varchar(34) default NULL,
  `domiciliation` varchar(255) default NULL,
  `proprio` varchar(60) default NULL,
  `adresse_proprio` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_societe_rib`
--


--
-- Table structure for table `llx_socpeople`
--

CREATE TABLE `llx_socpeople` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_soc` int(11) default NULL,
  `entity` int(11) NOT NULL default '1',
  `civilite` varchar(6) default NULL,
  `name` varchar(50) default NULL,
  `firstname` varchar(50) default NULL,
  `address` varchar(255) default NULL,
  `cp` varchar(25) default NULL,
  `ville` varchar(255) default NULL,
  `fk_departement` int(11) default NULL,
  `fk_pays` int(11) default '0',
  `birthday` date default NULL,
  `poste` varchar(80) default NULL,
  `phone` varchar(30) default NULL,
  `phone_perso` varchar(30) default NULL,
  `phone_mobile` varchar(30) default NULL,
  `fax` varchar(30) default NULL,
  `email` varchar(255) default NULL,
  `jabberid` varchar(255) default NULL,
  `priv` smallint(6) NOT NULL default '0',
  `fk_user_creat` int(11) default '0',
  `fk_user_modif` int(11) default NULL,
  `note` text,
  `default_lang` varchar(6) default NULL,
  `canvas` varchar(32) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_socpeople_fk_soc` (`fk_soc`),
  KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`),
  CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_socpeople`
--

INSERT INTO `llx_socpeople` (`rowid`, `datec`, `tms`, `fk_soc`, `entity`, `civilite`, `name`, `firstname`, `address`, `cp`, `ville`, `fk_departement`, `fk_pays`, `birthday`, `poste`, `phone`, `phone_perso`, `phone_mobile`, `fax`, `email`, `jabberid`, `priv`, `fk_user_creat`, `fk_user_modif`, `note`, `default_lang`, `canvas`, `import_key`) VALUES (1,'2013-01-29 22:22:01','2013-02-21 10:14:40',1,1,'','BARTHELEMY','Catherine','','','',NULL,1,NULL,'','06 32 90 63 24','','06 32 90 63 24','','catherine.barthelemy@whynot-objet.fr','',0,1,1,'',NULL,NULL,NULL),(2,'2013-02-21 16:28:56','2013-02-21 15:28:56',2,1,'','LARRIEU','Martine','','','',NULL,1,NULL,'','05 62 30 30 13','','','','martine.larrieu@lacinemathequedetoulouse.com','',0,1,1,'',NULL,NULL,NULL),(3,'2013-02-28 15:54:40','2013-02-28 14:54:40',6,1,'','BOUCHET','Béatrice','','','',NULL,1,NULL,'','','','','','bouchet.b@leser.fr','',0,1,1,'',NULL,NULL,NULL),(4,'2013-02-28 15:55:58','2013-02-28 14:55:58',6,1,'','ARBAUDIE','Jean Louis','','','',NULL,1,NULL,'Gérant','','','','','arbaudie.jl@leser.fr','',0,1,1,'',NULL,NULL,NULL),(5,'2013-02-28 16:09:23','2013-02-28 15:09:23',7,1,'','BRUN','Claudia','','','',NULL,1,NULL,'','','05 61 35 96 55','06 83 30 55 35','','','',0,1,1,'',NULL,NULL,NULL),(6,'2013-03-02 14:44:42','2013-03-02 13:44:42',8,1,'','BENSOUSSAN','Bruno','','','',NULL,1,NULL,'Gérant','','','','','','',0,1,1,'',NULL,NULL,NULL),(7,'2013-03-02 15:22:25','2013-03-02 14:22:25',9,1,'DR','VERCHERE','Jean Jacques','34 rue du 10 avril','31500','TOULOUSE',NULL,1,NULL,'','0561610387','','','','','',0,1,1,'',NULL,NULL,NULL),(8,'2013-03-04 11:49:20','2013-03-04 10:49:20',4,1,'','MASSOL','Louise','','','',NULL,1,NULL,'Comptable','05 61 70 09 97','','','','louise.massol@gmail.com','',0,1,1,'',NULL,NULL,NULL),(9,'2013-03-08 11:19:07','2013-03-08 10:19:07',11,1,'','HERNANDEZ','Jean Pierre','','','',NULL,1,NULL,'','06 07 75 57 49','','06 07 75 57 49','','','',0,1,1,'',NULL,NULL,NULL);

--
-- Table structure for table `llx_stock_mouvement`
--

CREATE TABLE `llx_stock_mouvement` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datem` datetime default NULL,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` int(11) default NULL,
  `price` float(13,4) default '0.0000',
  `type_mouvement` smallint(6) default NULL,
  `fk_user_author` int(11) default NULL,
  `label` varchar(128) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_stock_mouvement`
--


--
-- Table structure for table `llx_texts`
--

CREATE TABLE `llx_texts` (
  `rowid` int(11) NOT NULL auto_increment,
  `module` varchar(32) default NULL,
  `typemodele` varchar(32) default NULL,
  `sortorder` smallint(6) default NULL,
  `private` smallint(6) NOT NULL default '0',
  `fk_user` int(11) default NULL,
  `title` varchar(128) default NULL,
  `filename` varchar(128) default NULL,
  `content` text,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_texts`
--


--
-- Table structure for table `llx_tva`
--

CREATE TABLE `llx_tva` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datep` date default NULL,
  `datev` date default NULL,
  `amount` double NOT NULL default '0',
  `label` varchar(255) default NULL,
  `entity` int(11) NOT NULL default '1',
  `note` text,
  `fk_bank` int(11) default NULL,
  `fk_user_creat` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_tva`
--


--
-- Table structure for table `llx_user_alert`
--

CREATE TABLE `llx_user_alert` (
  `rowid` int(11) NOT NULL auto_increment,
  `type` int(11) default NULL,
  `fk_contact` int(11) default NULL,
  `fk_user` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_user_alert`
--


--
-- Table structure for table `llx_user_clicktodial`
--

CREATE TABLE `llx_user_clicktodial` (
  `fk_user` int(11) NOT NULL,
  `login` varchar(32) default NULL,
  `pass` varchar(64) default NULL,
  `poste` varchar(20) default NULL,
  PRIMARY KEY  (`fk_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_user_clicktodial`
--


--
-- Table structure for table `llx_user_param`
--

CREATE TABLE `llx_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `param` varchar(64) NOT NULL,
  `value` varchar(255) NOT NULL,
  UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_user_param`
--


--
-- Table structure for table `llx_user_rights`
--

CREATE TABLE `llx_user_rights` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_user_rights` (`fk_user`,`fk_id`),
  CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_user_rights`
--

INSERT INTO `llx_user_rights` (`rowid`, `fk_user`, `fk_id`) VALUES (128,1,11),(121,1,12),(122,1,13),(124,1,14),(125,1,15),(127,1,16),(129,1,19),(30,1,21),(22,1,22),(24,1,24),(25,1,25),(27,1,26),(29,1,27),(31,1,28),(235,1,31),(232,1,32),(234,1,34),(236,1,38),(96,1,61),(93,1,62),(95,1,64),(97,1,67),(98,1,68),(212,1,81),(204,1,82),(206,1,84),(207,1,86),(209,1,87),(211,1,88),(213,1,89),(164,1,91),(161,1,92),(163,1,93),(165,1,94),(114,1,95),(115,1,96),(117,1,97),(118,1,98),(193,1,101),(189,1,102),(191,1,104),(192,1,105),(194,1,109),(157,1,111),(148,1,112),(150,1,113),(152,1,114),(154,1,115),(156,1,116),(158,1,117),(266,1,121),(263,1,122),(265,1,125),(267,1,126),(82,1,161),(77,1,162),(79,1,163),(81,1,164),(83,1,165),(171,1,171),(168,1,172),(170,1,173),(172,1,178),(268,1,262),(274,1,281),(271,1,282),(273,1,283),(275,1,286),(1,1,341),(2,1,342),(3,1,343),(4,1,344),(89,1,531),(86,1,532),(88,1,534),(90,1,538),(200,1,1101),(197,1,1102),(199,1,1104),(201,1,1109),(237,1,1181),(249,1,1182),(240,1,1183),(242,1,1184),(244,1,1185),(246,1,1186),(248,1,1187),(250,1,1188),(184,1,1201),(185,1,1202),(259,1,1231),(253,1,1232),(255,1,1233),(257,1,1234),(258,1,1235),(260,1,1236),(186,1,1251),(130,1,1321),(214,1,1421),(176,1,2401),(175,1,2402),(177,1,2403),(181,1,2411),(180,1,2412),(182,1,2413);

--
-- Table structure for table `llx_usergroup`
--

CREATE TABLE `llx_usergroup` (
  `rowid` int(11) NOT NULL auto_increment,
  `nom` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `note` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_usergroup`
--


--
-- Table structure for table `llx_usergroup_rights`
--

CREATE TABLE `llx_usergroup_rights` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `fk_usergroup` (`fk_usergroup`,`fk_id`),
  CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_usergroup_rights`
--


--
-- Table structure for table `llx_usergroup_user`
--

CREATE TABLE `llx_usergroup_user` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`),
  KEY `fk_usergroup_user_fk_user` (`fk_user`),
  KEY `fk_usergroup_user_fk_usergroup` (`fk_usergroup`),
  CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `llx_usergroup_user`
--



