-- Table structure for table `llx_accountingdebcred`
--

CREATE TABLE `llx_accountingdebcred` (
  `fk_transaction` int(11) NOT NULL,
  `account_number` varchar(32) 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_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,
  `fk_action` int(11) default NULL,
  `code` varchar(32) 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_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,
  `transparency` 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,
  `label` varchar(256) NOT NULL,
  `note` text,
  `email_msgid` varchar(256) default NULL,
  `email_from` varchar(256) default NULL,
  `email_sender` varchar(256) default NULL,
  `email_to` varchar(256) default NULL,
  `errors_to` varchar(256) default NULL,
  `recurid` varchar(128) default NULL,
  `recurrule` varchar(128) default NULL,
  `recurdateend` datetime default NULL,
  `fk_element` int(11) default NULL,
  `elementtype` varchar(32) default NULL,
  PRIMARY KEY  (`id`),
  KEY `idx_actioncomm_fk_soc` (`fk_soc`),
  KEY `idx_actioncomm_fk_contact` (`fk_contact`),
  KEY `idx_actioncomm_code` (`code`),
  KEY `idx_actioncomm_fk_element` (`fk_element`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_actioncomm` (`id`, `ref_ext`, `entity`, `datep`, `datep2`, `fk_action`, `code`, `datec`, `tms`, `fk_user_author`, `fk_user_mod`, `fk_project`, `fk_soc`, `fk_contact`, `fk_parent`, `fk_user_action`, `fk_user_done`, `transparency`, `priority`, `fulldayevent`, `punctual`, `percent`, `location`, `durationp`, `label`, `note`, `email_msgid`, `email_from`, `email_sender`, `email_to`, `errors_to`, `recurid`, `recurrule`, `recurdateend`, `fk_element`, `elementtype`) VALUES (1,NULL,1,'2016-01-09 17:45:02','2016-01-09 17:45:02',40,'AC_OTH_AUTO','2016-01-09 17:45:02','2016-01-09 17:45:02',1,NULL,NULL,1,NULL,0,1,NULL,0,0,0,1,-1,'',NULL,'Tiers créé','Tiers créé\nAuteur: admin',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'societe');

--
-- Table structure for table `llx_actioncomm_extrafields`
--

CREATE TABLE `llx_actioncomm_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_actioncomm_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_actioncomm_extrafields`
--


--
-- Table structure for table `llx_actioncomm_resources`
--

CREATE TABLE `llx_actioncomm_resources` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_actioncomm` int(11) NOT NULL,
  `element_type` varchar(50) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `answer_status` varchar(50) default NULL,
  `mandatory` smallint(6) default NULL,
  `transparency` smallint(6) default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_actioncomm_resources` (`fk_actioncomm`,`element_type`,`fk_element`),
  KEY `idx_actioncomm_resources_fk_element` (`fk_element`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_actioncomm_resources`
--

INSERT INTO `llx_actioncomm_resources` (`rowid`, `fk_actioncomm`, `element_type`, `fk_element`, `answer_status`, `mandatory`, `transparency`) VALUES (1,1,'user',1,'0',0,0);

--
-- 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(128) default NULL,
  `civility` varchar(6) default NULL,
  `lastname` varchar(50) default NULL,
  `firstname` 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(128) default NULL,
  `fk_soc` int(11) default NULL,
  `address` text,
  `zip` varchar(30) default NULL,
  `town` varchar(50) default NULL,
  `state_id` int(11) default NULL,
  `country` int(11) default NULL,
  `email` varchar(255) default NULL,
  `skype` varchar(255) default NULL,
  `phone` varchar(30) default NULL,
  `phone_perso` varchar(30) default NULL,
  `phone_mobile` varchar(30) default NULL,
  `birth` 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_private` text,
  `note_public` 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,
  `canvas` varchar(32) 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 `fk_adherent_adherent_type` FOREIGN KEY (`fk_adherent_type`) REFERENCES `llx_adherent_type` (`rowid`),
  CONSTRAINT `adherent_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`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_adherent_type_extrafields`
--

CREATE TABLE `llx_adherent_type_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_type_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_adherent_type_extrafields`
--


--
-- Table structure for table `llx_alpiroc`
--

CREATE TABLE `llx_alpiroc` (
  `rowid` int(11) NOT NULL auto_increment,
  `name` varchar(25) default NULL,
  `remerciement` varchar(512) default NULL,
  `titre1` varchar(512) default NULL,
  `titre2` varchar(512) default NULL,
  `phraserappel` varchar(512) default NULL,
  `phraserappelfin` varchar(512) default NULL,
  `selected_template` varchar(512) default NULL,
  `acompte` int(11) default NULL,
  `signaturearea` int(11) default NULL,
  `thanksarea` int(11) default NULL,
  `displayacompte` int(11) default NULL,
  `posadresse` int(11) default NULL,
  `dispreglement` int(11) default NULL,
  `dispcondreglement` int(11) default NULL,
  `dispslogan` int(11) default NULL,
  `displaypuqtx` int(11) default NULL,
  `soustotaux` int(11) default NULL,
  `brouillon` int(11) default NULL,
  `rappel` int(11) default NULL,
  `notepublic` int(11) default NULL,
  `contact` int(11) default NULL,
  `disptva` int(11) default NULL,
  `repeathead` int(11) default NULL,
  `hidedetails` int(11) default NULL,
  `head` varchar(25) default 'alpiroc',
  `dispprivatenote` int(11) default NULL,
  `affichemmemr` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_alpiroc`
--

INSERT INTO `llx_alpiroc` (`rowid`, `name`, `remerciement`, `titre1`, `titre2`, `phraserappel`, `phraserappelfin`, `selected_template`, `acompte`, `signaturearea`, `thanksarea`, `displayacompte`, `posadresse`, `dispreglement`, `dispcondreglement`, `dispslogan`, `displaypuqtx`, `soustotaux`, `brouillon`, `rappel`, `notepublic`, `contact`, `disptva`, `repeathead`, `hidedetails`, `head`, `dispprivatenote`, `affichemmemr`) VALUES (1,'default','write your own sentence','Title of the public note','Contact or responsible','Reminder sentence','Reminder sentence','0',0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,'alpiroc',0,1),(2,'devis','write your own sentence','Title of the public note','Contact or responsible','Reminder sentence','Reminder sentence','1',0,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,'alpiroc',1,1);

--
-- Table structure for table `llx_askpricesupplier`
--

CREATE TABLE `llx_askpricesupplier` (
  `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,
  `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,
  `date_valid` datetime default NULL,
  `date_cloture` datetime default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_modif` 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(3) default NULL,
  `fk_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `date_livraison` date default NULL,
  `fk_shipping_method` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_askpricesupplier`
--


--
-- Table structure for table `llx_askpricesupplier_extrafields`
--

CREATE TABLE `llx_askpricesupplier_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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_askpricesupplier_extrafields`
--


--
-- Table structure for table `llx_askpricesupplierdet`
--

CREATE TABLE `llx_askpricesupplierdet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_askpricesupplier` int(11) NOT NULL,
  `fk_parent_line` int(11) default NULL,
  `fk_product` int(11) default NULL,
  `label` varchar(255) 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',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `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',
  `info_bits` int(11) default '0',
  `buy_price_ht` double(24,8) default '0.00000000',
  `fk_product_fournisseur_price` int(11) default NULL,
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  `ref_fourn` varchar(30) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_askpricesupplierdet`
--


--
-- Table structure for table `llx_askpricesupplierdet_extrafields`
--

CREATE TABLE `llx_askpricesupplierdet_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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_askpricesupplierdet_extrafields`
--


--
-- Table structure for table `llx_assortment`
--

CREATE TABLE `llx_assortment` (
  `rowid` int(11) NOT NULL auto_increment,
  `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_soc` int(11) NOT NULL,
  `fk_prod` int(11) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_assortment_field` (`fk_soc`,`fk_prod`),
  KEY `idx_assortment_fk_soc` (`fk_soc`),
  KEY `idx_assortment_fk_product` (`fk_prod`),
  CONSTRAINT `fk_assortment_fk_prod` FOREIGN KEY (`fk_prod`) REFERENCES `llx_product` (`rowid`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_assortment_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_assortment`
--


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

CREATE TABLE `llx_bank` (
  `rowid` int(11) NOT NULL auto_increment,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `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`),
  KEY `idx_bank_num_releve` (`num_releve`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_bank` (`rowid`, `datec`, `tms`, `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,'2016-01-09 07:19:56','2016-01-09 07:19:56','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',1,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(2,'2016-01-09 07:35:42','2016-01-09 07:35:42','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',2,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(3,'2016-01-09 13:19:23','2016-01-09 13:19:23','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',3,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(4,'2016-01-09 13:20:38','2016-01-09 13:20:38','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',4,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(5,'2016-01-09 13:22:59','2016-01-09 13:22:59','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',5,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(6,'2016-01-09 14:15:33','2016-01-09 14:15:33','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',6,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(7,'2016-01-09 14:17:13','2016-01-09 14:17:13','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',7,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL),(8,'2016-01-09 14:17:45','2016-01-09 14:17:45','2016-01-09','2016-01-09',0.00000000,'(Solde initial)',8,NULL,NULL,'SOLD',NULL,NULL,0,NULL,0,NULL,NULL,NULL);

--
-- Table structure for table `llx_bank_account_extrafields`
--

CREATE TABLE `llx_bank_account_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_bank_account_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_bank_account_extrafields`
--


--
-- 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(24) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_bank_url` (`fk_bank`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- 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(255) NOT NULL,
  `target` varchar(16) default NULL,
  `title` varchar(64) default NULL,
  `favicon` varchar(24) default NULL,
  `position` int(11) default '0',
  `entity` int(11) NOT NULL default '1',
  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,
  `number` varchar(16) NOT NULL,
  `ref_ext` varchar(255) default NULL,
  `datec` datetime NOT NULL,
  `date_bordereau` date default NULL,
  `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,
  `statut` smallint(6) NOT NULL default '0',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `note` text,
  `entity` int(11) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_bordereau_cheque` (`number`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


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

CREATE TABLE `llx_boxes` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `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,
  `params` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_boxes` (`entity`,`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=61 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_boxes` (`rowid`, `entity`, `box_id`, `position`, `box_order`, `fk_user`, `maxline`, `params`) VALUES (1,1,1,0,'A01',0,NULL,NULL),(2,1,2,0,'A17',0,NULL,NULL),(3,1,3,0,'B18',0,NULL,NULL),(4,1,4,0,'A19',0,NULL,NULL),(11,1,11,0,'B20',0,NULL,NULL),(12,1,12,0,'A21',0,NULL,NULL),(13,1,13,0,'B22',0,NULL,NULL),(24,1,24,0,'A23',0,NULL,NULL),(31,1,31,0,'B24',0,NULL,NULL),(32,1,32,0,'A25',0,NULL,NULL),(33,1,33,0,'B26',0,NULL,NULL),(34,1,34,0,'A27',0,NULL,NULL),(35,1,35,0,'B28',0,NULL,NULL),(36,1,36,0,'A29',0,NULL,NULL),(37,1,37,0,'B16',0,NULL,NULL),(38,1,38,0,'A15',0,NULL,NULL),(39,1,39,0,'B02',0,NULL,NULL),(40,1,40,0,'A03',0,NULL,NULL),(41,1,41,0,'B04',0,NULL,NULL),(42,1,42,0,'A05',0,NULL,NULL),(46,1,46,0,'B06',0,NULL,NULL),(48,1,48,0,'A07',0,NULL,NULL),(49,1,49,0,'B08',0,NULL,NULL),(50,1,50,0,'A09',0,NULL,NULL),(51,1,51,0,'B10',0,NULL,NULL),(52,1,52,0,'A11',0,NULL,NULL),(56,1,56,0,'B30',0,NULL,NULL),(57,1,57,0,'0',0,NULL,NULL),(58,1,58,0,'0',0,NULL,NULL),(59,1,59,0,'0',0,NULL,NULL),(60,1,60,0,'0',0,NULL,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=61 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,'2016-01-08 19:14:37',NULL),(2,'box_prospect.php',1,'2016-01-08 19:14:37',NULL),(3,'box_contacts.php',1,'2016-01-08 19:14:37',NULL),(4,'box_activity.php',1,'2016-01-08 19:14:37','(WarningUsingThisBoxSlowDown)'),(11,'box_contracts.php',1,'2016-01-08 19:23:24',NULL),(12,'box_services_expired.php',1,'2016-01-08 19:23:24',NULL),(13,'box_ficheinter.php',1,'2016-01-08 19:24:40',NULL),(24,'box_members.php',1,'2016-01-08 19:36:04',NULL),(31,'box_commandes.php',1,'2016-01-08 19:41:15',NULL),(32,'box_graph_orders_permonth.php',1,'2016-01-08 19:41:15',NULL),(33,'box_graph_invoices_supplier_permonth.php',1,'2016-01-08 19:41:43',NULL),(34,'box_graph_orders_supplier_permonth.php',1,'2016-01-08 19:41:43',NULL),(35,'box_fournisseurs.php',1,'2016-01-08 19:41:43',NULL),(36,'box_factures_fourn_imp.php',1,'2016-01-08 19:41:43',NULL),(37,'box_factures_fourn.php',1,'2016-01-08 19:41:43',NULL),(38,'box_supplier_orders.php',1,'2016-01-08 19:41:43',NULL),(39,'box_comptes.php',1,'2016-01-08 19:42:36',NULL),(40,'box_factures_imp.php',1,'2016-01-08 19:42:36',NULL),(41,'box_factures.php',1,'2016-01-08 19:42:36',NULL),(42,'box_graph_invoices_permonth.php',1,'2016-01-08 19:42:36',NULL),(46,'box_services_contracts.php',1,'2016-01-08 19:43:15',NULL),(48,'box_actions.php',1,'2016-01-08 19:46:36',NULL),(49,'box_project.php',1,'2016-01-08 19:47:59',NULL),(50,'box_task.php',1,'2016-01-08 19:47:59',NULL),(51,'box_graph_propales_permonth.php',1,'2016-01-08 19:56:44',NULL),(52,'box_propales.php',1,'2016-01-08 19:56:44',NULL),(56,'box_bookmarks.php',1,'2016-01-08 19:59:58',NULL),(57,'box_produits.php',1,'2016-01-09 16:53:25',NULL),(58,'box_produits_alerte_stock.php',1,'2016-01-09 16:53:25',NULL),(59,'box_graph_product_distribution.php',1,'2016-01-09 16:53:25',NULL),(60,'box_factory.php@factory',1,'2016-01-09 17:36:07',NULL);

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

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

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

INSERT INTO `llx_c_action_trigger` (`rowid`, `elementtype`, `code`, `label`, `description`, `rang`) VALUES (1,'societe','COMPANY_SENTBYMAIL','Mails sent from third party card','Executed when you send email from third party card',1),(2,'societe','COMPANY_CREATE','Third party created','Executed when a third party is created',1),(3,'propal','PROPAL_VALIDATE','Customer proposal validated','Executed when a commercial proposal is validated',2),(4,'propal','PROPAL_SENTBYMAIL','Commercial proposal sent by mail','Executed when a commercial proposal is sent by mail',3),(5,'commande','ORDER_VALIDATE','Customer order validate','Executed when a customer order is validated',4),(6,'commande','ORDER_CLOSE','Customer order classify delivered','Executed when a customer order is set delivered',5),(7,'commande','ORDER_CLASSIFY_BILLED','Customer order classify billed','Executed when a customer order is set to billed',5),(8,'commande','ORDER_CANCEL','Customer order canceled','Executed when a customer order is canceled',5),(9,'commande','ORDER_SENTBYMAIL','Customer order sent by mail','Executed when a customer order is sent by mail ',5),(10,'facture','BILL_VALIDATE','Customer invoice validated','Executed when a customer invoice is approved',6),(11,'facture','BILL_PAYED','Customer invoice payed','Executed when a customer invoice is payed',7),(12,'facture','BILL_CANCEL','Customer invoice canceled','Executed when a customer invoice is conceled',8),(13,'facture','BILL_SENTBYMAIL','Customer invoice sent by mail','Executed when a customer invoice is sent by mail',9),(14,'facture','BILL_UNVALIDATE','Customer invoice unvalidated','Executed when a customer invoice status set back to draft',10),(15,'order_supplier','ORDER_SUPPLIER_VALIDATE','Supplier order validated','Executed when a supplier order is validated',11),(16,'order_supplier','ORDER_SUPPLIER_APPROVE','Supplier order request approved','Executed when a supplier order is approved',12),(17,'order_supplier','ORDER_SUPPLIER_REFUSE','Supplier order request refused','Executed when a supplier order is refused',13),(18,'order_supplier','ORDER_SUPPLIER_SENTBYMAIL','Supplier order sent by mail','Executed when a supplier order is sent by mail',14),(19,'invoice_supplier','BILL_SUPPLIER_VALIDATE','Supplier invoice validated','Executed when a supplier invoice is validated',15),(20,'invoice_supplier','BILL_SUPPLIER_PAYED','Supplier invoice payed','Executed when a supplier invoice is payed',16),(21,'invoice_supplier','BILL_SUPPLIER_SENTBYMAIL','Supplier invoice sent by mail','Executed when a supplier invoice is sent by mail',17),(22,'invoice_supplier','BILL_SUPPLIER_CANCELED','Supplier invoice cancelled','Executed when a supplier invoice is cancelled',17),(23,'contrat','CONTRACT_VALIDATE','Contract validated','Executed when a contract is validated',18),(24,'shipping','SHIPPING_VALIDATE','Shipping validated','Executed when a shipping is validated',20),(25,'shipping','SHIPPING_SENTBYMAIL','Shipping sent by mail','Executed when a shipping is sent by mail',21),(26,'member','MEMBER_VALIDATE','Member validated','Executed when a member is validated',22),(27,'member','MEMBER_SUBSCRIPTION','Member subscribed','Executed when a member is subscribed',23),(28,'member','MEMBER_RESILIATE','Member resiliated','Executed when a member is resiliated',24),(29,'member','MEMBER_MODIFY','Member modified','Executed when a member is modified',24),(30,'member','MEMBER_DELETE','Member deleted','Executed when a member is deleted',25),(31,'ficheinter','FICHINTER_VALIDATE','Intervention validated','Executed when a intervention is validated',19),(32,'ficheinter','FICHINTER_CLASSIFY_BILLED','Intervention set billed','Executed when a intervention is set to billed (when option FICHINTER_CLASSIFY_BILLED is set)',19),(33,'ficheinter','FICHINTER_CLASSIFY_UNBILLED','Intervention set unbilled','Executed when a intervention is set to unbilled (when option FICHINTER_CLASSIFY_BILLED is set)',19),(34,'ficheinter','FICHINTER_REOPEN','Intervention opened','Executed when a intervention is re-opened',19),(35,'ficheinter','FICHINTER_SENTBYMAIL','Intervention sent by mail','Executed when a intervention is sent by mail',19),(36,'project','PROJECT_CREATE','Project creation','Executed when a project is created',30),(37,'propal','PROPAL_CLOSE_SIGNED','Customer proposal closed signed','Executed when a customer proposal is closed signed',2),(38,'propal','PROPAL_CLOSE_REFUSED','Customer proposal closed refused','Executed when a customer proposal is closed refused',2),(39,'propal','PROPAL_CLASSIFY_BILLED','Customer proposal set billed','Executed when a customer proposal is set to billed',2),(40,'project','TASK_CREATE','Task created','Executed when a project task is created',35),(41,'project','TASK_MODIFY','Task modified','Executed when a project task is modified',36),(42,'project','TASK_DELETE','Task deleted','Executed when a project task is deleted',37),(43,'invoice_supplier','BILL_SUPPLIER_UNVALIDATE','Supplier invoice unvalidated','Executed when a supplier invoice status is set back to draft',15);

--
-- 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,
  `color` varchar(9) default NULL,
  `position` int(11) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `uk_c_actioncomm` (`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`, `color`, `position`) VALUES (1,'AC_TEL','system','Phone call',NULL,1,NULL,NULL,2),(2,'AC_FAX','system','Send Fax',NULL,1,NULL,NULL,3),(3,'AC_PROP','systemauto','Send commercial proposal by email','propal',0,NULL,NULL,10),(4,'AC_EMAIL','system','Send Email',NULL,1,NULL,NULL,4),(5,'AC_RDV','system','Rendez-vous',NULL,1,NULL,NULL,1),(8,'AC_COM','systemauto','Send customer order by email','order',0,NULL,NULL,8),(9,'AC_FAC','systemauto','Send customer invoice by email','invoice',0,NULL,NULL,6),(10,'AC_SHIP','systemauto','Send shipping by email','shipping',0,NULL,NULL,11),(11,'AC_INT','system','Intervention on site',NULL,1,NULL,NULL,4),(30,'AC_SUP_ORD','systemauto','Send supplier order by email','order_supplier',0,NULL,NULL,9),(31,'AC_SUP_INV','systemauto','Send supplier invoice by email','invoice_supplier',0,NULL,NULL,7),(40,'AC_OTH_AUTO','systemauto','Other (automatically inserted events)',NULL,1,NULL,NULL,20),(50,'AC_OTH','system','Other (manually inserted events)',NULL,1,NULL,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 AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_c_barcode_type` (`rowid`, `code`, `entity`, `libelle`, `coder`, `example`) VALUES (1,'EAN8',1,'EAN8','phpbarcode','1234567'),(2,'EAN13',1,'EAN13','phpbarcode','123456789012'),(3,'UPC',1,'UPC','phpbarcode','123456789012'),(4,'ISBN',1,'ISBN','phpbarcode','123456789'),(5,'C39',1,'Code 39','phpbarcode','1234567890'),(6,'C128',1,'Code 128','phpbarcode','ABCD1234567890'),(7,'DATAMATRIX',1,'Datamatrix','phpbarcode','1234567xyz'),(8,'QRCODE',1,'Qr Code','phpbarcode','www.dolibarr.org');

--
-- 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,
  `accountancy_code` varchar(32) default 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`, `accountancy_code`, `fk_pays`, `module`) VALUES (1,'Allocations familiales',1,1,'TAXFAM',NULL,1,NULL),(2,'CSG Deductible',1,1,'TAXCSGD',NULL,1,NULL),(3,'CSG/CRDS NON Deductible',0,1,'TAXCSGND',NULL,1,NULL),(10,'Taxe apprentissage',0,1,'TAXAPP',NULL,1,NULL),(11,'Taxe professionnelle',0,1,'TAXPRO',NULL,1,NULL),(12,'Cotisation fonciere des entreprises',0,1,'TAXCFE',NULL,1,NULL),(13,'Cotisation sur la valeur ajoutee des entreprises',0,1,'TAXCVAE',NULL,1,NULL),(20,'Impots locaux/fonciers',0,1,'TAXFON',NULL,1,NULL),(25,'Impots revenus',0,1,'TAXREV',NULL,1,NULL),(30,'Assurance Sante',0,1,'TAXSECU',NULL,1,NULL),(40,'Mutuelle',0,1,'TAXMUT',NULL,1,NULL),(50,'Assurance vieillesse',0,1,'TAXRET',NULL,1,NULL),(60,'Assurance Chomage',0,1,'TAXCHOM',NULL,1,NULL),(201,'ONSS',1,1,'TAXBEONSS',NULL,2,NULL),(210,'Precompte professionnel',1,1,'TAXBEPREPRO',NULL,2,NULL),(220,'Prime existence',1,1,'TAXBEPRIEXI',NULL,2,NULL),(230,'Precompte immobilier',1,1,'TAXBEPREIMMO',NULL,2,NULL);

--
-- Table structure for table `llx_c_civility`
--

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

--
-- Dumping data for table `llx_c_civility`
--

INSERT INTO `llx_c_civility` (`rowid`, `code`, `label`, `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_country`
--

CREATE TABLE `llx_c_country` (
  `rowid` int(11) NOT NULL,
  `code` varchar(2) NOT NULL,
  `code_iso` varchar(3) default NULL,
  `label` varchar(50) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  `favorite` tinyint(4) NOT NULL default '0',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_c_country_code` (`code`),
  UNIQUE KEY `idx_c_country_label` (`label`),
  UNIQUE KEY `idx_c_country_code_iso` (`code_iso`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_country`
--

INSERT INTO `llx_c_country` (`rowid`, `code`, `code_iso`, `label`, `active`, `favorite`) VALUES (0,'',NULL,'-',1,1),(1,'FR','FRA','France',1,0),(2,'BE','BEL','Belgium',1,0),(3,'IT','ITA','Italy',1,0),(4,'ES','ESP','Spain',1,0),(5,'DE','DEU','Germany',1,0),(6,'CH','CHE','Switzerland',1,0),(7,'GB','GBR','United Kingdom',1,0),(8,'IE','IRL','Irland',1,0),(9,'CN','CHN','China',1,0),(10,'TN','TUN','Tunisia',1,0),(11,'US','USA','United States',1,0),(12,'MA','MAR','Maroc',1,0),(13,'DZ','DZA','Algeria',1,0),(14,'CA','CAN','Canada',1,0),(15,'TG','TGO','Togo',1,0),(16,'GA','GAB','Gabon',1,0),(17,'NL','NLD','Nerderland',1,0),(18,'HU','HUN','Hongrie',1,0),(19,'RU','RUS','Russia',1,0),(20,'SE','SWE','Sweden',1,0),(21,'CI','CIV','Côte d\'Ivoire',1,0),(22,'SN','SEN','Senegal',1,0),(23,'AR','ARG','Argentine',1,0),(24,'CM','CMR','Cameroun',1,0),(25,'PT','PRT','Portugal',1,0),(26,'SA','SAU','Saudi Arabia',1,0),(27,'MC','MCO','Monaco',1,0),(28,'AU','AUS','Australia',1,0),(29,'SG','SGP','Singapour',1,0),(30,'AF','AFG','Afghanistan',1,0),(31,'AX','ALA','Iles Aland',1,0),(32,'AL','ALB','Albanie',1,0),(33,'AS','ASM','Samoa américaines',1,0),(34,'AD','AND','Andorre',1,0),(35,'AO','AGO','Angola',1,0),(36,'AI','AIA','Anguilla',1,0),(37,'AQ','ATA','Antarctique',1,0),(38,'AG','ATG','Antigua-et-Barbuda',1,0),(39,'AM','ARM','Arménie',1,0),(40,'AW','ABW','Aruba',1,0),(41,'AT','AUT','Autriche',1,0),(42,'AZ','AZE','Azerbaïdjan',1,0),(43,'BS','BHS','Bahamas',1,0),(44,'BH','BHR','Bahreïn',1,0),(45,'BD','BGD','Bangladesh',1,0),(46,'BB','BRB','Barbade',1,0),(47,'BY','BLR','Biélorussie',1,0),(48,'BZ','BLZ','Belize',1,0),(49,'BJ','BEN','Bénin',1,0),(50,'BM','BMU','Bermudes',1,0),(51,'BT','BTN','Bhoutan',1,0),(52,'BO','BOL','Bolivie',1,0),(53,'BA','BIH','Bosnie-Herzégovine',1,0),(54,'BW','BWA','Botswana',1,0),(55,'BV','BVT','Ile Bouvet',1,0),(56,'BR','BRA','Brazil',1,0),(57,'IO','IOT','Territoire britannique de l\'Océan Indien',1,0),(58,'BN','BRN','Brunei',1,0),(59,'BG','BGR','Bulgarie',1,0),(60,'BF','BFA','Burkina Faso',1,0),(61,'BI','BDI','Burundi',1,0),(62,'KH','KHM','Cambodge',1,0),(63,'CV','CPV','Cap-Vert',1,0),(64,'KY','CYM','Iles Cayman',1,0),(65,'CF','CAF','République centrafricaine',1,0),(66,'TD','TCD','Tchad',1,0),(67,'CL','CHL','Chili',1,0),(68,'CX','CXR','Ile Christmas',1,0),(69,'CC','CCK','Iles des Cocos (Keeling)',1,0),(70,'CO','COL','Colombie',1,0),(71,'KM','COM','Comores',1,0),(72,'CG','COG','Congo',1,0),(73,'CD','COD','République démocratique du Congo',1,0),(74,'CK','COK','Iles Cook',1,0),(75,'CR','CRI','Costa Rica',1,0),(76,'HR','HRV','Croatie',1,0),(77,'CU','CUB','Cuba',1,0),(78,'CY','CYP','Chypre',1,0),(79,'CZ','CZE','République Tchèque',1,0),(80,'DK','DNK','Danemark',1,0),(81,'DJ','DJI','Djibouti',1,0),(82,'DM','DMA','Dominique',1,0),(83,'DO','DOM','République Dominicaine',1,0),(84,'EC','ECU','Equateur',1,0),(85,'EG','EGY','Egypte',1,0),(86,'SV','SLV','Salvador',1,0),(87,'GQ','GNQ','Guinée Equatoriale',1,0),(88,'ER','ERI','Erythrée',1,0),(89,'EE','EST','Estonia',1,0),(90,'ET','ETH','Ethiopie',1,0),(91,'FK','FLK','Iles Falkland',1,0),(92,'FO','FRO','Iles Féroé',1,0),(93,'FJ','FJI','Iles Fidji',1,0),(94,'FI','FIN','Finlande',1,0),(95,'GF','GUF','Guyane française',1,0),(96,'PF','PYF','Polynésie française',1,0),(97,'TF','ATF','Terres australes françaises',1,0),(98,'GM','GMB','Gambie',1,0),(99,'GE','GEO','Georgia',1,0),(100,'GH','GHA','Ghana',1,0),(101,'GI','GIB','Gibraltar',1,0),(102,'GR','GRC','Greece',1,0),(103,'GL','GRL','Groenland',1,0),(104,'GD','GRD','Grenade',1,0),(106,'GU','GUM','Guam',1,0),(107,'GT','GTM','Guatemala',1,0),(108,'GN','GIN','Guinea',1,0),(109,'GW','GNB','Guinea-Bissao',1,0),(111,'HT','HTI','Haiti',1,0),(112,'HM','HMD','Iles Heard et McDonald',1,0),(113,'VA','VAT','Saint-Siège (Vatican)',1,0),(114,'HN','HND','Honduras',1,0),(115,'HK','HKG','Hong Kong',1,0),(116,'IS','ISL','Islande',1,0),(117,'IN','IND','India',1,0),(118,'ID','IDN','Indonésie',1,0),(119,'IR','IRN','Iran',1,0),(120,'IQ','IRQ','Iraq',1,0),(121,'IL','ISR','Israel',1,0),(122,'JM','JAM','Jamaïque',1,0),(123,'JP','JPN','Japon',1,0),(124,'JO','JOR','Jordanie',1,0),(125,'KZ','KAZ','Kazakhstan',1,0),(126,'KE','KEN','Kenya',1,0),(127,'KI','KIR','Kiribati',1,0),(128,'KP','PRK','North Corea',1,0),(129,'KR','KOR','South Corea',1,0),(130,'KW','KWT','Koweït',1,0),(131,'KG','KGZ','Kirghizistan',1,0),(132,'LA','LAO','Laos',1,0),(133,'LV','LVA','Lettonie',1,0),(134,'LB','LBN','Liban',1,0),(135,'LS','LSO','Lesotho',1,0),(136,'LR','LBR','Liberia',1,0),(137,'LY','LBY','Libye',1,0),(138,'LI','LIE','Liechtenstein',1,0),(139,'LT','LTU','Lituanie',1,0),(140,'LU','LUX','Luxembourg',1,0),(141,'MO','MAC','Macao',1,0),(142,'MK','MKD','ex-République yougoslave de Macédoine',1,0),(143,'MG','MDG','Madagascar',1,0),(144,'MW','MWI','Malawi',1,0),(145,'MY','MYS','Malaisie',1,0),(146,'MV','MDV','Maldives',1,0),(147,'ML','MLI','Mali',1,0),(148,'MT','MLT','Malte',1,0),(149,'MH','MHL','Iles Marshall',1,0),(151,'MR','MRT','Mauritanie',1,0),(152,'MU','MUS','Maurice',1,0),(153,'YT','MYT','Mayotte',1,0),(154,'MX','MEX','Mexique',1,0),(155,'FM','FSM','Micronésie',1,0),(156,'MD','MDA','Moldavie',1,0),(157,'MN','MNG','Mongolie',1,0),(158,'MS','MSR','Monserrat',1,0),(159,'MZ','MOZ','Mozambique',1,0),(160,'MM','MMR','Birmanie (Myanmar)',1,0),(161,'NA','NAM','Namibie',1,0),(162,'NR','NRU','Nauru',1,0),(163,'NP','NPL','Népal',1,0),(164,'AN',NULL,'Antilles néerlandaises',1,0),(165,'NC','NCL','Nouvelle-Calédonie',1,0),(166,'NZ','NZL','Nouvelle-Zélande',1,0),(167,'NI','NIC','Nicaragua',1,0),(168,'NE','NER','Niger',1,0),(169,'NG','NGA','Nigeria',1,0),(170,'NU','NIU','Nioué',1,0),(171,'NF','NFK','Ile Norfolk',1,0),(172,'MP','MNP','Mariannes du Nord',1,0),(173,'NO','NOR','Norvège',1,0),(174,'OM','OMN','Oman',1,0),(175,'PK','PAK','Pakistan',1,0),(176,'PW','PLW','Palaos',1,0),(177,'PS','PSE','Territoire Palestinien Occupé',1,0),(178,'PA','PAN','Panama',1,0),(179,'PG','PNG','Papouasie-Nouvelle-Guinée',1,0),(180,'PY','PRY','Paraguay',1,0),(181,'PE','PER','Peru',1,0),(182,'PH','PHL','Philippines',1,0),(183,'PN','PCN','Iles Pitcairn',1,0),(184,'PL','POL','Pologne',1,0),(185,'PR','PRI','Porto Rico',1,0),(186,'QA','QAT','Qatar',1,0),(188,'RO','ROU','Roumanie',1,0),(189,'RW','RWA','Rwanda',1,0),(190,'SH','SHN','Sainte-Hélène',1,0),(191,'KN','KNA','Saint-Christophe-et-Niévès',1,0),(192,'LC','LCA','Sainte-Lucie',1,0),(193,'PM','SPM','Saint-Pierre-et-Miquelon',1,0),(194,'VC','VCT','Saint-Vincent-et-les-Grenadines',1,0),(195,'WS','WSM','Samoa',1,0),(196,'SM','SMR','Saint-Marin',1,0),(197,'ST','STP','Sao Tomé-et-Principe',1,0),(198,'RS','SRB','Serbie',1,0),(199,'SC','SYC','Seychelles',1,0),(200,'SL','SLE','Sierra Leone',1,0),(201,'SK','SVK','Slovaquie',1,0),(202,'SI','SVN','Slovénie',1,0),(203,'SB','SLB','Iles Salomon',1,0),(204,'SO','SOM','Somalie',1,0),(205,'ZA','ZAF','Afrique du Sud',1,0),(206,'GS','SGS','Iles Géorgie du Sud et Sandwich du Sud',1,0),(207,'LK','LKA','Sri Lanka',1,0),(208,'SD','SDN','Soudan',1,0),(209,'SR','SUR','Suriname',1,0),(210,'SJ','SJM','Iles Svalbard et Jan Mayen',1,0),(211,'SZ','SWZ','Swaziland',1,0),(212,'SY','SYR','Syrie',1,0),(213,'TW','TWN','Taïwan',1,0),(214,'TJ','TJK','Tadjikistan',1,0),(215,'TZ','TZA','Tanzanie',1,0),(216,'TH','THA','Thaïlande',1,0),(217,'TL','TLS','Timor Oriental',1,0),(218,'TK','TKL','Tokélaou',1,0),(219,'TO','TON','Tonga',1,0),(220,'TT','TTO','Trinité-et-Tobago',1,0),(221,'TR','TUR','Turquie',1,0),(222,'TM','TKM','Turkménistan',1,0),(223,'TC','TCA','Iles Turks-et-Caicos',1,0),(224,'TV','TUV','Tuvalu',1,0),(225,'UG','UGA','Ouganda',1,0),(226,'UA','UKR','Ukraine',1,0),(227,'AE','ARE','Émirats arabes unis',1,0),(228,'UM','UMI','Iles mineures éloignées des États-Unis',1,0),(229,'UY','URY','Uruguay',1,0),(230,'UZ','UZB','Ouzbékistan',1,0),(231,'VU','VUT','Vanuatu',1,0),(232,'VE','VEN','Vénézuela',1,0),(233,'VN','VNM','Viêt Nam',1,0),(234,'VG','VGB','Iles Vierges britanniques',1,0),(235,'VI','VIR','Iles Vierges américaines',1,0),(236,'WF','WLF','Wallis-et-Futuna',1,0),(237,'EH','ESH','Sahara occidental',1,0),(238,'YE','YEM','Yémen',1,0),(239,'ZM','ZMB','Zambie',1,0),(240,'ZW','ZWE','Zimbabwe',1,0),(241,'GG','GGY','Guernesey',1,0),(242,'IM','IMN','Ile de Man',1,0),(243,'JE','JEY','Jersey',1,0),(244,'ME','MNE','Monténégro',1,0),(245,'BL','BLM','Saint-Barthélemy',1,0),(246,'MF','MAF','Saint-Martin',1,0);

--
-- 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),('KES','Kenya Shilling',NULL,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),('XPF','Franc pacifique (XPF)',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`),
  CONSTRAINT `fk_departements_fk_region` FOREIGN KEY (`fk_region`) REFERENCES `llx_c_regions` (`code_region`)
) ENGINE=InnoDB AUTO_INCREMENT=1009 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,'971',1,'97105',3,'GUADELOUPE','Guadeloupe',1),(3,'972',2,'97209',3,'MARTINIQUE','Martinique',1),(4,'973',3,'97302',3,'GUYANE','Guyane',1),(5,'974',4,'97411',3,'REUNION','Réunion',1),(6,'976',6,'97601',3,'MAYOTTE','Mayotte',1),(7,'01',82,'01053',5,'AIN','Ain',1),(8,'02',22,'02408',5,'AISNE','Aisne',1),(9,'03',83,'03190',5,'ALLIER','Allier',1),(10,'04',93,'04070',4,'ALPES-DE-HAUTE-PROVENCE','Alpes-de-Haute-Provence',1),(11,'05',93,'05061',4,'HAUTES-ALPES','Hautes-Alpes',1),(12,'06',93,'06088',4,'ALPES-MARITIMES','Alpes-Maritimes',1),(13,'07',82,'07186',5,'ARDECHE','Ardèche',1),(14,'08',21,'08105',4,'ARDENNES','Ardennes',1),(15,'09',73,'09122',5,'ARIEGE','Ariège',1),(16,'10',21,'10387',5,'AUBE','Aube',1),(17,'11',91,'11069',5,'AUDE','Aude',1),(18,'12',73,'12202',5,'AVEYRON','Aveyron',1),(19,'13',93,'13055',4,'BOUCHES-DU-RHONE','Bouches-du-Rhône',1),(20,'14',25,'14118',2,'CALVADOS','Calvados',1),(21,'15',83,'15014',2,'CANTAL','Cantal',1),(22,'16',54,'16015',3,'CHARENTE','Charente',1),(23,'17',54,'17300',3,'CHARENTE-MARITIME','Charente-Maritime',1),(24,'18',24,'18033',2,'CHER','Cher',1),(25,'19',74,'19272',3,'CORREZE','Corrèze',1),(26,'2A',94,'2A004',3,'CORSE-DU-SUD','Corse-du-Sud',1),(27,'2B',94,'2B033',3,'HAUTE-CORSE','Haute-Corse',1),(28,'21',26,'21231',3,'COTE-D OR','Côte-d Or',1),(29,'22',53,'22278',4,'COTES-D ARMOR','Côtes-d Armor',1),(30,'23',74,'23096',3,'CREUSE','Creuse',1),(31,'24',72,'24322',3,'DORDOGNE','Dordogne',1),(32,'25',43,'25056',2,'DOUBS','Doubs',1),(33,'26',82,'26362',3,'DROME','Drôme',1),(34,'27',23,'27229',5,'EURE','Eure',1),(35,'28',24,'28085',1,'EURE-ET-LOIR','Eure-et-Loir',1),(36,'29',53,'29232',2,'FINISTERE','Finistère',1),(37,'30',91,'30189',2,'GARD','Gard',1),(38,'31',73,'31555',3,'HAUTE-GARONNE','Haute-Garonne',1),(39,'32',73,'32013',2,'GERS','Gers',1),(40,'33',72,'33063',3,'GIRONDE','Gironde',1),(41,'34',91,'34172',5,'HERAULT','Hérault',1),(42,'35',53,'35238',1,'ILLE-ET-VILAINE','Ille-et-Vilaine',1),(43,'36',24,'36044',5,'INDRE','Indre',1),(44,'37',24,'37261',1,'INDRE-ET-LOIRE','Indre-et-Loire',1),(45,'38',82,'38185',5,'ISERE','Isère',1),(46,'39',43,'39300',2,'JURA','Jura',1),(47,'40',72,'40192',4,'LANDES','Landes',1),(48,'41',24,'41018',0,'LOIR-ET-CHER','Loir-et-Cher',1),(49,'42',82,'42218',3,'LOIRE','Loire',1),(50,'43',83,'43157',3,'HAUTE-LOIRE','Haute-Loire',1),(51,'44',52,'44109',3,'LOIRE-ATLANTIQUE','Loire-Atlantique',1),(52,'45',24,'45234',2,'LOIRET','Loiret',1),(53,'46',73,'46042',2,'LOT','Lot',1),(54,'47',72,'47001',0,'LOT-ET-GARONNE','Lot-et-Garonne',1),(55,'48',91,'48095',3,'LOZERE','Lozère',1),(56,'49',52,'49007',0,'MAINE-ET-LOIRE','Maine-et-Loire',1),(57,'50',25,'50502',3,'MANCHE','Manche',1),(58,'51',21,'51108',3,'MARNE','Marne',1),(59,'52',21,'52121',3,'HAUTE-MARNE','Haute-Marne',1),(60,'53',52,'53130',3,'MAYENNE','Mayenne',1),(61,'54',41,'54395',0,'MEURTHE-ET-MOSELLE','Meurthe-et-Moselle',1),(62,'55',41,'55029',3,'MEUSE','Meuse',1),(63,'56',53,'56260',2,'MORBIHAN','Morbihan',1),(64,'57',41,'57463',3,'MOSELLE','Moselle',1),(65,'58',26,'58194',3,'NIEVRE','Nièvre',1),(66,'59',31,'59350',2,'NORD','Nord',1),(67,'60',22,'60057',5,'OISE','Oise',1),(68,'61',25,'61001',5,'ORNE','Orne',1),(69,'62',31,'62041',2,'PAS-DE-CALAIS','Pas-de-Calais',1),(70,'63',83,'63113',2,'PUY-DE-DOME','Puy-de-Dôme',1),(71,'64',72,'64445',4,'PYRENEES-ATLANTIQUES','Pyrénées-Atlantiques',1),(72,'65',73,'65440',4,'HAUTES-PYRENEES','Hautes-Pyrénées',1),(73,'66',91,'66136',4,'PYRENEES-ORIENTALES','Pyrénées-Orientales',1),(74,'67',42,'67482',2,'BAS-RHIN','Bas-Rhin',1),(75,'68',42,'68066',2,'HAUT-RHIN','Haut-Rhin',1),(76,'69',82,'69123',2,'RHONE','Rhône',1),(77,'70',43,'70550',3,'HAUTE-SAONE','Haute-Saône',1),(78,'71',26,'71270',0,'SAONE-ET-LOIRE','Saône-et-Loire',1),(79,'72',52,'72181',3,'SARTHE','Sarthe',1),(80,'73',82,'73065',3,'SAVOIE','Savoie',1),(81,'74',82,'74010',3,'HAUTE-SAVOIE','Haute-Savoie',1),(82,'75',11,'75056',0,'PARIS','Paris',1),(83,'76',23,'76540',3,'SEINE-MARITIME','Seine-Maritime',1),(84,'77',11,'77288',0,'SEINE-ET-MARNE','Seine-et-Marne',1),(85,'78',11,'78646',4,'YVELINES','Yvelines',1),(86,'79',54,'79191',4,'DEUX-SEVRES','Deux-Sèvres',1),(87,'80',22,'80021',3,'SOMME','Somme',1),(88,'81',73,'81004',2,'TARN','Tarn',1),(89,'82',73,'82121',0,'TARN-ET-GARONNE','Tarn-et-Garonne',1),(90,'83',93,'83137',2,'VAR','Var',1),(91,'84',93,'84007',0,'VAUCLUSE','Vaucluse',1),(92,'85',52,'85191',3,'VENDEE','Vendée',1),(93,'86',54,'86194',3,'VIENNE','Vienne',1),(94,'87',74,'87085',3,'HAUTE-VIENNE','Haute-Vienne',1),(95,'88',41,'88160',4,'VOSGES','Vosges',1),(96,'89',26,'89024',5,'YONNE','Yonne',1),(97,'90',43,'90010',0,'TERRITOIRE DE BELFORT','Territoire de Belfort',1),(98,'91',11,'91228',5,'ESSONNE','Essonne',1),(99,'92',11,'92050',4,'HAUTS-DE-SEINE','Hauts-de-Seine',1),(100,'93',11,'93008',3,'SEINE-SAINT-DENIS','Seine-Saint-Denis',1),(101,'94',11,'94028',2,'VAL-DE-MARNE','Val-de-Marne',1),(102,'95',11,'95500',2,'VAL-D OISE','Val-d Oise',1),(103,'01',201,'',1,'ANVERS','Anvers',1),(104,'02',203,'',3,'BRUXELLES-CAPITALE','Bruxelles-Capitale',1),(105,'03',202,'',2,'BRABANT-WALLON','Brabant-Wallon',1),(106,'04',201,'',1,'BRABANT-FLAMAND','Brabant-Flamand',1),(107,'05',201,'',1,'FLANDRE-OCCIDENTALE','Flandre-Occidentale',1),(108,'06',201,'',1,'FLANDRE-ORIENTALE','Flandre-Orientale',1),(109,'07',202,'',2,'HAINAUT','Hainaut',1),(110,'08',201,'',2,'LIEGE','Liège',1),(111,'09',202,'',1,'LIMBOURG','Limbourg',1),(112,'10',202,'',2,'LUXEMBOURG','Luxembourg',1),(113,'11',201,'',2,'NAMUR','Namur',1),(114,'AG',315,NULL,NULL,NULL,'AGRIGENTO',1),(115,'AL',312,NULL,NULL,NULL,'ALESSANDRIA',1),(116,'AN',310,NULL,NULL,NULL,'ANCONA',1),(117,'AO',319,NULL,NULL,NULL,'AOSTA',1),(118,'AR',316,NULL,NULL,NULL,'AREZZO',1),(119,'AP',310,NULL,NULL,NULL,'ASCOLI PICENO',1),(120,'AT',312,NULL,NULL,NULL,'ASTI',1),(121,'AV',304,NULL,NULL,NULL,'AVELLINO',1),(122,'BA',313,NULL,NULL,NULL,'BARI',1),(123,'BT',313,NULL,NULL,NULL,'BARLETTA-ANDRIA-TRANI',1),(124,'BL',320,NULL,NULL,NULL,'BELLUNO',1),(125,'BN',304,NULL,NULL,NULL,'BENEVENTO',1),(126,'BG',309,NULL,NULL,NULL,'BERGAMO',1),(127,'BI',312,NULL,NULL,NULL,'BIELLA',1),(128,'BO',305,NULL,NULL,NULL,'BOLOGNA',1),(129,'BZ',317,NULL,NULL,NULL,'BOLZANO',1),(130,'BS',309,NULL,NULL,NULL,'BRESCIA',1),(131,'BR',313,NULL,NULL,NULL,'BRINDISI',1),(132,'CA',314,NULL,NULL,NULL,'CAGLIARI',1),(133,'CL',315,NULL,NULL,NULL,'CALTANISSETTA',1),(134,'CB',311,NULL,NULL,NULL,'CAMPOBASSO',1),(135,'CI',314,NULL,NULL,NULL,'CARBONIA-IGLESIAS',1),(136,'CE',304,NULL,NULL,NULL,'CASERTA',1),(137,'CT',315,NULL,NULL,NULL,'CATANIA',1),(138,'CZ',303,NULL,NULL,NULL,'CATANZARO',1),(139,'CH',301,NULL,NULL,NULL,'CHIETI',1),(140,'CO',309,NULL,NULL,NULL,'COMO',1),(141,'CS',303,NULL,NULL,NULL,'COSENZA',1),(142,'CR',309,NULL,NULL,NULL,'CREMONA',1),(143,'KR',303,NULL,NULL,NULL,'CROTONE',1),(144,'CN',312,NULL,NULL,NULL,'CUNEO',1),(145,'EN',315,NULL,NULL,NULL,'ENNA',1),(146,'FM',310,NULL,NULL,NULL,'FERMO',1),(147,'FE',305,NULL,NULL,NULL,'FERRARA',1),(148,'FI',316,NULL,NULL,NULL,'FIRENZE',1),(149,'FG',313,NULL,NULL,NULL,'FOGGIA',1),(150,'FC',305,NULL,NULL,NULL,'FORLI-CESENA',1),(151,'FR',307,NULL,NULL,NULL,'FROSINONE',1),(152,'GE',308,NULL,NULL,NULL,'GENOVA',1),(153,'GO',306,NULL,NULL,NULL,'GORIZIA',1),(154,'GR',316,NULL,NULL,NULL,'GROSSETO',1),(155,'IM',308,NULL,NULL,NULL,'IMPERIA',1),(156,'IS',311,NULL,NULL,NULL,'ISERNIA',1),(157,'SP',308,NULL,NULL,NULL,'LA SPEZIA',1),(158,'AQ',301,NULL,NULL,NULL,'L AQUILA',1),(159,'LT',307,NULL,NULL,NULL,'LATINA',1),(160,'LE',313,NULL,NULL,NULL,'LECCE',1),(161,'LC',309,NULL,NULL,NULL,'LECCO',1),(162,'LI',314,NULL,NULL,NULL,'LIVORNO',1),(163,'LO',309,NULL,NULL,NULL,'LODI',1),(164,'LU',316,NULL,NULL,NULL,'LUCCA',1),(165,'MC',310,NULL,NULL,NULL,'MACERATA',1),(166,'MN',309,NULL,NULL,NULL,'MANTOVA',1),(167,'MS',316,NULL,NULL,NULL,'MASSA-CARRARA',1),(168,'MT',302,NULL,NULL,NULL,'MATERA',1),(169,'VS',314,NULL,NULL,NULL,'MEDIO CAMPIDANO',1),(170,'ME',315,NULL,NULL,NULL,'MESSINA',1),(171,'MI',309,NULL,NULL,NULL,'MILANO',1),(172,'MB',309,NULL,NULL,NULL,'MONZA e BRIANZA',1),(173,'MO',305,NULL,NULL,NULL,'MODENA',1),(174,'NA',304,NULL,NULL,NULL,'NAPOLI',1),(175,'NO',312,NULL,NULL,NULL,'NOVARA',1),(176,'NU',314,NULL,NULL,NULL,'NUORO',1),(177,'OG',314,NULL,NULL,NULL,'OGLIASTRA',1),(178,'OT',314,NULL,NULL,NULL,'OLBIA-TEMPIO',1),(179,'OR',314,NULL,NULL,NULL,'ORISTANO',1),(180,'PD',320,NULL,NULL,NULL,'PADOVA',1),(181,'PA',315,NULL,NULL,NULL,'PALERMO',1),(182,'PR',305,NULL,NULL,NULL,'PARMA',1),(183,'PV',309,NULL,NULL,NULL,'PAVIA',1),(184,'PG',318,NULL,NULL,NULL,'PERUGIA',1),(185,'PU',310,NULL,NULL,NULL,'PESARO e URBINO',1),(186,'PE',301,NULL,NULL,NULL,'PESCARA',1),(187,'PC',305,NULL,NULL,NULL,'PIACENZA',1),(188,'PI',316,NULL,NULL,NULL,'PISA',1),(189,'PT',316,NULL,NULL,NULL,'PISTOIA',1),(190,'PN',306,NULL,NULL,NULL,'PORDENONE',1),(191,'PZ',302,NULL,NULL,NULL,'POTENZA',1),(192,'PO',316,NULL,NULL,NULL,'PRATO',1),(193,'RG',315,NULL,NULL,NULL,'RAGUSA',1),(194,'RA',305,NULL,NULL,NULL,'RAVENNA',1),(195,'RC',303,NULL,NULL,NULL,'REGGIO CALABRIA',1),(196,'RE',305,NULL,NULL,NULL,'REGGIO NELL EMILIA',1),(197,'RI',307,NULL,NULL,NULL,'RIETI',1),(198,'RN',305,NULL,NULL,NULL,'RIMINI',1),(199,'RM',307,NULL,NULL,NULL,'ROMA',1),(200,'RO',320,NULL,NULL,NULL,'ROVIGO',1),(201,'SA',304,NULL,NULL,NULL,'SALERNO',1),(202,'SS',314,NULL,NULL,NULL,'SASSARI',1),(203,'SV',308,NULL,NULL,NULL,'SAVONA',1),(204,'SI',316,NULL,NULL,NULL,'SIENA',1),(205,'SR',315,NULL,NULL,NULL,'SIRACUSA',1),(206,'SO',309,NULL,NULL,NULL,'SONDRIO',1),(207,'TA',313,NULL,NULL,NULL,'TARANTO',1),(208,'TE',301,NULL,NULL,NULL,'TERAMO',1),(209,'TR',318,NULL,NULL,NULL,'TERNI',1),(210,'TO',312,NULL,NULL,NULL,'TORINO',1),(211,'TP',315,NULL,NULL,NULL,'TRAPANI',1),(212,'TN',317,NULL,NULL,NULL,'TRENTO',1),(213,'TV',320,NULL,NULL,NULL,'TREVISO',1),(214,'TS',306,NULL,NULL,NULL,'TRIESTE',1),(215,'UD',306,NULL,NULL,NULL,'UDINE',1),(216,'VA',309,NULL,NULL,NULL,'VARESE',1),(217,'VE',320,NULL,NULL,NULL,'VENEZIA',1),(218,'VB',312,NULL,NULL,NULL,'VERBANO-CUSIO-OSSOLA',1),(219,'VC',312,NULL,NULL,NULL,'VERCELLI',1),(220,'VR',320,NULL,NULL,NULL,'VERONA',1),(221,'VV',303,NULL,NULL,NULL,'VIBO VALENTIA',1),(222,'VI',320,NULL,NULL,NULL,'VICENZA',1),(223,'VT',307,NULL,NULL,NULL,'VITERBO',1),(224,'NSW',2801,'',1,'','New South Wales',1),(225,'VIC',2801,'',1,'','Victoria',1),(226,'QLD',2801,'',1,'','Queensland',1),(227,'SA',2801,'',1,'','South Australia',1),(228,'ACT',2801,'',1,'','Australia Capital Territory',1),(229,'TAS',2801,'',1,'','Tasmania',1),(230,'WA',2801,'',1,'','Western Australia',1),(231,'NT',2801,'',1,'','Northern Territory',1),(232,'ON',1401,'',1,'','Ontario',1),(233,'QC',1401,'',1,'','Quebec',1),(234,'NS',1401,'',1,'','Nova Scotia',1),(235,'NB',1401,'',1,'','New Brunswick',1),(236,'MB',1401,'',1,'','Manitoba',1),(237,'BC',1401,'',1,'','British Columbia',1),(238,'PE',1401,'',1,'','Prince Edward Island',1),(239,'SK',1401,'',1,'','Saskatchewan',1),(240,'AB',1401,'',1,'','Alberta',1),(241,'NL',1401,'',1,'','Newfoundland and Labrador',1),(242,'VI',419,'',19,'ALAVA','Álava',1),(243,'AB',404,'',4,'ALBACETE','Albacete',1),(244,'A',411,'',11,'ALICANTE','Alicante',1),(245,'AL',401,'',1,'ALMERIA','Almería',1),(246,'AV',403,'',3,'AVILA','Avila',1),(247,'BA',412,'',12,'BADAJOZ','Badajoz',1),(248,'PM',414,'',14,'ISLAS BALEARES','Islas Baleares',1),(249,'B',406,'',6,'BARCELONA','Barcelona',1),(250,'BU',403,'',8,'BURGOS','Burgos',1),(251,'CC',412,'',12,'CACERES','Cáceres',1),(252,'CA',401,'',1,'CADIZ','Cádiz',1),(253,'CS',411,'',11,'CASTELLON','Castellón',1),(254,'CR',404,'',4,'CIUDAD REAL','Ciudad Real',1),(255,'CO',401,'',1,'CORDOBA','Córdoba',1),(256,'C',413,'',13,'LA CORUÑA','La Coruña',1),(257,'CU',404,'',4,'CUENCA','Cuenca',1),(258,'GI',406,'',6,'GERONA','Gerona',1),(259,'GR',401,'',1,'GRANADA','Granada',1),(260,'GU',404,'',4,'GUADALAJARA','Guadalajara',1),(261,'SS',419,'',19,'GUIPUZCOA','Guipúzcoa',1),(262,'H',401,'',1,'HUELVA','Huelva',1),(263,'HU',402,'',2,'HUESCA','Huesca',1),(264,'J',401,'',1,'JAEN','Jaén',1),(265,'LE',403,'',3,'LEON','León',1),(266,'L',406,'',6,'LERIDA','Lérida',1),(267,'LO',415,'',15,'LA RIOJA','La Rioja',1),(268,'LU',413,'',13,'LUGO','Lugo',1),(269,'M',416,'',16,'MADRID','Madrid',1),(270,'MA',401,'',1,'MALAGA','Málaga',1),(271,'MU',417,'',17,'MURCIA','Murcia',1),(272,'NA',408,'',8,'NAVARRA','Navarra',1),(273,'OR',413,'',13,'ORENSE','Orense',1),(274,'O',418,'',18,'ASTURIAS','Asturias',1),(275,'P',403,'',3,'PALENCIA','Palencia',1),(276,'GC',405,'',5,'LAS PALMAS','Las Palmas',1),(277,'PO',413,'',13,'PONTEVEDRA','Pontevedra',1),(278,'SA',403,'',3,'SALAMANCA','Salamanca',1),(279,'TF',405,'',5,'STA. CRUZ DE TENERIFE','Sta. Cruz de Tenerife',1),(280,'S',410,'',10,'CANTABRIA','Cantabria',1),(281,'SG',403,'',3,'SEGOVIA','Segovia',1),(282,'SE',401,'',1,'SEVILLA','Sevilla',1),(283,'SO',403,'',3,'SORIA','Soria',1),(284,'T',406,'',6,'TARRAGONA','Tarragona',1),(285,'TE',402,'',2,'TERUEL','Teruel',1),(286,'TO',404,'',5,'TOLEDO','Toledo',1),(287,'V',411,'',11,'VALENCIA','Valencia',1),(288,'VA',403,'',3,'VALLADOLID','Valladolid',1),(289,'BI',419,'',19,'VIZCAYA','Vizcaya',1),(290,'ZA',403,'',3,'ZAMORA','Zamora',1),(291,'Z',402,'',1,'ZARAGOZA','Zaragoza',1),(292,'CE',407,'',7,'CEUTA','Ceuta',1),(293,'ML',409,'',9,'MELILLA','Melilla',1),(294,'BW',501,NULL,NULL,'BADEN-WÜRTTEMBERG','Baden-Württemberg',1),(295,'BY',501,NULL,NULL,'BAYERN','Bayern',1),(296,'BE',501,NULL,NULL,'BERLIN','Berlin',1),(297,'BB',501,NULL,NULL,'BRANDENBURG','Brandenburg',1),(298,'HB',501,NULL,NULL,'BREMEN','Bremen',1),(299,'HH',501,NULL,NULL,'HAMBURG','Hamburg',1),(300,'HE',501,NULL,NULL,'HESSEN','Hessen',1),(301,'MV',501,NULL,NULL,'MECKLENBURG-VORPOMMERN','Mecklenburg-Vorpommern',1),(302,'NI',501,NULL,NULL,'NIEDERSACHSEN','Niedersachsen',1),(303,'NW',501,NULL,NULL,'NORDRHEIN-WESTFALEN','Nordrhein-Westfalen',1),(304,'RP',501,NULL,NULL,'RHEINLAND-PFALZ','Rheinland-Pfalz',1),(305,'SL',501,NULL,NULL,'SAARLAND','Saarland',1),(306,'SN',501,NULL,NULL,'SACHSEN','Sachsen',1),(307,'ST',501,NULL,NULL,'SACHSEN-ANHALT','Sachsen-Anhalt',1),(308,'SH',501,NULL,NULL,'SCHLESWIG-HOLSTEIN','Schleswig-Holstein',1),(309,'TH',501,NULL,NULL,'THÜRINGEN','Thüringen',1),(310,'66',10201,'',0,'','Αθήνα',1),(311,'67',10205,'',0,'','Δράμα',1),(312,'01',10205,'',0,'','Έβρος',1),(313,'02',10205,'',0,'','Θάσος',1),(314,'03',10205,'',0,'','Καβάλα',1),(315,'04',10205,'',0,'','Ξάνθη',1),(316,'05',10205,'',0,'','Ροδόπη',1),(317,'06',10203,'',0,'','Ημαθία',1),(318,'07',10203,'',0,'','Θεσσαλονίκη',1),(319,'08',10203,'',0,'','Κιλκίς',1),(320,'09',10203,'',0,'','Πέλλα',1),(321,'10',10203,'',0,'','Πιερία',1),(322,'11',10203,'',0,'','Σέρρες',1),(323,'12',10203,'',0,'','Χαλκιδική',1),(324,'13',10206,'',0,'','Άρτα',1),(325,'14',10206,'',0,'','Θεσπρωτία',1),(326,'15',10206,'',0,'','Ιωάννινα',1),(327,'16',10206,'',0,'','Πρέβεζα',1),(328,'17',10213,'',0,'','Γρεβενά',1),(329,'18',10213,'',0,'','Καστοριά',1),(330,'19',10213,'',0,'','Κοζάνη',1),(331,'20',10213,'',0,'','Φλώρινα',1),(332,'21',10212,'',0,'','Καρδίτσα',1),(333,'22',10212,'',0,'','Λάρισα',1),(334,'23',10212,'',0,'','Μαγνησία',1),(335,'24',10212,'',0,'','Τρίκαλα',1),(336,'25',10212,'',0,'','Σποράδες',1),(337,'26',10212,'',0,'','Βοιωτία',1),(338,'27',10202,'',0,'','Εύβοια',1),(339,'28',10202,'',0,'','Ευρυτανία',1),(340,'29',10202,'',0,'','Φθιώτιδα',1),(341,'30',10202,'',0,'','Φωκίδα',1),(342,'31',10209,'',0,'','Αργολίδα',1),(343,'32',10209,'',0,'','Αρκαδία',1),(344,'33',10209,'',0,'','Κορινθία',1),(345,'34',10209,'',0,'','Λακωνία',1),(346,'35',10209,'',0,'','Μεσσηνία',1),(347,'36',10211,'',0,'','Αιτωλοακαρνανία',1),(348,'37',10211,'',0,'','Αχαΐα',1),(349,'38',10211,'',0,'','Ηλεία',1),(350,'39',10207,'',0,'','Ζάκυνθος',1),(351,'40',10207,'',0,'','Κέρκυρα',1),(352,'41',10207,'',0,'','Κεφαλληνία',1),(353,'42',10207,'',0,'','Ιθάκη',1),(354,'43',10207,'',0,'','Λευκάδα',1),(355,'44',10208,'',0,'','Ικαρία',1),(356,'45',10208,'',0,'','Λέσβος',1),(357,'46',10208,'',0,'','Λήμνος',1),(358,'47',10208,'',0,'','Σάμος',1),(359,'48',10208,'',0,'','Χίος',1),(360,'49',10210,'',0,'','Άνδρος',1),(361,'50',10210,'',0,'','Θήρα',1),(362,'51',10210,'',0,'','Κάλυμνος',1),(363,'52',10210,'',0,'','Κάρπαθος',1),(364,'53',10210,'',0,'','Κέα-Κύθνος',1),(365,'54',10210,'',0,'','Κω',1),(366,'55',10210,'',0,'','Μήλος',1),(367,'56',10210,'',0,'','Μύκονος',1),(368,'57',10210,'',0,'','Νάξος',1),(369,'58',10210,'',0,'','Πάρος',1),(370,'59',10210,'',0,'','Ρόδος',1),(371,'60',10210,'',0,'','Σύρος',1),(372,'61',10210,'',0,'','Τήνος',1),(373,'62',10204,'',0,'','Ηράκλειο',1),(374,'63',10204,'',0,'','Λασίθι',1),(375,'64',10204,'',0,'','Ρέθυμνο',1),(376,'65',10204,'',0,'','Χανιά',1),(377,'AG',601,NULL,NULL,'ARGOVIE','Argovie',1),(378,'AI',601,NULL,NULL,'APPENZELL RHODES INTERIEURES','Appenzell Rhodes intérieures',1),(379,'AR',601,NULL,NULL,'APPENZELL RHODES EXTERIEURES','Appenzell Rhodes extérieures',1),(380,'BE',601,NULL,NULL,'BERNE','Berne',1),(381,'BL',601,NULL,NULL,'BALE CAMPAGNE','Bâle Campagne',1),(382,'BS',601,NULL,NULL,'BALE VILLE','Bâle Ville',1),(383,'FR',601,NULL,NULL,'FRIBOURG','Fribourg',1),(384,'GE',601,NULL,NULL,'GENEVE','Genève',1),(385,'GL',601,NULL,NULL,'GLARIS','Glaris',1),(386,'GR',601,NULL,NULL,'GRISONS','Grisons',1),(387,'JU',601,NULL,NULL,'JURA','Jura',1),(388,'LU',601,NULL,NULL,'LUCERNE','Lucerne',1),(389,'NE',601,NULL,NULL,'NEUCHATEL','Neuchâtel',1),(390,'NW',601,NULL,NULL,'NIDWALD','Nidwald',1),(391,'OW',601,NULL,NULL,'OBWALD','Obwald',1),(392,'SG',601,NULL,NULL,'SAINT-GALL','Saint-Gall',1),(393,'SH',601,NULL,NULL,'SCHAFFHOUSE','Schaffhouse',1),(394,'SO',601,NULL,NULL,'SOLEURE','Soleure',1),(395,'SZ',601,NULL,NULL,'SCHWYZ','Schwyz',1),(396,'TG',601,NULL,NULL,'THURGOVIE','Thurgovie',1),(397,'TI',601,NULL,NULL,'TESSIN','Tessin',1),(398,'UR',601,NULL,NULL,'URI','Uri',1),(399,'VD',601,NULL,NULL,'VAUD','Vaud',1),(400,'VS',601,NULL,NULL,'VALAIS','Valais',1),(401,'ZG',601,NULL,NULL,'ZUG','Zug',1),(402,'ZH',601,NULL,NULL,'ZURICH','Zürich',1),(403,'701',701,NULL,0,NULL,'Bedfordshire',1),(404,'702',701,NULL,0,NULL,'Berkshire',1),(405,'703',701,NULL,0,NULL,'Bristol, City of',1),(406,'704',701,NULL,0,NULL,'Buckinghamshire',1),(407,'705',701,NULL,0,NULL,'Cambridgeshire',1),(408,'706',701,NULL,0,NULL,'Cheshire',1),(409,'707',701,NULL,0,NULL,'Cleveland',1),(410,'708',701,NULL,0,NULL,'Cornwall',1),(411,'709',701,NULL,0,NULL,'Cumberland',1),(412,'710',701,NULL,0,NULL,'Cumbria',1),(413,'711',701,NULL,0,NULL,'Derbyshire',1),(414,'712',701,NULL,0,NULL,'Devon',1),(415,'713',701,NULL,0,NULL,'Dorset',1),(416,'714',701,NULL,0,NULL,'Co. Durham',1),(417,'715',701,NULL,0,NULL,'East Riding of Yorkshire',1),(418,'716',701,NULL,0,NULL,'East Sussex',1),(419,'717',701,NULL,0,NULL,'Essex',1),(420,'718',701,NULL,0,NULL,'Gloucestershire',1),(421,'719',701,NULL,0,NULL,'Greater Manchester',1),(422,'720',701,NULL,0,NULL,'Hampshire',1),(423,'721',701,NULL,0,NULL,'Hertfordshire',1),(424,'722',701,NULL,0,NULL,'Hereford and Worcester',1),(425,'723',701,NULL,0,NULL,'Herefordshire',1),(426,'724',701,NULL,0,NULL,'Huntingdonshire',1),(427,'725',701,NULL,0,NULL,'Isle of Man',1),(428,'726',701,NULL,0,NULL,'Isle of Wight',1),(429,'727',701,NULL,0,NULL,'Jersey',1),(430,'728',701,NULL,0,NULL,'Kent',1),(431,'729',701,NULL,0,NULL,'Lancashire',1),(432,'730',701,NULL,0,NULL,'Leicestershire',1),(433,'731',701,NULL,0,NULL,'Lincolnshire',1),(434,'732',701,NULL,0,NULL,'London - City of London',1),(435,'733',701,NULL,0,NULL,'Merseyside',1),(436,'734',701,NULL,0,NULL,'Middlesex',1),(437,'735',701,NULL,0,NULL,'Norfolk',1),(438,'736',701,NULL,0,NULL,'North Yorkshire',1),(439,'737',701,NULL,0,NULL,'North Riding of Yorkshire',1),(440,'738',701,NULL,0,NULL,'Northamptonshire',1),(441,'739',701,NULL,0,NULL,'Northumberland',1),(442,'740',701,NULL,0,NULL,'Nottinghamshire',1),(443,'741',701,NULL,0,NULL,'Oxfordshire',1),(444,'742',701,NULL,0,NULL,'Rutland',1),(445,'743',701,NULL,0,NULL,'Shropshire',1),(446,'744',701,NULL,0,NULL,'Somerset',1),(447,'745',701,NULL,0,NULL,'Staffordshire',1),(448,'746',701,NULL,0,NULL,'Suffolk',1),(449,'747',701,NULL,0,NULL,'Surrey',1),(450,'748',701,NULL,0,NULL,'Sussex',1),(451,'749',701,NULL,0,NULL,'Tyne and Wear',1),(452,'750',701,NULL,0,NULL,'Warwickshire',1),(453,'751',701,NULL,0,NULL,'West Midlands',1),(454,'752',701,NULL,0,NULL,'West Sussex',1),(455,'753',701,NULL,0,NULL,'West Yorkshire',1),(456,'754',701,NULL,0,NULL,'West Riding of Yorkshire',1),(457,'755',701,NULL,0,NULL,'Wiltshire',1),(458,'756',701,NULL,0,NULL,'Worcestershire',1),(459,'757',701,NULL,0,NULL,'Yorkshire',1),(460,'758',702,NULL,0,NULL,'Anglesey',1),(461,'759',702,NULL,0,NULL,'Breconshire',1),(462,'760',702,NULL,0,NULL,'Caernarvonshire',1),(463,'761',702,NULL,0,NULL,'Cardiganshire',1),(464,'762',702,NULL,0,NULL,'Carmarthenshire',1),(465,'763',702,NULL,0,NULL,'Ceredigion',1),(466,'764',702,NULL,0,NULL,'Denbighshire',1),(467,'765',702,NULL,0,NULL,'Flintshire',1),(468,'766',702,NULL,0,NULL,'Glamorgan',1),(469,'767',702,NULL,0,NULL,'Gwent',1),(470,'768',702,NULL,0,NULL,'Gwynedd',1),(471,'769',702,NULL,0,NULL,'Merionethshire',1),(472,'770',702,NULL,0,NULL,'Monmouthshire',1),(473,'771',702,NULL,0,NULL,'Mid Glamorgan',1),(474,'772',702,NULL,0,NULL,'Montgomeryshire',1),(475,'773',702,NULL,0,NULL,'Pembrokeshire',1),(476,'774',702,NULL,0,NULL,'Powys',1),(477,'775',702,NULL,0,NULL,'Radnorshire',1),(478,'776',702,NULL,0,NULL,'South Glamorgan',1),(479,'777',703,NULL,0,NULL,'Aberdeen, City of',1),(480,'778',703,NULL,0,NULL,'Angus',1),(481,'779',703,NULL,0,NULL,'Argyll',1),(482,'780',703,NULL,0,NULL,'Ayrshire',1),(483,'781',703,NULL,0,NULL,'Banffshire',1),(484,'782',703,NULL,0,NULL,'Berwickshire',1),(485,'783',703,NULL,0,NULL,'Bute',1),(486,'784',703,NULL,0,NULL,'Caithness',1),(487,'785',703,NULL,0,NULL,'Clackmannanshire',1),(488,'786',703,NULL,0,NULL,'Dumfriesshire',1),(489,'787',703,NULL,0,NULL,'Dumbartonshire',1),(490,'788',703,NULL,0,NULL,'Dundee, City of',1),(491,'789',703,NULL,0,NULL,'East Lothian',1),(492,'790',703,NULL,0,NULL,'Fife',1),(493,'791',703,NULL,0,NULL,'Inverness',1),(494,'792',703,NULL,0,NULL,'Kincardineshire',1),(495,'793',703,NULL,0,NULL,'Kinross-shire',1),(496,'794',703,NULL,0,NULL,'Kirkcudbrightshire',1),(497,'795',703,NULL,0,NULL,'Lanarkshire',1),(498,'796',703,NULL,0,NULL,'Midlothian',1),(499,'797',703,NULL,0,NULL,'Morayshire',1),(500,'798',703,NULL,0,NULL,'Nairnshire',1),(501,'799',703,NULL,0,NULL,'Orkney',1),(502,'800',703,NULL,0,NULL,'Peebleshire',1),(503,'801',703,NULL,0,NULL,'Perthshire',1),(504,'802',703,NULL,0,NULL,'Renfrewshire',1),(505,'803',703,NULL,0,NULL,'Ross & Cromarty',1),(506,'804',703,NULL,0,NULL,'Roxburghshire',1),(507,'805',703,NULL,0,NULL,'Selkirkshire',1),(508,'806',703,NULL,0,NULL,'Shetland',1),(509,'807',703,NULL,0,NULL,'Stirlingshire',1),(510,'808',703,NULL,0,NULL,'Sutherland',1),(511,'809',703,NULL,0,NULL,'West Lothian',1),(512,'810',703,NULL,0,NULL,'Wigtownshire',1),(513,'811',704,NULL,0,NULL,'Antrim',1),(514,'812',704,NULL,0,NULL,'Armagh',1),(515,'813',704,NULL,0,NULL,'Co. Down',1),(516,'814',704,NULL,0,NULL,'Co. Fermanagh',1),(517,'815',704,NULL,0,NULL,'Co. Londonderry',1),(518,'AL',1101,'',0,'ALABAMA','Alabama',1),(519,'AK',1101,'',0,'ALASKA','Alaska',1),(520,'AZ',1101,'',0,'ARIZONA','Arizona',1),(521,'AR',1101,'',0,'ARKANSAS','Arkansas',1),(522,'CA',1101,'',0,'CALIFORNIA','California',1),(523,'CO',1101,'',0,'COLORADO','Colorado',1),(524,'CT',1101,'',0,'CONNECTICUT','Connecticut',1),(525,'DE',1101,'',0,'DELAWARE','Delaware',1),(526,'FL',1101,'',0,'FLORIDA','Florida',1),(527,'GA',1101,'',0,'GEORGIA','Georgia',1),(528,'HI',1101,'',0,'HAWAII','Hawaii',1),(529,'ID',1101,'',0,'IDAHO','Idaho',1),(530,'IL',1101,'',0,'ILLINOIS','Illinois',1),(531,'IN',1101,'',0,'INDIANA','Indiana',1),(532,'IA',1101,'',0,'IOWA','Iowa',1),(533,'KS',1101,'',0,'KANSAS','Kansas',1),(534,'KY',1101,'',0,'KENTUCKY','Kentucky',1),(535,'LA',1101,'',0,'LOUISIANA','Louisiana',1),(536,'ME',1101,'',0,'MAINE','Maine',1),(537,'MD',1101,'',0,'MARYLAND','Maryland',1),(538,'MA',1101,'',0,'MASSACHUSSETTS','Massachusetts',1),(539,'MI',1101,'',0,'MICHIGAN','Michigan',1),(540,'MN',1101,'',0,'MINNESOTA','Minnesota',1),(541,'MS',1101,'',0,'MISSISSIPPI','Mississippi',1),(542,'MO',1101,'',0,'MISSOURI','Missouri',1),(543,'MT',1101,'',0,'MONTANA','Montana',1),(544,'NE',1101,'',0,'NEBRASKA','Nebraska',1),(545,'NV',1101,'',0,'NEVADA','Nevada',1),(546,'NH',1101,'',0,'NEW HAMPSHIRE','New Hampshire',1),(547,'NJ',1101,'',0,'NEW JERSEY','New Jersey',1),(548,'NM',1101,'',0,'NEW MEXICO','New Mexico',1),(549,'NY',1101,'',0,'NEW YORK','New York',1),(550,'NC',1101,'',0,'NORTH CAROLINA','North Carolina',1),(551,'ND',1101,'',0,'NORTH DAKOTA','North Dakota',1),(552,'OH',1101,'',0,'OHIO','Ohio',1),(553,'OK',1101,'',0,'OKLAHOMA','Oklahoma',1),(554,'OR',1101,'',0,'OREGON','Oregon',1),(555,'PA',1101,'',0,'PENNSYLVANIA','Pennsylvania',1),(556,'RI',1101,'',0,'RHODE ISLAND','Rhode Island',1),(557,'SC',1101,'',0,'SOUTH CAROLINA','South Carolina',1),(558,'SD',1101,'',0,'SOUTH DAKOTA','South Dakota',1),(559,'TN',1101,'',0,'TENNESSEE','Tennessee',1),(560,'TX',1101,'',0,'TEXAS','Texas',1),(561,'UT',1101,'',0,'UTAH','Utah',1),(562,'VT',1101,'',0,'VERMONT','Vermont',1),(563,'VA',1101,'',0,'VIRGINIA','Virginia',1),(564,'WA',1101,'',0,'WASHINGTON','Washington',1),(565,'WV',1101,'',0,'WEST VIRGINIA','West Virginia',1),(566,'WI',1101,'',0,'WISCONSIN','Wisconsin',1),(567,'WY',1101,'',0,'WYOMING','Wyoming',1),(568,'GR',1701,NULL,NULL,NULL,'Groningen',1),(569,'FR',1701,NULL,NULL,NULL,'Friesland',1),(570,'DR',1701,NULL,NULL,NULL,'Drenthe',1),(571,'OV',1701,NULL,NULL,NULL,'Overijssel',1),(572,'GD',1701,NULL,NULL,NULL,'Gelderland',1),(573,'FL',1701,NULL,NULL,NULL,'Flevoland',1),(574,'UT',1701,NULL,NULL,NULL,'Utrecht',1),(575,'NH',1701,NULL,NULL,NULL,'Noord-Holland',1),(576,'ZH',1701,NULL,NULL,NULL,'Zuid-Holland',1),(577,'ZL',1701,NULL,NULL,NULL,'Zeeland',1),(578,'NB',1701,NULL,NULL,NULL,'Noord-Brabant',1),(579,'LB',1701,NULL,NULL,NULL,'Limburg',1),(580,'SS',8601,'',0,'','San Salvador',1),(581,'SA',8603,'',0,'','Santa Ana',1),(582,'AH',8603,'',0,'','Ahuachapan',1),(583,'SO',8603,'',0,'','Sonsonate',1),(584,'US',8602,'',0,'','Usulutan',1),(585,'SM',8602,'',0,'','San Miguel',1),(586,'MO',8602,'',0,'','Morazan',1),(587,'LU',8602,'',0,'','La Union',1),(588,'LL',8601,'',0,'','La Libertad',1),(589,'CH',8601,'',0,'','Chalatenango',1),(590,'CA',8601,'',0,'','Cabañas',1),(591,'LP',8601,'',0,'','La Paz',1),(592,'SV',8601,'',0,'','San Vicente',1),(593,'CU',8601,'',0,'','Cuscatlan',1),(594,'2301',2301,'',0,'CATAMARCA','Catamarca',1),(595,'2302',2301,'',0,'JUJUY','Jujuy',1),(596,'2303',2301,'',0,'TUCAMAN','Tucamán',1),(597,'2304',2301,'',0,'SANTIAGO DEL ESTERO','Santiago del Estero',1),(598,'2305',2301,'',0,'SALTA','Salta',1),(599,'2306',2302,'',0,'CHACO','Chaco',1),(600,'2307',2302,'',0,'CORRIENTES','Corrientes',1),(601,'2308',2302,'',0,'ENTRE RIOS','Entre Ríos',1),(602,'2309',2302,'',0,'FORMOSA MISIONES','Formosa Misiones',1),(603,'2310',2302,'',0,'SANTA FE','Santa Fe',1),(604,'2311',2303,'',0,'LA RIOJA','La Rioja',1),(605,'2312',2303,'',0,'MENDOZA','Mendoza',1),(606,'2313',2303,'',0,'SAN JUAN','San Juan',1),(607,'2314',2303,'',0,'SAN LUIS','San Luis',1),(608,'2315',2304,'',0,'CORDOBA','Córdoba',1),(609,'2316',2304,'',0,'BUENOS AIRES','Buenos Aires',1),(610,'2317',2304,'',0,'CABA','Caba',1),(611,'2318',2305,'',0,'LA PAMPA','La Pampa',1),(612,'2319',2305,'',0,'NEUQUEN','Neuquén',1),(613,'2320',2305,'',0,'RIO NEGRO','Río Negro',1),(614,'2321',2305,'',0,'CHUBUT','Chubut',1),(615,'2322',2305,'',0,'SANTA CRUZ','Santa Cruz',1),(616,'2323',2305,'',0,'TIERRA DEL FUEGO','Tierra del Fuego',1),(617,'2324',2305,'',0,'ISLAS MALVINAS','Islas Malvinas',1),(618,'2325',2305,'',0,'ANTARTIDA','Antártida',1),(619,'AC',5601,'ACRE',0,'AC','Acre',1),(620,'AL',5601,'ALAGOAS',0,'AL','Alagoas',1),(621,'AP',5601,'AMAPA',0,'AP','Amapá',1),(622,'AM',5601,'AMAZONAS',0,'AM','Amazonas',1),(623,'BA',5601,'BAHIA',0,'BA','Bahia',1),(624,'CE',5601,'CEARA',0,'CE','Ceará',1),(625,'ES',5601,'ESPIRITO SANTO',0,'ES','Espirito Santo',1),(626,'GO',5601,'GOIAS',0,'GO','Goiás',1),(627,'MA',5601,'MARANHAO',0,'MA','Maranhão',1),(628,'MT',5601,'MATO GROSSO',0,'MT','Mato Grosso',1),(629,'MS',5601,'MATO GROSSO DO SUL',0,'MS','Mato Grosso do Sul',1),(630,'MG',5601,'MINAS GERAIS',0,'MG','Minas Gerais',1),(631,'PA',5601,'PARA',0,'PA','Pará',1),(632,'PB',5601,'PARAIBA',0,'PB','Paraiba',1),(633,'PR',5601,'PARANA',0,'PR','Paraná',1),(634,'PE',5601,'PERNAMBUCO',0,'PE','Pernambuco',1),(635,'PI',5601,'PIAUI',0,'PI','Piauí',1),(636,'RJ',5601,'RIO DE JANEIRO',0,'RJ','Rio de Janeiro',1),(637,'RN',5601,'RIO GRANDE DO NORTE',0,'RN','Rio Grande do Norte',1),(638,'RS',5601,'RIO GRANDE DO SUL',0,'RS','Rio Grande do Sul',1),(639,'RO',5601,'RONDONIA',0,'RO','Rondônia',1),(640,'RR',5601,'RORAIMA',0,'RR','Roraima',1),(641,'SC',5601,'SANTA CATARINA',0,'SC','Santa Catarina',1),(642,'SE',5601,'SERGIPE',0,'SE','Sergipe',1),(643,'SP',5601,'SAO PAULO',0,'SP','Sao Paulo',1),(644,'TO',5601,'TOCANTINS',0,'TO','Tocantins',1),(645,'DF',5601,'DISTRITO FEDERAL',0,'DF','Distrito Federal',1),(646,'151',6715,'',0,'151','Arica',1),(647,'152',6715,'',0,'152','Parinacota',1),(648,'011',6701,'',0,'011','Iquique',1),(649,'014',6701,'',0,'014','Tamarugal',1),(650,'021',6702,'',0,'021','Antofagasa',1),(651,'022',6702,'',0,'022','El Loa',1),(652,'023',6702,'',0,'023','Tocopilla',1),(653,'031',6703,'',0,'031','Copiapó',1),(654,'032',6703,'',0,'032','Chañaral',1),(655,'033',6703,'',0,'033','Huasco',1),(656,'041',6704,'',0,'041','Elqui',1),(657,'042',6704,'',0,'042','Choapa',1),(658,'043',6704,'',0,'043','Limarí',1),(659,'051',6705,'',0,'051','Valparaíso',1),(660,'052',6705,'',0,'052','Isla de Pascua',1),(661,'053',6705,'',0,'053','Los Andes',1),(662,'054',6705,'',0,'054','Petorca',1),(663,'055',6705,'',0,'055','Quillota',1),(664,'056',6705,'',0,'056','San Antonio',1),(665,'057',6705,'',0,'057','San Felipe de Aconcagua',1),(666,'058',6705,'',0,'058','Marga Marga',1),(667,'061',6706,'',0,'061','Cachapoal',1),(668,'062',6706,'',0,'062','Cardenal Caro',1),(669,'063',6706,'',0,'063','Colchagua',1),(670,'071',6707,'',0,'071','Talca',1),(671,'072',6707,'',0,'072','Cauquenes',1),(672,'073',6707,'',0,'073','Curicó',1),(673,'074',6707,'',0,'074','Linares',1),(674,'081',6708,'',0,'081','Concepción',1),(675,'082',6708,'',0,'082','Arauco',1),(676,'083',6708,'',0,'083','Biobío',1),(677,'084',6708,'',0,'084','Ñuble',1),(678,'091',6709,'',0,'091','Cautín',1),(679,'092',6709,'',0,'092','Malleco',1),(680,'141',6714,'',0,'141','Valdivia',1),(681,'142',6714,'',0,'142','Ranco',1),(682,'101',6710,'',0,'101','Llanquihue',1),(683,'102',6710,'',0,'102','Chiloé',1),(684,'103',6710,'',0,'103','Osorno',1),(685,'104',6710,'',0,'104','Palena',1),(686,'111',6711,'',0,'111','Coihaique',1),(687,'112',6711,'',0,'112','Aisén',1),(688,'113',6711,'',0,'113','Capitán Prat',1),(689,'114',6711,'',0,'114','General Carrera',1),(690,'121',6712,'',0,'121','Magallanes',1),(691,'122',6712,'',0,'122','Antártica Chilena',1),(692,'123',6712,'',0,'123','Tierra del Fuego',1),(693,'124',6712,'',0,'124','Última Esperanza',1),(694,'131',6713,'',0,'131','Santiago',1),(695,'132',6713,'',0,'132','Cordillera',1),(696,'133',6713,'',0,'133','Chacabuco',1),(697,'134',6713,'',0,'134','Maipo',1),(698,'135',6713,'',0,'135','Melipilla',1),(699,'136',6713,'',0,'136','Talagante',1),(700,'AN',11701,NULL,0,'AN','Andaman & Nicobar',1),(701,'AP',11701,NULL,0,'AP','Andhra Pradesh',1),(702,'AR',11701,NULL,0,'AR','Arunachal Pradesh',1),(703,'AS',11701,NULL,0,'AS','Assam',1),(704,'BR',11701,NULL,0,'BR','Bihar',1),(705,'CG',11701,NULL,0,'CG','Chattisgarh',1),(706,'CH',11701,NULL,0,'CH','Chandigarh',1),(707,'DD',11701,NULL,0,'DD','Daman & Diu',1),(708,'DL',11701,NULL,0,'DL','Delhi',1),(709,'DN',11701,NULL,0,'DN','Dadra and Nagar Haveli',1),(710,'GA',11701,NULL,0,'GA','Goa',1),(711,'GJ',11701,NULL,0,'GJ','Gujarat',1),(712,'HP',11701,NULL,0,'HP','Himachal Pradesh',1),(713,'HR',11701,NULL,0,'HR','Haryana',1),(714,'JH',11701,NULL,0,'JH','Jharkhand',1),(715,'JK',11701,NULL,0,'JK','Jammu & Kashmir',1),(716,'KA',11701,NULL,0,'KA','Karnataka',1),(717,'KL',11701,NULL,0,'KL','Kerala',1),(718,'LD',11701,NULL,0,'LD','Lakshadweep',1),(719,'MH',11701,NULL,0,'MH','Maharashtra',1),(720,'ML',11701,NULL,0,'ML','Meghalaya',1),(721,'MN',11701,NULL,0,'MN','Manipur',1),(722,'MP',11701,NULL,0,'MP','Madhya Pradesh',1),(723,'MZ',11701,NULL,0,'MZ','Mizoram',1),(724,'NL',11701,NULL,0,'NL','Nagaland',1),(725,'OR',11701,NULL,0,'OR','Orissa',1),(726,'PB',11701,NULL,0,'PB','Punjab',1),(727,'PY',11701,NULL,0,'PY','Puducherry',1),(728,'RJ',11701,NULL,0,'RJ','Rajasthan',1),(729,'SK',11701,NULL,0,'SK','Sikkim',1),(730,'TN',11701,NULL,0,'TN','Tamil Nadu',1),(731,'TR',11701,NULL,0,'TR','Tripura',1),(732,'UL',11701,NULL,0,'UL','Uttarakhand',1),(733,'UP',11701,NULL,0,'UP','Uttar Pradesh',1),(734,'WB',11701,NULL,0,'WB','West Bengal',1),(735,'DIF',15401,'',0,'DIF','Distrito Federal',1),(736,'AGS',15401,'',0,'AGS','Aguascalientes',1),(737,'BCN',15401,'',0,'BCN','Baja California Norte',1),(738,'BCS',15401,'',0,'BCS','Baja California Sur',1),(739,'CAM',15401,'',0,'CAM','Campeche',1),(740,'CHP',15401,'',0,'CHP','Chiapas',1),(741,'CHI',15401,'',0,'CHI','Chihuahua',1),(742,'COA',15401,'',0,'COA','Coahuila',1),(743,'COL',15401,'',0,'COL','Colima',1),(744,'DUR',15401,'',0,'DUR','Durango',1),(745,'GTO',15401,'',0,'GTO','Guanajuato',1),(746,'GRO',15401,'',0,'GRO','Guerrero',1),(747,'HGO',15401,'',0,'HGO','Hidalgo',1),(748,'JAL',15401,'',0,'JAL','Jalisco',1),(749,'MEX',15401,'',0,'MEX','México',1),(750,'MIC',15401,'',0,'MIC','Michoacán de Ocampo',1),(751,'MOR',15401,'',0,'MOR','Morelos',1),(752,'NAY',15401,'',0,'NAY','Nayarit',1),(753,'NLE',15401,'',0,'NLE','Nuevo León',1),(754,'OAX',15401,'',0,'OAX','Oaxaca',1),(755,'PUE',15401,'',0,'PUE','Puebla',1),(756,'QRO',15401,'',0,'QRO','Querétaro',1),(757,'ROO',15401,'',0,'ROO','Quintana Roo',1),(758,'SLP',15401,'',0,'SLP','San Luis Potosí',1),(759,'SIN',15401,'',0,'SIN','Sinaloa',1),(760,'SON',15401,'',0,'SON','Sonora',1),(761,'TAB',15401,'',0,'TAB','Tabasco',1),(762,'TAM',15401,'',0,'TAM','Tamaulipas',1),(763,'TLX',15401,'',0,'TLX','Tlaxcala',1),(764,'VER',15401,'',0,'VER','Veracruz',1),(765,'YUC',15401,'',0,'YUC','Yucatán',1),(766,'ZAC',15401,'',0,'ZAC','Zacatecas',1),(767,'ANT',7001,'',0,'ANT','Antioquia',1),(768,'BOL',7001,'',0,'BOL','Bolívar',1),(769,'BOY',7001,'',0,'BOY','Boyacá',1),(770,'CAL',7001,'',0,'CAL','Caldas',1),(771,'CAU',7001,'',0,'CAU','Cauca',1),(772,'CUN',7001,'',0,'CUN','Cundinamarca',1),(773,'HUI',7001,'',0,'HUI','Huila',1),(774,'LAG',7001,'',0,'LAG','La Guajira',1),(775,'MET',7001,'',0,'MET','Meta',1),(776,'NAR',7001,'',0,'NAR','Nariño',1),(777,'NDS',7001,'',0,'NDS','Norte de Santander',1),(778,'SAN',7001,'',0,'SAN','Santander',1),(779,'SUC',7001,'',0,'SUC','Sucre',1),(780,'TOL',7001,'',0,'TOL','Tolima',1),(781,'VAC',7001,'',0,'VAC','Valle del Cauca',1),(782,'RIS',7001,'',0,'RIS','Risalda',1),(783,'ATL',7001,'',0,'ATL','Atlántico',1),(784,'COR',7001,'',0,'COR','Córdoba',1),(785,'SAP',7001,'',0,'SAP','San Andrés, Providencia y Santa Catalina',1),(786,'ARA',7001,'',0,'ARA','Arauca',1),(787,'CAS',7001,'',0,'CAS','Casanare',1),(788,'AMA',7001,'',0,'AMA','Amazonas',1),(789,'CAQ',7001,'',0,'CAQ','Caquetá',1),(790,'CHO',7001,'',0,'CHO','Chocó',1),(791,'GUA',7001,'',0,'GUA','Guainía',1),(792,'GUV',7001,'',0,'GUV','Guaviare',1),(793,'PUT',7001,'',0,'PUT','Putumayo',1),(794,'QUI',7001,'',0,'QUI','Quindío',1),(795,'VAU',7001,'',0,'VAU','Vaupés',1),(796,'BOG',7001,'',0,'BOG','Bogotá',1),(797,'VID',7001,'',0,'VID','Vichada',1),(798,'CES',7001,'',0,'CES','Cesar',1),(799,'MAG',7001,'',0,'MAG','Magdalena',1),(800,'AT',11401,'',0,'AT','Atlántida',1),(801,'CH',11401,'',0,'CH','Choluteca',1),(802,'CL',11401,'',0,'CL','Colón',1),(803,'CM',11401,'',0,'CM','Comayagua',1),(804,'CO',11401,'',0,'CO','Copán',1),(805,'CR',11401,'',0,'CR','Cortés',1),(806,'EP',11401,'',0,'EP','El Paraíso',1),(807,'FM',11401,'',0,'FM','Francisco Morazán',1),(808,'GD',11401,'',0,'GD','Gracias a Dios',1),(809,'IN',11401,'',0,'IN','Intibucá',1),(810,'IB',11401,'',0,'IB','Islas de la Bahía',1),(811,'LP',11401,'',0,'LP','La Paz',1),(812,'LM',11401,'',0,'LM','Lempira',1),(813,'OC',11401,'',0,'OC','Ocotepeque',1),(814,'OL',11401,'',0,'OL','Olancho',1),(815,'SB',11401,'',0,'SB','Santa Bárbara',1),(816,'VL',11401,'',0,'VL','Valle',1),(817,'YO',11401,'',0,'YO','Yoro',1),(818,'DC',11401,'',0,'DC','Distrito Central',1),(819,'CC',4601,'Oistins',0,'CC','Christ Church',1),(820,'SA',4601,'Greenland',0,'SA','Saint Andrew',1),(821,'SG',4601,'Bulkeley',0,'SG','Saint George',1),(822,'JA',4601,'Holetown',0,'JA','Saint James',1),(823,'SJ',4601,'Four Roads',0,'SJ','Saint John',1),(824,'SB',4601,'Bathsheba',0,'SB','Saint Joseph',1),(825,'SL',4601,'Crab Hill',0,'SL','Saint Lucy',1),(826,'SM',4601,'Bridgetown',0,'SM','Saint Michael',1),(827,'SP',4601,'Speightstown',0,'SP','Saint Peter',1),(828,'SC',4601,'Crane',0,'SC','Saint Philip',1),(829,'ST',4601,'Hillaby',0,'ST','Saint Thomas',1),(830,'VE-L',23201,'',0,'VE-L','Mérida',1),(831,'VE-T',23201,'',0,'VE-T','Trujillo',1),(832,'VE-E',23201,'',0,'VE-E','Barinas',1),(833,'VE-M',23202,'',0,'VE-M','Miranda',1),(834,'VE-W',23202,'',0,'VE-W','Vargas',1),(835,'VE-A',23202,'',0,'VE-A','Distrito Capital',1),(836,'VE-D',23203,'',0,'VE-D','Aragua',1),(837,'VE-G',23203,'',0,'VE-G','Carabobo',1),(838,'VE-I',23204,'',0,'VE-I','Falcón',1),(839,'VE-K',23204,'',0,'VE-K','Lara',1),(840,'VE-U',23204,'',0,'VE-U','Yaracuy',1),(841,'VE-F',23205,'',0,'VE-F','Bolívar',1),(842,'VE-X',23205,'',0,'VE-X','Amazonas',1),(843,'VE-Y',23205,'',0,'VE-Y','Delta Amacuro',1),(844,'VE-O',23206,'',0,'VE-O','Nueva Esparta',1),(845,'VE-Z',23206,'',0,'VE-Z','Dependencias Federales',1),(846,'VE-C',23207,'',0,'VE-C','Apure',1),(847,'VE-J',23207,'',0,'VE-J','Guárico',1),(848,'VE-H',23207,'',0,'VE-H','Cojedes',1),(849,'VE-P',23207,'',0,'VE-P','Portuguesa',1),(850,'VE-B',23208,'',0,'VE-B','Anzoátegui',1),(851,'VE-N',23208,'',0,'VE-N','Monagas',1),(852,'VE-R',23208,'',0,'VE-R','Sucre',1),(853,'VE-V',23209,'',0,'VE-V','Zulia',1),(854,'VE-S',23209,'',0,'VE-S','Táchira',1),(855,'AL01',1301,'',0,'','Wilaya d\'Adrar',1),(856,'AL02',1301,'',0,'','Wilaya de Chlef',1),(857,'AL03',1301,'',0,'','Wilaya de Laghouat',1),(858,'AL04',1301,'',0,'','Wilaya d\'Oum El Bouaghi',1),(859,'AL05',1301,'',0,'','Wilaya de Batna',1),(860,'AL06',1301,'',0,'','Wilaya de Béjaïa',1),(861,'AL07',1301,'',0,'','Wilaya de Biskra',1),(862,'AL08',1301,'',0,'','Wilaya de Béchar',1),(863,'AL09',1301,'',0,'','Wilaya de Blida',1),(864,'AL11',1301,'',0,'','Wilaya de Bouira',1),(865,'AL12',1301,'',0,'','Wilaya de Tamanrasset',1),(866,'AL13',1301,'',0,'','Wilaya de Tébessa',1),(867,'AL14',1301,'',0,'','Wilaya de Tlemcen',1),(868,'AL15',1301,'',0,'','Wilaya de Tiaret',1),(869,'AL16',1301,'',0,'','Wilaya de Tizi Ouzou',1),(870,'AL17',1301,'',0,'','Wilaya d\'Alger',1),(871,'AL18',1301,'',0,'','Wilaya de Djelfa',1),(872,'AL19',1301,'',0,'','Wilaya de Jijel',1),(873,'AL20',1301,'',0,'','Wilaya de Sétif	',1),(874,'AL21',1301,'',0,'','Wilaya de Saïda',1),(875,'AL22',1301,'',0,'','Wilaya de Skikda',1),(876,'AL23',1301,'',0,'','Wilaya de Sidi Bel Abbès',1),(877,'AL24',1301,'',0,'','Wilaya d\'Annaba',1),(878,'AL25',1301,'',0,'','Wilaya de Guelma',1),(879,'AL26',1301,'',0,'','Wilaya de Constantine',1),(880,'AL27',1301,'',0,'','Wilaya de Médéa',1),(881,'AL28',1301,'',0,'','Wilaya de Mostaganem',1),(882,'AL29',1301,'',0,'','Wilaya de M\'Sila',1),(883,'AL30',1301,'',0,'','Wilaya de Mascara',1),(884,'AL31',1301,'',0,'','Wilaya d\'Ouargla',1),(885,'AL32',1301,'',0,'','Wilaya d\'Oran',1),(886,'AL33',1301,'',0,'','Wilaya d\'El Bayadh',1),(887,'AL34',1301,'',0,'','Wilaya d\'Illizi',1),(888,'AL35',1301,'',0,'','Wilaya de Bordj Bou Arreridj',1),(889,'AL36',1301,'',0,'','Wilaya de Boumerdès',1),(890,'AL37',1301,'',0,'','Wilaya d\'El Tarf',1),(891,'AL38',1301,'',0,'','Wilaya de Tindouf',1),(892,'AL39',1301,'',0,'','Wilaya de Tissemsilt',1),(893,'AL40',1301,'',0,'','Wilaya d\'El Oued',1),(894,'AL41',1301,'',0,'','Wilaya de Khenchela',1),(895,'AL42',1301,'',0,'','Wilaya de Souk Ahras',1),(896,'AL43',1301,'',0,'','Wilaya de Tipaza',1),(897,'AL44',1301,'',0,'','Wilaya de Mila',1),(898,'AL45',1301,'',0,'','Wilaya d\'Aïn Defla',1),(899,'AL46',1301,'',0,'','Wilaya de Naâma',1),(900,'AL47',1301,'',0,'','Wilaya d\'Aïn Témouchent',1),(901,'AL48',1301,'',0,'','Wilaya de Ghardaia',1),(902,'AL49',1301,'',0,'','Wilaya de Relizane',1),(903,'MA',1209,'',0,'','Province de Benslimane',1),(904,'MA1',1209,'',0,'','Province de Berrechid',1),(905,'MA2',1209,'',0,'','Province de Khouribga',1),(906,'MA3',1209,'',0,'','Province de Settat',1),(907,'MA4',1210,'',0,'','Province d\'El Jadida',1),(908,'MA5',1210,'',0,'','Province de Safi',1),(909,'MA6',1210,'',0,'','Province de Sidi Bennour',1),(910,'MA7',1210,'',0,'','Province de Youssoufia',1),(911,'MA6B',1205,'',0,'','Préfecture de Fès',1),(912,'MA7B',1205,'',0,'','Province de Boulemane',1),(913,'MA8',1205,'',0,'','Province de Moulay Yacoub',1),(914,'MA9',1205,'',0,'','Province de Sefrou',1),(915,'MA8A',1202,'',0,'','Province de Kénitra',1),(916,'MA9A',1202,'',0,'','Province de Sidi Kacem',1),(917,'MA10',1202,'',0,'','Province de Sidi Slimane',1),(918,'MA11',1208,'',0,'','Préfecture de Casablanca',1),(919,'MA12',1208,'',0,'','Préfecture de Mohammédia',1),(920,'MA13',1208,'',0,'','Province de Médiouna',1),(921,'MA14',1208,'',0,'','Province de Nouaceur',1),(922,'MA15',1214,'',0,'','Province d\'Assa-Zag',1),(923,'MA16',1214,'',0,'','Province d\'Es-Semara',1),(924,'MA17A',1214,'',0,'','Province de Guelmim',1),(925,'MA18',1214,'',0,'','Province de Tata',1),(926,'MA19',1214,'',0,'','Province de Tan-Tan',1),(927,'MA15',1215,'',0,'','Province de Boujdour',1),(928,'MA16',1215,'',0,'','Province de Lâayoune',1),(929,'MA17',1215,'',0,'','Province de Tarfaya',1),(930,'MA18',1211,'',0,'','Préfecture de Marrakech',1),(931,'MA19',1211,'',0,'','Province d\'Al Haouz',1),(932,'MA20',1211,'',0,'','Province de Chichaoua',1),(933,'MA21',1211,'',0,'','Province d\'El Kelâa des Sraghna',1),(934,'MA22',1211,'',0,'','Province d\'Essaouira',1),(935,'MA23',1211,'',0,'','Province de Rehamna',1),(936,'MA24',1206,'',0,'','Préfecture de Meknès',1),(937,'MA25',1206,'',0,'','Province d’El Hajeb',1),(938,'MA26',1206,'',0,'','Province d\'Errachidia',1),(939,'MA27',1206,'',0,'','Province d’Ifrane',1),(940,'MA28',1206,'',0,'','Province de Khénifra',1),(941,'MA29',1206,'',0,'','Province de Midelt',1),(942,'MA30',1204,'',0,'','Préfecture d\'Oujda-Angad',1),(943,'MA31',1204,'',0,'','Province de Berkane',1),(944,'MA32',1204,'',0,'','Province de Driouch',1),(945,'MA33',1204,'',0,'','Province de Figuig',1),(946,'MA34',1204,'',0,'','Province de Jerada',1),(947,'MA35',1204,'',0,'','Province de Nadorgg',1),(948,'MA36',1204,'',0,'','Province de Taourirt',1),(949,'MA37',1216,'',0,'','Province d\'Aousserd',1),(950,'MA38',1216,'',0,'','Province d\'Oued Ed-Dahab',1),(951,'MA39',1207,'',0,'','Préfecture de Rabat',1),(952,'MA40',1207,'',0,'','Préfecture de Skhirat-Témara',1),(953,'MA41',1207,'',0,'','Préfecture de Salé',1),(954,'MA42',1207,'',0,'','Province de Khémisset',1),(955,'MA43',1213,'',0,'','Préfecture d\'Agadir Ida-Outanane',1),(956,'MA44',1213,'',0,'','Préfecture d\'Inezgane-Aït Melloul',1),(957,'MA45',1213,'',0,'','Province de Chtouka-Aït Baha',1),(958,'MA46',1213,'',0,'','Province d\'Ouarzazate',1),(959,'MA47',1213,'',0,'','Province de Sidi Ifni',1),(960,'MA48',1213,'',0,'','Province de Taroudant',1),(961,'MA49',1213,'',0,'','Province de Tinghir',1),(962,'MA50',1213,'',0,'','Province de Tiznit',1),(963,'MA51',1213,'',0,'','Province de Zagora',1),(964,'MA52',1212,'',0,'','Province d\'Azilal',1),(965,'MA53',1212,'',0,'','Province de Beni Mellal',1),(966,'MA54',1212,'',0,'','Province de Fquih Ben Salah',1),(967,'MA55',1201,'',0,'','Préfecture de M\'diq-Fnideq',1),(968,'MA56',1201,'',0,'','Préfecture de Tanger-Asilah',1),(969,'MA57',1201,'',0,'','Province de Chefchaouen',1),(970,'MA58',1201,'',0,'','Province de Fahs-Anjra',1),(971,'MA59',1201,'',0,'','Province de Larache',1),(972,'MA60',1201,'',0,'','Province d\'Ouezzane',1),(973,'MA61',1201,'',0,'','Province de Tétouan',1),(974,'MA62',1203,'',0,'','Province de Guercif',1),(975,'MA63',1203,'',0,'','Province d\'Al Hoceïma',1),(976,'MA64',1203,'',0,'','Province de Taounate',1),(977,'MA65',1203,'',0,'','Province de Taza',1),(978,'MA6A',1205,'',0,'','Préfecture de Fès',1),(979,'MA7A',1205,'',0,'','Province de Boulemane',1),(980,'MA15A',1214,'',0,'','Province d\'Assa-Zag',1),(981,'MA16A',1214,'',0,'','Province d\'Es-Semara',1),(982,'MA18A',1211,'',0,'','Préfecture de Marrakech',1),(983,'MA19A',1214,'',0,'','Province de Tan-Tan',1),(984,'MA19B',1214,'',0,'','Province de Tan-Tan',1),(985,'TN01',1001,'',0,'','Ariana',1),(986,'TN02',1001,'',0,'','Béja',1),(987,'TN03',1001,'',0,'','Ben Arous',1),(988,'TN04',1001,'',0,'','Bizerte',1),(989,'TN05',1001,'',0,'','Gabès',1),(990,'TN06',1001,'',0,'','Gafsa',1),(991,'TN07',1001,'',0,'','Jendouba',1),(992,'TN08',1001,'',0,'','Kairouan',1),(993,'TN09',1001,'',0,'','Kasserine',1),(994,'TN10',1001,'',0,'','Kébili',1),(995,'TN11',1001,'',0,'','La Manouba',1),(996,'TN12',1001,'',0,'','Le Kef',1),(997,'TN13',1001,'',0,'','Mahdia',1),(998,'TN14',1001,'',0,'','Médenine',1),(999,'TN15',1001,'',0,'','Monastir',1),(1000,'TN16',1001,'',0,'','Nabeul',1),(1001,'TN17',1001,'',0,'','Sfax',1),(1002,'TN18',1001,'',0,'','Sidi Bouzid',1),(1003,'TN19',1001,'',0,'','Siliana',1),(1004,'TN20',1001,'',0,'','Sousse',1),(1005,'TN21',1001,'',0,'','Tataouine',1),(1006,'TN22',1001,'',0,'','Tozeur',1),(1007,'TN23',1001,'',0,'','Tunis',1),(1008,'TN24',1001,'',0,'','Zaghouan',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 `uk_c_effectif` (`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_email_templates`
--

CREATE TABLE `llx_c_email_templates` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `module` varchar(32) default NULL,
  `type_template` varchar(32) default NULL,
  `lang` varchar(6) default NULL,
  `private` smallint(6) NOT NULL default '0',
  `fk_user` int(11) default NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `label` varchar(255) default NULL,
  `position` smallint(6) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `topic` text,
  `content` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_email_templates` (`entity`,`label`,`lang`),
  KEY `idx_type` (`type_template`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_email_templates`
--


--
-- 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=193 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,'Etablissement 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 (SAS)',0,1,NULL),(40,58,1,'Entreprise Unipersonnelle à Responsabilité Limitée (EURL)',0,1,NULL),(41,59,1,'Société par actions simplifiée unipersonnelle (SASU)',0,1,NULL),(42,60,1,'Entreprise Individuelle à Responsabilité Limitée (EIRL)',0,1,NULL),(43,61,1,'Caisse d\'épargne et de prévoyance',0,1,NULL),(44,62,1,'Groupement d\'intérêt économique (GIE)',0,1,NULL),(45,63,1,'Société coopérative agricole',0,1,NULL),(46,64,1,'Société non commerciale d assurances',0,1,NULL),(47,65,1,'Société civile',0,1,NULL),(48,69,1,'Personnes de droit privé inscrites au RCS',0,1,NULL),(49,71,1,'Administration de l état',0,1,NULL),(50,72,1,'Collectivité territoriale',0,1,NULL),(51,73,1,'Etablissement public administratif',0,1,NULL),(52,74,1,'Personne morale de droit public administratif',0,1,NULL),(53,81,1,'Organisme gérant régime de protection social à adhésion obligatoire',0,1,NULL),(54,82,1,'Organisme mutualiste',0,1,NULL),(55,83,1,'Comité d entreprise',0,1,NULL),(56,84,1,'Organisme professionnel',0,1,NULL),(57,85,1,'Organisme de retraite à adhésion non obligatoire',0,1,NULL),(58,91,1,'Syndicat de propriétaires',0,1,NULL),(59,92,1,'Association loi 1901 ou assimilé',0,1,NULL),(60,93,1,'Fondation',0,1,NULL),(61,99,1,'Personne morale de droit privé',0,1,NULL),(62,200,2,'Indépendant',0,1,NULL),(63,201,2,'SPRL - Société à responsabilité limitée',0,1,NULL),(64,202,2,'SA   - Société Anonyme',0,1,NULL),(65,203,2,'SCRL - Société coopérative à responsabilité limitée',0,1,NULL),(66,204,2,'ASBL - Association sans but Lucratif',0,1,NULL),(67,205,2,'SCRI - Société coopérative à responsabilité illimitée',0,1,NULL),(68,206,2,'SCS  - Société en commandite simple',0,1,NULL),(69,207,2,'SCA  - Société en commandite par action',0,1,NULL),(70,208,2,'SNC  - Société en nom collectif',0,1,NULL),(71,209,2,'GIE  - Groupement d intérêt économique',0,1,NULL),(72,210,2,'GEIE - Groupement européen d intérêt économique',0,1,NULL),(73,220,2,'Eenmanszaak',0,1,NULL),(74,221,2,'BVBA - Besloten vennootschap met beperkte aansprakelijkheid',0,1,NULL),(75,222,2,'NV   - Naamloze Vennootschap',0,1,NULL),(76,223,2,'CVBA - Coöperatieve vennootschap met beperkte aansprakelijkheid',0,1,NULL),(77,224,2,'VZW  - Vereniging zonder winstoogmerk',0,1,NULL),(78,225,2,'CVOA - Coöperatieve vennootschap met onbeperkte aansprakelijkheid ',0,1,NULL),(79,226,2,'GCV  - Gewone commanditaire vennootschap',0,1,NULL),(80,227,2,'Comm.VA - Commanditaire vennootschap op aandelen',0,1,NULL),(81,228,2,'VOF  - Vennootschap onder firma',0,1,NULL),(82,229,2,'VS0  - Vennootschap met sociaal oogmerk',0,1,NULL),(83,500,5,'GmbH - Gesellschaft mit beschränkter Haftung',0,1,NULL),(84,501,5,'AG - Aktiengesellschaft ',0,1,NULL),(85,502,5,'GmbH&Co. KG - Gesellschaft mit beschränkter Haftung & Compagnie Kommanditgesellschaft',0,1,NULL),(86,503,5,'Gewerbe - Personengesellschaft',0,1,NULL),(87,504,5,'UG - Unternehmergesellschaft -haftungsbeschränkt-',0,1,NULL),(88,505,5,'GbR - Gesellschaft des bürgerlichen Rechts',0,1,NULL),(89,506,5,'KG - Kommanditgesellschaft',0,1,NULL),(90,507,5,'Ltd. - Limited Company',0,1,NULL),(91,508,5,'OHG - Offene Handelsgesellschaft',0,1,NULL),(92,10201,102,'Ατομική επιχείρηση',0,1,NULL),(93,10202,102,'Εταιρική  επιχείρηση',0,1,NULL),(94,10203,102,'Ομόρρυθμη Εταιρεία Ο.Ε',0,1,NULL),(95,10204,102,'Ετερόρρυθμη Εταιρεία Ε.Ε',0,1,NULL),(96,10205,102,'Εταιρεία Περιορισμένης Ευθύνης Ε.Π.Ε',0,1,NULL),(97,10206,102,'Ανώνυμη Εταιρεία Α.Ε',0,1,NULL),(98,10207,102,'Ανώνυμη ναυτιλιακή εταιρεία Α.Ν.Ε',0,1,NULL),(99,10208,102,'Συνεταιρισμός',0,1,NULL),(100,10209,102,'Συμπλοιοκτησία',0,1,NULL),(101,301,3,'Società semplice',0,1,NULL),(102,302,3,'Società in nome collettivo s.n.c.',0,1,NULL),(103,303,3,'Società in accomandita semplice s.a.s.',0,1,NULL),(104,304,3,'Società per azioni s.p.a.',0,1,NULL),(105,305,3,'Società a responsabilità limitata s.r.l.',0,1,NULL),(106,306,3,'Società in accomandita per azioni s.a.p.a.',0,1,NULL),(107,307,3,'Società cooperativa a r.l.',0,1,NULL),(108,308,3,'Società consortile',0,1,NULL),(109,309,3,'Società europea',0,1,NULL),(110,310,3,'Società cooperativa europea',0,1,NULL),(111,311,3,'Società unipersonale',0,1,NULL),(112,312,3,'Società di professionisti',0,1,NULL),(113,313,3,'Società di fatto',0,1,NULL),(114,315,3,'Società apparente',0,1,NULL),(115,316,3,'Impresa individuale ',0,1,NULL),(116,317,3,'Impresa coniugale',0,1,NULL),(117,318,3,'Impresa familiare',0,1,NULL),(118,319,3,'Consorzio cooperativo',0,1,NULL),(119,320,3,'Società cooperativa sociale',0,1,NULL),(120,321,3,'Società cooperativa di consumo',0,1,NULL),(121,322,3,'Società cooperativa agricola',0,1,NULL),(122,323,3,'A.T.I. Associazione temporanea di imprese',0,1,NULL),(123,324,3,'R.T.I. Raggruppamento temporaneo di imprese',0,1,NULL),(124,325,3,'Studio associato',0,1,NULL),(125,600,6,'Raison Individuelle',0,1,NULL),(126,601,6,'Société Simple',0,1,NULL),(127,602,6,'Société en nom collectif',0,1,NULL),(128,603,6,'Société en commandite',0,1,NULL),(129,604,6,'Société anonyme (SA)',0,1,NULL),(130,605,6,'Société en commandite par actions',0,1,NULL),(131,606,6,'Société à responsabilité limitée (SARL)',0,1,NULL),(132,607,6,'Société coopérative',0,1,NULL),(133,608,6,'Association',0,1,NULL),(134,609,6,'Fondation',0,1,NULL),(135,700,7,'Sole Trader',0,1,NULL),(136,701,7,'Partnership',0,1,NULL),(137,702,7,'Private Limited Company by shares (LTD)',0,1,NULL),(138,703,7,'Public Limited Company',0,1,NULL),(139,704,7,'Workers Cooperative',0,1,NULL),(140,705,7,'Limited Liability Partnership',0,1,NULL),(141,706,7,'Franchise',0,1,NULL),(142,1000,10,'Société à responsabilité limitée (SARL)',0,1,NULL),(143,1001,10,'Société en Nom Collectif (SNC)',0,1,NULL),(144,1002,10,'Société en Commandite Simple (SCS)',0,1,NULL),(145,1003,10,'société en participation',0,1,NULL),(146,1004,10,'Société Anonyme (SA)',0,1,NULL),(147,1005,10,'Société Unipersonnelle à Responsabilité Limitée (SUARL)',0,1,NULL),(148,1006,10,'Groupement d\'intérêt économique (GEI)',0,1,NULL),(149,1007,10,'Groupe de sociétés',0,1,NULL),(150,1701,17,'Eenmanszaak',0,1,NULL),(151,1702,17,'Maatschap',0,1,NULL),(152,1703,17,'Vennootschap onder firma',0,1,NULL),(153,1704,17,'Commanditaire vennootschap',0,1,NULL),(154,1705,17,'Besloten vennootschap (BV)',0,1,NULL),(155,1706,17,'Naamloze Vennootschap (NV)',0,1,NULL),(156,1707,17,'Vereniging',0,1,NULL),(157,1708,17,'Stichting',0,1,NULL),(158,1709,17,'Coöperatie met beperkte aansprakelijkheid (BA)',0,1,NULL),(159,1710,17,'Coöperatie met uitgesloten aansprakelijkheid (UA)',0,1,NULL),(160,1711,17,'Coöperatie met wettelijke aansprakelijkheid (WA)',0,1,NULL),(161,1712,17,'Onderlinge waarborgmaatschappij',0,1,NULL),(162,401,4,'Empresario Individual',0,1,NULL),(163,402,4,'Comunidad de Bienes',0,1,NULL),(164,403,4,'Sociedad Civil',0,1,NULL),(165,404,4,'Sociedad Colectiva',0,1,NULL),(166,405,4,'Sociedad Limitada',0,1,NULL),(167,406,4,'Sociedad Anónima',0,1,NULL),(168,407,4,'Sociedad Comanditaria por Acciones',0,1,NULL),(169,408,4,'Sociedad Comanditaria Simple',0,1,NULL),(170,409,4,'Sociedad Laboral',0,1,NULL),(171,410,4,'Sociedad Cooperativa',0,1,NULL),(172,411,4,'Sociedad de Garantía Recíproca',0,1,NULL),(173,412,4,'Entidad de Capital-Riesgo',0,1,NULL),(174,413,4,'Agrupación de Interés Económico',0,1,NULL),(175,414,4,'Sociedad de Inversión Mobiliaria',0,1,NULL),(176,415,4,'Agrupación sin Ánimo de Lucro',0,1,NULL),(177,15201,152,'Mauritius Private Company Limited By Shares',0,1,NULL),(178,15202,152,'Mauritius Company Limited By Guarantee',0,1,NULL),(179,15203,152,'Mauritius Public Company Limited By Shares',0,1,NULL),(180,15204,152,'Mauritius Foreign Company',0,1,NULL),(181,15205,152,'Mauritius GBC1 (Offshore Company)',0,1,NULL),(182,15206,152,'Mauritius GBC2 (International Company)',0,1,NULL),(183,15207,152,'Mauritius General Partnership',0,1,NULL),(184,15208,152,'Mauritius Limited Partnership',0,1,NULL),(185,15209,152,'Mauritius Sole Proprietorship',0,1,NULL),(186,15210,152,'Mauritius Trusts',0,1,NULL),(187,15401,154,'Sociedad en nombre colectivo',0,1,NULL),(188,15402,154,'Sociedad en comandita simple',0,1,NULL),(189,15403,154,'Sociedad de responsabilidad limitada',0,1,NULL),(190,15404,154,'Sociedad anónima',0,1,NULL),(191,15405,154,'Sociedad en comandita por acciones',0,1,NULL),(192,15406,154,'Sociedad cooperativa',0,1,NULL);

--
-- Table structure for table `llx_c_holiday_types`
--

CREATE TABLE `llx_c_holiday_types` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(16) NOT NULL,
  `label` varchar(255) NOT NULL,
  `affect` int(11) NOT NULL,
  `delay` int(11) NOT NULL,
  `newByMonth` double(8,5) NOT NULL default '0.00000',
  `fk_country` int(11) default NULL,
  `active` int(11) default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_holiday_types` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_holiday_types`
--

INSERT INTO `llx_c_holiday_types` (`rowid`, `code`, `label`, `affect`, `delay`, `newByMonth`, `fk_country`, `active`) VALUES (1,'LEAVE_SICK','Sick leave',0,0,0.00000,NULL,1),(2,'LEAVE_OTHER','Other leave',0,0,0.00000,NULL,1),(3,'LEAVE_PAID','Paid vacation',1,7,0.00000,NULL,0),(4,'LEAVE_RTT_FR','RTT',1,7,0.83000,1,1),(5,'LEAVE_PAID_FR','Paid vacation',1,30,2.08334,1,1);

--
-- Table structure for table `llx_c_incoterms`
--

CREATE TABLE `llx_c_incoterms` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(3) NOT NULL,
  `libelle` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_incoterms` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_incoterms`
--

INSERT INTO `llx_c_incoterms` (`rowid`, `code`, `libelle`, `active`) VALUES (1,'EXW','Ex Works, au départ non chargé, non dédouané sortie d\'usine (uniquement adapté aux flux domestiques, nationaux)',1),(2,'FCA','Free Carrier, marchandises dédouanées et chargées dans le pays de départ, chez le vendeur ou chez le commissionnaire de transport de l\'acheteur',1),(3,'FAS','Free Alongside Ship, sur le quai du port de départ',1),(4,'FOB','Free On Board, chargé sur le bateau, les frais de chargement dans celui-ci étant fonction du liner term indiqué par la compagnie maritime (à la charge du vendeur)',1),(5,'CFR','Cost and Freight, chargé dans le bateau, livraison au port de départ, frais payés jusqu\'au port d\'arrivée, sans assurance pour le transport, non déchargé du navire à destination (les frais de déchargement sont inclus ou non au port d\'arrivée)',1),(6,'CIF','Cost, Insurance and Freight, chargé sur le bateau, frais jusqu\'au port d\'arrivée, avec l\'assurance marchandise transportée souscrite par le vendeur pour le compte de l\'acheteur',1),(7,'CPT','Carriage Paid To, livraison au premier transporteur, frais jusqu\'au déchargement du mode de transport, sans assurance pour le transport',1),(8,'CIP','Carriage and Insurance Paid to, idem CPT, avec assurance marchandise transportée souscrite par le vendeur pour le compte de l\'acheteur',1),(9,'DAT','Delivered At Terminal, marchandises (déchargées) livrées sur quai, dans un terminal maritime, fluvial, aérien, routier ou ferroviaire désigné (dédouanement import, et post-acheminement payés par l\'acheteur)',1),(10,'DAP','Delivered At Place, marchandises (non déchargées) mises à disposition de l\'acheteur dans le pays d\'importation au lieu précisé dans le contrat (déchargement, dédouanement import payé par l\'acheteur)',1),(11,'DDP','Delivered Duty Paid, marchandises (non déchargées) livrées à destination finale, dédouanement import et taxes à la charge du vendeur ; l\'acheteur prend en charge uniquement le déchargement (si exclusion des taxes type TVA, le préciser clairement)',1);

--
-- 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=12 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),(8,'SRC_WOM','Word of mouth',1,NULL),(9,'SRC_PARTNER','Partner',1,NULL),(10,'SRC_EMPLOYEE','Employee',1,NULL),(11,'SRC_SPONSORING','Sponsorship',1,NULL);

--
-- Table structure for table `llx_c_lead_status`
--

CREATE TABLE `llx_c_lead_status` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(10) default NULL,
  `label` varchar(50) default NULL,
  `position` int(11) default NULL,
  `percent` double(5,2) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_lead_status_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_lead_status`
--

INSERT INTO `llx_c_lead_status` (`rowid`, `code`, `label`, `position`, `percent`, `active`) VALUES (1,'PROSP','Prospection',10,0.00,1),(2,'QUAL','Qualification',20,20.00,1),(3,'PROPO','Proposal',30,40.00,1),(4,'NEGO','Negotiation',40,60.00,1),(5,'PENDING','Pending',50,50.00,0),(6,'WON','Won',60,100.00,1),(7,'LOST','Lost',70,0.00,1);

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

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

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

INSERT INTO `llx_c_paiement` (`id`, `code`, `libelle`, `type`, `active`, `accountancy_code`, `module`) VALUES (0,'','-',3,1,NULL,NULL),(1,'TIP','TIP',2,0,NULL,NULL),(2,'VIR','Virement',2,1,NULL,NULL),(3,'PRE','Prélèvement',2,1,NULL,NULL),(4,'LIQ','Espèces',2,1,NULL,NULL),(6,'CB','Carte Bancaire',2,1,NULL,NULL),(7,'CHQ','Chèque',2,1,NULL,NULL),(50,'VAD','Paiement en ligne',2,0,NULL,NULL),(51,'TRA','Traite',2,0,NULL,NULL),(52,'LCR','LCR',2,0,NULL,NULL),(53,'FAC','Factor',2,0,NULL,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 de facture','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),(6,'PT_ORDER',6,1,'A réception de commande','A réception de commande',0,0,NULL,NULL),(7,'PT_DELIVERY',7,1,'Livraison','Règlement à la livraison',0,0,NULL,NULL),(8,'PT_5050',8,1,'50 et 50','Règlement 50% à la commande, 50% à la livraison depart usine',0,0,NULL,NULL);

--
-- Table structure for table `llx_c_price_expression`
--

CREATE TABLE `llx_c_price_expression` (
  `rowid` int(11) NOT NULL auto_increment,
  `title` varchar(20) NOT NULL,
  `expression` varchar(80) NOT NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_price_expression`
--


--
-- Table structure for table `llx_c_price_global_variable`
--

CREATE TABLE `llx_c_price_global_variable` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(20) NOT NULL,
  `description` text,
  `value` double(24,8) default '0.00000000',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_price_global_variable`
--


--
-- Table structure for table `llx_c_price_global_variable_updater`
--

CREATE TABLE `llx_c_price_global_variable_updater` (
  `rowid` int(11) NOT NULL auto_increment,
  `type` int(11) NOT NULL,
  `description` text,
  `parameters` text,
  `fk_variable` int(11) NOT NULL,
  `update_interval` int(11) default '0',
  `next_update` int(11) default '0',
  `last_status` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_price_global_variable_updater`
--


--
-- 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 `uk_c_propalst` (`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(100) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_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_country` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=186 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),(2,1,1,'97105',3,'Guadeloupe',1),(3,2,1,'97209',3,'Martinique',1),(4,3,1,'97302',3,'Guyane',1),(5,4,1,'97411',3,'Réunion',1),(6,6,1,'97601',3,'Mayotte',1),(7,11,1,'75056',1,'Île-de-France',1),(8,21,1,'51108',0,'Champagne-Ardenne',1),(9,22,1,'80021',0,'Picardie',1),(10,23,1,'76540',0,'Haute-Normandie',1),(11,24,1,'45234',2,'Centre',1),(12,25,1,'14118',0,'Basse-Normandie',1),(13,26,1,'21231',0,'Bourgogne',1),(14,31,1,'59350',2,'Nord-Pas-de-Calais',1),(15,41,1,'57463',0,'Lorraine',1),(16,42,1,'67482',1,'Alsace',1),(17,43,1,'25056',0,'Franche-Comté',1),(18,52,1,'44109',4,'Pays de la Loire',1),(19,53,1,'35238',0,'Bretagne',1),(20,54,1,'86194',2,'Poitou-Charentes',1),(21,72,1,'33063',1,'Aquitaine',1),(22,73,1,'31555',0,'Midi-Pyrénées',1),(23,74,1,'87085',2,'Limousin',1),(24,82,1,'69123',2,'Rhône-Alpes',1),(25,83,1,'63113',1,'Auvergne',1),(26,91,1,'34172',2,'Languedoc-Roussillon',1),(27,93,1,'13055',0,'Provence-Alpes-Côte d\'Azur',1),(28,94,1,'2A004',0,'Corse',1),(29,201,2,'',1,'Flandre',1),(30,202,2,'',2,'Wallonie',1),(31,203,2,'',3,'Bruxelles-Capitale',1),(32,301,3,NULL,1,'Abruzzo',1),(33,302,3,NULL,1,'Basilicata',1),(34,303,3,NULL,1,'Calabria',1),(35,304,3,NULL,1,'Campania',1),(36,305,3,NULL,1,'Emilia-Romagna',1),(37,306,3,NULL,1,'Friuli-Venezia Giulia',1),(38,307,3,NULL,1,'Lazio',1),(39,308,3,NULL,1,'Liguria',1),(40,309,3,NULL,1,'Lombardia',1),(41,310,3,NULL,1,'Marche',1),(42,311,3,NULL,1,'Molise',1),(43,312,3,NULL,1,'Piemonte',1),(44,313,3,NULL,1,'Puglia',1),(45,314,3,NULL,1,'Sardegna',1),(46,315,3,NULL,1,'Sicilia',1),(47,316,3,NULL,1,'Toscana',1),(48,317,3,NULL,1,'Trentino-Alto Adige',1),(49,318,3,NULL,1,'Umbria',1),(50,319,3,NULL,1,'Valle d Aosta',1),(51,320,3,NULL,1,'Veneto',1),(52,401,4,'',0,'Andalucia',1),(53,402,4,'',0,'Aragón',1),(54,403,4,'',0,'Castilla y León',1),(55,404,4,'',0,'Castilla la Mancha',1),(56,405,4,'',0,'Canarias',1),(57,406,4,'',0,'Cataluña',1),(58,407,4,'',0,'Comunidad de Ceuta',1),(59,408,4,'',0,'Comunidad Foral de Navarra',1),(60,409,4,'',0,'Comunidad de Melilla',1),(61,410,4,'',0,'Cantabria',1),(62,411,4,'',0,'Comunidad Valenciana',1),(63,412,4,'',0,'Extemadura',1),(64,413,4,'',0,'Galicia',1),(65,414,4,'',0,'Islas Baleares',1),(66,415,4,'',0,'La Rioja',1),(67,416,4,'',0,'Comunidad de Madrid',1),(68,417,4,'',0,'Región de Murcia',1),(69,418,4,'',0,'Principado de Asturias',1),(70,419,4,'',0,'Pais Vasco',1),(71,420,4,'',0,'Otros',1),(72,501,5,'',0,'Deutschland',1),(73,10201,102,NULL,NULL,'Αττική',1),(74,10202,102,NULL,NULL,'Στερεά Ελλάδα',1),(75,10203,102,NULL,NULL,'Κεντρική Μακεδονία',1),(76,10204,102,NULL,NULL,'Κρήτη',1),(77,10205,102,NULL,NULL,'Ανατολική Μακεδονία και Θράκη',1),(78,10206,102,NULL,NULL,'Ήπειρος',1),(79,10207,102,NULL,NULL,'Ιόνια νησιά',1),(80,10208,102,NULL,NULL,'Βόρειο Αιγαίο',1),(81,10209,102,NULL,NULL,'Πελοπόννησος',1),(82,10210,102,NULL,NULL,'Νότιο Αιγαίο',1),(83,10211,102,NULL,NULL,'Δυτική Ελλάδα',1),(84,10212,102,NULL,NULL,'Θεσσαλία',1),(85,10213,102,NULL,NULL,'Δυτική Μακεδονία',1),(86,601,6,'',1,'Cantons',1),(87,701,7,'',0,'England',1),(88,702,7,'',0,'Wales',1),(89,703,7,'',0,'Scotland',1),(90,704,7,'',0,'Northern Ireland',1),(91,1001,10,'',0,'Ariana',1),(92,1002,10,'',0,'Béja',1),(93,1003,10,'',0,'Ben Arous',1),(94,1004,10,'',0,'Bizerte',1),(95,1005,10,'',0,'Gabès',1),(96,1006,10,'',0,'Gafsa',1),(97,1007,10,'',0,'Jendouba',1),(98,1008,10,'',0,'Kairouan',1),(99,1009,10,'',0,'Kasserine',1),(100,1010,10,'',0,'Kébili',1),(101,1011,10,'',0,'La Manouba',1),(102,1012,10,'',0,'Le Kef',1),(103,1013,10,'',0,'Mahdia',1),(104,1014,10,'',0,'Médenine',1),(105,1015,10,'',0,'Monastir',1),(106,1016,10,'',0,'Nabeul',1),(107,1017,10,'',0,'Sfax',1),(108,1018,10,'',0,'Sidi Bouzid',1),(109,1019,10,'',0,'Siliana',1),(110,1020,10,'',0,'Sousse',1),(111,1021,10,'',0,'Tataouine',1),(112,1022,10,'',0,'Tozeur',1),(113,1023,10,'',0,'Tunis',1),(114,1024,10,'',0,'Zaghouan',1),(115,1101,11,'',0,'United-States',1),(116,1401,14,'',0,'Canada',1),(117,1701,17,'',0,'Provincies van Nederland ',1),(118,2301,23,'',0,'Norte',1),(119,2302,23,'',0,'Litoral',1),(120,2303,23,'',0,'Cuyana',1),(121,2304,23,'',0,'Central',1),(122,2305,23,'',0,'Patagonia',1),(123,2801,28,'',0,'Australia',1),(124,5601,56,'',0,'Brasil',1),(125,7001,70,'',0,'Colombie',1),(126,6701,67,NULL,NULL,'Tarapacá',1),(127,6702,67,NULL,NULL,'Antofagasta',1),(128,6703,67,NULL,NULL,'Atacama',1),(129,6704,67,NULL,NULL,'Coquimbo',1),(130,6705,67,NULL,NULL,'Valparaíso',1),(131,6706,67,NULL,NULL,'General Bernardo O Higgins',1),(132,6707,67,NULL,NULL,'Maule',1),(133,6708,67,NULL,NULL,'Biobío',1),(134,6709,67,NULL,NULL,'Raucanía',1),(135,6710,67,NULL,NULL,'Los Lagos',1),(136,6711,67,NULL,NULL,'Aysén General Carlos Ibáñez del Campo',1),(137,6712,67,NULL,NULL,'Magallanes y Antártica Chilena',1),(138,6713,67,NULL,NULL,'Metropolitana de Santiago',1),(139,6714,67,NULL,NULL,'Los Ríos',1),(140,6715,67,NULL,NULL,'Arica y Parinacota',1),(141,8601,86,NULL,NULL,'Central',1),(142,8602,86,NULL,NULL,'Oriental',1),(143,8603,86,NULL,NULL,'Occidental',1),(144,11401,114,'',0,'Honduras',1),(145,11701,117,'',0,'India',1),(146,15201,152,'',0,'Rivière Noire',1),(147,15202,152,'',0,'Flacq',1),(148,15203,152,'',0,'Grand Port',1),(149,15204,152,'',0,'Moka',1),(150,15205,152,'',0,'Pamplemousses',1),(151,15206,152,'',0,'Plaines Wilhems',1),(152,15207,152,'',0,'Port-Louis',1),(153,15208,152,'',0,'Rivière du Rempart',1),(154,15209,152,'',0,'Savanne',1),(155,15210,152,'',0,'Rodrigues',1),(156,15211,152,'',0,'Les îles Agaléga',1),(157,15212,152,'',0,'Les écueils des Cargados Carajos',1),(158,15401,154,'',0,'Mexique',1),(159,4601,46,'',0,'Barbados',1),(160,23201,232,'',0,'Los Andes',1),(161,23202,232,'',0,'Capital',1),(162,23203,232,'',0,'Central',1),(163,23204,232,'',0,'Cento Occidental',1),(164,23205,232,'',0,'Guayana',1),(165,23206,232,'',0,'Insular',1),(166,23207,232,'',0,'Los Llanos',1),(167,23208,232,'',0,'Nor-Oriental',1),(168,23209,232,'',0,'Zuliana',1),(169,1301,13,'',0,'Algerie',1),(170,1201,12,'',0,'Tanger-Tétouan',1),(171,1202,12,'',0,'Gharb-Chrarda-Beni Hssen',1),(172,1203,12,'',0,'Taza-Al Hoceima-Taounate',1),(173,1204,12,'',0,'L\'Oriental',1),(174,1205,12,'',0,'Fès-Boulemane',1),(175,1206,12,'',0,'Meknès-Tafialet',1),(176,1207,12,'',0,'Rabat-Salé-Zemour-Zaër',1),(177,1208,12,'',0,'Grand Cassablanca',1),(178,1209,12,'',0,'Chaouia-Ouardigha',1),(179,1210,12,'',0,'Doukahla-Adba',1),(180,1211,12,'',0,'Marrakech-Tensift-Al Haouz',1),(181,1212,12,'',0,'Tadla-Azilal',1),(182,1213,12,'',0,'Sous-Massa-Drâa',1),(183,1214,12,'',0,'Guelmim-Es Smara',1),(184,1215,12,'',0,'Laâyoune-Boujdour-Sakia el Hamra',1),(185,1216,12,'',0,'Oued Ed-Dahab Lagouira',1);

--
-- Table structure for table `llx_c_revenuestamp`
--

CREATE TABLE `llx_c_revenuestamp` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `note` varchar(128) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `accountancy_code_sell` varchar(32) default NULL,
  `accountancy_code_buy` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_revenuestamp`
--

INSERT INTO `llx_c_revenuestamp` (`rowid`, `fk_pays`, `taux`, `note`, `active`, `accountancy_code_sell`, `accountancy_code_buy`) VALUES (101,10,0.4,'Revenue stamp tunisia',1,NULL,NULL);

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

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

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

INSERT INTO `llx_c_shipment_mode` (`rowid`, `tms`, `code`, `libelle`, `description`, `tracking`, `active`, `module`) VALUES (1,'2016-01-08 18:25:33','CATCH','Catch','Catch by client','',1,NULL),(2,'2016-01-08 18:25:33','TRANS','Transporter','Generic transporter','',1,NULL),(3,'2016-01-08 18:25:33','COLSUI','Colissimo Suivi','Colissimo Suivi','http://www.colissimo.fr/portail_colissimo/suivre.do?colispart={TRACKID}',0,NULL),(4,'2016-01-08 18:25:33','LETTREMAX','Lettre Max','Courrier Suivi et Lettre Max','',0,NULL),(5,'2016-01-08 18:25:33','UPS','UPS','United Parcel Service','http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber2=&InquiryNumber3=&tracknums_displayed=3&loc=fr_FR&TypeOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumber22=&InquiryNumber32=&track=Track&Suivi.x=64&Suivi.y=7&Suivi=Valider&InquiryNumber1={TRACKID}',0,NULL),(6,'2016-01-08 18:25:33','KIALA','KIALA','Relais Kiala','http://www.kiala.fr/tnt/delivery/{TRACKID}',0,NULL),(7,'2016-01-08 18:25:33','GLS','GLS','General Logistics Systems','https://gls-group.eu/FR/fr/suivi-colis?match={TRACKID}',0,NULL),(8,'2016-01-08 18:25:33','CHRONO','Chronopost','Chronopost','http://www.chronopost.fr/expedier/inputLTNumbersNoJahia.do?listeNumeros={TRACKID}',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,
  `picto` varchar(128) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `uk_c_stcomm` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_c_stcomm` (`id`, `code`, `libelle`, `picto`, `active`) VALUES (-1,'ST_NO','Do not contact',NULL,1),(0,'ST_NEVER','Never contacted',NULL,1),(1,'ST_TODO','To contact',NULL,1),(2,'ST_PEND','Contact in progress',NULL,1),(3,'ST_DONE','Contacted',NULL,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` varchar(20) NOT NULL default '0',
  `localtax1_type` varchar(10) NOT NULL default '0',
  `localtax2` varchar(20) NOT NULL default '0',
  `localtax2_type` varchar(10) 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_sell` varchar(32) default NULL,
  `accountancy_code_buy` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`taux`,`recuperableonly`)
) ENGINE=InnoDB AUTO_INCREMENT=2469 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_c_tva` (`rowid`, `fk_pays`, `taux`, `localtax1`, `localtax1_type`, `localtax2`, `localtax2_type`, `recuperableonly`, `note`, `active`, `accountancy_code_sell`, `accountancy_code_buy`) VALUES (11,1,20,'0','0','0','0',0,'VAT standard rate (France hors DOM-TOM)',1,NULL,NULL),(12,1,8.5,'0','0','0','0',0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL,NULL),(13,1,8.5,'0','0','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,NULL),(14,1,5.5,'0','0','0','0',0,'VAT reduced rate (France hors DOM-TOM)',1,NULL,NULL),(15,1,0,'0','0','0','0',0,'VAT Rate 0 ou non applicable',1,NULL,NULL),(16,1,2.1,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(17,1,10,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(21,2,21,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(22,2,6,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(23,2,0,'0','0','0','0',0,'VAT Rate 0 ou non applicable',1,NULL,NULL),(24,2,12,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(31,3,21,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(32,3,10,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(33,3,4,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(34,3,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(41,4,21,'5.2','3','-19:-15:-9','5',0,'VAT standard rate',1,NULL,NULL),(42,4,10,'1.4','3','-19:-15:-9','5',0,'VAT reduced rate',1,NULL,NULL),(43,4,4,'0.5','3','-19:-15:-9','5',0,'VAT super-reduced rate',1,NULL,NULL),(44,4,0,'0','3','-19:-15:-9','5',0,'VAT Rate 0',1,NULL,NULL),(51,5,19,'0','0','0','0',0,'allgemeine Ust.',1,NULL,NULL),(52,5,7,'0','0','0','0',0,'ermäßigte USt.',1,NULL,NULL),(53,5,0,'0','0','0','0',0,'keine USt.',1,NULL,NULL),(54,5,5.5,'0','0','0','0',0,'USt. Forst',0,NULL,NULL),(55,5,10.7,'0','0','0','0',0,'USt. Landwirtschaft',0,NULL,NULL),(61,6,8,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(62,6,3.8,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(63,6,2.5,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(64,6,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(71,7,20,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(72,7,17.5,'0','0','0','0',0,'VAT standard rate before 2011',1,NULL,NULL),(73,7,5,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(74,7,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(81,8,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(82,8,23,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(83,8,13.5,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(84,8,9,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(85,8,4.8,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(91,9,17,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(92,9,13,'0','0','0','0',0,'VAT reduced rate 0',1,NULL,NULL),(93,9,3,'0','0','0','0',0,'VAT super reduced rate 0',1,NULL,NULL),(94,9,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(101,10,6,'1','4','0','0',0,'VAT 6%',1,NULL,NULL),(102,10,12,'1','4','0','0',0,'VAT 12%',1,NULL,NULL),(103,10,18,'1','4','0','0',0,'VAT 18%',1,NULL,NULL),(104,10,7.5,'1','4','0','0',0,'VAT 6% Majoré à 25% (7.5%)',1,NULL,NULL),(105,10,15,'1','4','0','0',0,'VAT 12% Majoré à 25% (15%)',1,NULL,NULL),(106,10,22.5,'1','4','0','0',0,'VAT 18% Majoré à 25% (22.5%)',1,NULL,NULL),(107,10,0,'1','4','0','0',0,'VAT Rate 0',1,NULL,NULL),(111,11,0,'0','0','0','0',0,'No Sales Tax',1,NULL,NULL),(112,11,4,'0','0','0','0',0,'Sales Tax 4%',1,NULL,NULL),(113,11,6,'0','0','0','0',0,'Sales Tax 6%',1,NULL,NULL),(121,12,20,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(122,12,14,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(123,12,10,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(124,12,7,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(125,12,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(141,14,7,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(142,14,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(143,14,5,'9.975','1','0','0',0,'GST/TPS and PST/TVQ rate for Province',1,NULL,NULL),(171,17,19,'0','0','0','0',0,'Algemeen BTW tarief',1,NULL,NULL),(172,17,6,'0','0','0','0',0,'Verlaagd BTW tarief',1,NULL,NULL),(173,17,0,'0','0','0','0',0,'0 BTW tarief',1,NULL,NULL),(174,17,21,'0','0','0','0',0,'Algemeen BTW tarief (vanaf 1 oktober 2012)',0,NULL,NULL),(201,20,25,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(202,20,12,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(203,20,6,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(204,20,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(211,21,0,'0','0','0','0',0,'IVA Rate 0',1,NULL,NULL),(212,21,18,'7.5','2','0','0',0,'IVA standard rate',1,NULL,NULL),(221,22,18,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(222,22,10,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(223,22,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(231,23,21,'0','0','0','0',0,'IVA standard rate',1,NULL,NULL),(232,23,10.5,'0','0','0','0',0,'IVA reduced rate',1,NULL,NULL),(233,23,0,'0','0','0','0',0,'IVA Rate 0',1,NULL,NULL),(241,24,19.25,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(242,24,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(251,25,23,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(252,25,13,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(253,25,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(254,25,6,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(261,26,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(271,27,19.6,'0','0','0','0',0,'VAT standard rate (France hors DOM-TOM)',1,NULL,NULL),(272,27,8.5,'0','0','0','0',0,'VAT standard rate (DOM sauf Guyane et Saint-Martin)',0,NULL,NULL),(273,27,8.5,'0','0','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,NULL),(274,27,5.5,'0','0','0','0',0,'VAT reduced rate (France hors DOM-TOM)',0,NULL,NULL),(275,27,0,'0','0','0','0',0,'VAT Rate 0 ou non applicable',1,NULL,NULL),(276,27,2.1,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(277,27,7,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(281,28,10,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(282,28,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(411,41,20,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(412,41,10,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(413,41,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(461,46,0,'0','0','0','0',0,'No VAT',1,NULL,NULL),(462,46,15,'0','0','0','0',0,'VAT 15%',1,NULL,NULL),(463,46,7.5,'0','0','0','0',0,'VAT 7.5%',1,NULL,NULL),(561,56,0,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(591,59,20,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(592,59,7,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(593,59,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(671,67,19,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(672,67,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(801,80,25,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(802,80,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(861,86,13,'0','0','0','0',0,'IVA 13',1,NULL,NULL),(862,86,0,'0','0','0','0',0,'SIN IVA',1,NULL,NULL),(1141,114,0,'0','0','0','0',0,'No ISV',1,NULL,NULL),(1142,114,12,'0','0','0','0',0,'ISV 12%',1,NULL,NULL),(1161,116,25.5,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1162,116,7,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1163,116,0,'0','0','0','0',0,'VAT rate 0',1,NULL,NULL),(1171,117,12.5,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1172,117,4,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1173,117,1,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(1174,117,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1231,123,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1232,123,5,'0','0','0','0',0,'VAT Rate 5',1,NULL,NULL),(1401,140,15,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1402,140,12,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1403,140,6,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1404,140,3,'0','0','0','0',0,'VAT super-reduced rate',1,NULL,NULL),(1405,140,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1511,151,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1512,151,14,'0','0','0','0',0,'VAT Rate 14',1,NULL,NULL),(1521,152,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1522,152,15,'0','0','0','0',0,'VAT Rate 15',1,NULL,NULL),(1541,154,0,'0','0','0','0',0,'No VAT',1,NULL,NULL),(1542,154,16,'0','0','0','0',0,'VAT 16%',1,NULL,NULL),(1543,154,10,'0','0','0','0',0,'VAT Frontero',1,NULL,NULL),(1662,166,15,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1663,166,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1692,169,5,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1693,169,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1731,173,25,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1732,173,14,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1733,173,8,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1734,173,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1811,181,18,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1812,181,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1841,184,20,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1842,184,7,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1843,184,3,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1844,184,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1881,188,24,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(1882,188,9,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1883,188,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(1884,188,5,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(1931,193,0,'0','0','0','0',0,'No VAT in SPM',1,NULL,NULL),(2011,201,19,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(2012,201,10,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(2013,201,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(2021,202,22,'0','0','0','0',0,'VAT standard rate',1,NULL,NULL),(2022,202,9.5,'0','0','0','0',0,'VAT reduced rate',1,NULL,NULL),(2023,202,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(2051,205,0,'0','0','0','0',0,'No VAT',1,NULL,NULL),(2052,205,14,'0','0','0','0',0,'VAT 14%',1,NULL,NULL),(2131,213,5,'0','0','0','0',0,'VAT 5%',1,NULL,NULL),(2261,226,20,'0','0','0','0',0,'VAT standart rate',1,NULL,NULL),(2262,226,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(2321,232,0,'0','0','0','0',0,'No VAT',1,NULL,NULL),(2322,232,12,'0','0','0','0',0,'VAT 12%',1,NULL,NULL),(2323,232,8,'0','0','0','0',0,'VAT 8%',1,NULL,NULL),(2461,246,0,'0','0','0','0',0,'VAT Rate 0',1,NULL,NULL),(2462,102,23,'0','0','0','0',0,'Κανονικός Φ.Π.Α.',1,NULL,NULL),(2463,102,0,'0','0','0','0',0,'Μηδενικό Φ.Π.Α.',1,NULL,NULL),(2464,102,13,'0','0','0','0',0,'Μειωμένος Φ.Π.Α.',1,NULL,NULL),(2465,102,6.5,'0','0','0','0',0,'Υπερμειωμένος Φ.Π.Α.',1,NULL,NULL),(2466,102,16,'0','0','0','0',0,'Νήσων κανονικός Φ.Π.Α.',1,NULL,NULL),(2467,102,9,'0','0','0','0',0,'Νήσων μειωμένος Φ.Π.Α.',1,NULL,NULL),(2468,102,5,'0','0','0','0',0,'Νήσων υπερμειωμένος Φ.Π.Α.',1,NULL,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(32) NOT NULL,
  `libelle` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_type_contact_id` (`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),(80,'agenda','internal','ACTOR','Responsable',1,NULL),(81,'agenda','internal','GUEST','Guest',1,NULL),(85,'agenda','external','ACTOR','Responsable',1,NULL),(86,'agenda','external','GUEST','Guest',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','PROJECTCONTRIBUTOR','Intervenant',1,NULL),(170,'project','external','PROJECTLEADER','Chef de Projet',1,NULL),(171,'project','external','PROJECTCONTRIBUTOR','Intervenant',1,NULL),(180,'project_task','internal','TASKEXECUTIVE','Responsable',1,NULL),(181,'project_task','internal','TASKCONTRIBUTOR','Intervenant',1,NULL),(190,'project_task','external','TASKEXECUTIVE','Responsable',1,NULL),(191,'project_task','external','TASKCONTRIBUTOR','Intervenant',1,NULL),(230,'stock','internal','WAREHOUSERESP','Responsable Entrepot',1,NULL),(231,'stock','internal','FACTORYRESP','Responsable Production',1,NULL),(232,'stock','internal','INTERVENING','Intervenant',1,NULL),(240,'stock','external','WAREHOUSERESP','Responsable Entrepot',1,NULL),(241,'stock','external','FACTORYRESP','Responsable Production',1,NULL),(242,'stock','exterrna','INTERVENING','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,
  `label` varchar(30) default NULL,
  `accountancy_code` varchar(32) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `uk_c_type_fees` (`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`, `label`, `accountancy_code`, `active`, `module`) VALUES (1,'TF_OTHER','Other',NULL,1,NULL),(2,'TF_TRIP','Transportation',NULL,1,NULL),(3,'TF_LUNCH','Lunch',NULL,1,NULL);

--
-- Table structure for table `llx_c_type_resource`
--

CREATE TABLE `llx_c_type_resource` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(32) NOT NULL,
  `label` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_type_resource`
--


--
-- 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,
  `fk_country` int(11) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  `module` varchar(32) default NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `uk_c_typent` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_c_typent` (`id`, `code`, `libelle`, `fk_country`, `active`, `module`) VALUES (0,'TE_UNKNOWN','-',NULL,1,NULL),(1,'TE_STARTUP','Start-up',NULL,0,NULL),(2,'TE_GROUP','Grand groupe',NULL,1,NULL),(3,'TE_MEDIUM','PME/PMI',NULL,1,NULL),(4,'TE_SMALL','TPE',NULL,1,NULL),(5,'TE_ADMIN','Administration',NULL,1,NULL),(6,'TE_WHOLE','Grossiste',NULL,0,NULL),(7,'TE_RETAIL','Revendeur',NULL,0,NULL),(8,'TE_PRIVATE','Particulier',NULL,1,NULL),(100,'TE_OTHER','Autres',NULL,1,NULL),(231,'TE_A_RI','Responsable Inscripto',23,0,NULL),(232,'TE_B_RNI','Responsable No Inscripto',23,0,NULL),(233,'TE_C_FE','Consumidor Final/Exento',23,0,NULL);

--
-- Table structure for table `llx_c_units`
--

CREATE TABLE `llx_c_units` (
  `rowid` int(11) NOT NULL auto_increment,
  `code` varchar(3) default NULL,
  `label` varchar(50) default NULL,
  `short_label` varchar(5) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_c_units_code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_c_units`
--

INSERT INTO `llx_c_units` (`rowid`, `code`, `label`, `short_label`, `active`) VALUES (1,'P','piece','p',1),(2,'SET','set','se',1),(3,'S','second','s',1),(4,'H','hour','h',1),(5,'D','day','d',1),(6,'KG','kilogram','kg',1),(7,'G','gram','g',1),(8,'M','meter','m',1),(9,'LM','linear meter','lm',1),(10,'M2','square meter','m2',1),(11,'M3','cubic meter','m3',1),(12,'L','liter','l',1);

--
-- 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_country` (`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,
  `entity` int(11) NOT NULL default '1',
  `fk_parent` int(11) NOT NULL default '0',
  `label` varchar(255) NOT NULL,
  `type` tinyint(4) 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` (`entity`,`fk_parent`,`label`,`type`),
  KEY `idx_categorie_type` (`type`),
  KEY `idx_categorie_label` (`label`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_categorie` (`rowid`, `entity`, `fk_parent`, `label`, `type`, `description`, `fk_soc`, `visible`, `import_key`) VALUES (1,1,0,'PORTE ET PORTAIL',0,'',NULL,0,NULL),(2,1,0,'MOTORISATION',0,'',NULL,0,NULL),(4,1,0,'Construction Métallique',0,'',NULL,0,NULL),(5,1,0,'control d\'accès',0,'',NULL,0,NULL),(6,1,0,'Energie solaire',0,'',NULL,0,NULL),(7,1,0,'Métallurgie',0,'',NULL,0,NULL),(8,1,0,'Quincaillerie',0,'',NULL,0,NULL),(9,1,0,'service après vente',0,'',NULL,0,NULL);

--
-- Table structure for table `llx_categorie_contact`
--

CREATE TABLE `llx_categorie_contact` (
  `fk_categorie` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`fk_categorie`,`fk_socpeople`),
  KEY `idx_categorie_contact_fk_categorie` (`fk_categorie`),
  KEY `idx_categorie_contact_fk_socpeople` (`fk_socpeople`),
  CONSTRAINT `fk_categorie_contact_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `llx_socpeople` (`rowid`),
  CONSTRAINT `fk_categorie_contact_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie_contact`
--


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

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

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


--
-- Table structure for table `llx_categorie_lang`
--

CREATE TABLE `llx_categorie_lang` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_category` int(11) NOT NULL default '0',
  `lang` varchar(5) NOT NULL default '0',
  `label` varchar(255) NOT NULL,
  `description` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_category_lang` (`fk_category`,`lang`),
  CONSTRAINT `fk_category_lang_fk_category` FOREIGN KEY (`fk_category`) REFERENCES `llx_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categorie_lang`
--


--
-- 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_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `llx_adherent` (`rowid`),
  CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`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,
  `import_key` varchar(14) default 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_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_categorie_product` (`fk_categorie`, `fk_product`, `import_key`) VALUES (1,1,NULL),(1,2,NULL),(1,3,NULL),(1,4,NULL),(1,5,NULL),(1,6,NULL),(1,7,NULL),(1,173,NULL),(2,13,NULL),(2,94,NULL),(2,95,NULL),(2,96,NULL),(2,169,NULL),(2,170,NULL),(2,171,NULL),(2,172,NULL),(4,14,NULL),(4,15,NULL),(4,16,NULL),(4,17,NULL),(4,174,NULL),(4,175,NULL),(4,176,NULL),(8,9,NULL),(8,12,NULL);

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

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

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


--
-- Table structure for table `llx_categories_extrafields`
--

CREATE TABLE `llx_categories_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_categories_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_categories_extrafields`
--


--
-- 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_modif` 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_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `facture` tinyint(4) default '0',
  `fk_account` int(11) default NULL,
  `fk_currency` varchar(3) default NULL,
  `fk_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `date_livraison` date default NULL,
  `fk_shipping_method` int(11) default NULL,
  `fk_availability` int(11) default NULL,
  `fk_input_reason` int(11) default NULL,
  `fk_delivery_address` int(11) default NULL,
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` varchar(255) 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_extrafields`
--

CREATE TABLE `llx_commande_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,
  `profilalpiroc` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_commande_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande_extrafields`
--


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

CREATE TABLE `llx_commande_fournisseur` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(64) default NULL,
  `ref_supplier` varchar(255) 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_approve` datetime default NULL,
  `date_approve2` datetime default NULL,
  `date_commande` date default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_user_approve` int(11) default NULL,
  `fk_user_approve2` 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_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `date_livraison` datetime default NULL,
  `fk_account` int(11) default NULL,
  `fk_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `fk_input_method` int(11) default '0',
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` varchar(255) default NULL,
  `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,
  `fk_commandefourndet` int(11) default NULL,
  `qty` float default NULL,
  `fk_entrepot` int(11) default NULL,
  `fk_user` int(11) default NULL,
  `comment` varchar(255) default NULL,
  `batch` varchar(30) default NULL,
  `eatby` date default NULL,
  `sellby` date default NULL,
  `status` int(11) default NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  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_extrafields`
--

CREATE TABLE `llx_commande_fournisseur_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_commande_fournisseur_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande_fournisseur_extrafields`
--


--
-- 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_parent_line` int(11) default 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',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `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',
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  `import_key` varchar(14) default NULL,
  `fk_unit` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `fk_commande_fournisseurdet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_commande_fournisseurdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_commande_fournisseurdet_extrafields`
--

CREATE TABLE `llx_commande_fournisseurdet_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_commande_fournisseurdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commande_fournisseurdet_extrafields`
--


--
-- 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,
  `label` varchar(255) default NULL,
  `description` text,
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default '0.000',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) 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',
  `buy_price_ht` double(24,8) default '0.00000000',
  `fk_product_fournisseur_price` int(11) default NULL,
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  `fk_unit` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_commandedet_fk_commande` (`fk_commande`),
  KEY `idx_commandedet_fk_product` (`fk_product`),
  KEY `fk_commandedet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `llx_commande` (`rowid`),
  CONSTRAINT `fk_commandedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_commandedet_extrafields`
--

CREATE TABLE `llx_commandedet_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,
  `titrealpiroc` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_commandedet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_commandedet_extrafields`
--


--
-- 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=449 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','2016-01-08 18:25:34'),(3,'MAILING_LIMIT_SENDBYWEB',0,'25','chaine',1,'Number of targets to defined packet size when sending mass email','2016-01-08 18:25:34'),(4,'SYSLOG_HANDLERS',0,'[\"mod_syslog_file\"]','chaine',0,'Which logger to use','2016-01-08 18:25:34'),(5,'SYSLOG_FILE',0,'DOL_DATA_ROOT/dolibarr.log','chaine',0,'Directory where to write log file','2016-01-08 18:25:34'),(6,'SYSLOG_LEVEL',0,'7','chaine',0,'Level of debug info to show','2016-01-08 18:25:34'),(7,'MAIN_UPLOAD_DOC',0,'2048','chaine',0,'Max size for file upload (0 means no upload allowed)','2016-01-08 18:25:34'),(12,'MAIN_SIZE_LISTE_LIMIT',0,'25','chaine',0,'Longueur maximum des listes','2016-01-08 18:25:34'),(13,'MAIN_SHOW_WORKBOARD',0,'1','yesno',0,'Affichage tableau de bord de travail Dolibarr','2016-01-08 18:25:34'),(14,'MAIN_MENU_STANDARD',1,'eldy_menu.php','chaine',0,'Menu manager for internal users','2016-01-08 18:25:34'),(15,'MAIN_MENUFRONT_STANDARD',1,'eldy_menu.php','chaine',0,'Menu manager for external users','2016-01-08 18:25:34'),(16,'MAIN_MENU_SMARTPHONE',1,'eldy_menu.php','chaine',0,'Menu manager for internal users using smartphones','2016-01-08 18:25:34'),(17,'MAIN_MENUFRONT_SMARTPHONE',1,'eldy_menu.php','chaine',0,'Menu manager for external users using smartphones','2016-01-08 18:25:34'),(18,'MAIN_DELAY_ACTIONS_TODO',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur actions planifiées non réalisées','2016-01-08 18:25:34'),(19,'MAIN_DELAY_ORDERS_TO_PROCESS',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes clients non traitées','2016-01-08 18:25:34'),(20,'MAIN_DELAY_SUPPLIER_ORDERS_TO_PROCESS',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur commandes fournisseurs non traitées','2016-01-08 18:25:34'),(21,'MAIN_DELAY_PROPALS_TO_CLOSE',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales à cloturer','2016-01-08 18:25:34'),(22,'MAIN_DELAY_PROPALS_TO_BILL',1,'7','chaine',0,'Tolérance de retard avant alerte (en jours) sur propales non facturées','2016-01-08 18:25:34'),(23,'MAIN_DELAY_CUSTOMER_BILLS_UNPAYED',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures client impayées','2016-01-08 18:25:34'),(24,'MAIN_DELAY_SUPPLIER_BILLS_TO_PAY',1,'2','chaine',0,'Tolérance de retard avant alerte (en jours) sur factures fournisseur impayées','2016-01-08 18:25:34'),(25,'MAIN_DELAY_NOT_ACTIVATED_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services à activer','2016-01-08 18:25:34'),(26,'MAIN_DELAY_RUNNING_SERVICES',1,'0','chaine',0,'Tolérance de retard avant alerte (en jours) sur services expirés','2016-01-08 18:25:34'),(27,'MAIN_DELAY_MEMBERS',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur cotisations adhérent en retard','2016-01-08 18:25:34'),(28,'MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE',1,'62','chaine',0,'Tolérance de retard avant alerte (en jours) sur rapprochements bancaires à faire','2016-01-08 18:25:34'),(29,'MAIN_DELAY_EXPENSEREPORTS_TO_PAY',1,'31','chaine',0,'Tolérance de retard avant alerte (en jours) sur les notes de frais impayées','2016-01-08 18:25:34'),(30,'MAIN_FIX_FOR_BUGGED_MTA',1,'1','chaine',1,'Set constant to fix email ending from PHP with some linux ike system','2016-01-08 18:25:34'),(31,'MAILING_EMAIL_FROM',1,'dolibarr@domain.com','chaine',0,'EMail emmetteur pour les envois d emailings','2016-01-08 18:25:34'),(32,'MAIN_MODULE_USER',0,'1',NULL,0,NULL,'2016-01-08 18:26:01'),(33,'MAIN_VERSION_LAST_INSTALL',0,'3.8.3','chaine',0,'Dolibarr version when install','2016-01-08 18:26:01'),(34,'MAIN_REMOVE_INSTALL_WARNING',0,'1','chaine',1,'Disable install warnings','2016-01-08 18:26:01'),(45,'MAIN_LANG_DEFAULT',1,'fr_FR','chaine',0,'','2016-01-08 19:06:29'),(46,'MAIN_MULTILANGS',1,'0','chaine',0,'','2016-01-08 19:06:29'),(47,'MAIN_SIZE_LISTE_LIMIT',1,'25','chaine',0,'','2016-01-08 19:06:29'),(48,'MAIN_DISABLE_JAVASCRIPT',1,'0','chaine',0,'','2016-01-08 19:06:29'),(49,'MAIN_BUTTON_HIDE_UNAUTHORIZED',1,'0','chaine',0,'','2016-01-08 19:06:29'),(50,'MAIN_START_WEEK',1,'1','chaine',0,'','2016-01-08 19:06:29'),(51,'MAIN_DEFAULT_WORKING_DAYS',1,'1-5','chaine',0,'','2016-01-08 19:06:29'),(52,'MAIN_DEFAULT_WORKING_HOURS',1,'9-18','chaine',0,'','2016-01-08 19:06:29'),(53,'MAIN_SHOW_LOGO',1,'1','chaine',0,'','2016-01-08 19:06:29'),(54,'MAIN_FIRSTNAME_NAME_POSITION',1,'0','chaine',0,'','2016-01-08 19:06:29'),(55,'MAIN_THEME',1,'eldy','chaine',0,'','2016-01-08 19:06:29'),(56,'MAIN_SEARCHFORM_CONTACT',1,'0','chaine',0,'','2016-01-08 19:06:29'),(57,'MAIN_SEARCHFORM_SOCIETE',1,'0','chaine',0,'','2016-01-08 19:06:29'),(58,'MAIN_SEARCHFORM_PRODUITSERVICE',1,'0','chaine',0,'','2016-01-08 19:06:29'),(59,'MAIN_SEARCHFORM_PRODUITSERVICE_SUPPLIER',1,'0','chaine',0,'','2016-01-08 19:06:29'),(60,'MAIN_SEARCHFORM_ADHERENT',1,'0','chaine',0,'','2016-01-08 19:06:29'),(61,'MAIN_SEARCHFORM_PROJECT',1,'0','chaine',0,'','2016-01-08 19:06:29'),(62,'MAIN_HELPCENTER_DISABLELINK',0,'0','chaine',0,'','2016-01-08 19:06:29'),(63,'MAIN_HELP_DISABLELINK',0,'0','chaine',0,'','2016-01-08 19:06:29'),(64,'MAIN_BUGTRACK_ENABLELINK',1,'0','chaine',0,'','2016-01-08 19:06:29'),(65,'THEME_ELDY_USE_HOVER',1,'1','chaine',0,'','2016-01-08 19:06:29'),(91,'MAIN_INFO_SOCIETE_COUNTRY',1,'10:TN:Tunisie','chaine',0,'','2016-01-08 19:12:28'),(92,'MAIN_INFO_SOCIETE_NOM',1,'METAPRO TUNISIE','chaine',0,'','2016-01-08 19:12:28'),(93,'MAIN_INFO_SOCIETE_ADDRESS',1,'Avenue salah ben youssef en face steg\r\nzone industrielle esouani','chaine',0,'','2016-01-08 19:12:29'),(94,'MAIN_INFO_SOCIETE_TOWN',1,'djerba','chaine',0,'','2016-01-08 19:12:29'),(95,'MAIN_INFO_SOCIETE_ZIP',1,'4180','chaine',0,'','2016-01-08 19:12:29'),(96,'MAIN_INFO_SOCIETE_STATE',1,'0','chaine',0,'','2016-01-08 19:12:29'),(97,'MAIN_MONNAIE',1,'TND','chaine',0,'','2016-01-08 19:12:29'),(98,'MAIN_INFO_SOCIETE_TEL',1,'00 216 75 623 480','chaine',0,'','2016-01-08 19:12:29'),(99,'MAIN_INFO_SOCIETE_FAX',1,'00 216 75 623 680','chaine',0,'','2016-01-08 19:12:29'),(100,'MAIN_INFO_SOCIETE_MAIL',1,'info@metapro.tn','chaine',0,'','2016-01-08 19:12:29'),(101,'MAIN_INFO_SOCIETE_WEB',1,'http://www.metapro-tunisie.com','chaine',0,'','2016-01-08 19:12:29'),(102,'MAIN_INFO_SOCIETE_LOGO',1,'Graphique 1.jpg','chaine',0,'','2016-01-08 19:12:29'),(103,'MAIN_INFO_SOCIETE_LOGO_SMALL',1,'Graphique 1_small.jpg','chaine',0,'','2016-01-08 19:12:29'),(104,'MAIN_INFO_SOCIETE_LOGO_MINI',1,'Graphique 1_mini.jpg','chaine',0,'','2016-01-08 19:12:29'),(105,'MAIN_INFO_SOCIETE_MANAGERS',1,'BEN YOUSSEF CHOKRI','chaine',0,'','2016-01-08 19:12:29'),(106,'MAIN_INFO_CAPITAL',1,'160.000','chaine',0,'','2016-01-08 19:12:29'),(107,'MAIN_INFO_SOCIETE_FORME_JURIDIQUE',1,'1000','chaine',0,'','2016-01-08 19:12:29'),(108,'MAIN_INFO_SIREN',1,'D20120209','chaine',0,'','2016-01-08 19:12:29'),(109,'MAIN_INFO_SIRET',1,'1101236/N/A/M/000','chaine',0,'','2016-01-08 19:12:29'),(110,'MAIN_INFO_APE',1,'842902G','chaine',0,'','2016-01-08 19:12:29'),(111,'MAIN_INFO_RCS',1,'03120110011500406512H','chaine',0,'','2016-01-08 19:12:29'),(112,'MAIN_INFO_TVAINTRA',1,'1101236/N/A/M/000','chaine',0,'','2016-01-08 19:12:29'),(113,'SOCIETE_FISCAL_MONTH_START',1,'1','chaine',0,'','2016-01-08 19:12:29'),(114,'FACTURE_TVAOPTION',1,'1','chaine',0,'','2016-01-08 19:12:29'),(115,'FACTURE_LOCAL_TAX1_OPTION',1,'localtax1off','chaine',0,'','2016-01-08 19:12:29'),(116,'USER_MAIL_REQUIRED',1,'1','chaine',0,'','2016-01-08 19:13:32'),(120,'COMPANY_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/thirdparties','chaine',0,NULL,'2016-01-08 19:14:37'),(121,'SOCIETE_ADD_REF_IN_LIST',1,'','yesno',0,'Display customer ref into select list','2016-01-08 19:14:37'),(123,'PROPALE_ADDON_PDF',1,'azur','chaine',0,'Nom du gestionnaire de generation des propales en PDF','2016-01-08 19:16:02'),(124,'PROPALE_ADDON',1,'mod_propale_marbre','chaine',0,'Nom du gestionnaire de numerotation des propales','2016-01-08 19:16:02'),(125,'PROPALE_VALIDITY_DURATION',1,'15','chaine',0,'Duration of validity of business proposals','2016-01-08 19:16:02'),(126,'PROPALE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/proposals','chaine',0,NULL,'2016-01-08 19:16:02'),(129,'SOCIETE_CODECLIENT_ADDON',1,'mod_codeclient_leopard','chaine',0,'','2016-01-08 19:17:56'),(130,'SOCIETE_CODECOMPTA_ADDON',1,'mod_codecompta_aquarium','chaine',0,'','2016-01-08 19:18:20'),(133,'PROPALE_FREE_TEXT',1,'- Tous travaux de maçonnerie sont à la charge de client.\r\n- Tous nos kit de motorisation sont fournis en standard avec une seule télécommande .\r\n- L\'installation électrique est à la charge du client.\r\n- Nous guarantissons nos appareils électriques contre tous vices cachés de fabrication et de montage pour une durée de 12 mois.\r\n- En cas de probléme, envoyez par sms au  99 586 268','chaine',0,'','2016-01-08 19:20:48'),(135,'COMMANDE_ADDON_PDF',1,'einstein','chaine',0,'Name of PDF model of order','2016-01-08 19:21:12'),(136,'COMMANDE_ADDON',1,'mod_commande_marbre','chaine',0,'Name of numbering numerotation rules of order','2016-01-08 19:21:12'),(137,'COMMANDE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/orders','chaine',0,NULL,'2016-01-08 19:21:12'),(140,'SHIPPABLE_ORDER_ICON_IN_LIST',1,'1','yesno',0,'','2016-01-08 19:22:12'),(141,'COMMANDE_FREE_TEXT',1,'- Tous travaux de maçonnerie sont à la charge de client.\r\n- Le payement d\'équipement est : 50% à la commande / 50% à la livraison depart usine/ les frais de pose fin de chantier.\r\n- Tous nos kit de motorisation sont fournis en standard avec une seule télécommande .\r\n- L\'installation électrique est à la charge du client.\r\n- Nous guarantissons nos appareils électriques contre tous vices cachés de fabrication et de montage pour une durée de 12 mois.\r\n- En cas de probléme, envoyez par sms au 21 848 198 / 99 586 268\r\n- Pour toute information complémentaire, appelez directement le SAV\r\n au 75 623 480','chaine',0,'','2016-01-08 19:22:31'),(142,'MAIN_MODULE_CONTRAT',1,'1',NULL,0,NULL,'2016-01-08 19:23:24'),(143,'CONTRACT_ADDON',1,'mod_contract_serpis','chaine',0,'Nom du gestionnaire de numerotation des contrats','2016-01-08 19:23:24'),(145,'MAIN_MODULE_FICHEINTER',1,'1',NULL,0,NULL,'2016-01-08 19:24:40'),(146,'FICHEINTER_ADDON_PDF',1,'soleil','chaine',0,NULL,'2016-01-08 19:24:40'),(147,'FICHEINTER_ADDON',1,'pacific','chaine',0,NULL,'2016-01-08 19:24:40'),(150,'FICHINTER_PRINT_PRODUCTS',1,'1','bool',0,'','2016-01-08 19:25:08'),(152,'FICHINTER_FREE_TEXT',1,'- Tous travaux de maçonnerie sont à la charge de client.\r\n- Le payement d\'équipement est : 50% à la commande / 50% à la livraison depart usine/ les frais de pose fin de chantier.\r\n- Tous nos kit de motorisation sont fournis en standard avec une seule télécommande .\r\n- L\'installation électrique est à la charge du client.\r\n- Nous guarantissons nos appareils électriques contre tous vices cachés de fabrication et de montage pour une durée de 12 mois.\r\n- En cas de probléme, envoyez par sms au 21 848 198 / 99 586 268','chaine',0,'','2016-01-08 19:28:11'),(154,'EXPEDITION_ADDON_PDF',1,'rouget','chaine',0,'Nom du gestionnaire de generation des bons expeditions en PDF','2016-01-08 19:28:23'),(155,'EXPEDITION_ADDON_NUMBER',1,'mod_expedition_safor','chaine',0,'Nom du gestionnaire de numerotation des expeditions','2016-01-08 19:28:23'),(156,'EXPEDITION_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/shipment','chaine',0,NULL,'2016-01-08 19:28:23'),(157,'LIVRAISON_ADDON_PDF',1,'typhon','chaine',0,'Nom du gestionnaire de generation des bons de reception en PDF','2016-01-08 19:28:23'),(158,'LIVRAISON_ADDON_NUMBER',1,'mod_livraison_jade','chaine',0,'Nom du gestionnaire de numerotation des bons de reception','2016-01-08 19:28:23'),(159,'LIVRAISON_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/delivery','chaine',0,NULL,'2016-01-08 19:28:23'),(163,'MAIN_SUBMODULE_EXPEDITION',1,'1','chaine',0,'','2016-01-08 19:28:44'),(164,'MAIN_SUBMODULE_LIVRAISON',1,'1','chaine',0,'','2016-01-08 19:28:44'),(165,'SHIPPING_FREE_TEXT',1,'- Tous travaux de maçonnerie sont à la charge de client.\r\n- Le payement d\'équipement est : 50% à la commande / 50% à la livraison depart usine/ les frais de pose fin de chantier.\r\n- Tous nos kit de motorisation sont fournis en standard avec une seule télécommande .\r\n- L\'installation électrique est à la charge du client.\r\n- Nous guarantissons nos appareils électriques contre tous vices cachés de fabrication et de montage pour une durée de 12 mois.\r\n- En cas de probléme, envoyez par sms au 21 848 198 / 99 586 268\r\n- Pour toute information complémentaire, appelez directement le SAV\r\n au 75 623 480','chaine',0,'','2016-01-08 19:29:12'),(166,'DELIVERY_FREE_TEXT',1,'- Tous travaux de maçonnerie sont à la charge de client.\r\n- Le payement d\'équipement est : 50% à la commande / 50% à la livraison depart usine/ les frais de pose fin de chantier.\r\n- Tous nos kit de motorisation sont fournis en standard avec une seule télécommande .\r\n- L\'installation électrique est à la charge du client.\r\n- Nous guarantissons nos appareils électriques contre tous vices cachés de fabrication et de montage pour une durée de 12 mois.\r\n- En cas de probléme, envoyez par sms au 21 848 198 / 99 586 268\r\n- Pour toute information complémentaire, appelez directement le SAV\r\n au 75 623 480','chaine',0,'','2016-01-08 19:29:30'),(168,'ECM_AUTO_TREE_ENABLED',1,'1','chaine',0,'Auto tree is enabled by default','2016-01-08 19:29:41'),(169,'MAIN_MODULE_COMPTABILITE',1,'1',NULL,0,NULL,'2016-01-08 19:30:11'),(171,'FACTURE_ADDON_PDF',1,'crabe','chaine',0,'Name of PDF model of invoice','2016-01-08 19:30:11'),(172,'FACTURE_ADDON',1,'mod_facture_terre','chaine',0,'Name of numbering numerotation rules of invoice','2016-01-08 19:30:11'),(173,'FACTURE_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/invoices','chaine',0,NULL,'2016-01-08 19:30:11'),(176,'ACCOUNTING_MODE',1,'RECETTES-DEPENSES','chaine',0,'','2016-01-08 19:31:25'),(177,'ACCOUNTING_PRODUCT_BUY_ACCOUNT',1,'601','chaine',0,'','2016-01-08 19:31:26'),(178,'ACCOUNTING_PRODUCT_SOLD_ACCOUNT',1,'701','chaine',0,'','2016-01-08 19:31:26'),(179,'ACCOUNTING_SERVICE_BUY_ACCOUNT',1,'711','chaine',0,'','2016-01-08 19:31:26'),(180,'ACCOUNTING_SERVICE_SOLD_ACCOUNT',1,'704','chaine',0,'','2016-01-08 19:31:26'),(181,'ACCOUNTING_VAT_SOLD_ACCOUNT',1,'4366','chaine',0,'','2016-01-08 19:31:26'),(182,'ACCOUNTING_ACCOUNT_CUSTOMER',1,'411','chaine',0,'','2016-01-08 19:31:26'),(183,'ACCOUNTING_ACCOUNT_SUPPLIER',1,'401','chaine',0,'','2016-01-08 19:31:26'),(184,'MAIN_MODULE_TAX',1,'1',NULL,0,NULL,'2016-01-08 19:31:45'),(185,'MAIN_MODULE_PRELEVEMENT',1,'1',NULL,0,NULL,'2016-01-08 19:34:18'),(189,'MAIN_MODULE_DON',1,'1',NULL,0,NULL,'2016-01-08 19:35:06'),(190,'DON_ADDON_MODEL',1,'html_cerfafr','chaine',0,'Nom du gestionnaire de generation de recu de dons','2016-01-08 19:35:06'),(191,'DONATION_ART200',1,'','yesno',0,'Option Française - Eligibilité Art200 du CGI','2016-01-08 19:35:06'),(192,'DONATION_ART238',1,'','yesno',0,'Option Française - Eligibilité Art238 bis du CGI','2016-01-08 19:35:06'),(193,'DONATION_ART885',1,'','yesno',0,'Option Française - Eligibilité Art885-0 V bis du CGI','2016-01-08 19:35:06'),(194,'DONATION_MESSAGE',1,'Thank you','chaine',0,'Message affiché sur le récépissé de versements ou dons','2016-01-08 19:35:06'),(195,'DONATION_ACCOUNTINGACCOUNT',1,'7581','chaine',0,'Compte comptable de remise des versements ou dons','2016-01-08 19:35:06'),(196,'MAIN_MODULE_HOLIDAY',1,'1',NULL,0,NULL,'2016-01-08 19:35:56'),(197,'MAIN_MODULE_HOLIDAY_TABS_0',1,'user:+paidholidays:CPTitreMenu:holiday:$user->rights->holiday->read:/holiday/list.php?mainmenu=holiday&id=__ID__','chaine',0,NULL,'2016-01-08 19:35:56'),(199,'ADHERENT_MAIL_RESIL',1,'Votre adhésion vient d\'être résiliée.\r\nNous espérons vous revoir très bientôt','texte',0,'Mail de résiliation','2016-01-08 19:36:04'),(200,'ADHERENT_MAIL_VALID',1,'Votre adhésion vient d\'être validée. \r\nVoici le rappel de vos coordonnées (toute information erronée entrainera la non validation de votre inscription) :\r\n\r\n%INFOS%\r\n\r\n','texte',0,'Mail de validation','2016-01-08 19:36:04'),(201,'ADHERENT_MAIL_VALID_SUBJECT',1,'Votre adhésion a été validée','chaine',0,'Sujet du mail de validation','2016-01-08 19:36:04'),(202,'ADHERENT_MAIL_RESIL_SUBJECT',1,'Résiliation de votre adhésion','chaine',0,'Sujet du mail de résiliation','2016-01-08 19:36:04'),(203,'ADHERENT_MAIL_FROM',1,'','chaine',0,'From des mails','2016-01-08 19:36:04'),(204,'ADHERENT_MAIL_COTIS',1,'Bonjour %FIRSTNAME%,\r\nCet email confirme que votre cotisation a été reçue\r\net enregistrée','texte',0,'Mail de validation de cotisation','2016-01-08 19:36:04'),(205,'ADHERENT_MAIL_COTIS_SUBJECT',1,'Reçu de votre cotisation','chaine',0,'Sujet du mail de validation de cotisation','2016-01-08 19:36:04'),(206,'ADHERENT_CARD_HEADER_TEXT',1,'%YEAR%','chaine',0,'Texte imprimé sur le haut de la carte adhérent','2016-01-08 19:36:04'),(207,'ADHERENT_CARD_FOOTER_TEXT',1,'%COMPANY%','chaine',0,'Texte imprimé sur le bas de la carte adhérent','2016-01-08 19:36:04'),(208,'ADHERENT_CARD_TEXT',1,'%FULLNAME%\r\nID: %ID%\r\n%EMAIL%\r\n%ADDRESS%\r\n%ZIP% %TOWN%\r\n%COUNTRY%','texte',0,'Text to print on member cards','2016-01-08 19:36:04'),(209,'ADHERENT_MAILMAN_ADMINPW',1,'','chaine',0,'Mot de passe Admin des liste mailman','2016-01-08 19:36:04'),(210,'ADHERENT_BANK_USE_AUTO',1,'','yesno',0,'Insertion automatique des cotisations dans le compte banquaire','2016-01-08 19:36:04'),(211,'ADHERENT_BANK_ACCOUNT',1,'','chaine',0,'ID du Compte banquaire utilise','2016-01-08 19:36:04'),(212,'ADHERENT_BANK_CATEGORIE',1,'','chaine',0,'ID de la catégorie banquaire des cotisations','2016-01-08 19:36:04'),(213,'ADHERENT_ETIQUETTE_TYPE',1,'L7163','chaine',0,'Type of address sheets','2016-01-08 19:36:04'),(214,'ADHERENT_ETIQUETTE_TEXT',1,'%FULLNAME%\n%ADDRESS%\n%ZIP% %TOWN%\n%COUNTRY%','texte',0,'Text to print on member address sheets','2016-01-08 19:36:04'),(215,'ADHERENT_BANK_USE',1,'bankviainvoice','',0,'','2016-01-08 19:37:35'),(216,'ADHERENT_VAT_FOR_SUBSCRIPTIONS',1,'0','',0,'','2016-01-08 19:37:40'),(219,'MEMBER_ENABLE_PUBLIC',1,'0','chaine',0,'','2016-01-08 19:39:15'),(220,'MEMBER_NEWFORM_EDITAMOUNT',1,'0','chaine',0,'','2016-01-08 19:39:15'),(221,'MAIN_MODULE_SALARIES',1,'1',NULL,0,NULL,'2016-01-08 19:39:38'),(222,'SALARIES_ACCOUNTING_ACCOUNT_PAYMENT',1,'421','chaine',0,NULL,'2016-01-08 19:39:38'),(223,'SALARIES_ACCOUNTING_ACCOUNT_CHARGE',1,'641','chaine',0,NULL,'2016-01-08 19:39:38'),(224,'MAIN_MODULE_DEPLACEMENT',1,'1',NULL,0,NULL,'2016-01-08 19:40:17'),(225,'MAIN_MODULE_EXPENSEREPORT',1,'1',NULL,0,NULL,'2016-01-08 19:40:24'),(226,'EXPENSEREPORT_ADDON_PDF',1,'standard','chaine',0,'Name of manager to build PDF expense reports documents','2016-01-08 19:40:24'),(229,'PRODUCT_CODEPRODUCT_ADDON',1,'mod_codeproduct_leopard','chaine',0,'Module to control product codes','2016-01-08 19:41:14'),(230,'MAIN_MODULE_STOCK',1,'1',NULL,0,NULL,'2016-01-08 19:41:14'),(232,'MAIN_MODULE_EXPEDITION',1,'1',NULL,0,NULL,'2016-01-08 19:41:14'),(233,'MAIN_MODULE_COMMANDE',1,'1',NULL,0,NULL,'2016-01-08 19:41:15'),(235,'MAIN_MODULE_FOURNISSEUR',1,'1',NULL,0,NULL,'2016-01-08 19:41:43'),(236,'COMMANDE_SUPPLIER_ADDON_PDF',1,'muscadet','chaine',0,'Nom du gestionnaire de generation des bons de commande en PDF','2016-01-08 19:41:43'),(237,'COMMANDE_SUPPLIER_ADDON_NUMBER',1,'mod_commande_fournisseur_muguet','chaine',0,'Nom du gestionnaire de numerotation des commandes fournisseur','2016-01-08 19:41:43'),(238,'INVOICE_SUPPLIER_ADDON_PDF',1,'canelle','chaine',0,'Nom du gestionnaire de generation des factures fournisseur en PDF','2016-01-08 19:41:43'),(239,'INVOICE_SUPPLIER_ADDON_NUMBER',1,'mod_facture_fournisseur_cactus','chaine',0,'Nom du gestionnaire de numerotation des factures fournisseur','2016-01-08 19:41:43'),(241,'MAIN_MODULE_CASHDESK',1,'1',NULL,0,NULL,'2016-01-08 19:42:36'),(242,'MAIN_MODULE_BANQUE',1,'1',NULL,0,NULL,'2016-01-08 19:42:36'),(243,'MAIN_MODULE_FACTURE',1,'1',NULL,0,NULL,'2016-01-08 19:42:36'),(246,'CASHDESK_NO_DECREASE_STOCK',1,'1','chaine',0,'','2016-01-08 19:42:45'),(247,'MAIN_MODULE_SERVICE',1,'1',NULL,0,NULL,'2016-01-08 19:43:15'),(248,'PRODUIT_LIMIT_SIZE',1,'100','chaine',0,'','2016-01-08 19:44:33'),(261,'MAIN_MODULE_INCOTERM',1,'1',NULL,0,NULL,'2016-01-08 19:45:24'),(262,'INCOTERM_ACTIVATE',1,'','chaine',0,'Description de INCOTERM_ACTIVATE','2016-01-08 19:45:24'),(269,'PRODUIT_MULTIPRICES_LIMIT',1,'2','chaine',0,'','2016-01-08 19:46:00'),(270,'PRODUCT_PRICE_UNIQ',1,'0','chaine',0,'','2016-01-08 19:46:00'),(271,'PRODUIT_MULTIPRICES',1,'1','chaine',0,'','2016-01-08 19:46:00'),(272,'PRODUIT_CUSTOMER_PRICES',1,'0','chaine',0,'','2016-01-08 19:46:01'),(273,'PRODUIT_SOUSPRODUITS',1,'1','chaine',0,'','2016-01-08 19:46:01'),(274,'PRODUIT_DESC_IN_FORM',1,'1','chaine',0,'','2016-01-08 19:46:01'),(275,'PRODUIT_USE_SEARCH_TO_SELECT',1,'2','chaine',0,'','2016-01-08 19:46:01'),(276,'MAIN_MODULE_AGENDA',1,'1',NULL,0,NULL,'2016-01-08 19:46:36'),(277,'MAIN_AGENDA_ACTIONAUTO_BILL_SUPPLIER_UNVALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(278,'MAIN_AGENDA_ACTIONAUTO_COMPANY_CREATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(279,'MAIN_AGENDA_ACTIONAUTO_CONTRACT_VALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(280,'MAIN_AGENDA_ACTIONAUTO_PROPAL_VALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(281,'MAIN_AGENDA_ACTIONAUTO_PROPAL_SENTBYMAIL',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(282,'MAIN_AGENDA_ACTIONAUTO_ORDER_VALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(283,'MAIN_AGENDA_ACTIONAUTO_ORDER_SENTBYMAIL',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(284,'MAIN_AGENDA_ACTIONAUTO_BILL_VALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(285,'MAIN_AGENDA_ACTIONAUTO_BILL_PAYED',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(286,'MAIN_AGENDA_ACTIONAUTO_BILL_CANCEL',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(287,'MAIN_AGENDA_ACTIONAUTO_BILL_SENTBYMAIL',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(288,'MAIN_AGENDA_ACTIONAUTO_ORDER_SUPPLIER_VALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(289,'MAIN_AGENDA_ACTIONAUTO_BILL_SUPPLIER_VALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(290,'MAIN_AGENDA_ACTIONAUTO_SHIPPING_VALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(291,'MAIN_AGENDA_ACTIONAUTO_SHIPPING_SENTBYMAIL',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(292,'MAIN_AGENDA_ACTIONAUTO_BILL_UNVALIDATE',1,'1','chaine',0,NULL,'2016-01-08 19:46:36'),(293,'AGENDA_USE_EVENT_TYPE',1,'1','chaine',0,'','2016-01-08 19:46:52'),(294,'AGENDA_DEFAULT_FILTER_TYPE',1,'AC_RDV','chaine',0,'','2016-01-08 19:47:19'),(295,'AGENDA_DEFAULT_FILTER_STATUS',1,'0','chaine',0,'','2016-01-08 19:47:19'),(296,'AGENDA_DEFAULT_VIEW',1,'show_week','chaine',0,'','2016-01-08 19:47:19'),(297,'MAIN_MODULE_PROJET',1,'1',NULL,0,NULL,'2016-01-08 19:47:59'),(298,'PROJECT_ADDON_PDF',1,'baleine','chaine',0,'Name of PDF/ODT project manager class','2016-01-08 19:47:59'),(299,'PROJECT_ADDON',1,'mod_project_simple','chaine',0,'Name of Numbering Rule project manager class','2016-01-08 19:47:59'),(300,'PROJECT_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/projects','chaine',0,NULL,'2016-01-08 19:47:59'),(301,'PROJECT_TASK_ADDON_PDF',1,'','chaine',0,'Name of PDF/ODT tasks manager class','2016-01-08 19:47:59'),(303,'PROJECT_TASK_ADDON_PDF_ODT_PATH',1,'DOL_DATA_ROOT/doctemplates/tasks','chaine',0,NULL,'2016-01-08 19:47:59'),(304,'PROJECT_USE_OPPORTUNIES',1,'1','chaine',0,NULL,'2016-01-08 19:47:59'),(305,'PROJECT_USE_OPPORTUNITIES',1,'1','chaine',0,'','2016-01-08 19:48:35'),(307,'PROJECT_TASK_ADDON',1,'mod_task_simple','chaine',0,'','2016-01-08 19:48:52'),(308,'PROJECT_USE_SEARCH_TO_SELECT',1,'2','chaine',0,'','2016-01-08 19:49:56'),(310,'MAIN_MODULE_MAILING',1,'1',NULL,0,NULL,'2016-01-08 19:50:51'),(312,'MAIN_MODULE_CRON',1,'1',NULL,0,NULL,'2016-01-08 19:52:13'),(315,'CRON_KEY',0,'9971fe91bab40fc699aa792b92ef6f1f','chaine',0,'','2016-01-08 19:55:27'),(316,'MAIN_MODULE_SYSLOG',0,'1',NULL,0,NULL,'2016-01-08 19:56:05'),(317,'MAIN_MODULE_MARGIN',1,'1',NULL,0,NULL,'2016-01-08 19:56:43'),(318,'MAIN_MODULE_MARGIN_TABS_0',1,'product:+margin:Margins:margins:$user->rights->margins->liretous:/margin/tabs/productMargins.php?id=__ID__','chaine',0,NULL,'2016-01-08 19:56:43'),(319,'MAIN_MODULE_MARGIN_TABS_1',1,'thirdparty:+margin:Margins:margins:empty($user->societe_id) && $user->rights->margins->liretous && ($object->client > 0):/margin/tabs/thirdpartyMargins.php?socid=__ID__','chaine',0,NULL,'2016-01-08 19:56:43'),(320,'MAIN_MODULE_PROPALE',1,'1',NULL,0,NULL,'2016-01-08 19:56:44'),(324,'MARGIN_METHODE_FOR_DISCOUNT',1,'3','chaine',0,'','2016-01-08 19:57:45'),(325,'AGENT_CONTACT_TYPE',1,'50','chaine',0,'','2016-01-08 19:57:51'),(326,'MAIN_MODULE_RESOURCE',1,'1',NULL,0,NULL,'2016-01-08 19:58:47'),(327,'MAIN_MODULE_CATEGORIE',1,'1',NULL,0,NULL,'2016-01-08 19:58:56'),(329,'CATEGORIE_RECURSIV_ADD',1,'1','chaine',0,'','2016-01-08 19:59:05'),(330,'MAIN_MODULE_FCKEDITOR',1,'1',NULL,0,NULL,'2016-01-08 19:59:19'),(331,'FCKEDITOR_ENABLE_SOCIETE',1,'1','yesno',0,'WYSIWIG for description and note (except products/services)','2016-01-08 19:59:19'),(332,'FCKEDITOR_ENABLE_PRODUCTDESC',1,'1','yesno',0,'WYSIWIG for products/services description and note','2016-01-08 19:59:19'),(333,'FCKEDITOR_ENABLE_MAILING',1,'1','yesno',0,'WYSIWIG for mass emailings','2016-01-08 19:59:19'),(334,'FCKEDITOR_ENABLE_DETAILS',1,'1','yesno',0,'WYSIWIG for products details lines for all entities','2016-01-08 19:59:19'),(335,'FCKEDITOR_ENABLE_USERSIGN',1,'1','yesno',0,'WYSIWIG for user signature','2016-01-08 19:59:19'),(336,'FCKEDITOR_ENABLE_MAIL',1,'1','yesno',0,'WYSIWIG for products details lines for all entities','2016-01-08 19:59:19'),(337,'MAIN_MODULE_BOOKMARK',1,'1',NULL,0,NULL,'2016-01-08 19:59:58'),(339,'PRODUIT_DEFAULT_BARCODE_TYPE',1,'6','chaine',0,'','2016-01-08 20:02:05'),(340,'GENBARCODE_BARCODETYPE_THIRDPARTY',1,'8','chaine',0,'','2016-01-08 20:02:12'),(341,'BARCODE_PRODUCT_ADDON_NUM',1,'mod_barcode_product_standard','chaine',0,'','2016-01-08 20:02:24'),(342,'MAIN_MODULE_WORKFLOW',1,'1',NULL,0,NULL,'2016-01-08 20:02:43'),(344,'WORKFLOW_PROPAL_AUTOCREATE_ORDER',1,'1','chaine',0,'','2016-01-08 20:03:13'),(345,'MAIN_MODULE_SKYPE',1,'1',NULL,0,NULL,'2016-01-08 20:04:02'),(348,'EXTERNALSITE_LABEL',1,'ExternalSite','chaine',0,'To declare label to use into external site menu entry','2016-01-08 20:04:21'),(350,'ADHERENT_MAILMAN_UNSUB_URL',1,'http://lists.example.com/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%MAILMAN_ADMINPW%&user=%EMAIL%','chaine',0,'Url de désinscription aux listes mailman','2016-01-08 20:05:13'),(351,'ADHERENT_MAILMAN_URL',1,'http://lists.example.com/cgi-bin/mailman/admin/%LISTE%/members?adminpw=%MAILMAN_ADMINPW%&send_welcome_msg_to_this_batch=1&subscribees=%EMAIL%','chaine',0,'Url pour les inscriptions mailman','2016-01-08 20:05:13'),(352,'ADHERENT_MAILMAN_LISTS',1,'','chaine',0,'Mailing-list to subscribe new members to','2016-01-08 20:05:13'),(353,'MAIN_MODULE_ADHERENT',1,'1',NULL,0,NULL,'2016-01-08 20:05:13'),(354,'ADHERENT_USE_MAILMAN',1,'1','',0,'','2016-01-08 20:05:31'),(355,'ADHERENT_USE_SPIP',1,'1','',0,'','2016-01-08 20:07:07'),(357,'LDAP_SERVER_TYPE',1,'openldap','chaine',0,NULL,'2016-01-08 20:07:46'),(358,'LDAP_SERVER_PROTOCOLVERSION',1,'3','chaine',0,NULL,'2016-01-08 20:07:46'),(359,'LDAP_SERVER_HOST',1,'localhost','chaine',0,NULL,'2016-01-08 20:07:46'),(360,'LDAP_USER_DN',1,'ou=users,dc=example,dc=com','chaine',0,NULL,'2016-01-08 20:07:46'),(361,'LDAP_GROUP_DN',1,'ou=groups,dc=example,dc=com','chaine',0,NULL,'2016-01-08 20:07:46'),(362,'LDAP_FILTER_CONNECTION',1,'&(objectClass=inetOrgPerson)','chaine',0,NULL,'2016-01-08 20:07:46'),(363,'LDAP_FIELD_LOGIN',1,'uid','chaine',0,NULL,'2016-01-08 20:07:46'),(364,'LDAP_FIELD_FULLNAME',1,'cn','chaine',0,NULL,'2016-01-08 20:07:46'),(365,'LDAP_FIELD_NAME',1,'sn','chaine',0,NULL,'2016-01-08 20:07:46'),(366,'LDAP_FIELD_FIRSTNAME',1,'givenname','chaine',0,NULL,'2016-01-08 20:07:46'),(367,'LDAP_FIELD_MAIL',1,'mail','chaine',0,NULL,'2016-01-08 20:07:46'),(368,'LDAP_FIELD_PHONE',1,'telephonenumber','chaine',0,NULL,'2016-01-08 20:07:46'),(369,'LDAP_FIELD_FAX',1,'facsimiletelephonenumber','chaine',0,NULL,'2016-01-08 20:07:46'),(370,'LDAP_FIELD_MOBILE',1,'mobile','chaine',0,NULL,'2016-01-08 20:07:46'),(372,'MAIN_MODULE_GRAVATAR',1,'1',NULL,0,NULL,'2016-01-08 20:08:44'),(373,'MAIN_MODULE_GEOIPMAXMIND',1,'1',NULL,0,NULL,'2016-01-08 20:08:58'),(374,'MAIN_MODULE_EXTERNALRSS',1,'1',NULL,0,NULL,'2016-01-08 20:09:21'),(375,'MAIN_MODULE_NOTIFICATION',1,'1',NULL,0,NULL,'2016-01-08 20:09:49'),(376,'MAIN_MODULE_PRINTING',1,'1',NULL,0,NULL,'2016-01-08 20:09:55'),(377,'MAIN_MODULE_CLICKTODIAL',1,'1',NULL,0,NULL,'2016-01-08 20:10:31'),(379,'MAIN_USE_ADVANCED_PERMS',1,'1','chaine',0,'','2016-01-08 20:12:32'),(380,'USER_PASSWORD_PATTERN',1,'8;1;1;1;3;1','chaine',0,'','2016-01-08 20:14:17'),(381,'MAIN_MAX_DECIMALS_UNIT',1,'3','chaine',0,'','2016-01-08 20:16:08'),(382,'MAIN_MAX_DECIMALS_TOT',1,'3','chaine',0,'','2016-01-08 20:16:08'),(383,'MAIN_MAX_DECIMALS_SHOWN',1,'3','chaine',0,'','2016-01-08 20:16:08'),(384,'MAIN_PDF_FORMAT',1,'EUA4','chaine',0,'','2016-01-08 20:17:11'),(385,'MAIN_PROFID1_IN_ADDRESS',1,'1','chaine',0,'','2016-01-08 20:17:11'),(386,'MAIN_PROFID2_IN_ADDRESS',1,'1','chaine',0,'','2016-01-08 20:17:11'),(387,'MAIN_PROFID3_IN_ADDRESS',1,'1','chaine',0,'','2016-01-08 20:17:11'),(388,'MAIN_PROFID4_IN_ADDRESS',1,'1','chaine',0,'','2016-01-08 20:17:11'),(389,'MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT',1,'0','chaine',0,'','2016-01-08 20:17:11'),(390,'MAIN_TVAINTRA_NOT_IN_ADDRESS',1,'0','chaine',0,'','2016-01-08 20:17:11'),(391,'MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS',1,'0','chaine',0,'','2016-01-08 20:17:12'),(392,'MAIN_GENERATE_DOCUMENTS_HIDE_DESC',1,'0','chaine',0,'','2016-01-08 20:17:12'),(393,'MAIN_GENERATE_DOCUMENTS_HIDE_REF',1,'0','chaine',0,'','2016-01-08 20:17:12'),(394,'MAIN_DISABLE_ALL_MAILS',1,'0','chaine',0,'','2016-01-08 20:18:54'),(395,'MAIN_MAIL_SENDMODE',1,'smtps','chaine',0,'','2016-01-08 20:18:54'),(396,'MAIN_MAIL_SMTP_PORT',1,'465','chaine',0,'','2016-01-08 20:18:54'),(397,'MAIN_MAIL_SMTP_SERVER',1,'SSL0.OVH.NET','chaine',0,'','2016-01-08 20:18:54'),(398,'MAIN_MAIL_SMTPS_ID',1,'commercial@metapro.tn','chaine',0,'','2016-01-08 20:18:54'),(399,'MAIN_MAIL_SMTPS_PW',1,'Metapro15','chaine',0,'','2016-01-08 20:18:54'),(400,'MAIN_MAIL_EMAIL_TLS',1,'1','chaine',0,'','2016-01-08 20:18:54'),(401,'MAIN_MAIL_EMAIL_FROM',1,'commercial@metapro.tn','chaine',0,'','2016-01-08 20:18:54'),(402,'MAIN_MAIL_ERRORS_TO',1,'commercial@metapro.tn','chaine',0,'','2016-01-08 20:18:54'),(403,'MAIN_MAIL_AUTOCOPY_TO',1,'commercial@metapro.tn','chaine',0,'','2016-01-08 20:18:54'),(412,'PRELEVEMENT_USER',1,'2','chaine',0,'','2016-01-09 14:24:37'),(413,'PRELEVEMENT_NUMERO_NATIONAL_EMETTEUR',1,'125689','chaine',0,'','2016-01-09 14:24:37'),(414,'PRELEVEMENT_ICS',1,'230','chaine',0,'','2016-01-09 14:24:37'),(415,'PRELEVEMENT_ID_BANKACCOUNT',1,'1','chaine',0,'','2016-01-09 14:24:37'),(416,'PRELEVEMENT_NUMERO_COMPTE',1,'03120110010100211512w','chaine',0,'','2016-01-09 14:24:37'),(417,'PRELEVEMENT_RAISON_SOCIALE',1,'ben Youssef rafik','chaine',0,'','2016-01-09 14:24:37'),(418,'BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL',1,'1','chaine',0,'','2016-01-09 16:42:39'),(419,'MAIN_MODULE_ALPIROC',1,'1',NULL,0,NULL,'2016-01-09 16:44:59'),(420,'MAIN_MODULE_ALPIROC_MODELS',1,'1','chaine',0,NULL,'2016-01-09 16:44:59'),(429,'MAIN_MODULE_PRODUCT',1,'1',NULL,0,NULL,'2016-01-09 16:53:25'),(430,'MAIN_MODULE_SOCIETE',1,'1',NULL,0,NULL,'2016-01-09 16:53:25'),(435,'MAIN_MODULE_NUMBERWORDS',1,'1',NULL,0,NULL,'2016-01-09 16:54:58'),(436,'MAIN_MODULE_NUMBERWORDS_SUBSTITUTIONS',1,'1','chaine',0,NULL,'2016-01-09 16:54:58'),(437,'MAIN_MODULE_FACTORY',1,'1',NULL,0,NULL,'2016-01-09 17:36:07'),(438,'MAIN_MODULE_FACTORY_TABS_0',1,'product:+factory:Factory:@Produit:/factory/product/index.php?id=__ID__','chaine',0,NULL,'2016-01-09 17:36:07'),(439,'MAIN_MODULE_FACTORY_TABS_1',1,'project:+factory:ProductNeed:@project:/factory/project/productinproject.php?id=__ID__','chaine',0,NULL,'2016-01-09 17:36:07'),(440,'MAIN_MODULE_FACTORY_TABS_2',1,'task:+factory:Factory:@tasks:/factory/project/factorytask.php?id=__ID__&withproject=1','chaine',0,NULL,'2016-01-09 17:36:07'),(441,'MAIN_MODULE_FACTORY_TABS_3',1,'stock:+contact:Contact:@stock:/factory/product/stock/contact.php?id=__ID__','chaine',0,NULL,'2016-01-09 17:36:07'),(442,'MAIN_MODULE_FACTORY_TABS_4',1,'stock:+factory:Factory:@stock:/factory/product/stock/list.php?id=__ID__','chaine',0,NULL,'2016-01-09 17:36:07'),(443,'MAIN_MODULE_FACTORY_HOOKS',1,'[\"searchform\"]','chaine',0,NULL,'2016-01-09 17:36:07'),(444,'FACTORY_ADDON',1,'mod_mandrill','chaine',0,'','2016-01-09 17:37:01'),(447,'ChangePriceSetting',1,'0','chaine',0,'','2016-01-09 17:37:30'),(448,'SYSTEMTOOLS_MYSQLDUMP',1,'c:\\dolibarr\\bin\\mysql\\mysql5.0.45\\/bin/mysqldump','chaine',0,'','2016-01-09 17:57:08');

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

CREATE TABLE `llx_contrat` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) default NULL,
  `ref_supplier` varchar(30) default NULL,
  `ref_ext` 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) default NULL,
  `fk_commercial_suivi` int(11) default 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_private` 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_contrat_ref` (`ref`,`entity`),
  KEY `idx_contrat_fk_soc` (`fk_soc`),
  KEY `idx_contrat_fk_user_author` (`fk_user_author`),
  CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_contrat_extrafields`
--

CREATE TABLE `llx_contrat_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_contrat_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_contrat_extrafields`
--


--
-- 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',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `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',
  `product_type` int(11) default '1',
  `info_bits` int(11) default '0',
  `buy_price_ht` double(24,8) default NULL,
  `fk_product_fournisseur_price` int(11) default NULL,
  `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,
  `fk_unit` int(11) default NULL,
  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`),
  KEY `fk_contratdet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_contratdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`),
  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_extrafields`
--

CREATE TABLE `llx_contratdet_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_contratdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_contratdet_extrafields`
--


--
-- 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_cronjob`
--

CREATE TABLE `llx_cronjob` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `jobtype` varchar(10) NOT NULL,
  `label` text NOT NULL,
  `command` varchar(255) default NULL,
  `classesname` varchar(255) default NULL,
  `objectname` varchar(255) default NULL,
  `methodename` varchar(255) default NULL,
  `params` text,
  `md5params` varchar(32) default NULL,
  `module_name` varchar(255) default NULL,
  `priority` int(11) default '0',
  `datelastrun` datetime default NULL,
  `datenextrun` datetime default NULL,
  `datestart` datetime default NULL,
  `dateend` datetime default NULL,
  `datelastresult` datetime default NULL,
  `lastresult` text,
  `lastoutput` text,
  `unitfrequency` int(11) NOT NULL default '0',
  `frequency` int(11) NOT NULL default '0',
  `nbrun` int(11) default NULL,
  `status` int(11) NOT NULL default '1',
  `fk_user_author` int(11) default NULL,
  `fk_user_mod` int(11) default NULL,
  `note` text,
  `libname` varchar(255) default NULL,
  `entity` int(11) default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_cronjob`
--


--
-- 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_private` text,
  `note_public` text,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- 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=29 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_document_model` (`rowid`, `nom`, `entity`, `type`, `libelle`, `description`) VALUES (4,'proforma',1,'order','proforma',NULL),(5,'strato',1,'contract','strato',NULL),(6,'soleil',1,'ficheinter',NULL,NULL),(10,'merou',1,'shipping','merou',NULL),(13,'html_cerfafr',1,'donation',NULL,NULL),(14,'standard',1,'deplacement',NULL,NULL),(15,'standard',1,'expensereport',NULL,NULL),(16,'rouget',1,'shipping',NULL,NULL),(17,'typhon',1,'delivery',NULL,NULL),(18,'einstein',1,'order',NULL,NULL),(19,'muscadet',1,'order_supplier',NULL,NULL),(20,'canelle',1,'invoice_supplier',NULL,NULL),(21,'crabe',1,'invoice',NULL,NULL),(22,'baleine',1,'project',NULL,NULL),(23,'beluga',1,'project','beluga',NULL),(24,'azur',1,'propal',NULL,NULL),(25,'alpiroc',1,'propal',NULL,NULL),(26,'alpiroc_fact',1,'invoice',NULL,NULL),(27,'alpiroc_com',1,'order',NULL,NULL),(28,'capucin',1,'factory','capucin',NULL);

--
-- 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_payment` int(11) default NULL,
  `paid` smallint(6) NOT NULL default '0',
  `firstname` varchar(50) default NULL,
  `lastname` varchar(50) default NULL,
  `societe` varchar(50) default NULL,
  `address` text,
  `zip` varchar(30) default NULL,
  `town` varchar(50) default NULL,
  `country` varchar(50) default NULL,
  `fk_country` int(11) NOT 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_projet` int(11) default NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_valid` int(11) default NULL,
  `note_private` 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_don_extrafields`
--

CREATE TABLE `llx_don_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_don_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_don_extrafields`
--


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

CREATE TABLE `llx_ecm_directories` (
  `rowid` int(11) NOT NULL auto_increment,
  `label` varchar(64) 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',
  `fullpath` varchar(255) default NULL,
  `extraparams` varchar(255) default NULL,
  `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,
  `acl` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_ecm_directories` (`label`,`fk_parent`,`entity`),
  KEY `idx_ecm_directories_fk_user_c` (`fk_user_c`),
  KEY `idx_ecm_directories_fk_user_m` (`fk_user_m`),
  CONSTRAINT `fk_ecm_directories_fk_user_m` FOREIGN KEY (`fk_user_m`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_ecm_directories_fk_user_c` FOREIGN KEY (`fk_user_c`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- 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 DEFAULT CHARSET=utf8;

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


--
-- 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(32) NOT NULL,
  `datel` datetime default NULL,
  `datem` datetime default NULL,
  `sessionid` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_element_resources`
--

CREATE TABLE `llx_element_resources` (
  `rowid` int(11) NOT NULL auto_increment,
  `element_id` int(11) default NULL,
  `element_type` varchar(64) default NULL,
  `resource_id` int(11) default NULL,
  `resource_type` varchar(64) default NULL,
  `busy` int(11) default NULL,
  `mandatory` int(11) default NULL,
  `fk_user_create` int(11) default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `idx_element_resources_idx1` (`resource_id`,`resource_type`,`element_id`,`element_type`),
  KEY `idx_element_element_element_id` (`element_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_element_resources`
--


--
-- Table structure for table `llx_element_tag`
--

CREATE TABLE `llx_element_tag` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `lang` varchar(5) NOT NULL,
  `tag` varchar(255) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `element` varchar(64) NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_element_tag` (`entity`,`lang`,`tag`,`fk_element`,`element`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_element_tag`
--


--
-- 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,
  `zip` varchar(10) default NULL,
  `town` 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,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_entrepot_label` (`label`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_entrepot` (`rowid`, `datec`, `tms`, `label`, `entity`, `description`, `lieu`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `statut`, `valo_pmp`, `fk_user_author`, `import_key`) VALUES (1,'2016-01-09 06:46:11','2016-01-09 06:46:11','admin usine',1,'','admin usine','','4155','guellala',NULL,10,1,NULL,1,NULL),(2,'2016-01-09 06:47:10','2016-01-09 06:47:10','atelier peinture',1,'','atelier peinture','','','',NULL,10,1,NULL,1,NULL),(3,'2016-01-09 07:05:16','2016-01-09 07:05:16','atelier rideaux',1,'','atelier rideaux','','4155','guellala',NULL,10,1,NULL,1,NULL),(4,'2016-01-09 07:05:46','2016-01-09 07:05:46','atelier sectionnelle',1,'','atelier sectionnelle','','4155','guellala',NULL,10,1,NULL,1,NULL),(5,'2016-01-09 07:06:09','2016-01-09 07:06:09','bureaux samia',1,'','bureaux samia','','4155','guellala',NULL,10,1,NULL,1,NULL),(6,'2016-01-09 07:06:33','2016-01-09 07:06:33','cave usine',1,'','cave usine','','4155','guellala',NULL,10,1,NULL,1,NULL),(7,'2016-01-09 07:06:57','2016-01-09 07:06:57','CES',1,'','CES','','4155','guellala',NULL,10,1,NULL,1,NULL),(8,'2016-01-09 07:07:20','2016-01-09 07:07:20','couloir principal',1,'','couloir principal','','4155','guellala',NULL,10,1,NULL,1,NULL),(9,'2016-01-09 07:07:46','2016-01-09 07:07:46','show HS',1,'','show HS','','4180','houmtsouk',NULL,10,1,NULL,1,NULL);

--
-- Table structure for table `llx_equipement_factory`
--

CREATE TABLE `llx_equipement_factory` (
  `fk_equipement` int(11) NOT NULL default '0',
  `fk_factory` int(11) NOT NULL default '0',
  UNIQUE KEY `uk_factory_equipement` (`fk_equipement`,`fk_factory`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_equipement_factory`
--


--
-- Table structure for table `llx_event_element`
--

CREATE TABLE `llx_event_element` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_source` int(11) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_event_element`
--


--
-- 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_shipping_method` int(11) default NULL,
  `tracking_number` varchar(50) default NULL,
  `fk_statut` smallint(6) default '0',
  `height` float default NULL,
  `width` float default NULL,
  `size_units` int(11) default NULL,
  `size` float default NULL,
  `weight_units` int(11) default NULL,
  `weight` float default NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` 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_shipping_method` (`fk_shipping_method`),
  CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) 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_expeditiondet_batch`
--

CREATE TABLE `llx_expeditiondet_batch` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_expeditiondet` int(11) NOT NULL,
  `eatby` date default NULL,
  `sellby` date default NULL,
  `batch` varchar(30) default NULL,
  `qty` double NOT NULL default '0',
  `fk_origin_stock` int(11) NOT NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_fk_expeditiondet` (`fk_expeditiondet`),
  CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `llx_expeditiondet` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_expeditiondet_batch`
--


--
-- Table structure for table `llx_expensereport`
--

CREATE TABLE `llx_expensereport` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_number_int` int(11) default NULL,
  `ref_ext` int(11) default NULL,
  `total_ht` double(24,8) default '0.00000000',
  `total_tva` double(24,8) default '0.00000000',
  `localtax1` double(24,8) default '0.00000000',
  `localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) default '0.00000000',
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `date_create` datetime NOT NULL,
  `date_valid` datetime default NULL,
  `date_approve` datetime default NULL,
  `date_refuse` datetime default NULL,
  `date_cancel` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_modif` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_user_validator` int(11) default NULL,
  `fk_user_approve` int(11) default NULL,
  `fk_user_refuse` int(11) default NULL,
  `fk_user_cancel` int(11) default NULL,
  `fk_statut` int(11) NOT NULL,
  `fk_c_paiement` int(11) default NULL,
  `paid` smallint(6) NOT NULL default '0',
  `note_public` text,
  `note_private` text,
  `detail_refuse` varchar(255) default NULL,
  `detail_cancel` varchar(255) default NULL,
  `integration_compta` int(11) default NULL,
  `fk_bank_account` int(11) default NULL,
  `model_pdf` varchar(50) default NULL,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_expensereport`
--


--
-- Table structure for table `llx_expensereport_det`
--

CREATE TABLE `llx_expensereport_det` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_expensereport` int(11) NOT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `fk_projet` int(11) default NULL,
  `comments` text NOT NULL,
  `product_type` int(11) default '-1',
  `qty` double NOT NULL,
  `value_unit` double NOT NULL,
  `remise_percent` double default NULL,
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default '0.000',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `total_ht` double(24,8) NOT NULL default '0.00000000',
  `total_tva` double(24,8) NOT NULL default '0.00000000',
  `total_localtax1` double(24,8) default '0.00000000',
  `total_localtax2` double(24,8) default '0.00000000',
  `total_ttc` double(24,8) NOT NULL default '0.00000000',
  `date` date NOT NULL,
  `info_bits` int(11) default '0',
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_expensereport_det`
--


--
-- 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,
  `filter` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_export_model` (`label`,`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- 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` varchar(8) default NULL,
  `fieldunique` int(11) default '0',
  `fieldrequired` int(11) default '0',
  `perms` varchar(255) default NULL,
  `pos` int(11) default '0',
  `alwayseditable` int(11) default '0',
  `param` text,
  `list` int(11) default '0',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_extrafields` (`rowid`, `name`, `entity`, `elementtype`, `tms`, `label`, `type`, `size`, `fieldunique`, `fieldrequired`, `perms`, `pos`, `alwayseditable`, `param`, `list`) VALUES (1,'titrealpiroc',1,'propaldet','2016-01-09 16:44:58','Insérer un titre au dessus','varchar','255',0,0,NULL,0,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0),(2,'titrealpiroc',1,'facturedet','2016-01-09 16:44:58','Insérer un titre au dessus','varchar','255',0,0,NULL,0,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0),(3,'titrealpiroc',1,'commandedet','2016-01-09 16:44:58','Insérer un titre au dessus','varchar','255',0,0,NULL,0,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0),(4,'profilalpiroc',1,'propal','2016-01-09 16:44:58','choisir le type de profil alpiroc','sellist','',0,0,NULL,0,0,'a:1:{s:7:\"options\";a:1:{s:19:\"alpiroc:name:name::\";N;}}',0),(5,'profilalpiroc',1,'facture','2016-01-09 16:44:58','choisir le type de profil alpiroc','sellist','',0,0,NULL,0,0,'a:1:{s:7:\"options\";a:1:{s:19:\"alpiroc:name:name::\";N;}}',0),(6,'profilalpiroc',1,'commande','2016-01-09 16:44:58','choisir le type de profil alpiroc','sellist','',0,0,NULL,0,0,'a:1:{s:7:\"options\";a:1:{s:19:\"alpiroc:name:name::\";N;}}',0);

--
-- Table structure for table `llx_factory`
--

CREATE TABLE `llx_factory` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(30) NOT NULL,
  `fk_product` int(11) NOT NULL default '0',
  `fk_entrepot` int(11) NOT NULL,
  `description` text,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `date_start_planned` datetime default NULL,
  `date_start_made` datetime default NULL,
  `date_end_planned` datetime default NULL,
  `date_end_made` datetime default NULL,
  `duration_planned` double default NULL,
  `duration_made` double default NULL,
  `qty_planned` double default NULL,
  `qty_made` double default NULL,
  `note_public` text,
  `note_private` text,
  `entity` int(11) NOT NULL default '1',
  `fk_user_author` int(11) default NULL,
  `fk_user_valid` int(11) default NULL,
  `fk_user_close` int(11) default NULL,
  `model_pdf` varchar(255) default NULL,
  `fk_statut` smallint(6) default '0',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_factory`
--


--
-- Table structure for table `llx_factory_categ_changeprice`
--

CREATE TABLE `llx_factory_categ_changeprice` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_categories` int(11) NOT NULL,
  `price_level` smallint(6) default '0',
  `init_price` varchar(14) default NULL,
  `computemode` varchar(14) default NULL,
  `computevalue` double(24,8) default '0.00000000',
  `multiplyby` varchar(14) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_factory_categ_changeprice`
--


--
-- Table structure for table `llx_factory_extrafields`
--

CREATE TABLE `llx_factory_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_factory_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_factory_extrafields`
--


--
-- Table structure for table `llx_factorydet`
--

CREATE TABLE `llx_factorydet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_factory` int(11) NOT NULL default '0',
  `fk_product` int(11) NOT NULL default '0',
  `qty_unit` double default NULL,
  `qty_planned` double default NULL,
  `qty_used` double default NULL,
  `qty_deleted` double default NULL,
  `pmp` double(24,8) default '0.00000000',
  `price` double(24,8) default '0.00000000',
  `fk_mvtstockplanned` int(11) NOT NULL default '0',
  `fk_mvtstockused` int(11) NOT NULL default '0',
  `fk_mvtstockother` int(11) NOT NULL default '0',
  `note_public` text,
  `globalqty` int(11) NOT NULL default '0',
  `description` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_factorydet` (`fk_factory`,`fk_product`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_factorydet`
--


--
-- 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',
  `revenuestamp` 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_modif` 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(3) 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_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` varchar(255) default NULL,
  `situation_cycle_ref` smallint(6) default NULL,
  `situation_counter` smallint(6) default NULL,
  `situation_final` smallint(6) 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_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`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 DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_facture_extrafields`
--

CREATE TABLE `llx_facture_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,
  `profilalpiroc` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_facture_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facture_extrafields`
--


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

CREATE TABLE `llx_facture_fourn` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(255) NOT NULL,
  `ref_supplier` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(255) 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_modif` 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_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `date_lim_reglement` date default NULL,
  `note_private` text,
  `note_public` text,
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` varchar(255) default NULL,
  `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` (`ref`,`entity`),
  UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`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_parent_line` int(11) default 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,
  `remise_percent` double default '0',
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default '0.000',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `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,
  `info_bits` int(11) default '0',
  `fk_code_ventilation` int(11) NOT NULL default '0',
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  `import_key` varchar(14) default NULL,
  `fk_unit` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`),
  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_fourn_det_extrafields`
--

CREATE TABLE `llx_facture_fourn_det_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_facture_fourn_det_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facture_fourn_det_extrafields`
--


--
-- Table structure for table `llx_facture_fourn_extrafields`
--

CREATE TABLE `llx_facture_fourn_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_facture_fourn_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facture_fourn_extrafields`
--


--
-- 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',
  `revenuestamp` 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_private` text,
  `note_public` text,
  `usenewprice` int(11) default '0',
  `frequency` int(11) default NULL,
  `unit_frequency` varchar(2) default 'm',
  `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,
  `label` varchar(255) default NULL,
  `description` text,
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default '0.000',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `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',
  `buy_price_ht` double(24,8) default '0.00000000',
  `fk_product_fournisseur_price` int(11) default NULL,
  `fk_code_ventilation` int(11) NOT NULL default '0',
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  `import_key` varchar(14) default NULL,
  `situation_percent` double default NULL,
  `fk_prev_id` int(11) default NULL,
  `fk_unit` int(11) 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`),
  KEY `fk_facturedet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`),
  CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_facturedet_extrafields`
--

CREATE TABLE `llx_facturedet_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,
  `titrealpiroc` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_facturedet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_facturedet_extrafields`
--


--
-- 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',
  `label` varchar(255) default NULL,
  `description` text,
  `tva_tx` double(6,3) default NULL,
  `localtax1_tx` double(6,3) default '0.000',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `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,
  `info_bits` int(11) default '0',
  `special_code` int(10) unsigned default '0',
  `rang` int(11) default '0',
  `fk_contract_line` int(11) default NULL,
  `fk_unit` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `fk_facturedet_rec_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`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,
  `ref_ext` varchar(255) 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_valid` datetime default NULL,
  `datei` date default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_modif` 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 DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_fichinter_extrafields`
--

CREATE TABLE `llx_fichinter_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_ficheinter_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_fichinter_extrafields`
--


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

CREATE TABLE `llx_fichinterdet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_fichinter` int(11) default NULL,
  `fk_parent_line` 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 DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_fichinterdet_extrafields`
--

CREATE TABLE `llx_fichinterdet_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_ficheinterdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_fichinterdet_extrafields`
--


--
-- Table structure for table `llx_holiday`
--

CREATE TABLE `llx_holiday` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_user` int(11) NOT NULL,
  `fk_user_create` int(11) default NULL,
  `fk_type` int(11) NOT NULL,
  `date_create` datetime NOT NULL,
  `description` varchar(255) NOT NULL,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `halfday` int(11) default '0',
  `statut` int(11) NOT NULL default '1',
  `fk_validator` int(11) NOT NULL,
  `date_valid` datetime default NULL,
  `fk_user_valid` int(11) default NULL,
  `date_refuse` datetime default NULL,
  `fk_user_refuse` int(11) default NULL,
  `date_cancel` datetime default NULL,
  `fk_user_cancel` int(11) default NULL,
  `detail_refuse` varchar(250) default NULL,
  `note_private` text,
  `note_public` text,
  PRIMARY KEY  (`rowid`),
  KEY `idx_holiday_fk_user` (`fk_user`),
  KEY `idx_holiday_fk_user_create` (`fk_user_create`),
  KEY `idx_holiday_date_create` (`date_create`),
  KEY `idx_holiday_date_debut` (`date_debut`),
  KEY `idx_holiday_date_fin` (`date_fin`),
  KEY `idx_holiday_fk_validator` (`fk_validator`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_holiday`
--


--
-- Table structure for table `llx_holiday_config`
--

CREATE TABLE `llx_holiday_config` (
  `rowid` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `value` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_holiday_config`
--

INSERT INTO `llx_holiday_config` (`rowid`, `name`, `value`) VALUES (1,'lastUpdate','20160109065040');

--
-- Table structure for table `llx_holiday_events`
--

CREATE TABLE `llx_holiday_events` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `name` varchar(255) NOT NULL,
  `value` text NOT NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_holiday_name` (`name`,`entity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_holiday_events`
--


--
-- Table structure for table `llx_holiday_logs`
--

CREATE TABLE `llx_holiday_logs` (
  `rowid` int(11) NOT NULL auto_increment,
  `date_action` datetime NOT NULL,
  `fk_user_action` int(11) NOT NULL,
  `fk_user_update` int(11) NOT NULL,
  `fk_type` int(11) NOT NULL,
  `type_action` varchar(255) NOT NULL,
  `prev_solde` varchar(255) NOT NULL,
  `new_solde` varchar(255) NOT NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_holiday_logs`
--


--
-- Table structure for table `llx_holiday_users`
--

CREATE TABLE `llx_holiday_users` (
  `fk_user` int(11) NOT NULL,
  `fk_type` int(11) NOT NULL,
  `nb_holiday` double NOT NULL default '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_holiday_users`
--


--
-- 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_links`
--

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

--
-- Dumping data for table `llx_links`
--


--
-- 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` datetime default NULL,
  `fk_address` int(11) default NULL,
  `fk_statut` smallint(6) default '0',
  `total_ht` double(24,8) default '0.00000000',
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` 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_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`),
  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`)
) 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_loan`
--

CREATE TABLE `llx_loan` (
  `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,
  `label` varchar(80) NOT NULL,
  `fk_bank` int(11) default NULL,
  `capital` double NOT NULL default '0',
  `datestart` date default NULL,
  `dateend` date default NULL,
  `nbterm` double default NULL,
  `rate` double NOT NULL,
  `note_private` text,
  `note_public` text,
  `capital_position` double default '0',
  `date_position` date default NULL,
  `paid` smallint(6) NOT NULL default '0',
  `accountancy_account_capital` varchar(32) default NULL,
  `accountancy_account_insurance` varchar(32) default NULL,
  `accountancy_account_interest` varchar(32) default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_modif` int(11) default NULL,
  `active` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_loan`
--


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

CREATE TABLE `llx_localtax` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `localtaxtype` tinyint(4) default NULL,
  `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` mediumtext,
  `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,
  `extraparams` varchar(255) 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,
  `lastname` varchar(160) default NULL,
  `firstname` 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(24) default NULL,
  `fk_leftmenu` varchar(24) 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=41 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 (5,'all',1,'expensereport','left','hrm','expensereport',-1,'hrm',NULL,100,'/expensereport/index.php','','TripsAndExpenses','trips',NULL,'$user->rights->expensereport->lire','$conf->expensereport->enabled',2,'2016-01-08 19:40:24'),(6,'all',1,'expensereport','left','hrm','expensereport_detailnew',-1,'hrm','expensereport',100,'/expensereport/card.php?action=create','','New','trips',NULL,'$user->rights->expensereport->creer','$conf->expensereport->enabled',2,'2016-01-08 19:40:24'),(7,'all',1,'expensereport','left','hrm','expensereport_detaillist',-1,'hrm','expensereport',100,'/expensereport/list.php','','List','trips',NULL,'$user->rights->expensereport->lire','$conf->expensereport->enabled',2,'2016-01-08 19:40:24'),(8,'all',1,'expensereport','left','hrm','expensereport_detaillist_approve',-1,'hrm','expensereport_detaillist',100,'/expensereport/list.php?search_status=2','','ListToApprove','trips',NULL,'$user->rights->expensereport->approve','$conf->expensereport->enabled',2,'2016-01-08 19:40:24'),(9,'all',1,'expensereport','left','hrm','expensereport_detail',-1,'hrm','expensereport',100,'/expensereport/stats/index.php','','Statistics','trips',NULL,'$user->rights->expensereport->lire','$conf->expensereport->enabled',2,'2016-01-08 19:40:24'),(10,'all',1,'expensereport','left','hrm','expensereport_detail',-1,'hrm','expensereport',100,'/expensereport/export_csv.php','','ExportTripCSV','expensereport',NULL,'$user->rights->expensereport->lire','$conf->global->DEPLACEMENT_TO_CLEAN',2,'2016-01-08 19:40:24'),(11,'all',1,'expensereport','left','hrm','expensereport_detail',-1,'hrm','expensereport',100,'/expensereport/synchro_compta.php','','Synchro_Compta','expensereport',NULL,'$user->rights->expensereport->lire','$conf->global->DEPLACEMENT_TO_CLEAN',2,'2016-01-08 19:40:24'),(12,'all',1,'cashdesk','top','cashdesk',NULL,0,NULL,NULL,100,'/cashdesk/index.php?user=__LOGIN__','pointofsale','CashDeskMenu','cashdesk',NULL,'$user->rights->cashdesk->use','$conf->cashdesk->enabled',0,'2016-01-08 19:42:36'),(13,'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,'2016-01-08 19:46:36'),(14,'all',1,'agenda','left','agenda',NULL,13,NULL,NULL,100,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Actions','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2016-01-08 19:46:36'),(15,'all',1,'agenda','left','agenda',NULL,14,NULL,NULL,101,'/comm/action/card.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,'2016-01-08 19:46:36'),(16,'all',1,'agenda','left','agenda',NULL,14,NULL,NULL,102,'/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda','','Agenda','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2016-01-08 19:46:36'),(17,'all',1,'agenda','left','agenda',NULL,16,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,'2016-01-08 19:46:36'),(18,'all',1,'agenda','left','agenda',NULL,16,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,'2016-01-08 19:46:36'),(19,'all',1,'agenda','left','agenda',NULL,16,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,'2016-01-08 19:46:36'),(20,'all',1,'agenda','left','agenda',NULL,16,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,'2016-01-08 19:46:36'),(21,'all',1,'agenda','left','agenda',NULL,14,NULL,NULL,112,'/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda','','List','agenda',NULL,'$user->rights->agenda->myactions->read','$conf->agenda->enabled',2,'2016-01-08 19:46:36'),(22,'all',1,'agenda','left','agenda',NULL,21,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,'2016-01-08 19:46:36'),(23,'all',1,'agenda','left','agenda',NULL,21,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,'2016-01-08 19:46:36'),(24,'all',1,'agenda','left','agenda',NULL,21,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,'2016-01-08 19:46:36'),(25,'all',1,'agenda','left','agenda',NULL,21,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,'2016-01-08 19:46:36'),(26,'all',1,'agenda','left','agenda',NULL,14,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,'2016-01-08 19:46:36'),(30,'all',1,'cron','left','home',NULL,-1,'home','modulesadmintools',200,'/cron/list.php?status=-1','','CronList','cron',NULL,'$user->rights->cron->read','$leftmenu==\'modulesadmintools\'',2,'2016-01-08 19:52:13'),(31,'all',1,'margins','left','accountancy','margins',-1,'accountancy',NULL,100,'/margin/index.php','','Margins','margins',NULL,'$user->rights->margins->liretous','$conf->margin->enabled',2,'2016-01-08 19:56:44'),(32,'all',1,'resource','left','tools','resource',-1,'tools',NULL,100,'/resource/list.php','','MenuResourceIndex','resource',NULL,'$user->rights->resource->read','1',0,'2016-01-08 19:58:47'),(33,'all',1,'resource','left','tools',NULL,-1,'tools','resource',101,'/resource/add.php','','MenuResourceAdd','resource',NULL,'$user->rights->resource->read','1',0,'2016-01-08 19:58:47'),(37,'all',1,'printing','left','printing',NULL,-1,'home','modulesadmintools',300,'/printing/index.php','','MenuDirectPrinting','printing',NULL,'$user->rights->printing->read','$conf->printing->enabled && $leftmenu==\'modulesadmintools\'',0,'2016-01-08 20:09:55'),(38,'all',1,'factory','left','',NULL,-1,'products','product',100,'/factory/list.php','','Factory','factory@factory',NULL,'1','1',2,'2016-01-09 17:36:08'),(39,'all',1,'factory','left','',NULL,-1,'products','product',110,'/factory/product/declinaison.php','','Declinaison','factory@factory',NULL,'1','1',2,'2016-01-09 17:36:08');

--
-- 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_soc` int(11) default NULL,
  `fk_contact` int(11) default NULL,
  `fk_user` int(11) default NULL,
  `type` varchar(16) default 'email',
  `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_opensurvey_comments`
--

CREATE TABLE `llx_opensurvey_comments` (
  `id_comment` int(10) unsigned NOT NULL auto_increment,
  `id_sondage` char(16) NOT NULL,
  `comment` text NOT NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `usercomment` text,
  PRIMARY KEY  (`id_comment`),
  KEY `idx_id_comment` (`id_comment`),
  KEY `idx_id_sondage` (`id_sondage`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_opensurvey_comments`
--


--
-- Table structure for table `llx_opensurvey_sondage`
--

CREATE TABLE `llx_opensurvey_sondage` (
  `id_sondage` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `commentaires` text,
  `mail_admin` varchar(128) default NULL,
  `nom_admin` varchar(64) default NULL,
  `fk_user_creat` int(11) NOT NULL,
  `titre` text NOT NULL,
  `date_fin` datetime NOT NULL,
  `format` varchar(2) NOT NULL,
  `mailsonde` tinyint(4) NOT NULL default '0',
  `allow_comments` tinyint(4) NOT NULL default '1',
  `allow_spy` tinyint(4) NOT NULL default '1',
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `sujet` text,
  PRIMARY KEY  (`id_sondage`),
  KEY `idx_date_fin` (`date_fin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_opensurvey_sondage`
--


--
-- Table structure for table `llx_opensurvey_user_studs`
--

CREATE TABLE `llx_opensurvey_user_studs` (
  `id_users` int(11) NOT NULL auto_increment,
  `nom` varchar(64) NOT NULL,
  `id_sondage` varchar(16) NOT NULL,
  `reponses` varchar(100) NOT NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id_users`),
  KEY `idx_opensurvey_user_studs_id_users` (`id_users`),
  KEY `idx_opensurvey_user_studs_nom` (`nom`),
  KEY `idx_opensurvey_user_studs_id_sondage` (`id_sondage`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_opensurvey_user_studs`
--


--
-- 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 DEFAULT CHARSET=utf8;

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


--
-- 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 DEFAULT CHARSET=utf8;

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


--
-- 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_payment_donation`
--

CREATE TABLE `llx_payment_donation` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_donation` 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_typepayment` int(11) NOT NULL,
  `num_payment` 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_payment_donation`
--


--
-- Table structure for table `llx_payment_expensereport`
--

CREATE TABLE `llx_payment_expensereport` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_expensereport` 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_typepayment` int(11) NOT NULL,
  `num_payment` 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_payment_expensereport`
--


--
-- Table structure for table `llx_payment_loan`
--

CREATE TABLE `llx_payment_loan` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_loan` int(11) default NULL,
  `datec` datetime default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datep` datetime default NULL,
  `amount_capital` double default '0',
  `amount_insurance` double default '0',
  `amount_interest` double default '0',
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) default NULL,
  `note_private` text,
  `note_public` 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_payment_loan`
--


--
-- Table structure for table `llx_payment_salary`
--

CREATE TABLE `llx_payment_salary` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_user` int(11) NOT NULL,
  `datep` date default NULL,
  `datev` date default NULL,
  `salary` double default NULL,
  `amount` double NOT NULL default '0',
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) default NULL,
  `label` varchar(255) default NULL,
  `datesp` date default NULL,
  `dateep` date 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`),
  KEY `idx_payment_salary_ref` (`num_payment`),
  KEY `idx_payment_salary_user` (`fk_user`,`entity`),
  KEY `idx_payment_salary_datep` (`datep`),
  KEY `idx_payment_salary_datesp` (`datesp`),
  KEY `idx_payment_salary_dateep` (`dateep`),
  CONSTRAINT `fk_payment_salary_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_payment_salary`
--


--
-- 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_printing`
--

CREATE TABLE `llx_printing` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `datec` datetime default NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_id` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL default '1',
  `module` varchar(16) NOT NULL,
  `driver` varchar(16) NOT NULL,
  `userid` int(11) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_printing`
--


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

CREATE TABLE `llx_product` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(128) NOT NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(128) 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,
  `fk_user_modif` int(11) default NULL,
  `tosell` tinyint(4) default '1',
  `tobuy` tinyint(4) default '1',
  `tobatch` tinyint(4) NOT NULL default '0',
  `fk_product_type` int(11) default '0',
  `duration` varchar(6) default NULL,
  `seuil_stock_alerte` int(11) default '0',
  `url` varchar(255) default NULL,
  `barcode` varchar(255) default NULL,
  `fk_barcode_type` int(11) default NULL,
  `accountancy_code_sell` varchar(32) default NULL,
  `accountancy_code_buy` varchar(32) 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',
  `fifo` double(24,8) default NULL,
  `lifo` double(24,8) default NULL,
  `canvas` varchar(32) default NULL,
  `finished` tinyint(4) default NULL,
  `hidden` tinyint(4) default '0',
  `import_key` varchar(14) default NULL,
  `fk_price_expression` int(11) default NULL,
  `desiredstock` int(11) default '0',
  `fk_unit` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  KEY `idx_product_label` (`label`),
  KEY `idx_product_barcode` (`barcode`),
  KEY `idx_product_import_key` (`import_key`),
  KEY `idx_product_seuil_stock_alerte` (`seuil_stock_alerte`),
  KEY `idx_product_fk_country` (`fk_country`),
  KEY `idx_product_fk_user_author` (`fk_user_author`),
  KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  KEY `fk_product_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `llx_c_barcode_type` (`rowid`),
  CONSTRAINT `fk_product_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `llx_c_country` (`rowid`),
  CONSTRAINT `fk_product_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=177 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`, `fk_user_modif`, `tosell`, `tobuy`, `tobatch`, `fk_product_type`, `duration`, `seuil_stock_alerte`, `url`, `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`, `fifo`, `lifo`, `canvas`, `finished`, `hidden`, `import_key`, `fk_price_expression`, `desiredstock`, `fk_unit`) VALUES (1,'PSAR2250_2050',1,NULL,'2016-01-09 07:00:19','2016-01-09 13:05:34',0,0,'PORTE SECTIONELLE A RAILLURE','<strong>Dim: 2250mmL/2050mmH<br />\r\nPeinture : BLANC</strong>','','',NULL,922.50000000,1088.55000000,922.50000000,1088.55000000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(2,'PSAR2250_2150',1,NULL,'2016-01-09 07:07:32','2016-01-09 13:44:32',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2250mmL/2150mmH Peinture : BLANC','','',NULL,967.50000000,1141.65000000,967.50000000,1141.65000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(3,'PRMLPPP107X0.8',1,NULL,'2016-01-09 07:29:57','2016-01-09 13:44:56',0,0,'PORTE RIDEAU METALLIQUE EN LAME PLANE PERFOREE P107 TYPE FRANCAIS','<strong><span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">Dim: .................mL / ..............mH</span></strong><br />\r\n<br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Tablier en Lame Plane &nbsp;y compris une bonde de 1.60m en Lame &nbsp;Perfor&eacute;e Type fran&ccedil;aise P107<br />\r\navec une Lame Final renforce 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Axe de roulement&nbsp;</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Boites &agrave; ressort &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Qt&eacute;:<br />\r\n-&nbsp;Ressort ...... x 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de coulisse de guidage 50x30x50</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de joue de flasque 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 supports d&#39;axe<br />\r\n- Guidage tablette</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 Arr&eacute;toires</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 1 poign&eacute;e</span>','','',NULL,108.47400000,127.99900000,108.47400000,127.99900000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(4,'PRMLPPP107X1.0',1,NULL,'2016-01-09 07:59:14','2016-01-09 13:44:56',0,0,'PORTE RIDEAU METALLIQUE EN LAME PLANE PERFOREE P107 TYPE FRANCAIS','<strong><span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">Dim: .................mL / ..............mH</span></strong><br />\r\n<br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Tablier en Lame Plane &nbsp;Perfor&eacute;e Type fran&ccedil;aise P107<br />\r\navec une Lame Final renforce 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Axe de roulement&nbsp;</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Boites &agrave; ressort &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Qt&eacute;:<br />\r\n-&nbsp;Ressort ...... x 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de coulisse de guidage 50x30x50</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de joue de flasque 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 supports d&#39;axe<br />\r\n- Guidage tablette</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 Arr&eacute;toires</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 1 poign&eacute;e</span>','','',NULL,128.81300000,151.99900000,112.01200000,132.17400000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(5,'PRMLPP160X1.0',1,NULL,'2016-01-09 08:09:32','2016-01-09 13:44:56',0,0,'PORTE RIDEAU METALLIQUE EN LAME PLANE P160 TYPE AMERICAIN','<strong><span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">Dim: .................mL / ..............mH</span></strong><br />\r\n<br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Tablier en Lame Plane &nbsp;Type am&eacute;ricain P160 Ep 10/10<br />\r\navec une Lame Final renforce 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Axe de roulement&nbsp;</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Boites &agrave; ressort &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Qt&eacute;:<br />\r\n-&nbsp;Ressort ...... x 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de coulisse de guidage 50x30x50</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de joue de flasque 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 supports d&#39;axe<br />\r\n- Guidage tablette</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 Arr&eacute;toires</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 1 poign&eacute;e</span>','','',NULL,103.70000000,122.36600000,90.17400000,106.40500000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(6,'PRMLPP107X0.8',1,NULL,'2016-01-09 08:14:05','2016-01-09 13:44:56',0,0,'PORTE RIDEAU METALLIQUE EN LAME PLANE P107 TYPE FRANCAIS','<strong><span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">Dim: .................mL / ..............mH</span></strong><br />\r\n<br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Tablier en Lame Plane &nbsp;Type Fran&ccedil;ais P107 Ep 8/10<br />\r\navec une Lame Final renforce 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Axe de roulement&nbsp;</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Boites &agrave; ressort &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Qt&eacute;:<br />\r\n-&nbsp;Ressort ...... x 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de coulisse de guidage 50x30x50</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de joue de flasque 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 supports d&#39;axe<br />\r\n- Guidage tablette</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 Arr&eacute;toires</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 1 poign&eacute;e</span>','','',NULL,67.79600000,79.99900000,55.08500000,65.00000000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(7,'PRMCTE100',1,NULL,'2016-01-09 08:18:57','2016-01-09 13:44:56',0,0,'PORTE RIDEAU METALLIQUE COSMOS EN TUBE ONDULE','<strong><span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">Dim: .................mL / ..............mH</span></strong><br />\r\n<br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Tablier en Tube Ondul&eacute; et Agraffe d&#39;assemblage en Acier Galvanis&eacute;<br />\r\navec une Lame Final renforce 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Axe de roulement&nbsp;</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Boites &agrave; ressort &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Qt&eacute;:<br />\r\n-&nbsp;Ressort ...... x 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de coulisse de guidage 50x30x50</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- Pair de joue de flasque 15/10</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 supports d&#39;axe<br />\r\n- Guidage tablette</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 2 Arr&eacute;toires</span><br />\r\n<span style=\"color:rgb(68, 68, 68); font-family:arial,tahoma,verdana,helvetica; font-size:12px\">- 1 poign&eacute;e</span>','','',NULL,161.01700000,190.00000000,161.01700000,190.00000000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(8,'PSAR2250_2250',1,NULL,'2016-01-09 08:30:52','2016-01-09 13:44:56',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2250mmL/2250mmH Peinture : BLANC','','',NULL,1012.50000000,1194.75000000,1012.50000000,1194.75000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(9,'PPRM',1,NULL,'2016-01-09 08:41:01','2016-01-09 13:44:56',0,0,'POIGNET POUR PORTE RIDEAU METALLIQUE','','','',NULL,1.35600000,1.60000000,1.35600000,1.60000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(10,'PSAR2250_2350',1,NULL,'2016-01-09 08:46:16','2016-01-09 13:44:56',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2250mmL/2350mmH Peinture : BLANC','','',NULL,1427.62500000,1684.59800000,1427.62500000,1684.59800000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(11,'PSAR2250_2450',1,NULL,'2016-01-09 08:48:01','2016-01-09 13:44:56',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2250mmL/2450mmH Peinture : BLANC','','',NULL,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(12,'PEGM',1,NULL,'2016-01-09 08:52:27','2016-01-09 13:44:56',0,0,'POIGNEE A ENCASTRER GRAND MODEL','','','',NULL,3.30500000,3.90000000,3.30500000,3.90000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(13,'PH',1,NULL,'2016-01-09 08:57:25','2016-01-09 13:44:56',0,0,'PAIR PHOTOCELLULE','<strong>Marque :&nbsp;</strong>','','',NULL,74.57600000,88.00000000,74.57600000,88.00000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(14,'PGPRMAPP',1,NULL,'2016-01-09 09:00:56','2016-01-09 13:44:56',0,0,'PAIR DE GUIDAGE PORTE RIDEAU EN APPLIQUE','','','',NULL,97.45800000,115.00000000,97.45800000,115.00000000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(15,'PGPRMAPPL',1,NULL,'2016-01-09 09:02:23','2016-01-09 13:44:56',0,0,'PAIR DE GUIDAGE PORTE RIDEAU EN APPLIQUE LAQUE','','','',NULL,151.35600000,178.60000000,151.35600000,178.60000000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(16,'PGPRMAS',1,NULL,'2016-01-09 09:09:27','2016-01-09 13:44:56',0,0,'PAIR DE GUIDAGE PORTE RIDEAU A SCELLER','','','',NULL,84.74500000,99.99900000,84.45700000,99.65900000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(17,'PGPRMASL',1,NULL,'2016-01-09 09:11:56','2016-01-09 13:44:56',0,0,'PAIR DE GUIDAGE PORTE RIDEAU A SCELLER','','','',NULL,84.74500000,99.99900000,84.45700000,99.65900000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(94,'M_OPERAT_600_60_220',1,NULL,'2016-01-09 13:01:34','2016-01-09 13:44:56',0,0,'MOTEUR CENTRALE SIMPLE INDUIT OPERAT 600-60*220-200KG','','','',NULL,190.67800000,225.00000000,173.72800000,204.99900000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,68,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(95,'M_OPERAT_600RI_60_220',1,NULL,'2016-01-09 13:05:51','2016-01-09 13:44:56',0,0,'MOTEUR CENTRALE SIMPLE INDUIT OPERAT 600RI-60*220-200KG','Avec Recepteur Integr&eacute;+ un Emetteur 3 T','','',NULL,275.42400000,325.00000000,275.42400000,325.00000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,10,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(96,'M_OPERAT_1000_76_240',1,NULL,'2016-01-09 13:17:56','2016-01-09 13:44:56',0,0,'MOTEUR CENTRALE DOUBLE INDUIT OPERAT 1000-76*240-420KG','','','',NULL,280.00000000,330.40000000,280.00000000,330.40000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,18,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(97,'PSAR2250_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2250mmL/2550mmH Peinture : BLANC','','',NULL,1721.00000000,2031.00000000,1721.00000000,2031.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(98,'PSAR2250_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2250mmL/2650mmH Peinture : BLANC','','',NULL,1788.00000000,2110.00000000,1788.00000000,2110.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(99,'PSAR2400_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2400mmL/2050mmH Peinture : BLANC','','',NULL,984.00000000,1161.00000000,984.00000000,1161.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(100,'PSAR2400_2150',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2400mmL/2150mmH Peinture : BLANC','','',NULL,1032.00000000,1217.00000000,1032.00000000,1217.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(101,'PSAR2400_2250',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2400mmL/2250mmH Peinture : BLANC','','',NULL,1080.00000000,1274.00000000,1080.00000000,1274.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(102,'PSAR2400_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2400mmL/2350mmH Peinture : BLANC','','',NULL,1522.00000000,1796.00000000,1522.00000000,1796.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(103,'PSAR2400_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2400mmL/2450mmH Peinture : BLANC','','',NULL,1587.00000000,1873.00000000,1587.00000000,1873.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(104,'PSAR2400_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2400mmL/2550mmH Peinture : BLANC','','',NULL,1836.00000000,2166.00000000,1836.00000000,2166.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(105,'PSAR2400_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2400mmL/2650mmH Peinture : BLANC','','',NULL,1908.00000000,2251.00000000,1908.00000000,2251.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(106,'PSAR2500_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2500mmL/2050mmH Peinture : BLANC','','',NULL,1025.00000000,1209.00000000,1025.00000000,1209.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(107,'PSAR2500_2150',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:10:54',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2500mmL/2150mmH Peinture : BLANC','','',NULL,1075.00000000,1268.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(108,'PSAR2500_2250',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:10:58',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2500mmL/2250mmH Peinture : BLANC','','',NULL,1125.00000000,1327.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(109,'PSAR2500_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2500mmL/2350mmH Peinture : BLANC','','',NULL,1586.00000000,1871.00000000,1586.00000000,1871.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(110,'PSAR2500_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2500mmL/2450mmH Peinture : BLANC','','',NULL,1653.00000000,1951.00000000,1653.00000000,1951.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(111,'PSAR2500_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2500mmL/2550mmH Peinture : BLANC','','',NULL,1912.00000000,2256.00000000,1912.00000000,2256.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(112,'PSAR2500_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2500mmL/2650mmH Peinture : BLANC','','',NULL,1987.00000000,2345.00000000,1987.00000000,2345.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(113,'PSAR2750_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2750mmL/2050mmH Peinture : BLANC','','',NULL,1127.00000000,1330.00000000,1127.00000000,1330.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(114,'PSAR2750_2150',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2750mmL/2150mmH Peinture : BLANC','','',NULL,1182.00000000,1395.00000000,1182.00000000,1395.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(115,'PSAR2750_2250',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2750mmL/2250mmH Peinture : BLANC','','',NULL,1237.00000000,1460.00000000,1237.00000000,1460.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(116,'PSAR2750_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2750mmL/2350mmH Peinture : BLANC','','',NULL,1744.00000000,2058.00000000,1744.00000000,2058.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(117,'PSAR2750_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2750mmL/2450mmH Peinture : BLANC','','',NULL,1819.00000000,2146.00000000,1819.00000000,2146.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(118,'PSAR2750_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2750mmL/2550mmH Peinture : BLANC','','',NULL,2103.00000000,2482.00000000,2103.00000000,2482.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(119,'PSAR2750_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 2750mmL/2650mmH Peinture : BLANC','','',NULL,2186.00000000,2579.00000000,2186.00000000,2579.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(120,'PSAR3000_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3000mmL/2050mmH Peinture : BLANC','','',NULL,1230.00000000,1451.00000000,1230.00000000,1451.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(121,'PSAR3000_2150',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3000mmL/2150mmH Peinture : BLANC','','',NULL,1290.00000000,1522.00000000,1290.00000000,1522.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(122,'PSAR3000_2250',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3000mmL/2250mmH Peinture : BLANC','','',NULL,1350.00000000,1593.00000000,1350.00000000,1593.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(123,'PSAR3000_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3000mmL/2350mmH Peinture : BLANC','','',NULL,1903.00000000,2246.00000000,1903.00000000,2246.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(124,'PSAR3000_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3000mmL/2450mmH Peinture : BLANC','','',NULL,1984.00000000,2341.00000000,1984.00000000,2341.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(125,'PSAR3000_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3000mmL/2550mmH Peinture : BLANC','','',NULL,2295.00000000,2708.00000000,2295.00000000,2708.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(126,'PSAR3000_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3000mmL/2650mmH Peinture : BLANC','','',NULL,2385.00000000,2814.00000000,2385.00000000,2814.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(127,'PSAR3500_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3500mmL/2050mmH Peinture : BLANC','','',NULL,1578.00000000,1862.00000000,1578.00000000,1862.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(128,'PSAR3500_2150',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3500mmL/2150mmH Peinture : BLANC','','',NULL,1655.00000000,1953.00000000,1655.00000000,1953.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(129,'PSAR3500_2250',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3500mmL/2250mmH Peinture : BLANC','','',NULL,1732.00000000,2044.00000000,1732.00000000,2044.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(130,'PSAR3500_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3500mmL/2350mmH Peinture : BLANC','','',NULL,2220.00000000,2620.00000000,2220.00000000,2620.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(131,'PSAR3500_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3500mmL/2450mmH Peinture : BLANC','','',NULL,2315.00000000,2731.00000000,2315.00000000,2731.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(132,'PSAR3500_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3500mmL/2550mmH Peinture : BLANC','','',NULL,2677.00000000,3159.00000000,2677.00000000,3159.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(133,'PSAR3500_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 3500mmL/2650mmH Peinture : BLANC','','',NULL,2782.00000000,3283.00000000,2782.00000000,3283.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(134,'PSAR4000_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4000mmL/2050mmH Peinture : BLANC','','',NULL,1804.00000000,2128.00000000,1804.00000000,2128.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(135,'PSAR4000_2150',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4000mmL/2150mmH Peinture : BLANC','','',NULL,1892.00000000,2232.00000000,1892.00000000,2232.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(136,'PSAR4000_2250',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4000mmL/2250mmH Peinture : BLANC','','',NULL,1980.00000000,2336.00000000,1980.00000000,2336.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(137,'PSAR4000_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4000mmL/2350mmH Peinture : BLANC','','',NULL,2820.00000000,3327.00000000,2820.00000000,3327.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(138,'PSAR4000_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4000mmL/2450mmH Peinture : BLANC','','',NULL,2940.00000000,3469.00000000,2940.00000000,3469.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(139,'PSAR4000_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4000mmL/2550mmH Peinture : BLANC','','',NULL,3060.00000000,3610.00000000,3060.00000000,3610.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(140,'PSAR4000_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4000mmL/2650mmH Peinture : BLANC','','',NULL,3180.00000000,3752.00000000,3180.00000000,3752.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(141,'PSAR4500_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4500mmL/2050mmH Peinture : BLANC','','',NULL,2029.00000000,2394.00000000,2029.00000000,2394.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(142,'PSAR4500_2150',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4500mmL/2150mmH Peinture : BLANC','','',NULL,2128.00000000,2511.00000000,2128.00000000,2511.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(143,'PSAR4500_2250',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4500mmL/2250mmH Peinture : BLANC','','',NULL,2227.00000000,2628.00000000,2227.00000000,2628.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(144,'PSAR4500_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4500mmL/2350mmH Peinture : BLANC','','',NULL,3172.00000000,3743.00000000,3172.00000000,3743.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(145,'PSAR4500_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4500mmL/2450mmH Peinture : BLANC','','',NULL,3307.00000000,3902.00000000,3307.00000000,3902.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(146,'PSAR4500_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4500mmL/2550mmH Peinture : BLANC','','',NULL,3442.00000000,4062.00000000,3442.00000000,4062.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(147,'PSAR4500_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 4500mmL/2650mmH Peinture : BLANC','','',NULL,3577.00000000,4221.00000000,3577.00000000,4221.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(148,'PSAR5000_2050',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 5000mmL/2050mmH Peinture : BLANC','','',NULL,2255.00000000,2660.00000000,2255.00000000,2660.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(149,'PSAR5000_2150',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 5000mmL/2150mmH Peinture : BLANC','','',NULL,2365.00000000,2790.00000000,2365.00000000,2790.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(150,'PSAR5000_2250',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 5000mmL/2250mmH Peinture : BLANC','','',NULL,2475.00000000,2920.00000000,2475.00000000,2920.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(151,'PSAR5000_2350',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 5000mmL/2350mmH Peinture : BLANC','','',NULL,3525.00000000,4159.00000000,3525.00000000,4159.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(152,'PSAR5000_2450',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 5000mmL/2450mmH Peinture : BLANC','','',NULL,3675.00000000,4336.00000000,3675.00000000,4336.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(153,'PSAR5000_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 5000mmL/2550mmH Peinture : BLANC','','',NULL,3825.00000000,4513.00000000,3825.00000000,4513.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(154,'PSAR5000_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A RAILLURE','Dim: 5000mmL/2650mmH Peinture : BLANC','','',NULL,3975.00000000,4690.00000000,3975.00000000,4690.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(155,'PSAC2500_2050',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:18',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2500mmL/2050mmH Peinture : BLANC','','',NULL,1125.00000000,1327.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(156,'PSAC2500_2150',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:25',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2500mmL/2150mmH Peinture : BLANC','','',NULL,1175.00000000,1386.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(157,'PSAC2500_2250',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:27',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2500mmL/2250mmH Peinture : BLANC','','',NULL,1225.00000000,1445.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(158,'PSAC2500_2350',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:30',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2500mmL/2350mmH Peinture : BLANC','','',NULL,1686.00000000,1989.48000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(159,'PSAC2500_2450',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:32',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2500mmL/2450mmH Peinture : BLANC','','',NULL,1753.00000000,2068.54000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(160,'PSAC2500_2550',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:50',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2500mmL/2550mmH Peinture : BLANC','','',NULL,2012.00000000,2374.16000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(161,'PSAC2500_2650',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:52',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2500mmL/2650mmH Peinture : BLANC','','',NULL,2087.00000000,2462.66000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(162,'PSAC2750_2050',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:09:54',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2750mmL/2050mmH Peinture : BLANC','','',NULL,1227.00000000,1447.86000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(163,'PSAC2750_2150',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:10:22',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2750mmL/2150mmH Peinture : BLANC','','',NULL,1282.00000000,1512.76000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(164,'PSAC2750_2250',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:10:34',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2750mmL/2250mmH Peinture : BLANC','','',NULL,1337.00000000,1577.66000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(165,'PSAC2750_2350',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:10:36',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2750mmL/2350mmH Peinture : BLANC','','',NULL,1844.00000000,2175.92000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(166,'PSAC2750_2450',1,NULL,'0000-00-00 00:00:00','2016-01-09 15:10:37',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2750mmL/2450mmH Peinture : BLANC','','',NULL,1919.00000000,2264.42000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(167,'PSAC2750_2550',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2750mmL/2550mmH Peinture : BLANC','','',NULL,2203.00000000,2600.00000000,2203.00000000,2600.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(168,'PSAC2750_2650',1,NULL,'0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'PORTE SECTIONELLE A CASSETTE','Dim: 2750mmL/2650mmH Peinture : BLANC','','',NULL,2286.00000000,2697.00000000,2286.00000000,2697.00000000,'HT',18.000,0,0.000,0.000,3,NULL,1,0,0,0,'',NULL,NULL,NULL,6,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',1,0,NULL,NULL,NULL,NULL),(169,'M_CENTREO_4_76_240',1,NULL,'2016-01-09 13:43:45','2016-01-09 14:03:27',0,0,'MOTEUR CENTRALE CENTREO 4 76/240','','','',NULL,400.00000000,472.00000000,400.00000000,472.00000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,5,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(170,'M_CENTREO_3_76_220',1,NULL,'2016-01-09 14:04:03','2016-01-09 14:07:26',0,0,'MOTEUR CENTRALE CENTREO 3 76/220-260 kg','','','',NULL,288.00000000,339.84000000,288.00000000,339.84000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,1,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(171,'M_CENTREO_1_60_200',1,NULL,'2016-01-09 14:09:12','2016-01-09 14:21:38',0,0,'MOTEUR CENTRALE CENTREO 1 SOMFY-200Kg','','','',NULL,184.00000000,217.12000000,184.00000000,217.12000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,1,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(172,'CMETAPRO',1,NULL,'2016-01-09 14:25:25','2016-01-09 14:35:21',0,0,'COFFRET A CLE METAPRO','','','',NULL,59.32200000,70.00000000,55.08500000,65.00000000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,71,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(173,'CPUJOL',1,NULL,'2016-01-09 14:32:16','2016-01-09 14:34:50',0,0,'COFFRET A CLE PUJOL','','','',NULL,67.79600000,79.99900000,67.79600000,79.99900000,'HT',18.000,0,0.000,0.000,2,NULL,1,1,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,1,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(174,'CPRG1F',1,NULL,'2016-01-09 14:37:12','2016-01-09 14:40:58',0,0,'CACHE POUR PORTE RIDEAU 1 FACE GALVA','','','',NULL,27.11800000,31.99900000,27.11800000,31.99900000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(175,'CPRL1F',1,NULL,'2016-01-09 14:41:42','2016-01-09 14:45:02',0,0,'CACHE POUR PORTE RIDEAU 1 FACE LAQUE','<strong>Peinture :</strong>','','',NULL,30.50800000,35.99900000,30.50800000,35.99900000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,NULL),(176,'CPRG2F',1,NULL,'2016-01-09 14:58:00','2016-01-09 15:04:50',0,0,'CACHE POUR PORTE RIDEAU 2 FACE GALVA','','','',NULL,52.88200000,62.40100000,52.88200000,62.40100000,'HT',18.000,0,0.000,0.000,2,NULL,1,0,0,0,'',NULL,NULL,NULL,NULL,'','',NULL,NULL,0,NULL,0,NULL,0,NULL,0,NULL,0.00000000,NULL,NULL,'',NULL,0,NULL,NULL,NULL,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,
  `incdec` int(11) default '1',
  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_batch`
--

CREATE TABLE `llx_product_batch` (
  `rowid` int(11) NOT NULL auto_increment,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `fk_product_stock` int(11) NOT NULL,
  `eatby` datetime default NULL,
  `sellby` datetime default NULL,
  `batch` varchar(30) NOT NULL,
  `qty` double NOT NULL default '0',
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_fk_product_stock` (`fk_product_stock`),
  KEY `idx_batch` (`batch`),
  CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `llx_product_stock` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_batch`
--


--
-- Table structure for table `llx_product_customer_price`
--

CREATE TABLE `llx_product_customer_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) NOT NULL,
  `fk_soc` int(11) NOT 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` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_customer_price_fk_product_fk_soc` (`fk_product`,`fk_soc`),
  KEY `idx_product_customer_price_fk_user` (`fk_user`),
  KEY `idx_product_customer_price_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_customer_price`
--


--
-- Table structure for table `llx_product_customer_price_log`
--

CREATE TABLE `llx_product_customer_price_log` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `datec` datetime default NULL,
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT 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` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_customer_price_log`
--


--
-- 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_factory`
--

CREATE TABLE `llx_product_factory` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_product_father` int(11) NOT NULL default '0',
  `fk_product_children` int(11) NOT NULL default '0',
  `pmp` double(24,8) default '0.00000000',
  `price` double(24,8) default '0.00000000',
  `qty` double default NULL,
  `globalqty` int(11) NOT NULL default '0',
  `description` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_factory` (`fk_product_father`,`fk_product_children`),
  KEY `idx_product_factory_fils` (`fk_product_children`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_product_factory`
--


--
-- 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,
  `remise_percent` double NOT NULL default '0',
  `remise` double NOT NULL default '0',
  `unitprice` double(24,8) default '0.00000000',
  `charges` double(24,8) default '0.00000000',
  `unitcharges` double(24,8) default '0.00000000',
  `tva_tx` double(6,3) NOT NULL,
  `info_bits` int(11) NOT NULL default '0',
  `fk_user` int(11) default NULL,
  `fk_supplier_price_expression` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  `delivery_time_days` 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',
  `price_by_qty` int(11) NOT NULL default '0',
  `fk_price_expression` int(11) default NULL,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_product_price_fk_user_author` (`fk_user_author`),
  KEY `idx_product_price_fk_product` (`fk_product`),
  CONSTRAINT `fk_product_price_product` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_product_price_user_author` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=101 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`, `price_by_qty`, `fk_price_expression`, `import_key`) VALUES (2,1,'2016-01-09 07:01:37',1,'2016-01-09 07:01:37',1,1199.25000000,1415.11500000,1055.34000000,1245.30100000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(3,1,'2016-01-09 07:02:05',1,'2016-01-09 07:02:05',2,922.50000000,1088.55000000,922.50000000,1088.55000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(7,1,'2016-01-09 07:29:57',3,'2016-01-09 07:29:57',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(8,1,'2016-01-09 07:34:59',3,'2016-01-09 07:34:59',1,135.59300000,160.00000000,115.25400000,136.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(9,1,'2016-01-09 07:35:38',3,'2016-01-09 07:35:38',2,108.47400000,127.99900000,108.47400000,127.99900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(10,1,'2016-01-09 07:59:14',4,'2016-01-09 07:59:14',1,108.47400000,127.99900000,108.47400000,127.99900000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(11,1,'2016-01-09 08:07:47',4,'2016-01-09 08:07:47',1,161.01700000,190.00000000,136.86400000,161.50000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(12,1,'2016-01-09 08:08:19',4,'2016-01-09 08:08:19',2,128.81300000,151.99900000,112.01200000,132.17400000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(13,1,'2016-01-09 08:09:32',5,'2016-01-09 08:09:32',1,128.81300000,151.99900000,112.01200000,132.17400000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(14,1,'2016-01-09 08:11:32',5,'2016-01-09 08:11:32',1,129.62500000,152.95800000,110.18100000,130.01400000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(15,1,'2016-01-09 08:12:05',5,'2016-01-09 08:12:05',2,103.70000000,122.36600000,90.17400000,106.40500000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(16,1,'2016-01-09 08:14:05',6,'2016-01-09 08:14:05',1,103.70000000,122.36600000,90.17400000,106.40500000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(17,1,'2016-01-09 08:16:32',6,'2016-01-09 08:16:32',1,97.50000000,115.05000000,82.87500000,97.79300000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(18,1,'2016-01-09 08:17:08',6,'2016-01-09 08:17:08',2,67.79600000,79.99900000,55.08500000,65.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(19,1,'2016-01-09 08:18:58',7,'2016-01-09 08:18:58',1,67.79600000,79.99900000,55.08500000,65.00000000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(20,1,'2016-01-09 08:21:46',7,'2016-01-09 08:21:46',1,211.86400000,250.00000000,180.08400000,212.49900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(26,1,'2016-01-09 08:35:07',8,'2016-01-09 08:35:07',1,1316.25000000,1553.17500000,1158.30000000,1366.79400000,'HT',18.000,0,0.000,0.000,3,1,0,NULL,NULL),(27,1,'2016-01-09 08:38:07',7,'2016-01-09 08:38:07',2,161.01700000,190.00000000,161.01700000,190.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(28,1,'2016-01-09 08:38:47',2,'2016-01-09 08:38:47',1,1257.75000000,1484.14500000,1106.82000000,1306.04800000,'HT',18.000,0,0.000,0.000,3,1,0,NULL,NULL),(29,1,'2016-01-09 08:39:31',2,'2016-01-09 08:39:31',2,967.50000000,1141.65000000,967.50000000,1141.65000000,'HT',18.000,0,0.000,0.000,3,1,0,NULL,NULL),(30,1,'2016-01-09 08:41:01',9,'2016-01-09 08:41:01',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(31,1,'2016-01-09 08:44:33',8,'2016-01-09 08:44:33',2,1012.50000000,1194.75000000,1012.50000000,1194.75000000,'HT',18.000,0,0.000,0.000,3,1,0,NULL,NULL),(32,1,'2016-01-09 08:46:16',10,'2016-01-09 08:46:16',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,3,1,0,NULL,NULL),(33,1,'2016-01-09 08:46:52',10,'2016-01-09 08:46:52',1,1855.91300000,2189.97700000,1633.20300000,1927.18000000,'HT',18.000,0,0.000,0.000,3,1,0,NULL,NULL),(34,1,'2016-01-09 08:47:10',10,'2016-01-09 08:47:10',2,1427.62500000,1684.59800000,1427.62500000,1684.59800000,'HT',18.000,0,0.000,0.000,3,1,0,NULL,NULL),(35,1,'2016-01-09 08:48:01',11,'2016-01-09 08:48:01',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,3,1,0,NULL,NULL),(36,1,'2016-01-09 08:51:12',9,'2016-01-09 08:51:12',1,1.65200000,1.94900000,1.48700000,1.75500000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(37,1,'2016-01-09 08:51:36',9,'2016-01-09 08:51:36',2,1.35600000,1.60000000,1.35600000,1.60000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(38,1,'2016-01-09 08:52:27',12,'2016-01-09 08:52:27',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(39,1,'2016-01-09 08:53:20',12,'2016-01-09 08:53:20',1,4.40600000,5.19900000,3.96500000,4.67900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(40,1,'2016-01-09 08:54:22',12,'2016-01-09 08:54:22',2,3.30500000,3.90000000,3.30500000,3.90000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(41,1,'2016-01-09 08:57:25',13,'2016-01-09 08:57:25',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(42,1,'2016-01-09 08:58:04',13,'2016-01-09 08:58:04',1,93.22000000,110.00000000,83.89800000,99.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(43,1,'2016-01-09 08:58:31',13,'2016-01-09 08:58:31',2,74.57600000,88.00000000,74.57600000,88.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(44,1,'2016-01-09 09:00:56',14,'2016-01-09 09:00:56',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(45,1,'2016-01-09 09:01:25',14,'2016-01-09 09:01:25',1,135.59300000,160.00000000,115.25400000,136.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(46,1,'2016-01-09 09:02:02',14,'2016-01-09 09:02:02',2,97.45800000,115.00000000,97.45800000,115.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(47,1,'2016-01-09 09:02:23',15,'2016-01-09 09:02:23',1,97.45800000,115.00000000,97.45800000,115.00000000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(48,1,'2016-01-09 09:07:56',15,'2016-01-09 09:07:56',1,180.50800000,212.99900000,153.42900000,181.04600000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(49,1,'2016-01-09 09:08:16',15,'2016-01-09 09:08:16',2,151.35600000,178.60000000,151.35600000,178.60000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(50,1,'2016-01-09 09:09:27',16,'2016-01-09 09:09:27',1,151.35600000,178.60000000,151.35600000,178.60000000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(51,1,'2016-01-09 09:10:58',16,'2016-01-09 09:10:58',1,105.93200000,125.00000000,90.04200000,106.25000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(52,1,'2016-01-09 09:11:37',16,'2016-01-09 09:11:37',2,84.74500000,99.99900000,84.45700000,99.65900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(53,1,'2016-01-09 09:11:56',17,'2016-01-09 09:11:56',1,84.74500000,99.99900000,84.45700000,99.65900000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(54,1,'2016-01-09 13:01:34',94,'2016-01-09 13:01:34',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(55,1,'2016-01-09 13:02:42',94,'2016-01-09 13:02:42',1,322.03400000,380.00000000,273.72900000,323.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(56,1,'2016-01-09 13:03:33',94,'2016-01-09 13:03:33',2,190.67800000,225.00000000,173.72800000,204.99900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(57,1,'2016-01-09 13:05:51',95,'2016-01-09 13:05:51',1,190.67800000,225.00000000,173.72800000,204.99900000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(58,1,'2016-01-09 13:08:41',95,'2016-01-09 13:08:41',1,466.10200000,550.00000000,396.18600000,467.49900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(59,1,'2016-01-09 13:09:08',95,'2016-01-09 13:09:08',2,275.42400000,325.00000000,275.42400000,325.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(60,1,'2016-01-09 13:17:56',96,'2016-01-09 13:17:56',1,190.67800000,225.00000000,173.72800000,204.99900000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(61,1,'2016-01-09 13:19:07',96,'2016-01-09 13:19:07',1,389.83100000,460.00100000,331.35600000,391.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(62,1,'2016-01-09 13:19:23',96,'2016-01-09 13:19:23',2,280.00000000,330.40000000,280.00000000,330.40000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(63,1,'2016-01-09 13:43:45',169,'2016-01-09 13:43:45',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(64,1,'2016-01-09 14:01:22',169,'2016-01-09 14:01:22',1,500.00000000,590.00000000,425.00000000,501.50000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(65,1,'2016-01-09 14:02:12',169,'2016-01-09 14:02:12',2,400.00000000,472.00000000,400.00000000,472.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(66,1,'2016-01-09 14:04:03',170,'2016-01-09 14:04:03',1,400.00000000,472.00000000,400.00000000,472.00000000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(67,1,'2016-01-09 14:05:08',170,'2016-01-09 14:05:08',1,360.00000000,424.80000000,306.00000000,361.08000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(68,1,'2016-01-09 14:06:02',170,'2016-01-09 14:06:02',2,288.00000000,339.84000000,288.00000000,339.84000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(70,1,'2016-01-09 14:18:39',171,'2016-01-09 14:18:39',1,230.00000000,271.40000000,195.50000000,230.69000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(71,1,'2016-01-09 14:20:21',171,'2016-01-09 14:20:21',2,184.00000000,217.12000000,184.00000000,217.12000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(72,1,'2016-01-09 14:25:25',172,'2016-01-09 14:25:25',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(73,1,'2016-01-09 14:27:08',172,'2016-01-09 14:27:08',1,83.89800000,99.00000000,71.31400000,84.15100000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(74,1,'2016-01-09 14:27:49',172,'2016-01-09 14:27:49',2,59.32200000,70.00000000,55.08500000,65.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(75,1,'2016-01-09 14:32:16',173,'2016-01-09 14:32:16',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(76,1,'2016-01-09 14:33:21',173,'2016-01-09 14:33:21',1,101.69500000,120.00000000,86.44100000,102.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(77,1,'2016-01-09 14:34:23',173,'2016-01-09 14:34:23',2,67.79600000,79.99900000,67.79600000,79.99900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(78,1,'2016-01-09 14:37:12',174,'2016-01-09 14:37:12',1,0.00000000,0.00000000,0.00000000,0.00000000,'',0.000,0,0.000,0.000,2,1,0,NULL,NULL),(79,1,'2016-01-09 14:40:03',174,'2016-01-09 14:40:03',1,33.89800000,40.00000000,29.83100000,35.20100000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(80,1,'2016-01-09 14:40:58',174,'2016-01-09 14:40:58',2,27.11800000,31.99900000,27.11800000,31.99900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(81,1,'2016-01-09 14:41:42',175,'2016-01-09 14:41:42',1,27.11800000,31.99900000,27.11800000,31.99900000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(82,1,'2016-01-09 14:43:06',175,'2016-01-09 14:43:06',1,42.37300000,50.00000000,37.28800000,44.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(83,1,'2016-01-09 14:43:25',175,'2016-01-09 14:43:25',2,30.50800000,35.99900000,30.50800000,35.99900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(84,1,'2016-01-09 14:58:00',176,'2016-01-09 14:58:00',1,30.50800000,35.99900000,30.50800000,35.99900000,'HT',18.000,0,0.000,0.000,2,0,0,NULL,NULL),(85,1,'2016-01-09 15:03:44',176,'2016-01-09 15:03:44',1,66.10200000,78.00000000,56.18600000,66.29900000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(86,1,'2016-01-09 15:04:50',176,'2016-01-09 15:04:50',2,52.88200000,62.40100000,52.88200000,62.40100000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(87,1,'2016-01-09 15:09:18',155,'2016-01-09 15:09:18',1,1125.00000000,1327.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(88,1,'2016-01-09 15:09:25',156,'2016-01-09 15:09:25',1,1175.00000000,1386.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(89,1,'2016-01-09 15:09:27',157,'2016-01-09 15:09:27',1,1225.00000000,1445.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(90,1,'2016-01-09 15:09:30',158,'2016-01-09 15:09:30',1,1686.00000000,1989.48000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(91,1,'2016-01-09 15:09:32',159,'2016-01-09 15:09:32',1,1753.00000000,2068.54000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(92,1,'2016-01-09 15:09:50',160,'2016-01-09 15:09:50',1,2012.00000000,2374.16000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(93,1,'2016-01-09 15:09:52',161,'2016-01-09 15:09:52',1,2087.00000000,2462.66000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(94,1,'2016-01-09 15:09:54',162,'2016-01-09 15:09:54',1,1227.00000000,1447.86000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(95,1,'2016-01-09 15:10:22',163,'2016-01-09 15:10:22',1,1282.00000000,1512.76000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(96,1,'2016-01-09 15:10:34',164,'2016-01-09 15:10:34',1,1337.00000000,1577.66000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(97,1,'2016-01-09 15:10:36',165,'2016-01-09 15:10:36',1,1844.00000000,2175.92000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(98,1,'2016-01-09 15:10:37',166,'2016-01-09 15:10:37',1,1919.00000000,2264.42000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(99,1,'2016-01-09 15:10:54',107,'2016-01-09 15:10:54',1,1075.00000000,1268.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL),(100,1,'2016-01-09 15:10:58',108,'2016-01-09 15:10:58',1,1125.00000000,1327.50000000,0.00000000,0.00000000,'HT',18.000,0,0.000,0.000,2,1,0,NULL,NULL);

--
-- Table structure for table `llx_product_price_by_qty`
--

CREATE TABLE `llx_product_price_by_qty` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_product_price` int(11) NOT NULL,
  `date_price` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `price` double(24,8) default '0.00000000',
  `quantity` double default NULL,
  `remise_percent` double NOT NULL default '0',
  `remise` double NOT NULL default '0',
  `unitprice` double(24,8) default '0.00000000',
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_product_price_by_qty_level` (`fk_product_price`,`quantity`),
  KEY `idx_product_price_by_qty_fk_product_price` (`fk_product_price`),
  CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `llx_product_price` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_product_price_by_qty`
--


--
-- 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',
  `import_key` varchar(14) default NULL,
  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 AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_product_stock` (`rowid`, `tms`, `fk_product`, `fk_entrepot`, `reel`, `pmp`, `import_key`) VALUES (1,'2016-01-09 13:13:53',95,6,10,0.00000000,NULL),(2,'2016-01-09 13:15:39',94,6,32,0.00000000,NULL),(3,'2016-01-09 13:17:06',94,1,36,0.00000000,NULL),(4,'2016-01-09 13:20:29',96,6,18,0.00000000,NULL),(5,'2016-01-09 14:03:27',169,6,5,0.00000000,NULL),(6,'2016-01-09 14:07:26',170,6,1,0.00000000,NULL),(7,'2016-01-09 14:21:38',171,6,1,0.00000000,NULL),(8,'2016-01-09 14:30:01',172,6,60,0.00000000,NULL),(9,'2016-01-09 14:34:50',173,5,1,0.00000000,NULL),(10,'2016-01-09 14:35:21',172,5,11,0.00000000,NULL);

--
-- 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` int(11) NOT NULL default '0',
  `fk_opp_status` int(11) default NULL,
  `date_close` datetime default NULL,
  `fk_user_close` int(11) default NULL,
  `note_private` text,
  `note_public` text,
  `opp_amount` double(24,8) default NULL,
  `budget_amount` double(24,8) default NULL,
  `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_extrafields`
--

CREATE TABLE `llx_projet_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_projet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_projet_extrafields`
--


--
-- Table structure for table `llx_projet_stock`
--

CREATE TABLE `llx_projet_stock` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_project` int(11) NOT NULL default '0',
  `fk_product` int(11) NOT NULL default '0',
  `fk_entrepot` int(11) NOT NULL default '0',
  `qty_from_stock` double default NULL,
  `date_creation` datetime default NULL,
  `fk_user_author` int(11) default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `pmp` double(24,8) default '0.00000000',
  `price` double(24,8) default '0.00000000',
  `fk_product_stock` int(11) default NULL,
  `note_public` text,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_projet_stock`
--


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

CREATE TABLE `llx_projet_task` (
  `rowid` int(11) NOT NULL auto_increment,
  `ref` varchar(50) default NULL,
  `entity` int(11) NOT NULL default '1',
  `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 default '0',
  `planned_workload` double 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',
  `model_pdf` varchar(255) default NULL,
  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_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`),
  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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_projet_task_extrafields`
--

CREATE TABLE `llx_projet_task_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_projet_task_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_projet_task_extrafields`
--


--
-- 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_datehour` datetime default NULL,
  `task_date_withhour` int(11) default '0',
  `task_duration` double default NULL,
  `fk_user` int(11) default NULL,
  `thm` double(24,8) default NULL,
  `note` text,
  PRIMARY KEY  (`rowid`),
  KEY `idx_projet_task_time_task` (`fk_task`),
  KEY `idx_projet_task_time_date` (`task_date`),
  KEY `idx_projet_task_time_datehour` (`task_datehour`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- Table structure for table `llx_projet_taskdet`
--

CREATE TABLE `llx_projet_taskdet` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_task` int(11) NOT NULL default '0',
  `fk_product` int(11) NOT NULL default '0',
  `qty_planned` double default NULL,
  `qty_used` double default NULL,
  `qty_deleted` double default NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `pmp` double(24,8) default '0.00000000',
  `price` double(24,8) default '0.00000000',
  `fk_statut` int(11) NOT NULL default '0',
  `note_public` text,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_projet_taskdet` (`fk_task`,`fk_product`),
  KEY `idx_projet_taskdet_fk_task` (`fk_task`),
  KEY `idx_projet_taskdet_fk_product` (`fk_product`),
  CONSTRAINT `fk_projet_taskdet_fk_task` FOREIGN KEY (`fk_task`) REFERENCES `llx_projet_task` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_projet_taskdet`
--


--
-- Table structure for table `llx_projet_taskdet_equipement`
--

CREATE TABLE `llx_projet_taskdet_equipement` (
  `fk_equipement` int(11) NOT NULL default '0',
  `fk_projet_taskdet` int(11) NOT NULL default '0',
  UNIQUE KEY `uk_factory_equipement` (`fk_equipement`,`fk_projet_taskdet`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `llx_projet_taskdet_equipement`
--


--
-- 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_modif` 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(3) default NULL,
  `fk_cond_reglement` int(11) default NULL,
  `fk_mode_reglement` int(11) default NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) default NULL,
  `date_livraison` date default NULL,
  `fk_shipping_method` int(11) default NULL,
  `fk_availability` int(11) default NULL,
  `fk_input_reason` int(11) default NULL,
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` varchar(255) default NULL,
  `import_key` varchar(14) default NULL,
  `extraparams` varchar(255) default NULL,
  `fk_delivery_address` 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 AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_propal` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `fk_soc`, `fk_projet`, `tms`, `datec`, `datep`, `fin_validite`, `date_valid`, `date_cloture`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_user_cloture`, `fk_statut`, `price`, `remise_percent`, `remise_absolue`, `remise`, `total_ht`, `tva`, `localtax1`, `localtax2`, `total`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `note_private`, `note_public`, `model_pdf`, `date_livraison`, `fk_shipping_method`, `fk_availability`, `fk_input_reason`, `fk_incoterms`, `location_incoterms`, `import_key`, `extraparams`, `fk_delivery_address`) VALUES (1,'(PROV1)',1,NULL,NULL,'',1,NULL,'2016-01-09 18:13:06','2016-01-09 17:46:12','2016-01-09','2016-01-24 12:00:00',NULL,NULL,1,NULL,NULL,NULL,0,0,NULL,NULL,0,42.37300000,7.62700000,0.00000000,0.00000000,50.00000000,6,NULL,1,4,'','','alpiroc','2016-01-23',1,3,8,0,'',NULL,NULL,NULL);

--
-- Table structure for table `llx_propal_extrafields`
--

CREATE TABLE `llx_propal_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,
  `profilalpiroc` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_propal_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_propal_extrafields`
--

INSERT INTO `llx_propal_extrafields` (`rowid`, `tms`, `fk_object`, `import_key`, `profilalpiroc`) VALUES (1,'2016-01-09 17:46:12',1,NULL,'0');

--
-- Table structure for table `llx_propal_merge_pdf_product`
--

CREATE TABLE `llx_propal_merge_pdf_product` (
  `rowid` int(11) NOT NULL auto_increment,
  `fk_product` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `lang` varchar(5) default NULL,
  `fk_user_author` int(11) default NULL,
  `fk_user_mod` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `import_key` varchar(14) default NULL,
  PRIMARY KEY  (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_propal_merge_pdf_product`
--


--
-- 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,
  `label` varchar(255) 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',
  `localtax1_type` varchar(10) default NULL,
  `localtax2_tx` double(6,3) default '0.000',
  `localtax2_type` varchar(10) default NULL,
  `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',
  `buy_price_ht` double(24,8) default '0.00000000',
  `fk_product_fournisseur_price` int(11) default NULL,
  `special_code` int(11) default '0',
  `rang` int(11) default '0',
  `fk_unit` int(11) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_propaldet_fk_propal` (`fk_propal`),
  KEY `idx_propaldet_fk_product` (`fk_product`),
  KEY `fk_propaldet_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `llx_propal` (`rowid`),
  CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_propaldet` (`rowid`, `fk_propal`, `fk_parent_line`, `fk_product`, `label`, `description`, `fk_remise_except`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `price`, `subprice`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `special_code`, `rang`, `fk_unit`) VALUES (1,1,NULL,175,NULL,'<strong>Peinture :</strong>',NULL,18.000,0.000,'4',0.000,'0',1,0,0,NULL,42.37300000,42.37300000,7.62700000,0.00000000,0.00000000,50.00000000,0,NULL,NULL,0,0.00000000,NULL,0,1,NULL);

--
-- Table structure for table `llx_propaldet_extrafields`
--

CREATE TABLE `llx_propaldet_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,
  `titrealpiroc` varchar(255) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_propaldet_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_propaldet_extrafields`
--

INSERT INTO `llx_propaldet_extrafields` (`rowid`, `tms`, `fk_object`, `import_key`, `titrealpiroc`) VALUES (1,'2016-01-09 18:13:06',1,NULL,NULL);

--
-- Table structure for table `llx_resource`
--

CREATE TABLE `llx_resource` (
  `rowid` int(11) NOT NULL auto_increment,
  `entity` int(11) NOT NULL default '1',
  `ref` varchar(255) default NULL,
  `description` text,
  `fk_code_type_resource` varchar(32) default NULL,
  `note_public` text,
  `note_private` text,
  `tms` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`rowid`),
  KEY `fk_code_type_resource_idx` (`fk_code_type_resource`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_resource`
--


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

CREATE TABLE `llx_rights_def` (
  `id` int(11) NOT NULL,
  `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(128) default NULL,
  `name_alias` varchar(128) default NULL,
  `entity` int(11) NOT NULL default '1',
  `ref_ext` varchar(128) 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,
  `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,
  `zip` varchar(25) default NULL,
  `town` varchar(50) default NULL,
  `fk_departement` int(11) default '0',
  `fk_pays` int(11) default '0',
  `phone` varchar(20) default NULL,
  `fax` varchar(20) default NULL,
  `url` varchar(255) default NULL,
  `email` varchar(128) default NULL,
  `skype` varchar(255) default NULL,
  `fk_effectif` int(11) default '0',
  `fk_typent` int(11) default '0',
  `fk_forme_juridique` int(11) default '0',
  `fk_currency` varchar(3) default NULL,
  `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,
  `idprof6` varchar(128) default NULL,
  `tva_intra` varchar(20) default NULL,
  `capital` double default NULL,
  `fk_stcomm` int(11) NOT NULL default '0',
  `note_private` text,
  `note_public` text,
  `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,
  `fk_incoterms` int(11) default NULL,
  `location_incoterms` varchar(255) 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,
  `mode_reglement_supplier` tinyint(4) default NULL,
  `cond_reglement_supplier` tinyint(4) default NULL,
  `tva_assuj` tinyint(4) default '1',
  `localtax1_assuj` tinyint(4) default '0',
  `localtax1_value` double(6,3) default NULL,
  `localtax2_assuj` tinyint(4) default '0',
  `localtax2_value` double(6,3) default NULL,
  `barcode` varchar(255) default NULL,
  `fk_barcode_type` int(11) default '0',
  `price_level` int(11) default NULL,
  `outstanding_limit` double(24,8) default NULL,
  `default_lang` varchar(6) default NULL,
  `logo` varchar(255) default NULL,
  `canvas` varchar(32) default NULL,
  `import_key` varchar(14) default NULL,
  `webservices_url` varchar(255) default NULL,
  `webservices_key` varchar(128) default NULL,
  PRIMARY KEY  (`rowid`),
  UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  UNIQUE KEY `uk_societe_code_fournisseur` (`code_fournisseur`,`entity`),
  UNIQUE KEY `uk_societe_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  KEY `idx_societe_user_creat` (`fk_user_creat`),
  KEY `idx_societe_user_modif` (`fk_user_modif`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_societe` (`rowid`, `nom`, `name_alias`, `entity`, `ref_ext`, `ref_int`, `statut`, `parent`, `tms`, `datec`, `status`, `code_client`, `code_fournisseur`, `code_compta`, `code_compta_fournisseur`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `phone`, `fax`, `url`, `email`, `skype`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `idprof6`, `tva_intra`, `capital`, `fk_stcomm`, `note_private`, `note_public`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `fk_incoterms`, `location_incoterms`, `customer_bad`, `customer_rate`, `supplier_rate`, `fk_user_creat`, `fk_user_modif`, `remise_client`, `mode_reglement`, `cond_reglement`, `mode_reglement_supplier`, `cond_reglement_supplier`, `tva_assuj`, `localtax1_assuj`, `localtax1_value`, `localtax2_assuj`, `localtax2_value`, `barcode`, `fk_barcode_type`, `price_level`, `outstanding_limit`, `default_lang`, `logo`, `canvas`, `import_key`, `webservices_url`, `webservices_key`) VALUES (1,'ben youssef chokri','',1,NULL,NULL,0,NULL,'2016-01-09 18:03:18','2016-01-09 17:45:02',1,NULL,NULL,'411CUSTCODE','401SUPPCODE','','4155','guellala',998,10,NULL,NULL,NULL,NULL,NULL,1,8,NULL,NULL,'','','','','','','',0,0,NULL,NULL,NULL,3,1,NULL,NULL,0,NULL,0,0,0,1,4,0,NULL,NULL,NULL,NULL,1,NULL,0.000,NULL,0.000,NULL,0,NULL,NULL,NULL,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,
  `zip` varchar(10) default NULL,
  `town` varchar(50) default NULL,
  `fk_pays` int(11) default '0',
  `phone` 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=2 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_societe_commerciaux` (`rowid`, `fk_soc`, `fk_user`) VALUES (1,1,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`),
  UNIQUE KEY `uk_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 DEFAULT CHARSET=utf8;

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


--
-- 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` text 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_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  CONSTRAINT `fk_soc_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


--
-- 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(20) default NULL,
  `iban_prefix` varchar(34) default NULL,
  `domiciliation` varchar(255) default NULL,
  `proprio` varchar(60) default NULL,
  `owner_address` varchar(255) default NULL,
  `default_rib` smallint(6) NOT NULL default '0',
  `rum` varchar(32) default NULL,
  `frstrecur` varchar(16) default 'FRST',
  `import_key` varchar(14) 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',
  `ref_ext` varchar(128) default NULL,
  `civility` varchar(6) default NULL,
  `lastname` varchar(50) default NULL,
  `firstname` varchar(50) default NULL,
  `address` varchar(255) default NULL,
  `zip` varchar(25) default NULL,
  `town` 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,
  `skype` varchar(255) default NULL,
  `no_email` smallint(6) NOT NULL default '0',
  `priv` smallint(6) NOT NULL default '0',
  `fk_user_creat` int(11) default '0',
  `fk_user_modif` int(11) default NULL,
  `note_private` text,
  `note_public` text,
  `default_lang` varchar(6) default NULL,
  `canvas` varchar(32) default NULL,
  `import_key` varchar(14) default NULL,
  `statut` tinyint(4) NOT NULL default '1',
  PRIMARY KEY  (`rowid`),
  KEY `idx_socpeople_fk_soc` (`fk_soc`),
  KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`),
  CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_socpeople` (`rowid`, `datec`, `tms`, `fk_soc`, `entity`, `ref_ext`, `civility`, `lastname`, `firstname`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `birthday`, `poste`, `phone`, `phone_perso`, `phone_mobile`, `fax`, `email`, `jabberid`, `skype`, `no_email`, `priv`, `fk_user_creat`, `fk_user_modif`, `note_private`, `note_public`, `default_lang`, `canvas`, `import_key`, `statut`) VALUES (1,'2016-01-09 17:45:02','2016-01-09 17:45:02',1,1,'','MR','chokri','ben youssef','','','',NULL,10,NULL,'','','','','','','','',0,0,1,1,NULL,NULL,NULL,NULL,NULL,1);

--
-- Table structure for table `llx_socpeople_extrafields`
--

CREATE TABLE `llx_socpeople_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_socpeople_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_socpeople_extrafields`
--


--
-- 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,
  `batch` varchar(30) default NULL,
  `eatby` date default NULL,
  `sellby` date default NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` double default NULL,
  `price` double(24,8) default '0.00000000',
  `type_mouvement` smallint(6) default NULL,
  `fk_user_author` int(11) default NULL,
  `label` varchar(255) default NULL,
  `inventorycode` varchar(128) default NULL,
  `fk_origin` int(11) default NULL,
  `origintype` varchar(32) default NULL,
  PRIMARY KEY  (`rowid`),
  KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_stock_mouvement` (`rowid`, `tms`, `datem`, `fk_product`, `batch`, `eatby`, `sellby`, `fk_entrepot`, `value`, `price`, `type_mouvement`, `fk_user_author`, `label`, `inventorycode`, `fk_origin`, `origintype`) VALUES (1,'2016-01-09 13:13:53','2016-01-09 13:13:53',95,NULL,NULL,NULL,6,10,0.00000000,0,2,'Correction du stock pour le produit M_OPERAT_600RI_60_220','02/01/2016',0,''),(2,'2016-01-09 13:15:39','2016-01-09 13:15:39',94,NULL,NULL,NULL,6,32,0.00000000,0,2,'Correction du stock pour le produit M_OPERAT_600_60_220','02/01/2016',0,''),(3,'2016-01-09 13:17:06','2016-01-09 13:17:06',94,NULL,NULL,NULL,1,36,0.00000000,0,2,'Correction du stock pour le produit M_OPERAT_600_60_220','02/01/2016',0,''),(4,'2016-01-09 13:20:29','2016-01-09 13:20:29',96,NULL,NULL,NULL,6,18,0.00000000,0,2,'Correction du stock pour le produit M_OPERAT_1000_76_240','02/01/2016',0,''),(5,'2016-01-09 14:03:27','2016-01-09 14:03:27',169,NULL,NULL,NULL,6,5,0.00000000,0,2,'Correction du stock pour le produit M_CENTREO_4_76_240','02/01/2016',0,''),(6,'2016-01-09 14:07:26','2016-01-09 14:07:26',170,NULL,NULL,NULL,6,1,0.00000000,0,2,'Correction du stock pour le produit M_CENTREO_3_76_220','02/01/2016',0,''),(7,'2016-01-09 14:21:38','2016-01-09 14:21:38',171,NULL,NULL,NULL,6,1,0.00000000,0,2,'Correction du stock pour le produit M_CENTREO_1_60_200','02/01/2016',0,''),(8,'2016-01-09 14:30:01','2016-01-09 14:30:01',172,NULL,NULL,NULL,6,60,0.00000000,0,2,'Correction du stock pour le produit CMETAPRO','02/01/2016',0,''),(9,'2016-01-09 14:34:50','2016-01-09 14:34:50',173,NULL,NULL,NULL,5,1,0.00000000,0,2,'Correction du stock pour le produit CPUJOL','02/01/2016',0,''),(10,'2016-01-09 14:35:21','2016-01-09 14:35:21',172,NULL,NULL,NULL,5,11,0.00000000,0,2,'Correction du stock pour le produit CMETAPRO','02/01/2016',0,'');

--
-- 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',
  `fk_typepayment` int(11) default NULL,
  `num_payment` varchar(50) default NULL,
  `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,
  `url` varchar(255) default 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_extrafields`
--

CREATE TABLE `llx_user_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_user_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_user_extrafields`
--


--
-- 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=1379 DEFAULT CHARSET=utf8;

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

INSERT INTO `llx_user_rights` (`rowid`, `fk_user`, `fk_id`) VALUES (466,1,11),(460,1,12),(461,1,13),(462,1,14),(463,1,15),(465,1,16),(467,1,19),(556,1,21),(549,1,22),(550,1,24),(551,1,25),(553,1,26),(555,1,27),(557,1,28),(1095,1,31),(1088,1,32),(1092,1,34),(1096,1,38),(514,1,41),(511,1,42),(513,1,44),(515,1,45),(129,1,61),(126,1,62),(128,1,64),(130,1,67),(131,1,68),(621,1,71),(616,1,72),(618,1,74),(622,1,75),(620,1,76),(624,1,78),(625,1,79),(386,1,81),(380,1,82),(381,1,84),(382,1,86),(384,1,87),(385,1,88),(387,1,89),(237,1,91),(234,1,92),(236,1,93),(238,1,94),(192,1,95),(370,1,101),(366,1,102),(367,1,104),(368,1,105),(369,1,106),(371,1,109),(456,1,111),(447,1,112),(449,1,113),(451,1,114),(453,1,115),(455,1,116),(457,1,117),(1109,1,121),(1102,1,122),(1106,1,125),(1110,1,126),(519,1,141),(518,1,142),(520,1,144),(244,1,151),(241,1,152),(243,1,153),(245,1,154),(107,1,161),(100,1,162),(102,1,163),(104,1,164),(106,1,165),(108,1,167),(327,1,171),(322,1,172),(324,1,173),(326,1,174),(328,1,178),(529,1,221),(526,1,222),(528,1,223),(530,1,229),(531,1,237),(532,1,238),(533,1,239),(590,1,241),(589,1,242),(591,1,243),(1113,1,262),(1125,1,281),(1118,1,282),(1122,1,283),(1126,1,286),(597,1,300),(598,1,301),(595,1,331),(594,1,332),(596,1,333),(1,1,341),(2,1,342),(3,1,343),(4,1,344),(318,1,510),(315,1,512),(317,1,514),(319,1,517),(496,1,531),(493,1,532),(495,1,534),(497,1,538),(288,1,701),(287,1,702),(289,1,703),(340,1,771),(331,1,772),(333,1,773),(335,1,774),(337,1,775),(339,1,776),(341,1,779),(352,1,1001),(351,1,1002),(353,1,1003),(355,1,1004),(356,1,1005),(376,1,1101),(374,1,1102),(375,1,1104),(377,1,1109),(404,1,1181),(427,1,1182),(407,1,1183),(408,1,1184),(410,1,1185),(412,1,1186),(414,1,1187),(417,1,1188),(415,1,1189),(535,1,1201),(536,1,1202),(425,1,1231),(420,1,1232),(421,1,1233),(423,1,1234),(424,1,1235),(426,1,1236),(428,1,1237),(468,1,1321),(388,1,1421),(501,1,2401),(500,1,2402),(502,1,2403),(506,1,2411),(505,1,2412),(507,1,2413),(508,1,2414),(190,1,2501),(189,1,2503),(191,1,2515),(299,1,20001),(292,1,20002),(294,1,20003),(296,1,20004),(298,1,20005),(300,1,20006),(542,1,23001),(539,1,23002),(541,1,23003),(543,1,23004),(444,1,50101),(522,1,55001),(523,1,55002),(544,1,59001),(545,1,59002),(546,1,59003),(585,1,63001),(582,1,63002),(584,1,63003),(586,1,63004),(626,1,64001),(1147,1,160310),(1132,1,160311),(1136,1,160312),(1140,1,160313),(1144,1,160314),(1148,1,160315),(1081,1,10300851),(1074,1,10300852),(1078,1,10300853),(1082,1,10300854),(792,2,11),(793,2,12),(794,2,13),(795,2,14),(796,2,15),(797,2,16),(798,2,19),(852,2,21),(853,2,22),(854,2,24),(855,2,25),(856,2,26),(857,2,27),(858,2,28),(841,2,31),(842,2,32),(843,2,34),(844,2,38),(845,2,41),(846,2,42),(847,2,44),(848,2,45),(800,2,61),(801,2,62),(802,2,64),(803,2,67),(804,2,68),(717,2,71),(718,2,72),(719,2,74),(720,2,75),(721,2,76),(722,2,78),(723,2,79),(746,2,81),(747,2,82),(748,2,84),(749,2,86),(750,2,87),(751,2,88),(752,2,89),(885,2,91),(886,2,92),(887,2,93),(888,2,94),(636,2,95),(772,2,101),(773,2,102),(774,2,104),(775,2,105),(776,2,106),(777,2,109),(731,2,111),(732,2,112),(733,2,113),(734,2,114),(735,2,115),(736,2,116),(737,2,117),(871,2,121),(872,2,122),(873,2,125),(874,2,126),(849,2,141),(850,2,142),(851,2,144),(837,2,151),(838,2,152),(839,2,153),(840,2,154),(754,2,161),(755,2,162),(756,2,163),(757,2,164),(758,2,165),(759,2,167),(764,2,171),(765,2,172),(766,2,173),(767,2,174),(768,2,178),(827,2,221),(828,2,222),(829,2,223),(830,2,229),(831,2,237),(832,2,238),(833,2,239),(743,2,241),(744,2,242),(745,2,243),(889,2,251),(890,2,252),(891,2,253),(892,2,254),(893,2,255),(894,2,256),(875,2,262),(876,2,281),(877,2,282),(878,2,283),(879,2,286),(738,2,300),(739,2,301),(740,2,331),(741,2,332),(742,2,333),(895,2,341),(896,2,342),(897,2,343),(898,2,344),(899,2,351),(900,2,352),(901,2,353),(902,2,354),(903,2,358),(863,2,510),(864,2,512),(865,2,514),(866,2,517),(867,2,531),(868,2,532),(869,2,534),(870,2,538),(789,2,701),(790,2,702),(791,2,703),(782,2,771),(783,2,772),(784,2,773),(785,2,774),(786,2,775),(787,2,776),(788,2,779),(880,2,1001),(881,2,1002),(882,2,1003),(883,2,1004),(884,2,1005),(778,2,1101),(779,2,1102),(780,2,1104),(781,2,1109),(805,2,1181),(806,2,1182),(807,2,1183),(808,2,1184),(809,2,1185),(810,2,1186),(811,2,1187),(812,2,1188),(813,2,1189),(814,2,1231),(815,2,1232),(816,2,1233),(817,2,1234),(818,2,1235),(819,2,1236),(820,2,1237),(799,2,1321),(753,2,1421),(724,2,2401),(725,2,2402),(726,2,2403),(727,2,2411),(728,2,2412),(729,2,2413),(730,2,2414),(821,2,20001),(822,2,20002),(823,2,20003),(824,2,20004),(825,2,20005),(826,2,20006),(760,2,23001),(761,2,23002),(762,2,23003),(763,2,23004),(669,2,50101),(834,2,59001),(835,2,59002),(836,2,59003),(859,2,63001),(860,2,63002),(861,2,63003),(862,2,63004),(671,2,64001),(973,3,11),(974,3,12),(975,3,13),(976,3,14),(977,3,15),(978,3,16),(979,3,19),(1030,3,21),(1031,3,22),(1032,3,24),(1033,3,25),(1034,3,26),(1035,3,27),(1036,3,28),(1097,3,31),(1090,3,32),(1094,3,34),(1098,3,38),(1023,3,41),(1024,3,42),(1025,3,44),(1026,3,45),(981,3,61),(982,3,62),(983,3,64),(984,3,67),(985,3,68),(904,3,71),(905,3,72),(906,3,74),(907,3,75),(908,3,76),(909,3,78),(910,3,79),(930,3,81),(931,3,82),(932,3,84),(933,3,86),(934,3,87),(935,3,88),(936,3,89),(1063,3,91),(1064,3,92),(1065,3,93),(1066,3,94),(681,3,95),(956,3,101),(957,3,102),(958,3,104),(959,3,105),(960,3,106),(961,3,109),(918,3,111),(919,3,112),(920,3,113),(921,3,114),(922,3,115),(923,3,116),(924,3,117),(1111,3,121),(1104,3,122),(1108,3,125),(1112,3,126),(1027,3,141),(1028,3,142),(1029,3,144),(1018,3,151),(1019,3,152),(1020,3,153),(1021,3,154),(938,3,161),(939,3,162),(940,3,163),(941,3,164),(942,3,165),(943,3,167),(948,3,171),(949,3,172),(950,3,173),(951,3,174),(952,3,178),(1008,3,221),(1009,3,222),(1010,3,223),(1011,3,229),(1012,3,237),(1013,3,238),(1014,3,239),(927,3,241),(928,3,242),(929,3,243),(1114,3,262),(1127,3,281),(1120,3,282),(1124,3,283),(1128,3,286),(925,3,300),(926,3,301),(693,3,331),(694,3,332),(695,3,333),(696,3,341),(697,3,342),(698,3,343),(699,3,344),(1041,3,510),(1042,3,512),(1043,3,514),(1044,3,517),(1045,3,531),(1046,3,532),(1047,3,534),(1048,3,538),(953,3,701),(954,3,702),(955,3,703),(966,3,771),(967,3,772),(968,3,773),(969,3,774),(970,3,775),(971,3,776),(972,3,779),(1058,3,1001),(1059,3,1002),(1060,3,1003),(1061,3,1004),(1062,3,1005),(962,3,1101),(963,3,1102),(964,3,1104),(965,3,1109),(986,3,1181),(987,3,1182),(988,3,1183),(989,3,1184),(990,3,1185),(991,3,1186),(992,3,1187),(993,3,1188),(994,3,1189),(995,3,1231),(996,3,1232),(997,3,1233),(998,3,1234),(999,3,1235),(1000,3,1236),(1001,3,1237),(980,3,1321),(937,3,1421),(911,3,2401),(912,3,2402),(913,3,2403),(914,3,2411),(915,3,2412),(916,3,2413),(917,3,2414),(1002,3,20001),(1003,3,20002),(1004,3,20003),(1005,3,20004),(1006,3,20005),(1007,3,20006),(944,3,23001),(945,3,23002),(946,3,23003),(947,3,23004),(714,3,50101),(1015,3,59001),(1016,3,59002),(1017,3,59003),(1037,3,63001),(1038,3,63002),(1039,3,63003),(1040,3,63004),(1022,3,64001),(1149,3,160310),(1134,3,160311),(1138,3,160312),(1142,3,160313),(1146,3,160314),(1150,3,160315),(1083,3,10300851),(1076,3,10300852),(1080,3,10300853),(1084,3,10300854),(1282,4,11),(1283,4,12),(1284,4,13),(1285,4,14),(1286,4,15),(1287,4,16),(1288,4,19),(1338,4,21),(1339,4,22),(1340,4,24),(1341,4,25),(1342,4,26),(1343,4,27),(1344,4,28),(1327,4,31),(1328,4,32),(1329,4,34),(1330,4,38),(1331,4,41),(1332,4,42),(1333,4,44),(1334,4,45),(1290,4,61),(1291,4,62),(1292,4,64),(1293,4,67),(1294,4,68),(1200,4,71),(1201,4,72),(1202,4,74),(1203,4,75),(1204,4,76),(1205,4,78),(1206,4,79),(1234,4,81),(1235,4,82),(1236,4,84),(1237,4,86),(1238,4,87),(1239,4,88),(1240,4,89),(1371,4,91),(1372,4,92),(1373,4,93),(1374,4,94),(1242,4,95),(1259,4,101),(1260,4,102),(1261,4,104),(1262,4,105),(1263,4,106),(1264,4,109),(1218,4,111),(1219,4,112),(1220,4,113),(1221,4,114),(1222,4,115),(1223,4,116),(1224,4,117),(1357,4,121),(1358,4,122),(1359,4,125),(1360,4,126),(1335,4,141),(1336,4,142),(1337,4,144),(1375,4,151),(1376,4,152),(1377,4,153),(1378,4,154),(1165,4,161),(1247,4,171),(1248,4,172),(1249,4,173),(1250,4,174),(1251,4,178),(1317,4,221),(1318,4,222),(1319,4,223),(1320,4,229),(1321,4,237),(1322,4,238),(1323,4,239),(1231,4,241),(1232,4,242),(1233,4,243),(1361,4,262),(1362,4,281),(1363,4,282),(1364,4,283),(1365,4,286),(1228,4,331),(1229,4,332),(1230,4,333),(1174,4,341),(1175,4,342),(1176,4,343),(1177,4,344),(1349,4,510),(1350,4,512),(1351,4,514),(1352,4,517),(1353,4,531),(1354,4,532),(1355,4,534),(1356,4,538),(1256,4,701),(1257,4,702),(1258,4,703),(1269,4,771),(1270,4,772),(1271,4,773),(1272,4,774),(1273,4,775),(1274,4,776),(1275,4,779),(1366,4,1001),(1367,4,1002),(1368,4,1003),(1369,4,1004),(1370,4,1005),(1265,4,1101),(1266,4,1102),(1267,4,1104),(1268,4,1109),(1295,4,1181),(1296,4,1182),(1297,4,1183),(1298,4,1184),(1299,4,1185),(1300,4,1186),(1301,4,1187),(1302,4,1188),(1303,4,1189),(1304,4,1231),(1305,4,1232),(1306,4,1233),(1307,4,1234),(1308,4,1235),(1309,4,1236),(1310,4,1237),(1289,4,1321),(1241,4,1421),(1207,4,2401),(1208,4,2402),(1209,4,2403),(1210,4,2411),(1211,4,2412),(1212,4,2413),(1213,4,2414),(1311,4,20001),(1312,4,20002),(1313,4,20003),(1314,4,20004),(1315,4,20005),(1316,4,20006),(1252,4,23001),(1253,4,23002),(1254,4,23003),(1255,4,23004),(1192,4,50101),(1324,4,59001),(1325,4,59002),(1326,4,59003),(1345,4,63001),(1346,4,63002),(1347,4,63003),(1348,4,63004),(1194,4,64001),(1276,4,160310),(1277,4,160311),(1278,4,160312),(1279,4,160313),(1280,4,160314),(1281,4,160315),(1214,4,10300851),(1215,4,10300852),(1216,4,10300853),(1217,4,10300854);

--
-- 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_extrafields`
--

CREATE TABLE `llx_usergroup_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_usergroup_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_usergroup_extrafields`
--


--
-- 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_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`),
  CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `llx_usergroup_user`
--



