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

-- --------------------------------------------------------

--
-- Structure de la table `llx_accountingtransaction`
--

CREATE TABLE IF NOT EXISTS `llx_accountingtransaction` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_actioncomm`
--

CREATE TABLE IF NOT EXISTS `llx_actioncomm` (
  `id` int(11) NOT NULL,
  `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,
  `label` varchar(128) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `fk_project` int(11) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_parent` int(11) NOT NULL DEFAULT '0',
  `fk_user_action` int(11) DEFAULT NULL,
  `transparency` int(11) DEFAULT NULL,
  `fk_user_done` int(11) DEFAULT NULL,
  `priority` smallint(6) DEFAULT NULL,
  `fulldayevent` smallint(6) NOT NULL DEFAULT '0',
  `punctual` smallint(6) NOT NULL DEFAULT '1',
  `percent` smallint(6) NOT NULL DEFAULT '0',
  `location` varchar(128) DEFAULT NULL,
  `durationp` double DEFAULT NULL,
  `durationa` double DEFAULT NULL,
  `note` text,
  `fk_element` int(11) DEFAULT NULL,
  `elementtype` varchar(32) DEFAULT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_actioncomm_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_actioncomm_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_actioncomm_resources`
--

CREATE TABLE IF NOT EXISTS `llx_actioncomm_resources` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_adherent`
--

CREATE TABLE IF NOT EXISTS `llx_adherent` (
  `rowid` int(11) NOT 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,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_adherent_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_adherent_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_adherent_type`
--

CREATE TABLE IF NOT EXISTS `llx_adherent_type` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_adherent_type_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_adherent_type_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_askpricesupplier`
--

CREATE TABLE IF NOT EXISTS `llx_askpricesupplier` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_askpricesupplier_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_askpricesupplier_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_askpricesupplierdet`
--

CREATE TABLE IF NOT EXISTS `llx_askpricesupplierdet` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_askpricesupplierdet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_askpricesupplierdet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_bank`
--

CREATE TABLE IF NOT EXISTS `llx_bank` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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, '2014-10-04 18:53:29', '2014-10-04 16:53:30', '2014-10-04', '2014-10-04', 0.00000000, '(Solde initial)', 1, NULL, NULL, 'SOLD', NULL, NULL, 0, NULL, 0, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_bank_account_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_bank_account_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_bank_categ`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_bank_class`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_bank_url`
--

CREATE TABLE IF NOT EXISTS `llx_bank_url` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_bookmark`
--

CREATE TABLE IF NOT EXISTS `llx_bookmark` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_bordereau_cheque`
--

CREATE TABLE IF NOT EXISTS `llx_bordereau_cheque` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_boxes`
--

CREATE TABLE IF NOT EXISTS `llx_boxes` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_boxes`
--

INSERT INTO `llx_boxes` (`rowid`, `entity`, `box_id`, `position`, `box_order`, `fk_user`, `maxline`, `params`) VALUES
(2, 1, 2, 0, 'A15', 0, NULL, NULL),
(4, 1, 4, 0, 'A17', 0, NULL, NULL),
(7, 1, 7, 0, 'B18', 0, NULL, NULL),
(8, 1, 8, 0, 'A19', 0, NULL, NULL),
(9, 1, 9, 0, 'B20', 0, NULL, NULL),
(11, 1, 11, 0, 'B22', 0, NULL, NULL),
(13, 1, 13, 0, 'A23', 0, NULL, NULL),
(14, 1, 14, 0, 'B24', 0, NULL, NULL),
(15, 1, 15, 0, 'B14', 0, NULL, NULL),
(16, 1, 16, 0, 'A13', 0, NULL, NULL),
(17, 1, 17, 0, 'B12', 0, NULL, NULL),
(18, 1, 18, 0, 'B02', 0, NULL, NULL),
(21, 1, 21, 0, 'A05', 0, NULL, NULL),
(23, 1, 23, 0, 'A07', 0, NULL, NULL),
(27, 1, 27, 0, 'B08', 0, NULL, NULL),
(28, 1, 28, 0, 'A09', 0, NULL, NULL),
(31, 1, 31, 0, 'A25', 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_boxes_def`
--

CREATE TABLE IF NOT EXISTS `llx_boxes_def` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_boxes_def`
--

INSERT INTO `llx_boxes_def` (`rowid`, `file`, `entity`, `tms`, `note`) VALUES
(1, 'box_clients.php', 1, '2014-10-01 15:07:43', NULL),
(2, 'box_prospect.php', 1, '2014-10-01 15:07:43', NULL),
(3, 'box_contacts.php', 1, '2014-10-01 15:07:43', NULL),
(4, 'box_activity.php', 1, '2014-10-01 15:07:43', '(WarningUsingThisBoxSlowDown)'),
(7, 'box_commandes.php', 1, '2014-10-01 15:07:51', NULL),
(8, 'box_graph_orders_permonth.php', 1, '2014-10-01 15:07:51', NULL),
(9, 'box_contracts.php', 1, '2014-10-01 15:07:58', NULL),
(10, 'box_services_expired.php', 1, '2014-10-01 15:07:58', NULL),
(11, 'box_services_contracts.php', 1, '2014-10-01 15:07:58', NULL),
(13, 'box_ficheinter.php', 1, '2014-10-01 15:08:01', NULL),
(14, 'box_factures_imp.php', 1, '2014-10-01 15:08:16', NULL),
(15, 'box_factures.php', 1, '2014-10-01 15:08:16', NULL),
(16, 'box_graph_invoices_permonth.php', 1, '2014-10-01 15:08:16', NULL),
(17, 'box_comptes.php', 1, '2014-10-01 15:08:16', NULL),
(18, 'box_graph_invoices_supplier_permonth.php', 1, '2014-10-01 15:09:06', NULL),
(19, 'box_graph_orders_supplier_permonth.php', 1, '2014-10-01 15:09:06', NULL),
(20, 'box_fournisseurs.php', 1, '2014-10-01 15:09:06', NULL),
(21, 'box_factures_fourn_imp.php', 1, '2014-10-01 15:09:06', NULL),
(22, 'box_factures_fourn.php', 1, '2014-10-01 15:09:06', NULL),
(23, 'box_supplier_orders.php', 1, '2014-10-01 15:09:06', NULL),
(27, 'box_graph_propales_permonth.php', 1, '2014-10-01 15:10:08', NULL),
(28, 'box_propales.php', 1, '2014-10-01 15:10:08', NULL),
(29, 'box_produits.php', 1, '2014-10-01 15:10:09', NULL),
(30, 'box_produits_alerte_stock.php', 1, '2014-10-01 15:10:09', NULL),
(31, 'box_graph_product_distribution.php', 1, '2014-10-01 15:10:09', NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_action_trigger`
--

CREATE TABLE IF NOT EXISTS `llx_c_action_trigger` (
  `rowid` int(11) NOT NULL,
  `code` varchar(32) NOT NULL,
  `label` varchar(128) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `elementtype` varchar(16) NOT NULL,
  `rang` int(11) DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=174 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_action_trigger`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_actioncomm`
--

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

--
-- Contenu de la table `llx_c_actioncomm`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_availability`
--

CREATE TABLE IF NOT EXISTS `llx_c_availability` (
  `rowid` int(11) NOT NULL,
  `code` varchar(30) NOT NULL,
  `label` varchar(60) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_barcode_type`
--

CREATE TABLE IF NOT EXISTS `llx_c_barcode_type` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_chargesociales`
--

CREATE TABLE IF NOT EXISTS `llx_c_chargesociales` (
  `id` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=231 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_civility`
--

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

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_country`
--

CREATE TABLE IF NOT EXISTS `llx_c_country` (
  `rowid` int(11) NOT NULL,
  `code` varchar(2) NOT NULL,
  `code_iso` varchar(3) DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `favorite` tinyint(4) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_country`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_currencies`
--

CREATE TABLE IF NOT EXISTS `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Contenu de la 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),
('YER', 'Yemen Rial', '[65020]', 1),
('ZAR', 'South Africa Rand', '[82]', 1),
('ZWD', 'Zimbabwe Dollar', '[90,36]', 1);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_departements`
--

CREATE TABLE IF NOT EXISTS `llx_c_departements` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB AUTO_INCREMENT=1010 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_departements`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_ecotaxe`
--

CREATE TABLE IF NOT EXISTS `llx_c_ecotaxe` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_effectif`
--

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

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_email_templates`
--

CREATE TABLE IF NOT EXISTS `llx_c_email_templates` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_field_list`
--

CREATE TABLE IF NOT EXISTS `llx_c_field_list` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_forme_juridique`
--

CREATE TABLE IF NOT EXISTS `llx_c_forme_juridique` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=193 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_forme_juridique`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_holiday_types`
--

CREATE TABLE IF NOT EXISTS `llx_c_holiday_types` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_holiday_types`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_incoterms`
--

CREATE TABLE IF NOT EXISTS `llx_c_incoterms` (
  `rowid` int(11) NOT NULL,
  `code` varchar(3) NOT NULL,
  `libelle` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_input_method`
--

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

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_input_reason`
--

CREATE TABLE IF NOT EXISTS `llx_c_input_reason` (
  `rowid` int(11) NOT NULL,
  `code` varchar(30) DEFAULT NULL,
  `label` varchar(60) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `module` varchar(32) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_lead_status`
--

CREATE TABLE IF NOT EXISTS `llx_c_lead_status` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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, 'WIN', 'Won', 60, 100.00, 1),
(7, 'LOST', 'Lost', 70, 0.00, 1);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_paiement`
--

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

--
-- Contenu de la 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, 1, 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),
(54, 'PRO', 'Proforma', 2, 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_paper_format`
--

CREATE TABLE IF NOT EXISTS `llx_c_paper_format` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=226 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_payment_term`
--

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

--
-- Contenu de la 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', 5, 1, '60 jours', 'Réglement à 60 jours', 0, 60, NULL, NULL),
(5, '60DENDMONTH', 6, 1, '60 jours fin de mois', 'Réglement à 60 jours fin de mois', 1, 60, NULL, NULL),
(6, 'PT_ORDER', 9, 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', 0, 0, NULL, NULL),
(9, '30DENDMONTH10', 4, 1, '30 jours fin de mois le 10', 'Règlement à 30 jours fin de mois le 10', 1, 30, 10, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_price_expression`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_price_global_variable`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_price_global_variable_updater`
--

CREATE TABLE IF NOT EXISTS `llx_c_price_global_variable_updater` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_propalst`
--

CREATE TABLE IF NOT EXISTS `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_prospectlevel`
--

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

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_regions`
--

CREATE TABLE IF NOT EXISTS `llx_c_regions` (
  `rowid` int(11) NOT NULL,
  `code_region` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `cheflieu` varchar(50) DEFAULT NULL,
  `tncc` int(11) DEFAULT NULL,
  `nom` varchar(50) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=23210 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_regions`
--

INSERT INTO `llx_c_regions` (`rowid`, `code_region`, `fk_pays`, `cheflieu`, `tncc`, `nom`, `active`) VALUES
(1, 0, 0, '0', 0, '-', 1),
(101, 1, 1, '97105', 3, 'Guadeloupe', 1),
(102, 2, 1, '97209', 3, 'Martinique', 1),
(103, 3, 1, '97302', 3, 'Guyane', 1),
(104, 4, 1, '97411', 3, 'Réunion', 1),
(105, 11, 1, '75056', 1, 'Île-de-France', 1),
(106, 21, 1, '51108', 0, 'Champagne-Ardenne', 1),
(107, 22, 1, '80021', 0, 'Picardie', 1),
(108, 23, 1, '76540', 0, 'Haute-Normandie', 1),
(109, 24, 1, '45234', 2, 'Centre', 1),
(110, 25, 1, '14118', 0, 'Basse-Normandie', 1),
(111, 26, 1, '21231', 0, 'Bourgogne', 1),
(112, 31, 1, '59350', 2, 'Nord-Pas-de-Calais', 1),
(113, 41, 1, '57463', 0, 'Lorraine', 1),
(114, 42, 1, '67482', 1, 'Alsace', 1),
(115, 43, 1, '25056', 0, 'Franche-Comté', 1),
(116, 52, 1, '44109', 4, 'Pays de la Loire', 1),
(117, 53, 1, '35238', 0, 'Bretagne', 1),
(118, 54, 1, '86194', 2, 'Poitou-Charentes', 1),
(119, 72, 1, '33063', 1, 'Aquitaine', 1),
(120, 73, 1, '31555', 0, 'Midi-Pyrénées', 1),
(121, 74, 1, '87085', 2, 'Limousin', 1),
(122, 82, 1, '69123', 2, 'Rhône-Alpes', 1),
(123, 83, 1, '63113', 1, 'Auvergne', 1),
(124, 91, 1, '34172', 2, 'Languedoc-Roussillon', 1),
(125, 93, 1, '13055', 0, 'Provence-Alpes-Côte d''Azur', 1),
(126, 94, 1, '2A004', 0, 'Corse', 1),
(201, 201, 2, '', 1, 'Flandre', 1),
(202, 202, 2, '', 2, 'Wallonie', 1),
(203, 203, 2, '', 3, 'Bruxelles-Capitale', 1),
(301, 301, 3, NULL, 1, 'Abruzzo', 1),
(302, 302, 3, NULL, 1, 'Basilicata', 1),
(303, 303, 3, NULL, 1, 'Calabria', 1),
(304, 304, 3, NULL, 1, 'Campania', 1),
(305, 305, 3, NULL, 1, 'Emilia-Romagna', 1),
(306, 306, 3, NULL, 1, 'Friuli-Venezia Giulia', 1),
(307, 307, 3, NULL, 1, 'Lazio', 1),
(308, 308, 3, NULL, 1, 'Liguria', 1),
(309, 309, 3, NULL, 1, 'Lombardia', 1),
(310, 310, 3, NULL, 1, 'Marche', 1),
(311, 311, 3, NULL, 1, 'Molise', 1),
(312, 312, 3, NULL, 1, 'Piemonte', 1),
(313, 313, 3, NULL, 1, 'Puglia', 1),
(314, 314, 3, NULL, 1, 'Sardegna', 1),
(315, 315, 3, NULL, 1, 'Sicilia', 1),
(316, 316, 3, NULL, 1, 'Toscana', 1),
(317, 317, 3, NULL, 1, 'Trentino-Alto Adige', 1),
(318, 318, 3, NULL, 1, 'Umbria', 1),
(319, 319, 3, NULL, 1, 'Valle d Aosta', 1),
(320, 320, 3, NULL, 1, 'Veneto', 1),
(401, 401, 4, '', 0, 'Andalucia', 1),
(402, 402, 4, '', 0, 'Aragón', 1),
(403, 403, 4, '', 0, 'Castilla y León', 1),
(404, 404, 4, '', 0, 'Castilla la Mancha', 1),
(405, 405, 4, '', 0, 'Canarias', 1),
(406, 406, 4, '', 0, 'Cataluña', 1),
(407, 407, 4, '', 0, 'Comunidad de Ceuta', 1),
(408, 408, 4, '', 0, 'Comunidad Foral de Navarra', 1),
(409, 409, 4, '', 0, 'Comunidad de Melilla', 1),
(410, 410, 4, '', 0, 'Cantabria', 1),
(411, 411, 4, '', 0, 'Comunidad Valenciana', 1),
(412, 412, 4, '', 0, 'Extemadura', 1),
(413, 413, 4, '', 0, 'Galicia', 1),
(414, 414, 4, '', 0, 'Islas Baleares', 1),
(415, 415, 4, '', 0, 'La Rioja', 1),
(416, 416, 4, '', 0, 'Comunidad de Madrid', 1),
(417, 417, 4, '', 0, 'Región de Murcia', 1),
(418, 418, 4, '', 0, 'Principado de Asturias', 1),
(419, 419, 4, '', 0, 'Pais Vasco', 1),
(501, 501, 5, '', 0, 'Deutschland', 1),
(601, 601, 6, '', 1, 'Cantons', 1),
(701, 701, 7, '', 0, 'England', 1),
(702, 702, 7, '', 0, 'Wales', 1),
(703, 703, 7, '', 0, 'Scotland', 1),
(704, 704, 7, '', 0, 'Northern Ireland', 1),
(1001, 1001, 10, '', 0, 'Ariana', 1),
(1002, 1002, 10, '', 0, 'Béja', 1),
(1003, 1003, 10, '', 0, 'Ben Arous', 1),
(1004, 1004, 10, '', 0, 'Bizerte', 1),
(1005, 1005, 10, '', 0, 'Gabès', 1),
(1006, 1006, 10, '', 0, 'Gafsa', 1),
(1007, 1007, 10, '', 0, 'Jendouba', 1),
(1008, 1008, 10, '', 0, 'Kairouan', 1),
(1009, 1009, 10, '', 0, 'Kasserine', 1),
(1010, 1010, 10, '', 0, 'Kébili', 1),
(1011, 1011, 10, '', 0, 'La Manouba', 1),
(1012, 1012, 10, '', 0, 'Le Kef', 1),
(1013, 1013, 10, '', 0, 'Mahdia', 1),
(1014, 1014, 10, '', 0, 'Médenine', 1),
(1015, 1015, 10, '', 0, 'Monastir', 1),
(1016, 1016, 10, '', 0, 'Nabeul', 1),
(1017, 1017, 10, '', 0, 'Sfax', 1),
(1018, 1018, 10, '', 0, 'Sidi Bouzid', 1),
(1019, 1019, 10, '', 0, 'Siliana', 1),
(1020, 1020, 10, '', 0, 'Sousse', 1),
(1021, 1021, 10, '', 0, 'Tataouine', 1),
(1022, 1022, 10, '', 0, 'Tozeur', 1),
(1023, 1023, 10, '', 0, 'Tunis', 1),
(1024, 1024, 10, '', 0, 'Zaghouan', 1),
(1101, 1101, 11, '', 0, 'United-States', 1),
(1201, 1201, 12, '', 0, 'Tanger-Tétouan', 1),
(1202, 1202, 12, '', 0, 'Gharb-Chrarda-Beni Hssen', 1),
(1203, 1203, 12, '', 0, 'Taza-Al Hoceima-Taounate', 1),
(1204, 1204, 12, '', 0, 'L''Oriental', 1),
(1205, 1205, 12, '', 0, 'Fès-Boulemane', 1),
(1206, 1206, 12, '', 0, 'Meknès-Tafialet', 1),
(1207, 1207, 12, '', 0, 'Rabat-Salé-Zemour-Zaër', 1),
(1208, 1208, 12, '', 0, 'Grand Cassablanca', 1),
(1209, 1209, 12, '', 0, 'Chaouia-Ouardigha', 1),
(1210, 1210, 12, '', 0, 'Doukahla-Adba', 1),
(1211, 1211, 12, '', 0, 'Marrakech-Tensift-Al Haouz', 1),
(1212, 1212, 12, '', 0, 'Tadla-Azilal', 1),
(1213, 1213, 12, '', 0, 'Sous-Massa-Drâa', 1),
(1214, 1214, 12, '', 0, 'Guelmim-Es Smara', 1),
(1215, 1215, 12, '', 0, 'Laâyoune-Boujdour-Sakia el Hamra', 1),
(1216, 1216, 12, '', 0, 'Oued Ed-Dahab Lagouira', 1),
(1301, 1301, 13, '', 0, 'Algerie', 1),
(1401, 1401, 14, '', 0, 'Canada', 1),
(1701, 1701, 17, '', 0, 'Provincies van Nederland ', 1),
(2301, 2301, 23, '', 0, 'Norte', 1),
(2302, 2302, 23, '', 0, 'Litoral', 1),
(2303, 2303, 23, '', 0, 'Cuyana', 1),
(2304, 2304, 23, '', 0, 'Central', 1),
(2305, 2305, 23, '', 0, 'Patagonia', 1),
(2801, 2801, 28, '', 0, 'Australia', 1),
(4601, 4601, 46, '', 0, 'Barbados', 1),
(5601, 5601, 56, '', 0, 'Brasil', 1),
(6701, 6701, 67, NULL, NULL, 'Tarapacá', 1),
(6702, 6702, 67, NULL, NULL, 'Antofagasta', 1),
(6703, 6703, 67, NULL, NULL, 'Atacama', 1),
(6704, 6704, 67, NULL, NULL, 'Coquimbo', 1),
(6705, 6705, 67, NULL, NULL, 'Valparaíso', 1),
(6706, 6706, 67, NULL, NULL, 'General Bernardo O Higgins', 1),
(6707, 6707, 67, NULL, NULL, 'Maule', 1),
(6708, 6708, 67, NULL, NULL, 'Biobío', 1),
(6709, 6709, 67, NULL, NULL, 'Raucanía', 1),
(6710, 6710, 67, NULL, NULL, 'Los Lagos', 1),
(6711, 6711, 67, NULL, NULL, 'Aysén General Carlos Ibáñez del Campo', 1),
(6712, 6712, 67, NULL, NULL, 'Magallanes y Antártica Chilena', 1),
(6713, 6713, 67, NULL, NULL, 'Metropolitana de Santiago', 1),
(6714, 6714, 67, NULL, NULL, 'Los Ríos', 1),
(6715, 6715, 67, NULL, NULL, 'Arica y Parinacota', 1),
(7001, 7001, 70, '', 0, 'Colombie', 1),
(8601, 8601, 86, NULL, NULL, 'Central', 1),
(8602, 8602, 86, NULL, NULL, 'Oriental', 1),
(8603, 8603, 86, NULL, NULL, 'Occidental', 1),
(10201, 10201, 102, NULL, NULL, 'Αττική', 1),
(10202, 10202, 102, NULL, NULL, 'Στερεά Ελλάδα', 1),
(10203, 10203, 102, NULL, NULL, 'Κεντρική Μακεδονία', 1),
(10204, 10204, 102, NULL, NULL, 'Κρήτη', 1),
(10205, 10205, 102, NULL, NULL, 'Ανατολική Μακεδονία και Θράκη', 1),
(10206, 10206, 102, NULL, NULL, 'Ήπειρος', 1),
(10207, 10207, 102, NULL, NULL, 'Ιόνια νησιά', 1),
(10208, 10208, 102, NULL, NULL, 'Βόρειο Αιγαίο', 1),
(10209, 10209, 102, NULL, NULL, 'Πελοπόννησος', 1),
(10210, 10210, 102, NULL, NULL, 'Νότιο Αιγαίο', 1),
(10211, 10211, 102, NULL, NULL, 'Δυτική Ελλάδα', 1),
(10212, 10212, 102, NULL, NULL, 'Θεσσαλία', 1),
(10213, 10213, 102, NULL, NULL, 'Δυτική Μακεδονία', 1),
(11401, 11401, 114, '', 0, 'Honduras', 1),
(11701, 11701, 117, '', 0, 'India', 1),
(15201, 15201, 152, '', 0, 'Rivière Noire', 1),
(15202, 15202, 152, '', 0, 'Flacq', 1),
(15203, 15203, 152, '', 0, 'Grand Port', 1),
(15204, 15204, 152, '', 0, 'Moka', 1),
(15205, 15205, 152, '', 0, 'Pamplemousses', 1),
(15206, 15206, 152, '', 0, 'Plaines Wilhems', 1),
(15207, 15207, 152, '', 0, 'Port-Louis', 1),
(15208, 15208, 152, '', 0, 'Rivière du Rempart', 1),
(15209, 15209, 152, '', 0, 'Savanne', 1),
(15210, 15210, 152, '', 0, 'Rodrigues', 1),
(15211, 15211, 152, '', 0, 'Les îles Agaléga', 1),
(15212, 15212, 152, '', 0, 'Les écueils des Cargados Carajos', 1),
(15401, 15401, 154, '', 0, 'Mexique', 1),
(23201, 23201, 232, '', 0, 'Los Andes', 1),
(23202, 23202, 232, '', 0, 'Capital', 1),
(23203, 23203, 232, '', 0, 'Central', 1),
(23204, 23204, 232, '', 0, 'Cento Occidental', 1),
(23205, 23205, 232, '', 0, 'Guayana', 1),
(23206, 23206, 232, '', 0, 'Insular', 1),
(23207, 23207, 232, '', 0, 'Los Llanos', 1),
(23208, 23208, 232, '', 0, 'Nor-Oriental', 1),
(23209, 23209, 232, '', 0, 'Zuliana', 1);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_revenuestamp`
--

CREATE TABLE IF NOT EXISTS `llx_c_revenuestamp` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_shipment_mode`
--

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

--
-- Contenu de la table `llx_c_shipment_mode`
--

INSERT INTO `llx_c_shipment_mode` (`rowid`, `tms`, `code`, `libelle`, `description`, `tracking`, `active`, `module`) VALUES
(1, '2014-09-30 19:46:31', 'CATCH', 'Catch', 'Catch by client', '', 1, NULL),
(2, '2014-09-30 19:46:31', 'TRANS', 'Transporter', 'Generic transporter', '', 1, NULL),
(3, '2014-09-30 19:46:31', 'COLSUI', 'Colissimo Suivi', 'Colissimo Suivi', '', 0, NULL),
(4, '2014-09-30 19:46:31', 'LETTREMAX', 'Lettre Max', 'Courrier Suivi et Lettre Max', '', 0, NULL),
(5, '2014-09-30 19:46:31', '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, '2014-09-30 19:46:31', 'KIALA', 'KIALA', 'Relais Kiala', 'http://www.kiala.fr/tnt/delivery/{TRACKID}', 0, NULL),
(7, '2014-09-30 19:46:31', 'GLS', 'GLS', 'General Logistics Systems', 'http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/FR01/FR/5004.htm?txtAction=71000&txtRefNo={TRACKID}', 0, NULL),
(8, '2014-09-30 19:46:31', 'CHRONO', 'Chronopost', 'Chronopost', 'http://www.chronopost.fr/expedier/inputLTNumbersNoJahia.do?listeNumeros={TRACKID}', 0, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_stcomm`
--

CREATE TABLE IF NOT EXISTS `llx_c_stcomm` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  `picto` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_stcomm`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_tva`
--

CREATE TABLE IF NOT EXISTS `llx_c_tva` (
  `rowid` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `localtax1` varchar(20) DEFAULT NULL,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2` varchar(20) DEFAULT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=2469 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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', '-21', '1', 0, 'VAT standard rate', 1, NULL, NULL),
(42, 4, 10, '1.4', '3', '-21', '1', 0, 'VAT reduced rate', 1, NULL, NULL),
(43, 4, 4, '0.5', '3', '-21', '1', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(44, 4, 0, '0', '3', '-21', '1', 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),
(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, 'TPS and TVQ rate', 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),
(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),
(1841, 181, 18, '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, 181, 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 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, NULL, '0', NULL, '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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_type_contact`
--

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

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_type_fees`
--

CREATE TABLE IF NOT EXISTS `llx_c_type_fees` (
  `id` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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', 'Trip', NULL, 1, NULL),
(3, 'TF_LUNCH', 'Lunch', NULL, 1, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_type_resource`
--

CREATE TABLE IF NOT EXISTS `llx_c_type_resource` (
  `rowid` int(11) NOT NULL,
  `code` varchar(32) NOT NULL,
  `libelle` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_typent`
--

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

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_ultimatepdf_line`
--

CREATE TABLE IF NOT EXISTS `llx_c_ultimatepdf_line` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `code` varchar(30) NOT NULL,
  `label` varchar(128) NOT NULL,
  `description` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_c_ultimatepdf_line`
--

INSERT INTO `llx_c_ultimatepdf_line` (`rowid`, `entity`, `code`, `label`, `description`, `active`) VALUES
(1, 1, 'TEXTE1', 'Garantie 2 ans pièces et main d''œuvre, retour en atelier (Hors filtre et pièce d''usure)', 'texte de garantie', 1);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_units`
--

CREATE TABLE IF NOT EXISTS `llx_c_units` (
  `rowid` int(11) NOT NULL,
  `code` varchar(3) DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  `short_label` varchar(5) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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);

-- --------------------------------------------------------

--
-- Structure de la table `llx_c_ziptown`
--

CREATE TABLE IF NOT EXISTS `llx_c_ziptown` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categorie`
--

CREATE TABLE IF NOT EXISTS `llx_categorie` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categorie_contact`
--

CREATE TABLE IF NOT EXISTS `llx_categorie_contact` (
  `fk_categorie` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categorie_fournisseur`
--

CREATE TABLE IF NOT EXISTS `llx_categorie_fournisseur` (
  `fk_categorie` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categorie_lang`
--

CREATE TABLE IF NOT EXISTS `llx_categorie_lang` (
  `rowid` int(11) NOT NULL,
  `fk_category` int(11) NOT NULL DEFAULT '0',
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categorie_member`
--

CREATE TABLE IF NOT EXISTS `llx_categorie_member` (
  `fk_categorie` int(11) NOT NULL,
  `fk_member` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categorie_product`
--

CREATE TABLE IF NOT EXISTS `llx_categorie_product` (
  `fk_categorie` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categorie_societe`
--

CREATE TABLE IF NOT EXISTS `llx_categorie_societe` (
  `fk_categorie` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_categories_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_categories_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_chargesociales`
--

CREATE TABLE IF NOT EXISTS `llx_chargesociales` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande`
--

CREATE TABLE IF NOT EXISTS `llx_commande` (
  `rowid` int(11) NOT NULL,
  `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,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_commande`
--

INSERT INTO `llx_commande` (`rowid`, `ref`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `fk_soc`, `fk_projet`, `tms`, `date_creation`, `date_valid`, `date_cloture`, `date_commande`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_user_cloture`, `source`, `fk_statut`, `amount_ht`, `remise_percent`, `remise_absolue`, `remise`, `tva`, `localtax1`, `localtax2`, `total_ht`, `total_ttc`, `note_private`, `note_public`, `model_pdf`, `facture`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_livraison`, `fk_shipping_method`, `fk_availability`, `fk_input_reason`, `fk_delivery_address`, `import_key`, `extraparams`, `fk_incoterms`, `location_incoterms`) VALUES
(1, 'CC1511-0001', 1, NULL, NULL, 'Convention de recrutement 2015-11', 5, NULL, '2016-01-18 19:17:00', '2016-01-15 14:14:19', '2016-01-18 20:17:00', NULL, '2015-11-18', 4, NULL, 1, NULL, NULL, 1, 0, 0, NULL, 0, 600.00000000, 0.00000000, 0.00000000, 3000.00000000, 3600.00000000, '', '', 'einstein', 0, NULL, NULL, 2, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(2, 'CC1510-0001', 1, NULL, NULL, 'PA1509-001', 5, NULL, '2016-01-29 13:15:50', '2016-01-15 14:25:54', '2016-01-29 14:15:30', NULL, '2015-10-01', 4, NULL, 4, NULL, NULL, 1, 0, 0, NULL, 0, 6720.00000000, 0.00000000, 0.00000000, 33600.00000000, 40320.00000000, '', '', 'einstein', 0, NULL, NULL, 9, 2, NULL, NULL, 0, NULL, NULL, NULL, NULL, 0, ''),
(3, 'CC1601-0003', 1, NULL, NULL, 'PA16001-001', 5, NULL, '2016-01-29 13:20:41', '2016-01-15 14:45:19', '2016-01-29 14:20:41', NULL, '2016-01-04', 4, NULL, 4, NULL, NULL, 1, 0, 0, NULL, 0, 0.00000000, 0.00000000, 0.00000000, 16800.00000000, 16800.00000000, '', '', 'einstein', 0, NULL, NULL, 9, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(4, 'CC1601-0002', 1, NULL, NULL, 'PA16001-002 ISO 9001', 5, NULL, '2016-01-29 13:07:21', '2016-01-15 14:46:32', '2016-01-29 14:07:21', NULL, '2016-01-05', 4, NULL, 4, NULL, NULL, 1, 0, 0, NULL, 0, 3360.00000000, 0.00000000, 0.00000000, 16800.00000000, 20160.00000000, '', '', 'einstein', 0, NULL, NULL, 9, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, ''),
(5, 'CC1601-0001', 1, NULL, NULL, 'DI 1511169516', 2, NULL, '2016-01-29 14:46:38', '2016-01-29 13:29:15', '2016-01-29 15:46:38', NULL, '2016-01-29', 4, NULL, 4, NULL, NULL, 1, 0, 0, NULL, 0, 3440.00000000, 0.00000000, 0.00000000, 17200.00000000, 20640.00000000, '', '', 'einstein', 0, NULL, NULL, 2, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '');

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_commande_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `newline` text
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_commande_extrafields`
--

INSERT INTO `llx_commande_extrafields` (`rowid`, `tms`, `fk_object`, `import_key`, `newline`) VALUES
(1, '2016-01-15 13:14:19', 1, NULL, '0'),
(2, '2016-01-15 13:25:54', 2, NULL, '0'),
(3, '2016-01-15 13:45:19', 3, NULL, '0'),
(4, '2016-01-15 13:46:32', 4, NULL, '0'),
(5, '2016-01-29 12:29:15', 5, NULL, '0');

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande_fournisseur`
--

CREATE TABLE IF NOT EXISTS `llx_commande_fournisseur` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `ref_ext` varchar(255) 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',
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande_fournisseur_dispatch`
--

CREATE TABLE IF NOT EXISTS `llx_commande_fournisseur_dispatch` (
  `rowid` int(11) NOT NULL,
  `fk_commande` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `fk_commandefourndet` int(11) NOT NULL DEFAULT '0',
  `qty` float DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande_fournisseur_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_commande_fournisseur_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande_fournisseur_log`
--

CREATE TABLE IF NOT EXISTS `llx_commande_fournisseur_log` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande_fournisseurdet`
--

CREATE TABLE IF NOT EXISTS `llx_commande_fournisseurdet` (
  `rowid` int(11) NOT NULL,
  `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',
  `import_key` varchar(14) DEFAULT NULL,
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `fk_unit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_commande_fournisseurdet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_commande_fournisseurdet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_commandedet`
--

CREATE TABLE IF NOT EXISTS `llx_commandedet` (
  `rowid` int(11) NOT NULL,
  `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(10) unsigned DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `import_key` varchar(14) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_commandedet`
--

INSERT INTO `llx_commandedet` (`rowid`, `fk_commande`, `fk_parent_line`, `fk_product`, `label`, `description`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `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`, `import_key`, `fk_unit`) VALUES
(1, 1, NULL, NULL, NULL, 'Recrutements', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3000, 3000.00000000, 3000.00000000, 600.00000000, 0.00000000, 0.00000000, 3600.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 1, NULL, NULL),
(2, 2, NULL, 4, NULL, 'Prestations administratives', 20.000, 0.000, '0', 0.000, '0', 120, 0, 0, NULL, 280, 280.00000000, 33600.00000000, 6720.00000000, 0.00000000, 0.00000000, 40320.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 1, NULL, NULL),
(3, 3, NULL, 4, NULL, 'Prestation d&rsquo;&eacute;tudes dans le domaine administratif', 0.000, 0.000, '0', 0.000, '0', 60, 0, 0, NULL, 280, 280.00000000, 16800.00000000, 0.00000000, 0.00000000, 0.00000000, 16800.00000000, 1, NULL, NULL, 0, 280.00000000, NULL, 0, 1, NULL, NULL),
(6, 4, NULL, NULL, NULL, 'Prestation d&rsquo;&eacute;tudes dans la r&eacute;alisation &agrave; la certification ISO 9001', 20.000, 0.000, '0', 0.000, '0', 60, 0, 0, NULL, 280, 280.00000000, 16800.00000000, 3360.00000000, 0.00000000, 0.00000000, 20160.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 2, NULL, NULL),
(7, 5, NULL, NULL, NULL, 'Direction de projet IT et AMOA projet ORKIDEE-M3', 20.000, 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 860, 860.00000000, 17200.00000000, 3440.00000000, 0.00000000, 0.00000000, 20640.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 2, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_commandedet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_commandedet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_const`
--

CREATE TABLE IF NOT EXISTS `llx_const` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=537 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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', '2014-09-30 19:46:31'),
(3, 'MAILING_LIMIT_SENDBYWEB', 0, '25', 'chaine', 1, 'Number of targets to defined packet size when sending mass email', '2014-09-30 19:46:31'),
(6, 'SYSLOG_LEVEL', 0, '7', 'chaine', 0, 'Level of debug info to show', '2014-09-30 19:46:31'),
(9, 'MAIN_UPLOAD_DOC', 0, '2048', 'chaine', 0, 'Max size for file upload (0 means no upload allowed)', '2014-09-30 19:46:31'),
(12, 'MAIN_SIZE_LISTE_LIMIT', 0, '25', 'chaine', 0, 'Longueur maximum des listes', '2014-09-30 19:46:31'),
(13, 'MAIN_SHOW_WORKBOARD', 0, '1', 'yesno', 0, 'Affichage tableau de bord de travail Dolibarr', '2014-09-30 19:46:31'),
(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', '2014-09-30 19:46:31'),
(19, 'MAIN_DELAY_ORDERS_TO_PROCESS', 1, '2', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur commandes clients non traitées', '2014-09-30 19:46:31'),
(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', '2014-09-30 19:46:31'),
(21, 'MAIN_DELAY_PROPALS_TO_CLOSE', 1, '31', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur propales à cloturer', '2014-09-30 19:46:31'),
(22, 'MAIN_DELAY_PROPALS_TO_BILL', 1, '7', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur propales non facturées', '2014-09-30 19:46:31'),
(23, 'MAIN_DELAY_CUSTOMER_BILLS_UNPAYED', 1, '31', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur factures client impayées', '2014-09-30 19:46:31'),
(24, 'MAIN_DELAY_SUPPLIER_BILLS_TO_PAY', 1, '2', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur factures fournisseur impayées', '2014-09-30 19:46:31'),
(25, 'MAIN_DELAY_NOT_ACTIVATED_SERVICES', 1, '0', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur services à activer', '2014-09-30 19:46:31'),
(26, 'MAIN_DELAY_RUNNING_SERVICES', 1, '0', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur services expirés', '2014-09-30 19:46:31'),
(27, 'MAIN_DELAY_MEMBERS', 1, '31', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur cotisations adhérent en retard', '2014-09-30 19:46:31'),
(28, 'MAIN_DELAY_TRANSACTIONS_TO_CONCILIATE', 1, '62', 'chaine', 0, 'Tolérance de retard avant alerte (en jours) sur rapprochements bancaires à faire', '2014-09-30 19:46:31'),
(29, 'MAIN_FIX_FOR_BUGGED_MTA', 1, '1', 'chaine', 1, 'Set constant to fix email ending from PHP with some linux ike system', '2014-09-30 19:46:31'),
(30, 'MAILING_EMAIL_FROM', 1, 'dolibarr@domain.com', 'chaine', 0, 'EMail emmetteur pour les envois d emailings', '2014-09-30 19:46:31'),
(32, 'MAIN_VERSION_LAST_INSTALL', 0, '3.6.0', 'chaine', 0, 'Dolibarr version when install', '2014-09-30 19:47:10'),
(93, 'COMPANY_ADDON_PDF_ODT_PATH', 1, 'DOL_DATA_ROOT/doctemplates/thirdparties', 'chaine', 0, NULL, '2014-10-01 15:07:41'),
(94, 'SOCIETE_ADD_REF_IN_LIST', 1, '', 'yesno', 0, 'Display customer ref into select list', '2014-10-01 15:07:41'),
(96, 'PROPALE_ADDON_PDF', 1, 'azur', 'chaine', 0, 'Nom du gestionnaire de generation des propales en PDF', '2014-10-01 15:07:47'),
(98, 'PROPALE_VALIDITY_DURATION', 1, '15', 'chaine', 0, 'Duration of validity of business proposals', '2014-10-01 15:07:47'),
(99, 'PROPALE_ADDON_PDF_ODT_PATH', 1, 'DOL_DATA_ROOT/doctemplates/proposals', 'chaine', 0, NULL, '2014-10-01 15:07:47'),
(102, 'COMMANDE_ADDON_PDF', 1, 'einstein', 'chaine', 0, 'Name of PDF model of order', '2014-10-01 15:07:51'),
(104, 'COMMANDE_ADDON_PDF_ODT_PATH', 1, 'DOL_DATA_ROOT/doctemplates/orders', 'chaine', 0, NULL, '2014-10-01 15:07:51'),
(106, 'MAIN_MODULE_CONTRAT', 1, '1', NULL, 0, NULL, '2014-10-01 15:07:58'),
(107, 'CONTRACT_ADDON', 1, 'mod_contract_serpis', 'chaine', 0, 'Nom du gestionnaire de numerotation des contrats', '2014-10-01 15:07:58'),
(110, 'MAIN_MODULE_FICHEINTER', 1, '1', NULL, 0, NULL, '2014-10-01 15:08:01'),
(111, 'FICHEINTER_ADDON_PDF', 1, 'soleil', 'chaine', 0, NULL, '2014-10-01 15:08:01'),
(115, 'ECM_AUTO_TREE_ENABLED', 1, '1', 'chaine', 0, 'Auto tree is enabled by default', '2014-10-01 15:08:09'),
(116, 'MAIN_MODULE_COMPTABILITE', 1, '1', NULL, 0, NULL, '2014-10-01 15:08:16'),
(118, 'FACTURE_ADDON_PDF', 1, 'crabe', 'chaine', 0, 'Name of PDF model of invoice', '2014-10-01 15:08:16'),
(122, 'MAIN_MODULE_BANQUE', 1, '1', NULL, 0, NULL, '2014-10-01 15:08:16'),
(123, 'MAIN_MODULE_TAX', 1, '1', NULL, 0, NULL, '2014-10-01 15:08:34'),
(124, 'MAIN_MODULE_SALARIES', 1, '1', NULL, 0, NULL, '2014-10-01 15:08:52'),
(127, 'COMMANDE_SUPPLIER_ADDON_PDF', 1, 'muscadet', 'chaine', 0, 'Nom du gestionnaire de generation des bons de commande en PDF', '2014-10-01 15:09:06'),
(129, 'INVOICE_SUPPLIER_ADDON_PDF', 1, 'canelle', 'chaine', 0, 'Nom du gestionnaire de generation des factures fournisseur en PDF', '2014-10-01 15:09:06'),
(134, 'MAIN_MODULE_PROJET', 1, '1', NULL, 0, NULL, '2014-10-01 15:09:35'),
(136, 'PROJECT_ADDON', 1, 'mod_project_simple', 'chaine', 0, 'Name of Numbering Rule project manager class', '2014-10-01 15:09:35'),
(137, 'PROJECT_ADDON_PDF_ODT_PATH', 1, 'DOL_DATA_ROOT/doctemplates/projects', 'chaine', 0, NULL, '2014-10-01 15:09:35'),
(138, 'PROJECT_TASK_ADDON_PDF', 1, '', 'chaine', 0, 'Name of PDF/ODT tasks manager class', '2014-10-01 15:09:35'),
(139, 'PROJECT_TASK_ADDON', 1, 'mod_task_simple', 'chaine', 0, 'Name of Numbering Rule task manager class', '2014-10-01 15:09:35'),
(140, 'PROJECT_TASK_ADDON_PDF_ODT_PATH', 1, 'DOL_DATA_ROOT/doctemplates/tasks', 'chaine', 0, NULL, '2014-10-01 15:09:35'),
(141, 'MAIN_MODULE_EXPORT', 1, '1', NULL, 0, NULL, '2014-10-01 15:09:41'),
(142, 'MAIN_MODULE_IMPORT', 1, '1', NULL, 0, NULL, '2014-10-01 15:09:46'),
(144, 'MAIN_MODULE_MARGIN', 1, '1', NULL, 0, NULL, '2014-10-01 15:10:07'),
(145, 'MAIN_MODULE_MARGIN_TABS_0', 1, 'product:+margin:Margins:margins:$user->rights->margins->liretous:/margin/tabs/productMargins.php?id=__ID__', 'chaine', 0, NULL, '2014-10-01 15:10:07'),
(146, 'MAIN_MODULE_MARGIN_TABS_1', 1, 'thirdparty:+margin:Margins:margins:empty($user->societe_id) && $user->rights->margins->liretous:/margin/tabs/thirdpartyMargins.php?socid=__ID__', 'chaine', 0, NULL, '2014-10-01 15:10:07'),
(147, 'MAIN_MODULE_PROPALE', 1, '1', NULL, 0, NULL, '2014-10-01 15:10:08'),
(149, 'MAIN_MODULE_PRODUCT', 1, '1', NULL, 0, NULL, '2014-10-01 15:10:09'),
(150, 'MAIN_MODULE_CATEGORIE', 1, '1', NULL, 0, NULL, '2014-10-01 15:10:13'),
(152, 'MAIN_MODULE_WORKFLOW', 1, '1', NULL, 0, NULL, '2014-10-01 15:10:17'),
(153, 'SOCIETE_CODECLIENT_ADDON', 1, 'mod_codeclient_elephant', 'chaine', 0, '', '2014-10-01 16:20:53'),
(154, 'COMPANY_ELEPHANT_MASK_CUSTOMER', 1, 'CL{yy}{mm}-{0000@99}', 'chaine', 0, '', '2014-10-01 16:21:30'),
(155, 'COMPANY_ELEPHANT_MASK_SUPPLIER', 1, 'CF{yy}{mm}-{0000@99}', 'chaine', 0, '', '2014-10-01 16:21:30'),
(156, 'COMPANY_AQUARIUM_MASK_SUPPLIER', 1, '401', 'chaine', 0, '', '2014-10-01 16:22:52'),
(157, 'COMPANY_AQUARIUM_MASK_CUSTOMER', 1, '411', 'chaine', 0, '', '2014-10-01 16:22:52'),
(158, 'SOCIETE_CODECOMPTA_ADDON', 1, 'mod_codecompta_aquarium', 'chaine', 0, '', '2014-10-01 16:23:06'),
(159, 'SOCIETE_IDPROF1_UNIQUE', 1, '1', 'chaine', 0, '', '2014-10-01 16:24:09'),
(160, 'SOCIETE_IDPROF2_UNIQUE', 1, '1', 'chaine', 0, '', '2014-10-01 16:27:33'),
(161, 'SOCIETE_IDPROF3_UNIQUE', 1, '1', 'chaine', 0, '', '2014-10-01 16:27:38'),
(162, 'SOCIETE_IDPROF4_UNIQUE', 1, '1', 'chaine', 0, '', '2014-10-01 16:27:43'),
(163, 'SOCIETE_IDPROF2_INVOICE_MANDATORY', 1, '1', 'chaine', 0, '', '2014-10-01 16:27:57'),
(164, 'SOCIETE_IDPROF1_INVOICE_MANDATORY', 1, '1', 'chaine', 0, '', '2014-10-01 16:28:09'),
(165, 'PROPALE_ADDON', 1, 'mod_propale_saphir', 'chaine', 0, '', '2014-10-01 16:29:28'),
(166, 'PROPALE_SAPHIR_MASK', 1, 'DV{yy}{mm}-{0000@99}', 'chaine', 0, '', '2014-10-01 16:29:47'),
(167, 'PROPALE_DRAFT_WATERMARK', 1, 'Document provisoire', 'chaine', 0, '', '2014-10-01 16:30:21'),
(168, 'COMMANDE_ADDON', 1, 'mod_commande_saphir', 'chaine', 0, '', '2014-10-01 16:30:48'),
(169, 'COMMANDE_SAPHIR_MASK', 1, 'CC{yy}{mm}-{0000@99}', 'chaine', 0, '', '2014-10-01 16:31:04'),
(170, 'COMMANDE_DRAFT_WATERMARK', 1, 'Document provisoire', 'chaine', 0, '', '2014-10-01 16:31:46'),
(171, 'FICHINTER_ARTIC_MASK', 1, 'FI{yy}{mm}-{0000@99}', 'chaine', 0, '', '2014-10-01 16:33:21'),
(172, 'FICHEINTER_ADDON', 1, 'arctic', 'chaine', 0, '', '2014-10-01 16:33:25'),
(173, 'FICHINTER_PRINT_PRODUCTS', 1, '1', 'bool', 0, '', '2014-10-01 16:33:44'),
(174, 'ACCOUNTING_MODE', 1, 'RECETTES-DEPENSES', 'chaine', 0, '', '2015-07-04 13:45:55'),
(175, 'ACCOUNTING_PRODUCT_BUY_ACCOUNT', 1, '604', 'chaine', 0, '', '2015-07-04 13:45:55'),
(176, 'ACCOUNTING_PRODUCT_SOLD_ACCOUNT', 1, '704', 'chaine', 0, '', '2015-07-04 13:45:55'),
(177, 'ACCOUNTING_ACCOUNT_CUSTOMER', 1, '411', 'chaine', 0, '', '2015-07-04 13:45:55'),
(178, 'ACCOUNTING_ACCOUNT_SUPPLIER', 1, '401', 'chaine', 0, '', '2015-07-04 13:45:55'),
(179, 'COMMANDE_FOURNISSEUR_ORCHIDEE_MASK', 1, 'CF{yy}{mm}-{0000@99}', 'chaine', 0, '', '2014-10-01 16:39:26'),
(180, 'COMMANDE_SUPPLIER_ADDON_NUMBER', 1, 'mod_commande_fournisseur_orchidee', 'chaine', 0, '', '2014-10-01 16:39:31'),
(181, 'SUPPLIER_INVOICE_TULIP_MASK', 1, 'FF{yy}{mm}-{0000@0}', 'chaine', 0, '', '2014-10-01 16:40:31'),
(182, 'INVOICE_SUPPLIER_ADDON_NUMBER', 1, 'mod_facture_fournisseur_tulip', 'chaine', 0, '', '2014-10-01 16:40:35'),
(183, 'FACTURE_MERCURE_MASK_INVOICE', 1, 'FC{yy}{mm}-{0000@0}', 'chaine', 0, '', '2014-10-01 16:43:11'),
(184, 'FACTURE_MERCURE_MASK_REPLACEMENT', 1, 'FR{yy}{mm}-{0000@0}', 'chaine', 0, '', '2014-10-01 16:43:11'),
(185, 'FACTURE_MERCURE_MASK_CREDIT', 1, 'AV{yy}{mm}-{0000@0}', 'chaine', 0, '', '2014-10-01 16:43:11'),
(186, 'FACTURE_MERCURE_MASK_DEPOSIT', 1, 'FA{yy}{mm}-{0000@99}', 'chaine', 0, '', '2014-10-01 16:43:12'),
(187, 'FACTURE_ADDON', 1, 'mod_facture_mercure', 'chaine', 0, '', '2014-10-01 16:43:17'),
(188, 'FACTURE_DRAFT_WATERMARK', 1, 'Document provisoire', 'chaine', 0, '', '2014-10-01 18:38:26'),
(189, 'PRODUCT_ELEPHANT_MASK_PRODUCT', 1, 'PR{yy}{mm}-{000}', 'chaine', 0, '', '2014-10-01 18:41:01'),
(190, 'PRODUCT_ELEPHANT_MASK_SERVICE', 1, 'SE{yy}{mm}-{000}', 'chaine', 0, '', '2014-10-01 18:41:01'),
(191, 'PRODUCT_CODEPRODUCT_ADDON', 1, 'mod_codeproduct_elephant', 'chaine', 0, '', '2014-10-01 18:41:07'),
(192, 'PRODUCT_PRICE_UNIQ', 1, '0', 'chaine', 0, '', '2014-10-01 18:41:32'),
(193, 'PRODUIT_MULTIPRICES', 1, '1', 'chaine', 0, '', '2014-10-01 18:41:32'),
(194, 'PRODUIT_CUSTOMER_PRICES', 1, '0', 'chaine', 0, '', '2014-10-01 18:41:32'),
(197, 'PROJECT_ADDON_PDF', 1, 'generic_project_odt', 'chaine', 0, '', '2014-10-01 18:42:18'),
(198, 'SYSLOG_FACILITY', 0, 'LOG_USER', 'chaine', 0, '', '2014-10-01 18:43:08'),
(199, 'SYSLOG_FILE', 0, 'DOL_DATA_ROOT/dolibarr.log', 'chaine', 0, '', '2014-10-01 18:43:08'),
(200, 'SYSLOG_HANDLERS', 0, '["mod_syslog_syslog","mod_syslog_file"]', 'chaine', 0, '', '2014-10-01 18:43:08'),
(201, 'MARGIN_TYPE', 1, '2', 'chaine', 0, '', '2014-10-01 18:46:20'),
(202, 'DISPLAY_MARGIN_RATES', 1, '1', 'chaine', 0, '', '2014-10-01 18:46:25'),
(203, 'DISPLAY_MARK_RATES', 1, '1', 'chaine', 0, '', '2014-10-01 18:46:27'),
(204, 'CATEGORIE_RECURSIV_ADD', 1, '1', 'chaine', 0, '', '2014-10-01 18:47:14'),
(207, 'WORKFLOW_PROPAL_AUTOCREATE_ORDER', 1, '1', 'chaine', 0, '', '2014-10-01 18:47:44'),
(209, 'WORKFLOW_ORDER_CLASSIFY_BILLED_PROPAL', 1, '1', 'chaine', 0, '', '2014-10-01 18:48:11'),
(210, 'WORKFLOW_INVOICE_CLASSIFY_BILLED_ORDER', 1, '1', 'chaine', 0, '', '2014-10-01 18:48:38'),
(254, 'MAIN_MAIL_SMTP_PORT', 1, '465', 'chaine', 0, '', '2015-11-18 20:09:06'),
(255, 'MAIN_MAIL_SMTP_SERVER', 1, 'smtp.qat-consulting.com', 'chaine', 0, '', '2015-11-18 20:09:06'),
(258, 'MAIN_MAIL_EMAIL_TLS', 1, '0', 'chaine', 0, '', '2015-11-18 20:09:06'),
(260, 'MAIN_MODULE_AUTOATTACHFILE', 1, '1', NULL, 0, NULL, '2014-10-02 15:37:19'),
(261, 'MAIN_MODULE_AUTOATTACHFILE_HOOKS', 1, '["formmail"]', 'chaine', 0, NULL, '2014-10-02 15:37:19'),
(262, 'MAIN_MODULE_ULTIMATEPDF', 1, '1', NULL, 0, NULL, '2014-10-02 15:46:10'),
(263, 'MAIN_MODULE_ULTIMATEPDF_MODELS', 1, '1', 'chaine', 0, NULL, '2014-10-02 15:46:10'),
(264, 'MAIN_MODULE_ULTIMATEPDF_CSS', 1, '/ultimatepdf/css/ultimatepdf.css.php', 'chaine', 0, NULL, '2014-10-02 15:46:10'),
(265, 'MAIN_MODULE_ULTIMATEPDF_HOOKS', 1, '["propalcard","ordercard","invoicecard","toprightmenu","pdfgeneration"]', 'chaine', 0, NULL, '2014-10-02 15:46:10'),
(266, 'MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS', 1, '', 'chaine', 1, 'Hide product details within documents', '2014-10-02 15:46:10'),
(267, 'MAIN_GENERATE_DOCUMENTS_HIDE_DESC', 1, '', 'chaine', 1, 'Hide product description within documents', '2014-10-02 15:46:10'),
(268, 'MAIN_GENERATE_DOCUMENTS_HIDE_REF', 1, '', 'chaine', 1, 'Hide reference within documents', '2014-10-02 15:46:10'),
(270, 'ULTIMATE_SHOW_HIDE_PUHT', 1, '', 'chaine', 1, 'Hide puht within documents', '2014-10-02 15:46:10'),
(271, 'ULTIMATE_SHOW_HIDE_QTY', 1, '', 'chaine', 1, 'Hide qty within documents', '2014-10-02 15:46:10'),
(272, 'ULTIMATE_SHOW_HIDE_THT', 1, '', 'chaine', 1, 'Hide tht within documents', '2014-10-02 15:46:10'),
(273, 'MAIN_DISPLAY_FOLD_MARK', 1, '', 'chaine', 1, 'Show by default fold mark within documents', '2014-10-02 15:46:10'),
(274, 'ULTIMATE_GENERATE_PROPOSALS_WITH_PICTURE', 1, '', 'chaine', 1, 'Show by default photos within proposals documents', '2014-10-02 15:46:10'),
(275, 'ULTIMATE_GENERATE_ORDERS_WITH_PICTURE', 1, '', 'chaine', 1, 'Show by default photos within orders documents', '2014-10-02 15:46:10'),
(276, 'ULTIMATE_GENERATE_INVOICES_WITH_PICTURE', 1, '', 'chaine', 1, 'Show by default photos within invoices documents', '2014-10-02 15:46:10'),
(277, 'MAIN_PDF_DONOTREPEAT_HEAD', 1, '', 'chaine', 1, 'Do not repeat head within documents', '2014-10-02 15:46:10'),
(279, 'MAIN_PDF_DASH_BETWEEN_LINES', 1, '', 'chaine', 1, 'Add dash between lines within documents', '2014-10-02 15:46:10'),
(287, 'ULTIMATE_PDF_INVOICE_ADDALSOTARGETDETAILS', 1, '1', 'chaine', 0, '', '2014-10-02 15:46:36'),
(288, 'ULTIMATE_TVAINTRA_NOT_IN_INVOICE_ADDRESS', 1, '1', 'chaine', 0, '', '2014-10-02 15:46:40'),
(289, 'MAIN_DISPLAY_INVOICES_FOLD_MARK', 1, '1', 'chaine', 0, '', '2014-10-02 15:46:44'),
(290, 'ULTIMATEPDF_GENERATE_INVOICES_WITH_MERGED_PDF', 1, '1', 'chaine', 0, '', '2014-10-02 15:47:04'),
(291, 'MAIN_PDF_ADDALSOTARGETDETAILS', 1, '1', 'chaine', 0, '', '2014-10-02 15:47:14'),
(292, 'MAIN_TVAINTRA_NOT_IN_ADDRESS', 1, '1', 'chaine', 0, '', '2014-10-02 15:47:17'),
(293, 'MAIN_DISABLE_ALL_MAILS', 1, '0', 'chaine', 0, '', '2014-10-02 16:28:00'),
(294, 'MAIN_MAIL_SENDMODE', 1, 'mail', 'chaine', 0, '', '2015-11-18 20:09:06'),
(295, 'MAIN_MAIL_SMTPS_ID', 1, 'qatconsu', 'chaine', 0, '', '2015-11-18 20:09:06'),
(296, 'MAIN_MAIL_SMTPS_PW', 1, 'lf452429', 'chaine', 0, '', '2015-11-18 20:09:06'),
(297, 'MAIN_MAIL_EMAIL_FROM', 1, 'flavabre@qat-consulting.com', 'chaine', 0, '', '2014-10-02 16:28:02'),
(298, 'MAIN_MAIL_ERRORS_TO', 1, 'flavabre@qat-consulting.com', 'chaine', 0, '', '2014-10-02 16:28:02'),
(299, 'PRODUIT_MULTIPRICES_LIMIT', 1, '2', 'chaine', 0, '', '2014-10-04 16:07:06'),
(300, 'MAIN_MODULE_WEBSERVICES', 1, '1', NULL, 0, NULL, '2014-10-31 08:49:45'),
(301, 'WEBSERVICES_KEY', 1, '72f89d275e561e8e09815c95746fee8f', 'chaine', 0, '', '2014-10-31 08:53:54'),
(302, 'PRODUCT_USE_OLD_PATH_FOR_PHOTO', 1, '1', 'chaine', 1, 'Use old path for products images', '2015-07-04 13:46:05'),
(328, 'ULTIMATE_DESIGN', 1, '1', 'chaine', 0, '', '2015-07-04 14:26:39'),
(329, 'ULTIMATE_DASH_DOTTED', 1, '8, 2', 'chaine', 0, '', '2015-07-04 14:26:39'),
(330, 'ULTIMATE_BGCOLOR_COLOR', 1, 'aad4ff', 'chaine', 0, '', '2015-07-04 14:26:39'),
(331, 'ULTIMATE_BORDERCOLOR_COLOR', 1, '003f7f', 'chaine', 0, '', '2015-07-04 14:26:39'),
(332, 'ULTIMATE_TEXTCOLOR_COLOR', 1, '191919', 'chaine', 0, '', '2015-07-04 14:26:39'),
(333, 'ULTIMATE_DOCUMENTS_WITH_REF', 1, 'no', 'chaine', 0, '', '2015-07-04 14:26:39'),
(334, 'ULTIMATE_GENERATE_DOCUMENTS_WITHOUT_VAT', 1, 'no', 'chaine', 0, '', '2015-07-04 14:26:39'),
(357, 'ALLSCREENS_COL2', 1, '#8224e3', 'chaine', 0, '', '2015-08-18 13:13:55'),
(365, 'ALLSCREENS_COL1', 1, '#0ca1f7', 'chaine', 0, '', '2015-08-18 13:15:42'),
(385, 'MAIN_LANG_DEFAULT', 1, 'auto', 'chaine', 0, '', '2015-08-18 16:27:42'),
(386, 'MAIN_MULTILANGS', 1, '1', 'chaine', 0, '', '2015-08-18 16:27:42'),
(387, 'MAIN_SIZE_LISTE_LIMIT', 1, '25', 'chaine', 0, '', '2015-08-18 16:27:42'),
(388, 'MAIN_DISABLE_JAVASCRIPT', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(389, 'MAIN_BUTTON_HIDE_UNAUTHORIZED', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(390, 'MAIN_START_WEEK', 1, '1', 'chaine', 0, '', '2015-08-18 16:27:42'),
(391, 'MAIN_DEFAULT_WORKING_DAYS', 1, '1-5', 'chaine', 0, '', '2015-08-18 16:27:42'),
(392, 'MAIN_DEFAULT_WORKING_HOURS', 1, '9-18', 'chaine', 0, '', '2015-08-18 16:27:42'),
(393, 'MAIN_SHOW_LOGO', 1, '1', 'chaine', 0, '', '2015-08-18 16:27:42'),
(394, 'MAIN_FIRSTNAME_NAME_POSITION', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(396, 'MAIN_SEARCHFORM_CONTACT', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(397, 'MAIN_SEARCHFORM_SOCIETE', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(398, 'MAIN_SEARCHFORM_PRODUITSERVICE', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(399, 'MAIN_SEARCHFORM_PRODUITSERVICE_SUPPLIER', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(400, 'MAIN_SEARCHFORM_ADHERENT', 1, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(401, 'MAIN_HELPCENTER_DISABLELINK', 0, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(402, 'MAIN_HELP_DISABLELINK', 0, '0', 'chaine', 0, '', '2015-08-18 16:27:42'),
(404, 'DOL_VERSION', 1, '3.7.1', 'chaine', 0, 'Dolibarr version', '2015-08-18 16:44:27'),
(406, 'MAIN_MENU_STANDARD', 1, 'allscreens_menu.php', 'chaine', 0, '', '2015-08-18 16:44:27'),
(407, 'MAIN_MENUFRONT_STANDARD', 1, 'allscreens_menu.php', 'chaine', 0, '', '2015-08-18 16:44:27'),
(408, 'MAIN_MENU_SMARTPHONE', 1, 'allscreens_menu.php', 'chaine', 0, '', '2015-08-18 16:44:27'),
(409, 'MAIN_MENUFRONT_SMARTPHONE', 1, 'allscreens_menu.php', 'chaine', 0, '', '2015-08-18 16:44:27'),
(432, 'MAIN_THEME', 1, 'eldy', 'chaine', 0, '', '2015-12-04 10:57:00'),
(433, 'MAIN_MODULE_RESOURCE', 1, '1', NULL, 0, NULL, '2015-12-04 10:57:22'),
(434, 'MAIN_MODULE_FCKEDITOR', 1, '1', NULL, 0, NULL, '2015-12-04 10:57:45'),
(435, 'FCKEDITOR_ENABLE_SOCIETE', 1, '1', 'yesno', 0, 'WYSIWIG for description and note (except products/services)', '2015-12-04 10:57:45'),
(436, 'FCKEDITOR_ENABLE_PRODUCTDESC', 1, '1', 'yesno', 0, 'WYSIWIG for products/services description and note', '2015-12-04 10:57:45'),
(437, 'FCKEDITOR_ENABLE_MAILING', 1, '1', 'yesno', 0, 'WYSIWIG for mass emailings', '2015-12-04 10:57:45'),
(438, 'FCKEDITOR_ENABLE_DETAILS', 1, '1', 'yesno', 0, 'WYSIWIG for products details lines for all entities', '2015-12-04 10:57:45'),
(439, 'FCKEDITOR_ENABLE_USERSIGN', 1, '1', 'yesno', 0, 'WYSIWIG for user signature', '2015-12-04 10:57:45'),
(440, 'FCKEDITOR_ENABLE_MAIL', 1, '1', 'yesno', 0, 'WYSIWIG for products details lines for all entities', '2015-12-04 10:57:45'),
(468, 'MAIN_INFO_SOCIETE_LOGO', 1, 'Logo-complet-noir-detoure.png', 'chaine', 0, '', '2016-01-15 18:28:27'),
(469, 'MAIN_INFO_SOCIETE_LOGO_SMALL', 1, 'Logo-complet-noir-detoure_small.png', 'chaine', 0, '', '2016-01-15 18:28:27'),
(470, 'MAIN_INFO_SOCIETE_LOGO_MINI', 1, 'Logo-complet-noir-detoure_mini.png', 'chaine', 0, '', '2016-01-15 18:28:27'),
(495, 'MAIN_INFO_SOCIETE_COUNTRY', 1, '1:FR:France', 'chaine', 0, '', '2016-01-18 20:01:41'),
(496, 'MAIN_INFO_SOCIETE_NOM', 1, 'NEXiiUM', 'chaine', 0, '', '2016-01-18 20:01:41'),
(497, 'MAIN_INFO_SOCIETE_ADDRESS', 1, '8A rue Lançon', 'chaine', 0, '', '2016-01-18 20:01:41'),
(498, 'MAIN_INFO_SOCIETE_TOWN', 1, 'Villeurbanne', 'chaine', 0, '', '2016-01-18 20:01:41'),
(499, 'MAIN_INFO_SOCIETE_ZIP', 1, '69100', 'chaine', 0, '', '2016-01-18 20:01:41'),
(500, 'MAIN_INFO_SOCIETE_STATE', 1, '71', 'chaine', 0, '', '2016-01-18 20:01:41'),
(501, 'MAIN_MONNAIE', 1, 'EUR', 'chaine', 0, '', '2016-01-18 20:01:41'),
(502, 'MAIN_INFO_SOCIETE_TEL', 1, '09 86 36 98 27', 'chaine', 0, '', '2016-01-18 20:01:41'),
(503, 'MAIN_INFO_SOCIETE_MAIL', 1, 'contact@nexiium.com', 'chaine', 0, '', '2016-01-18 20:01:41'),
(504, 'MAIN_INFO_SOCIETE_WEB', 1, 'www.nexiium.com', 'chaine', 0, '', '2016-01-18 20:01:41'),
(505, 'MAIN_INFO_CAPITAL', 1, '10000', 'chaine', 0, '', '2016-01-18 20:01:41'),
(506, 'MAIN_INFO_SOCIETE_FORME_JURIDIQUE', 1, '57', 'chaine', 0, '', '2016-01-18 20:01:41'),
(507, 'MAIN_INFO_SIREN', 1, 'B 527 655 989', 'chaine', 0, '', '2016-01-18 20:01:41'),
(508, 'MAIN_INFO_SIRET', 1, '527 655 989 00012', 'chaine', 0, '', '2016-01-18 20:01:41'),
(509, 'MAIN_INFO_APE', 1, '640Z', 'chaine', 0, '', '2016-01-18 20:01:41'),
(510, 'MAIN_INFO_TVAINTRA', 1, 'FR50 527655989', 'chaine', 0, '', '2016-01-18 20:01:41'),
(511, 'SOCIETE_FISCAL_MONTH_START', 1, '7', 'chaine', 0, '', '2016-01-18 20:01:41'),
(512, 'FACTURE_TVAOPTION', 1, '1', 'chaine', 0, '', '2016-01-18 20:01:41'),
(513, 'FACTURE_RIB_NUMBER', 1, '1', 'chaine', 0, '', '2016-01-18 20:06:02'),
(514, 'FACTURE_CHQ_NUMBER', 1, '-1', 'chaine', 0, '', '2016-01-18 20:06:02'),
(516, 'FACTURE_ADDON_PDF_ODT_PATH', 1, 'DOL_DATA_ROOT/doctemplates/invoices', 'chaine', 0, '', '2016-01-18 20:24:17'),
(517, 'FACTURE_FREE_TEXT', 1, 'Pénalités égales à 1,5 fois le Taux de Base Bancaire si paiement postérieur à la date convenue (loi n°\r\n92-1442 du 31/12/92). Conformément aux articles L441-6 c. com et D. 441-5 c. , tout retard de\r\npaiement entraîne de plein droit, outre les pénalités de retard, une obligation pour le débiteur de payer\r\nune indemnité forfaitaire de 40€ pour frais de recouvrement.\r\n', 'chaine', 0, '', '2016-01-18 20:24:53'),
(527, 'MAIN_MODULE_COMMANDE', 1, '1', NULL, 0, NULL, '2016-02-07 20:06:22'),
(528, 'MAIN_MODULE_DEPLACEMENT', 1, '1', NULL, 0, NULL, '2016-02-07 20:06:22'),
(529, 'MAIN_MODULE_ECM', 1, '1', NULL, 0, NULL, '2016-02-07 20:06:22'),
(530, 'MAIN_MODULE_FACTURE', 1, '1', NULL, 0, NULL, '2016-02-07 20:06:22'),
(531, 'MAIN_MODULE_FOURNISSEUR', 1, '1', NULL, 0, NULL, '2016-02-07 20:06:22'),
(532, 'MAIN_MODULE_SOCIETE', 1, '1', NULL, 0, NULL, '2016-02-07 20:06:23'),
(533, 'MAIN_MODULE_SERVICE', 1, '1', NULL, 0, NULL, '2016-02-07 20:06:23'),
(534, 'MAIN_MODULE_USER', 0, '1', NULL, 0, NULL, '2016-02-07 20:06:23'),
(535, 'MAIN_VERSION_LAST_UPGRADE', 0, '3.8.3', 'chaine', 0, 'Dolibarr version for last upgrade', '2016-02-07 20:06:34');

-- --------------------------------------------------------

--
-- Structure de la table `llx_contrat`
--

CREATE TABLE IF NOT EXISTS `llx_contrat` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_contrat_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_contrat_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_contratdet`
--

CREATE TABLE IF NOT EXISTS `llx_contratdet` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_contratdet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_contratdet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_contratdet_log`
--

CREATE TABLE IF NOT EXISTS `llx_contratdet_log` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_cotisation`
--

CREATE TABLE IF NOT EXISTS `llx_cotisation` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_cronjob`
--

CREATE TABLE IF NOT EXISTS `llx_cronjob` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_deplacement`
--

CREATE TABLE IF NOT EXISTS `llx_deplacement` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_document_generator`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_document_model`
--

CREATE TABLE IF NOT EXISTS `llx_document_model` (
  `rowid` int(11) NOT NULL,
  `nom` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `type` varchar(20) NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `description` text
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_document_model`
--

INSERT INTO `llx_document_model` (`rowid`, `nom`, `entity`, `type`, `libelle`, `description`) VALUES
(3, 'soleil', 1, 'ficheinter', NULL, NULL),
(7, 'azur', 1, 'propal', NULL, NULL),
(8, 'generic_odt', 1, 'company', 'ODT templates', 'COMPANY_ADDON_PDF_ODT_PATH'),
(9, 'generic_proposal_odt', 1, 'propal', 'ODT templates', 'PROPALE_ADDON_PDF_ODT_PATH'),
(10, 'generic_order_odt', 1, 'order', 'ODT templates', 'COMMANDE_ADDON_PDF_ODT_PATH'),
(11, 'strato', 1, 'contrat', NULL, NULL),
(12, 'generic_invoice_odt', 1, 'invoice', 'ODT/ODS templates', 'FACTURE_ADDON_PDF_ODT_PATH'),
(14, 'baleine', 1, 'project', 'baleine', NULL),
(15, 'generic_task_odt', 1, 'project_task', 'ODT templates', 'PROJECT_TASK_ADDON_PDF_ODT_PATH'),
(16, 'generic_project_odt', 1, 'project', 'ODT templates', 'PROJECT_ADDON_PDF_ODT_PATH'),
(25, 'einstein', 1, 'order', NULL, NULL),
(26, 'crabe', 1, 'invoice', NULL, NULL),
(27, 'muscadet', 1, 'order_supplier', NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_don`
--

CREATE TABLE IF NOT EXISTS `llx_don` (
  `rowid` int(11) NOT NULL,
  `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 DEFAULT '0',
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_don_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_don_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_ecm_directories`
--

CREATE TABLE IF NOT EXISTS `llx_ecm_directories` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_element_contact`
--

CREATE TABLE IF NOT EXISTS `llx_element_contact` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_element_contact`
--

INSERT INTO `llx_element_contact` (`rowid`, `datecreate`, `statut`, `element_id`, `fk_c_type_contact`, `fk_socpeople`) VALUES
(1, '2015-09-25 09:46:12', 4, 1, 160, 4);

-- --------------------------------------------------------

--
-- Structure de la table `llx_element_element`
--

CREATE TABLE IF NOT EXISTS `llx_element_element` (
  `rowid` int(11) NOT NULL,
  `fk_source` int(11) NOT NULL,
  `sourcetype` varchar(32) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_element_element`
--

INSERT INTO `llx_element_element` (`rowid`, `fk_source`, `sourcetype`, `fk_target`, `targettype`) VALUES
(6, 2, 'commande', 6, 'facture'),
(7, 3, 'commande', 7, 'facture'),
(5, 4, 'commande', 5, 'facture'),
(8, 5, 'commande', 8, 'facture');

-- --------------------------------------------------------

--
-- Structure de la table `llx_element_lock`
--

CREATE TABLE IF NOT EXISTS `llx_element_lock` (
  `rowid` int(11) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `elementtype` varchar(32) NOT NULL,
  `datel` datetime DEFAULT NULL,
  `datem` datetime DEFAULT NULL,
  `sessionid` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_element_resources`
--

CREATE TABLE IF NOT EXISTS `llx_element_resources` (
  `rowid` int(11) NOT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `resource_type` varchar(64) DEFAULT NULL,
  `element_id` int(11) DEFAULT NULL,
  `element_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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_element_tag`
--

CREATE TABLE IF NOT EXISTS `llx_element_tag` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_entrepot`
--

CREATE TABLE IF NOT EXISTS `llx_entrepot` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_event_element`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_events`
--

CREATE TABLE IF NOT EXISTS `llx_events` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_expedition`
--

CREATE TABLE IF NOT EXISTS `llx_expedition` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_expeditiondet`
--

CREATE TABLE IF NOT EXISTS `llx_expeditiondet` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_expeditiondet_batch`
--

CREATE TABLE IF NOT EXISTS `llx_expeditiondet_batch` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_expensereport`
--

CREATE TABLE IF NOT EXISTS `llx_expensereport` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_expensereport_det`
--

CREATE TABLE IF NOT EXISTS `llx_expensereport_det` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_export_compta`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_export_model`
--

CREATE TABLE IF NOT EXISTS `llx_export_model` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL DEFAULT '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL,
  `filter` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_extrafields` (
  `rowid` int(11) NOT NULL,
  `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,
  `list` int(11) DEFAULT '0',
  `pos` int(11) DEFAULT '0',
  `alwayseditable` int(11) DEFAULT '0',
  `param` text
) ENGINE=InnoDB AUTO_INCREMENT=3001004 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_extrafields`
--

INSERT INTO `llx_extrafields` (`rowid`, `name`, `entity`, `elementtype`, `tms`, `label`, `type`, `size`, `fieldunique`, `fieldrequired`, `perms`, `list`, `pos`, `alwayseditable`, `param`) VALUES
(3001001, 'newline', 1, 'propal', '2014-03-31 10:30:27', 'New line', 'sellist', '', 0, 0, NULL, 0, 0, 0, 'a:1:{s:7:"options";a:1:{s:29:"c_ultimatepdf_line:label:code";N;}}'),
(3001002, 'newline', 1, 'commande', '2014-03-31 10:30:27', 'New line', 'sellist', '', 0, 0, NULL, 0, 0, 0, 'a:1:{s:7:"options";a:1:{s:29:"c_ultimatepdf_line:label:code";N;}}'),
(3001003, 'newline', 1, 'facture', '2014-03-31 10:30:27', 'New line', 'sellist', '', 0, 0, NULL, 0, 0, 0, 'a:1:{s:7:"options";a:1:{s:29:"c_ultimatepdf_line:label:code";N;}}');

-- --------------------------------------------------------

--
-- Structure de la table `llx_facture`
--

CREATE TABLE IF NOT EXISTS `llx_facture` (
  `rowid` int(11) NOT NULL,
  `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,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `situation_cycle_ref` smallint(6) DEFAULT NULL,
  `situation_counter` smallint(6) DEFAULT NULL,
  `situation_final` smallint(6) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_facture`
--

INSERT INTO `llx_facture` (`rowid`, `facnumber`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `type`, `increment`, `fk_soc`, `datec`, `datef`, `date_valid`, `tms`, `paye`, `amount`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `revenuestamp`, `total`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`, `situation_cycle_ref`, `situation_counter`, `situation_final`, `fk_incoterms`, `location_incoterms`) VALUES
(1, 'FC1601-0001', 1, NULL, NULL, 'Convention de recrutement 2015-11', 0, NULL, 5, '2016-01-18 20:31:08', '2016-01-15', '2016-01-18', '2016-01-18 20:23:42', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 600.00000000, 0.00000000, 0.00000000, 0.00000000, 3000.00000000, 3600.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 2, 2, '2016-02-14', 'Facture &eacute;mise sous Excel ref 1601001', 'Recrutement Mr ONGNOKOLENE, entr&eacute;e NOVAXIOM le 05 janvier 2016.', 'crabe', NULL, NULL, NULL, NULL, 1, 0, ''),
(5, 'FC1601-0002', 1, NULL, NULL, 'PA16001-002 ISO 9001', 0, NULL, 5, '2016-01-29 14:13:01', '2016-01-29', '2016-01-29', '2016-01-29 13:14:00', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 1344.00000000, 0.00000000, 0.00000000, 0.00000000, 6720.00000000, 8064.00000000, 1, 4, NULL, 4, NULL, NULL, 1, NULL, 9, 2, '2016-03-10', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 1, 0, ''),
(6, 'FC1601-0003', 1, NULL, NULL, 'PA1509-001', 0, NULL, 5, '2016-01-29 14:16:10', '2016-01-29', '2016-01-29', '2016-01-29 13:18:55', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 1008.00000000, 0.00000000, 0.00000000, 0.00000000, 5040.00000000, 6048.00000000, 1, 4, NULL, 4, NULL, NULL, 1, NULL, 9, 2, '2016-03-10', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 1, 0, ''),
(7, 'FC1601-0004', 1, NULL, NULL, 'PA16001-001', 0, NULL, 5, '2016-01-29 14:20:56', '2016-01-29', '2016-01-29', '2016-01-29 13:23:19', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 1344.00000000, 0.00000000, 0.00000000, 0.00000000, 6720.00000000, 8064.00000000, 1, 4, NULL, 4, NULL, NULL, 1, NULL, 9, 2, '2016-03-10', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 1, 0, ''),
(8, 'FC1601-0005', 1, NULL, NULL, 'DI 1511169516', 0, NULL, 2, '2016-01-29 15:47:20', '2016-01-29', '2016-01-29', '2016-01-29 14:52:52', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 3440.00000000, 0.00000000, 0.00000000, 0.00000000, 17200.00000000, 20640.00000000, 1, 4, NULL, 4, NULL, NULL, 1, NULL, 2, 2, '2016-02-29', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 1, 0, ''),
(9, 'FC1602-0006', 1, NULL, NULL, 'Convention de recrutement 2015-11', 0, NULL, 5, '2016-02-17 08:01:22', '2016-02-17', '2016-02-18', '2016-02-18 09:15:47', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 600.00000000, 0.00000000, 0.00000000, 0.00000000, 3000.00000000, 3600.00000000, 1, 4, NULL, 4, NULL, NULL, 1, NULL, 2, 2, '2016-03-18', 'Facture émise sous Excel ref 1601001<br />\r\nRecrutement Mr ONGNOKOLENE, entrée NOVAXIOM le 05 janvier 2016.', NULL, 'crabe', NULL, NULL, NULL, NULL, 1, 0, '');

-- --------------------------------------------------------

--
-- Structure de la table `llx_facture_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_facture_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `newline` text
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_facture_extrafields`
--

INSERT INTO `llx_facture_extrafields` (`rowid`, `tms`, `fk_object`, `import_key`, `newline`) VALUES
(1, '2016-01-18 19:31:08', 1, NULL, '0'),
(5, '2016-01-29 13:13:01', 5, NULL, '0'),
(6, '2016-01-29 13:16:10', 6, NULL, '0'),
(7, '2016-01-29 13:20:56', 7, NULL, '0'),
(8, '2016-01-29 14:47:20', 8, NULL, '0'),
(9, '2016-02-17 07:01:22', 9, NULL, '0');

-- --------------------------------------------------------

--
-- Structure de la table `llx_facture_fourn`
--

CREATE TABLE IF NOT EXISTS `llx_facture_fourn` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(255) NOT NULL,
  `ref_supplier` varchar(255) DEFAULT 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,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_facture_fourn_det`
--

CREATE TABLE IF NOT EXISTS `llx_facture_fourn_det` (
  `rowid` int(11) NOT NULL,
  `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',
  `import_key` varchar(14) DEFAULT NULL,
  `special_code` int(11) DEFAULT '0',
  `rang` int(11) DEFAULT '0',
  `fk_unit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_facture_fourn_det_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_facture_fourn_det_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_facture_fourn_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_facture_fourn_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_facture_rec`
--

CREATE TABLE IF NOT EXISTS `llx_facture_rec` (
  `rowid` int(11) NOT NULL,
  `titre` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT '0.00000000',
  `remise` double DEFAULT '0',
  `remise_percent` double DEFAULT '0',
  `remise_absolue` double DEFAULT '0',
  `tva` double(24,8) DEFAULT '0.00000000',
  `localtax1` double(24,8) DEFAULT '0.00000000',
  `localtax2` double(24,8) DEFAULT '0.00000000',
  `total` double(24,8) DEFAULT '0.00000000',
  `total_ttc` double(24,8) DEFAULT '0.00000000',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT '0',
  `fk_mode_reglement` int(11) DEFAULT '0',
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `usenewprice` int(11) DEFAULT '0',
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'd',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `revenuestamp` double(24,8) DEFAULT '0.00000000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_facturedet`
--

CREATE TABLE IF NOT EXISTS `llx_facturedet` (
  `rowid` int(11) NOT NULL,
  `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(10) unsigned 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
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_facturedet`
--

INSERT INTO `llx_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `label`, `description`, `tva_tx`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_code_ventilation`, `special_code`, `rang`, `import_key`, `situation_percent`, `fk_prev_id`, `fk_unit`) VALUES
(1, 1, NULL, NULL, NULL, 'Recrutements', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3000.00000000, NULL, 3000.00000000, 600.00000000, 0.00000000, 0.00000000, 3600.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, 100, NULL, NULL),
(6, 5, NULL, NULL, NULL, 'Prestation d&rsquo;&eacute;tudes dans la r&eacute;alisation &agrave; la certification ISO 9001<br />\r\nJanvier 2016 - 40%', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 6720.00000000, NULL, 6720.00000000, 1344.00000000, 0.00000000, 0.00000000, 8064.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, 100, NULL, NULL),
(8, 6, NULL, NULL, NULL, 'Prestation d&rsquo;&eacute;tudes dans le domaine administratif<br />\r\nJanvier 2016 - 15%', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 5040.00000000, NULL, 5040.00000000, 1008.00000000, 0.00000000, 0.00000000, 6048.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, 100, NULL, NULL),
(9, 7, NULL, 4, NULL, 'Prestation d&rsquo;&eacute;tudes dans le domaine administratif<br />\r\nJanvier 2016 - 40%', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 6720.00000000, NULL, 6720.00000000, 1344.00000000, 0.00000000, 0.00000000, 8064.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, 100, NULL, NULL),
(10, 8, NULL, NULL, NULL, 'Direction de projet IT et AMOA projet ORKIDEE-M3', 20.000, 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 860.00000000, NULL, 17200.00000000, 3440.00000000, 0.00000000, 0.00000000, 20640.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, 100, NULL, NULL),
(12, 9, NULL, NULL, NULL, 'Entr&eacute;e Monsieur CALAY le 03/02 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp;3000 &nbsp;&euro; HT<br />\r\nSortie Monsieur ONGNOKOLENE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= &nbsp;-3000 &euro; HT<br />\r\nEntr&eacute;e Monsieur WARINGUEZ le 16/02 &nbsp; &nbsp; = 3000 &nbsp; &euro; HT', 20.000, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3000.00000000, NULL, 3000.00000000, 600.00000000, 0.00000000, 0.00000000, 3600.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, 100, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_facturedet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_facturedet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_facturedet_rec`
--

CREATE TABLE IF NOT EXISTS `llx_facturedet_rec` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_fichinter`
--

CREATE TABLE IF NOT EXISTS `llx_fichinter` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT '0',
  `fk_contrat` int(11) DEFAULT '0',
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `datei` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_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,
  `ref_ext` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_fichinter_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_fichinter_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_fichinterdet`
--

CREATE TABLE IF NOT EXISTS `llx_fichinterdet` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_fichinterdet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_fichinterdet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_holiday`
--

CREATE TABLE IF NOT EXISTS `llx_holiday` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_user_create` int(11) DEFAULT 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,
  `fk_type` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_holiday_config`
--

CREATE TABLE IF NOT EXISTS `llx_holiday_config` (
  `rowid` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `value` text
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_holiday_config`
--

INSERT INTO `llx_holiday_config` (`rowid`, `name`, `value`) VALUES
(1, 'userGroup', NULL),
(2, 'lastUpdate', NULL),
(3, 'nbUser', NULL),
(4, 'delayForRequest', '31'),
(5, 'AlertValidatorDelay', '0'),
(6, 'AlertValidatorSolde', '0'),
(7, 'nbHolidayDeducted', '1'),
(8, 'nbHolidayEveryMonth', '2.08334');

-- --------------------------------------------------------

--
-- Structure de la table `llx_holiday_events`
--

CREATE TABLE IF NOT EXISTS `llx_holiday_events` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `name` varchar(255) NOT NULL,
  `value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_holiday_logs`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_holiday_users`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_import_model`
--

CREATE TABLE IF NOT EXISTS `llx_import_model` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL DEFAULT '0',
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_invoice_merged_pdf`
--

CREATE TABLE IF NOT EXISTS `llx_invoice_merged_pdf` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `file_name` varchar(200) NOT 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_links`
--

CREATE TABLE IF NOT EXISTS `llx_links` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_livraison`
--

CREATE TABLE IF NOT EXISTS `llx_livraison` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_livraisondet`
--

CREATE TABLE IF NOT EXISTS `llx_livraisondet` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_loan`
--

CREATE TABLE IF NOT EXISTS `llx_loan` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_localtax`
--

CREATE TABLE IF NOT EXISTS `llx_localtax` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_mailing`
--

CREATE TABLE IF NOT EXISTS `llx_mailing` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_mailing_cibles`
--

CREATE TABLE IF NOT EXISTS `llx_mailing_cibles` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_menu`
--

CREATE TABLE IF NOT EXISTS `llx_menu` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=15627 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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, 'margins', 'left', 'accountancy', 'margins', -1, 'accountancy', NULL, 100, '/margin/index.php', '', 'Margins', 'margins', NULL, '1', '$user->rights->margins->liretous', 2, '2014-10-01 15:10:08'),
(5215, 'all', 1, 'resource', 'left', 'tools', 'resource', -1, 'tools', NULL, 100, '/resource/list.php', '', 'MenuResourceIndex', 'resource', NULL, '$user->rights->resource->read', '1', 0, '2015-12-04 10:57:22'),
(5216, 'all', 1, 'resource', 'left', 'tools', NULL, -1, 'tools', 'resource', 101, '/resource/add.php', '', 'MenuResourceAdd', 'resource', NULL, '$user->rights->resource->read', '1', 0, '2015-12-04 10:57:22'),
(10422, 'all', 1, 'ecm', 'top', 'ecm', NULL, 0, NULL, NULL, 100, '/ecm/index.php', '', 'MenuECM', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload || $user->rights->ecm->setup', '$conf->ecm->enabled', 2, '2016-02-07 20:06:22'),
(10423, 'all', 1, 'ecm', 'left', 'ecm', 'ecm', -1, 'ecm', NULL, 101, '/ecm/index.php?mainmenu=ecm&leftmenu=ecm', '', 'ECMArea', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload', '$user->rights->ecm->read || $user->rights->ecm->upload', 2, '2016-02-07 20:06:22'),
(10424, 'all', 1, 'ecm', 'left', 'ecm', 'ecm_manual', -1, 'ecm', 'ecm', 102, '/ecm/index.php?action=file_manager&mainmenu=ecm&leftmenu=ecm', '', 'ECMSectionsManual', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload', '$user->rights->ecm->read || $user->rights->ecm->upload', 2, '2016-02-07 20:06:22'),
(10425, 'all', 1, 'ecm', 'left', 'ecm', NULL, -1, 'ecm', 'ecm', 103, '/ecm/index_auto.php?action=file_manager&mainmenu=ecm&leftmenu=ecm', '', 'ECMSectionsAuto', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload', '$user->rights->ecm->read || $user->rights->ecm->upload', 2, '2016-02-07 20:06:22'),
(10426, 'auguria', 1, '', 'top', 'home', '', 0, NULL, NULL, 10, '/index.php?mainmenu=home&amp;leftmenu=', '', 'Home', '', -1, '', '1', 2, '2016-02-07 20:06:23'),
(10427, 'auguria', 1, 'societe|fournisseur', 'top', 'companies', '', 0, NULL, NULL, 20, '/societe/index.php?mainmenu=companies&amp;leftmenu=', '', 'ThirdParties', 'companies', -1, '$user->rights->societe->lire || $user->rights->societe->contact->lire', '( ! empty($conf->societe->enabled) && (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) || empty($conf->global->SOCIETE_DISABLE_CUSTOMERS))) || ! empty($conf->fournisseur->enabled)', 2, '2016-02-07 20:06:23'),
(10428, 'auguria', 1, 'product|service', 'top', 'products', '', 0, NULL, NULL, 30, '/product/index.php?mainmenu=products&amp;leftmenu=', '', 'Products/Services', 'products', -1, '$user->rights->produit->lire||$user->rights->service->lire', '$conf->product->enabled || $conf->service->enabled', 0, '2016-02-07 20:06:23'),
(10430, 'auguria', 1, 'propal|commande|fournisseur|contrat|ficheinter', 'top', 'commercial', '', 0, NULL, NULL, 40, '/comm/index.php?mainmenu=commercial&amp;leftmenu=', '', 'Commercial', 'commercial', -1, '$user->rights->societe->lire || $user->rights->societe->contact->lire', '$conf->propal->enabled || $conf->commande->enabled || $conf->fournisseur->enabled || $conf->contrat->enabled || $conf->ficheinter->enabled', 2, '2016-02-07 20:06:23'),
(10431, 'auguria', 1, 'comptabilite|accounting|facture|deplacement|don|tax|salaries|loa', 'top', 'accountancy', '', 0, NULL, NULL, 50, '/compta/index.php?mainmenu=accountancy&amp;leftmenu=', '', 'MenuFinancial', 'compta', -1, '$user->rights->compta->resultat->lire || $user->rights->accounting->plancompte->lire || $user->rights->facture->lire|| $user->rights->deplacement->lire || $user->rights->don->lire || $user->rights->tax->charges->lire || $user->rights->salaries->read || $u', '$conf->comptabilite->enabled || $conf->accounting->enabled || $conf->facture->enabled || $conf->deplacement->enabled || $conf->don->enabled  || $conf->tax->enabled || $conf->salaries->enabled || $conf->loan->enabled', 2, '2016-02-07 20:06:23'),
(10432, 'auguria', 1, 'projet', 'top', 'project', '', 0, NULL, NULL, 70, '/projet/index.php?mainmenu=project&amp;leftmenu=', '', 'Projects', 'projects', -1, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(10433, 'auguria', 1, 'mailing|export|import|opensurvey', 'top', 'tools', '', 0, NULL, NULL, 90, '/core/tools.php?mainmenu=tools&amp;leftmenu=', '', 'Tools', 'other', -1, '$user->rights->mailing->lire || $user->rights->export->lire || $user->rights->import->run || $user->rights->opensurvey->read', '$conf->mailing->enabled || $conf->export->enabled || $conf->import->enabled || $conf->opensurvey->enabled', 2, '2016-02-07 20:06:23'),
(10438, 'auguria', 1, 'adherent', 'top', 'members', '', 0, NULL, NULL, 110, '/adherents/index.php?mainmenu=members&amp;leftmenu=', '', 'Members', 'members', -1, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(10439, 'auguria', 1, 'banque|prelevement', 'top', 'bank', '', 0, NULL, NULL, 60, '/compta/bank/index.php?mainmenu=bank&amp;leftmenu=bank', '', 'MenuBankCash', 'banks', -1, '$user->rights->banque->lire || $user->rights->prelevement->bons->lire', '$conf->banque->enabled || $conf->prelevement->enabled', 0, '2016-02-07 20:06:23'),
(10440, 'auguria', 1, 'hrm', 'top', 'hrm', '', 0, NULL, NULL, 80, '/compta/hrm.php?mainmenu=hrm&amp;leftmenu=', '', 'HRM', 'holiday', -1, '$user->rights->holiday->write || $user->rights->deplacement->lire || $user->rights->expensereport->lire', '$conf->holiday->enabled || $conf->deplacement->enabled || $conf->expensereport->enabled', 0, '2016-02-07 20:06:23'),
(10525, 'auguria', 1, '', 'left', 'home', 'setup', 10426, NULL, NULL, 0, '/admin/index.php?leftmenu=setup', '', 'Setup', 'admin', 0, '', '$user->admin', 2, '2016-02-07 20:06:23'),
(10526, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 1, '/admin/company.php?leftmenu=setup', '', 'MenuCompanySetup', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10527, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 4, '/admin/ihm.php?leftmenu=setup', '', 'GUISetup', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10528, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 2, '/admin/modules.php?leftmenu=setup', '', 'Modules', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10529, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 6, '/admin/boxes.php?leftmenu=setup', '', 'Boxes', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10530, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 3, '/admin/menus.php?leftmenu=setup', '', 'Menus', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10531, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 7, '/admin/delais.php?leftmenu=setup', '', 'Alerts', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10532, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 10, '/admin/pdf.php?leftmenu=setup', '', 'PDF', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10533, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 8, '/admin/security_other.php?leftmenu=setup', '', 'Security', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10534, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 11, '/admin/mails.php?leftmenu=setup', '', 'Emails', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10535, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 9, '/admin/limits.php?leftmenu=setup', '', 'MenuLimits', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10536, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 13, '/admin/dict.php?leftmenu=setup', '', 'Dictionary', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10537, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 14, '/admin/const.php?leftmenu=setup', '', 'OtherSetup', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10538, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 12, '/admin/sms.php?leftmenu=setup', '', 'SMS', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10539, 'auguria', 1, '', 'left', 'home', '', 10525, NULL, NULL, 4, '/admin/translation.php?leftmenu=setup', '', 'Translation', 'admin', 1, '', '$leftmenu=="setup"', 2, '2016-02-07 20:06:23'),
(10626, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 0, '/admin/system/dolibarr.php?leftmenu=admintools', '', 'InfoDolibarr', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10627, 'auguria', 1, '', 'left', 'home', '', 10626, NULL, NULL, 2, '/admin/system/modules.php?leftmenu=admintools', '', 'Modules', 'admin', 2, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10628, 'auguria', 1, '', 'left', 'home', '', 10626, NULL, NULL, 3, '/admin/triggers.php?leftmenu=admintools', '', 'Triggers', 'admin', 2, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10630, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 1, '/admin/system/browser.php?leftmenu=admintools', '', 'InfoBrowser', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10631, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 2, '/admin/system/os.php?leftmenu=admintools', '', 'InfoOS', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10632, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 3, '/admin/system/web.php?leftmenu=admintools', '', 'InfoWebServer', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10633, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 4, '/admin/system/phpinfo.php?leftmenu=admintools', '', 'InfoPHP', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10635, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 5, '/admin/system/database.php?leftmenu=admintools', '', 'InfoDatabase', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10725, 'auguria', 1, '', 'left', 'home', 'admintools', 10426, NULL, NULL, 2, '/admin/tools/index.php?leftmenu=admintools', '', 'SystemTools', 'admin', 0, '', '$user->admin', 2, '2016-02-07 20:06:23'),
(10726, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 6, '/admin/tools/dolibarr_export.php?leftmenu=admintools', '', 'Backup', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10727, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 7, '/admin/tools/dolibarr_import.php?leftmenu=admintools', '', 'Restore', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10730, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 8, '/admin/tools/update.php?leftmenu=admintools', '', 'MenuUpgrade', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10731, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 9, '/admin/tools/eaccelerator.php?leftmenu=admintools', '', 'EAccelerator', 'admin', 1, '', '$leftmenu=="admintools" && function_exists("eaccelerator_info")', 2, '2016-02-07 20:06:23'),
(10732, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 10, '/admin/tools/listevents.php?leftmenu=admintools', '', 'Audit', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10733, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 11, '/admin/tools/listsessions.php?leftmenu=admintools', '', 'Sessions', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10734, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 12, '/admin/tools/purge.php?leftmenu=admintools', '', 'Purge', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10735, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 13, '/support/index.php?leftmenu=admintools', '_blank', 'HelpCenter', 'help', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10736, 'auguria', 1, '', 'left', 'home', '', 10725, NULL, NULL, 14, '/admin/system/about.php?leftmenu=admintools', '', 'About', 'admin', 1, '', '$leftmenu=="admintools"', 2, '2016-02-07 20:06:23'),
(10825, 'auguria', 1, '', 'left', 'home', 'users', 10426, NULL, NULL, 4, '/user/home.php?leftmenu=users', '', 'MenuUsersAndGroups', 'users', 0, '', '1', 2, '2016-02-07 20:06:23'),
(10826, 'auguria', 1, '', 'left', 'home', '', 10825, NULL, NULL, 0, '/user/index.php?leftmenu=users', '', 'Users', 'users', 1, '$user->rights->user->user->lire || $user->admin', '$leftmenu=="users"', 2, '2016-02-07 20:06:23'),
(10827, 'auguria', 1, '', 'left', 'home', '', 10826, NULL, NULL, 0, '/user/card.php?leftmenu=users&amp;action=create', '', 'NewUser', 'users', 2, '$user->rights->user->user->creer || $user->admin', '$leftmenu=="users"', 2, '2016-02-07 20:06:23'),
(10828, 'auguria', 1, '', 'left', 'home', '', 10825, NULL, NULL, 1, '/user/group/index.php?leftmenu=users', '', 'Groups', 'users', 1, '($conf->global->MAIN_USE_ADVANCED_PERMS?$user->rights->user->group_advance->read:$user->rights->user->user->lire) || $user->admin', '$leftmenu=="users"', 2, '2016-02-07 20:06:23'),
(10829, 'auguria', 1, '', 'left', 'home', '', 10828, NULL, NULL, 0, '/user/group/card.php?leftmenu=users&amp;action=create', '', 'NewGroup', 'users', 2, '($conf->global->MAIN_USE_ADVANCED_PERMS?$user->rights->user->group_advance->write:$user->rights->user->user->creer) || $user->admin', '$leftmenu=="users"', 2, '2016-02-07 20:06:23'),
(10925, 'auguria', 1, '', 'left', 'companies', 'thirdparties', 10427, NULL, NULL, 0, '/societe/index.php?leftmenu=thirdparties', '', 'ThirdParty', 'companies', 0, '$user->rights->societe->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(10926, 'auguria', 1, '', 'left', 'companies', '', 10925, NULL, NULL, 0, '/societe/soc.php?action=create', '', 'MenuNewThirdParty', 'companies', 1, '$user->rights->societe->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(10927, 'auguria', 1, '', 'left', 'companies', '', 10925, NULL, NULL, 0, '/societe/list.php?action=create', '', 'List', 'companies', 1, '$user->rights->societe->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(10928, 'auguria', 1, '', 'left', 'companies', '', 10925, NULL, NULL, 5, '/fourn/list.php?leftmenu=suppliers', '', 'ListSuppliersShort', 'suppliers', 1, '$user->rights->societe->lire && $user->rights->fournisseur->lire', '$conf->societe->enabled && $conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(10929, 'auguria', 1, '', 'left', 'companies', '', 10928, NULL, NULL, 0, '/societe/soc.php?leftmenu=supplier&amp;action=create&amp;type=f', '', 'NewSupplier', 'suppliers', 2, '$user->rights->societe->creer', '$conf->societe->enabled && $conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(10931, 'auguria', 1, '', 'left', 'companies', '', 10925, NULL, NULL, 3, '/comm/prospect/list.php?leftmenu=prospects', '', 'ListProspectsShort', 'companies', 1, '$user->rights->societe->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(10932, 'auguria', 1, '', 'left', 'companies', '', 10931, NULL, NULL, 0, '/societe/soc.php?leftmenu=prospects&amp;action=create&amp;type=p', '', 'MenuNewProspect', 'companies', 2, '$user->rights->societe->creer', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(10934, 'auguria', 1, '', 'left', 'companies', '', 10925, NULL, NULL, 4, '/comm/list.php?leftmenu=customers', '', 'ListCustomersShort', 'companies', 1, '$user->rights->societe->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(10935, 'auguria', 1, '', 'left', 'companies', '', 10934, NULL, NULL, 0, '/societe/soc.php?leftmenu=customers&amp;action=create&amp;type=c', '', 'MenuNewCustomer', 'companies', 2, '$user->rights->societe->creer', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(11025, 'auguria', 1, '', 'left', 'companies', 'contacts', 10427, NULL, NULL, 1, '/contact/list.php?leftmenu=contacts', '', 'ContactsAddresses', 'companies', 0, '$user->rights->societe->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(11026, 'auguria', 1, '', 'left', 'companies', '', 11025, NULL, NULL, 0, '/contact/card.php?leftmenu=contacts&amp;action=create', '', 'NewContactAddress', 'companies', 1, '$user->rights->societe->creer', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(11027, 'auguria', 1, '', 'left', 'companies', '', 11025, NULL, NULL, 1, '/contact/list.php?leftmenu=contacts', '', 'List', 'companies', 1, '$user->rights->societe->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(11029, 'auguria', 1, '', 'left', 'companies', '', 11027, NULL, NULL, 1, '/contact/list.php?leftmenu=contacts&amp;type=p', '', 'ThirdPartyProspects', 'companies', 2, '$user->rights->societe->contact->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(11030, 'auguria', 1, '', 'left', 'companies', '', 11027, NULL, NULL, 2, '/contact/list.php?leftmenu=contacts&amp;type=c', '', 'ThirdPartyCustomers', 'companies', 2, '$user->rights->societe->contact->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(11031, 'auguria', 1, '', 'left', 'companies', '', 11027, NULL, NULL, 3, '/contact/list.php?leftmenu=contacts&amp;type=f', '', 'ThirdPartySuppliers', 'companies', 2, '$user->rights->societe->contact->lire', '$conf->societe->enabled && $conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(11032, 'auguria', 1, '', 'left', 'companies', '', 11027, NULL, NULL, 4, '/contact/list.php?leftmenu=contacts&amp;type=o', '', 'Others', 'companies', 2, '$user->rights->societe->contact->lire', '$conf->societe->enabled', 2, '2016-02-07 20:06:23'),
(11075, 'auguria', 1, '', 'left', 'companies', 'cat', 10427, NULL, NULL, 3, '/categories/index.php?leftmenu=cat&amp;type=1', '', 'SuppliersCategoriesShort', 'categories', 0, '$user->rights->categorie->lire', '$conf->societe->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(11076, 'auguria', 1, '', 'left', 'companies', '', 11075, NULL, NULL, 0, '/categories/card.php?action=create&amp;type=1', '', 'NewCategory', 'categories', 1, '$user->rights->categorie->creer', '$conf->societe->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(11085, 'auguria', 1, '', 'left', 'companies', 'cat', 10427, NULL, NULL, 4, '/categories/index.php?leftmenu=cat&amp;type=2', '', 'CustomersProspectsCategoriesShort', 'categories', 0, '$user->rights->categorie->lire', '$conf->fournisseur->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(11086, 'auguria', 1, '', 'left', 'companies', '', 11085, NULL, NULL, 0, '/categories/card.php?action=create&amp;type=2', '', 'NewCategory', 'categories', 1, '$user->rights->categorie->creer', '$conf->fournisseur->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(11095, 'auguria', 1, '', 'left', 'companies', 'cat', 10427, NULL, NULL, 3, '/categories/index.php?leftmenu=cat&amp;type=4', '', 'ContactCategoriesShort', 'categories', 0, '$user->rights->categorie->lire', '$conf->societe->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(11096, 'auguria', 1, '', 'left', 'companies', '', 11095, NULL, NULL, 0, '/categories/card.php?action=create&amp;type=4', '', 'NewCategory', 'categories', 1, '$user->rights->categorie->creer', '$conf->societe->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(11525, 'auguria', 1, '', 'left', 'commercial', 'propals', 10430, NULL, NULL, 4, '/comm/propal/index.php?leftmenu=propals', '', 'Prop', 'propal', 0, '$user->rights->propale->lire', '$conf->propal->enabled', 2, '2016-02-07 20:06:23'),
(11526, 'auguria', 1, '', 'left', 'commercial', '', 11525, NULL, NULL, 0, '/comm/propal.php?action=create&amp;leftmenu=propals', '', 'NewPropal', 'propal', 1, '$user->rights->propale->creer', '$conf->propal->enabled', 2, '2016-02-07 20:06:23'),
(11527, 'auguria', 1, '', 'left', 'commercial', '', 11525, NULL, NULL, 1, '/comm/propal/list.php?leftmenu=propals', '', 'List', 'propal', 1, '$user->rights->propale->lire', '$conf->propal->enabled', 2, '2016-02-07 20:06:23'),
(11528, 'auguria', 1, '', 'left', 'commercial', '', 11527, NULL, NULL, 2, '/comm/propal/list.php?leftmenu=propals&amp;viewstatut=0', '', 'PropalsDraft', 'propal', 1, '$user->rights->propale->lire', '$conf->propal->enabled && $leftmenu=="propals"', 2, '2016-02-07 20:06:23'),
(11529, 'auguria', 1, '', 'left', 'commercial', '', 11527, NULL, NULL, 3, '/comm/propal/list.php?leftmenu=propals&amp;viewstatut=1', '', 'PropalsOpened', 'propal', 1, '$user->rights->propale->lire', '$conf->propal->enabled && $leftmenu=="propals"', 2, '2016-02-07 20:06:23'),
(11530, 'auguria', 1, '', 'left', 'commercial', '', 11527, NULL, NULL, 4, '/comm/propal/list.php?leftmenu=propals&amp;viewstatut=2', '', 'PropalStatusSigned', 'propal', 1, '$user->rights->propale->lire', '$conf->propal->enabled && $leftmenu=="propals"', 2, '2016-02-07 20:06:23'),
(11531, 'auguria', 1, '', 'left', 'commercial', '', 11527, NULL, NULL, 5, '/comm/propal/list.php?leftmenu=propals&amp;viewstatut=3', '', 'PropalStatusNotSigned', 'propal', 1, '$user->rights->propale->lire', '$conf->propal->enabled && $leftmenu=="propals"', 2, '2016-02-07 20:06:23'),
(11532, 'auguria', 1, '', 'left', 'commercial', '', 11527, NULL, NULL, 6, '/comm/propal/list.php?leftmenu=propals&amp;viewstatut=4', '', 'PropalStatusBilled', 'propal', 1, '$user->rights->propale->lire', '$conf->propal->enabled && $leftmenu=="propals"', 2, '2016-02-07 20:06:23'),
(11535, 'auguria', 1, '', 'left', 'commercial', '', 11525, NULL, NULL, 4, '/comm/propal/stats/index.php?leftmenu=propals', '', 'Statistics', 'propal', 1, '$user->rights->propale->lire', '$conf->propal->enabled', 2, '2016-02-07 20:06:23'),
(11625, 'auguria', 1, '', 'left', 'commercial', 'orders', 10430, NULL, NULL, 5, '/commande/index.php?leftmenu=orders', '', 'CustomersOrders', 'orders', 0, '$user->rights->commande->lire', '$conf->commande->enabled', 2, '2016-02-07 20:06:23'),
(11626, 'auguria', 1, '', 'left', 'commercial', '', 11625, NULL, NULL, 0, '/commande/card.php?action=create&amp;leftmenu=orders', '', 'NewOrder', 'orders', 1, '$user->rights->commande->creer', '$conf->commande->enabled', 2, '2016-02-07 20:06:23'),
(11627, 'auguria', 1, '', 'left', 'commercial', '', 11625, NULL, NULL, 1, '/commande/list.php?leftmenu=orders', '', 'List', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled', 2, '2016-02-07 20:06:23'),
(11628, 'auguria', 1, '', 'left', 'commercial', '', 11627, NULL, NULL, 2, '/commande/list.php?leftmenu=orders&amp;viewstatut=0', '', 'StatusOrderDraftShort', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled && $leftmenu=="orders"', 2, '2016-02-07 20:06:23'),
(11629, 'auguria', 1, '', 'left', 'commercial', '', 11627, NULL, NULL, 3, '/commande/list.php?leftmenu=orders&amp;viewstatut=1', '', 'StatusOrderValidated', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled && $leftmenu=="orders"', 2, '2016-02-07 20:06:23'),
(11630, 'auguria', 1, '', 'left', 'commercial', '', 11627, NULL, NULL, 4, '/commande/list.php?leftmenu=orders&amp;viewstatut=2', '', 'StatusOrderOnProcessShort', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled && $leftmenu=="orders"', 2, '2016-02-07 20:06:23'),
(11631, 'auguria', 1, '', 'left', 'commercial', '', 11627, NULL, NULL, 5, '/commande/list.php?leftmenu=orders&amp;viewstatut=3', '', 'StatusOrderToBill', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled && $leftmenu=="orders"', 2, '2016-02-07 20:06:23'),
(11632, 'auguria', 1, '', 'left', 'commercial', '', 11627, NULL, NULL, 6, '/commande/list.php?leftmenu=orders&amp;viewstatut=4', '', 'StatusOrderProcessed', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled && $leftmenu=="orders"', 2, '2016-02-07 20:06:23'),
(11633, 'auguria', 1, '', 'left', 'commercial', '', 11627, NULL, NULL, 7, '/commande/list.php?leftmenu=orders&amp;viewstatut=-1', '', 'StatusOrderCanceledShort', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled && $leftmenu=="orders"', 2, '2016-02-07 20:06:23'),
(11634, 'auguria', 1, '', 'left', 'commercial', '', 11625, NULL, NULL, 4, '/commande/stats/index.php?leftmenu=orders', '', 'Statistics', 'orders', 1, '$user->rights->commande->lire', '$conf->commande->enabled', 2, '2016-02-07 20:06:23'),
(11725, 'auguria', 1, '', 'left', 'commercial', 'sendings', 10428, NULL, NULL, 6, '/expedition/index.php?leftmenu=sendings', '', 'Shipments', 'sendings', 0, '$user->rights->expedition->lire', '$conf->expedition->enabled', 2, '2016-02-07 20:06:23'),
(11726, 'auguria', 1, '', 'left', 'commercial', '', 11725, NULL, NULL, 0, '/expedition/card.php?action=create2&leftmenu=sendings', '', 'NewSending', 'sendings', 1, '$user->rights->expedition->creer', '$conf->expedition->enabled && $leftmenu=="sendings"', 2, '2016-02-07 20:06:23'),
(11727, 'auguria', 1, '', 'left', 'commercial', '', 11725, NULL, NULL, 1, '/expedition/list.php?leftmenu=sendings', '', 'List', 'sendings', 1, '$user->rights->expedition->lire', '$conf->expedition->enabled && $leftmenu=="sendings"', 2, '2016-02-07 20:06:23'),
(11728, 'auguria', 1, '', 'left', 'commercial', '', 11725, NULL, NULL, 2, '/expedition/stats/index.php?leftmenu=sendings', '', 'Statistics', 'sendings', 1, '$user->rights->expedition->lire', '$conf->expedition->enabled && $leftmenu=="sendings"', 2, '2016-02-07 20:06:23'),
(11825, 'auguria', 1, '', 'left', 'commercial', 'contracts', 10430, NULL, NULL, 7, '/contrat/index.php?leftmenu=contracts', '', 'Contracts', 'contracts', 0, '$user->rights->contrat->lire', '$conf->contrat->enabled', 2, '2016-02-07 20:06:23'),
(11826, 'auguria', 1, '', 'left', 'commercial', '', 11825, NULL, NULL, 0, '/contrat/card.php?&action=create&amp;leftmenu=contracts', '', 'NewContract', 'contracts', 1, '$user->rights->contrat->creer', '$conf->contrat->enabled', 2, '2016-02-07 20:06:23'),
(11827, 'auguria', 1, '', 'left', 'commercial', '', 11825, NULL, NULL, 1, '/contrat/list.php?leftmenu=contracts', '', 'List', 'contracts', 1, '$user->rights->contrat->lire', '$conf->contrat->enabled', 2, '2016-02-07 20:06:23'),
(11828, 'auguria', 1, '', 'left', 'commercial', '', 11825, NULL, NULL, 2, '/contrat/services.php?leftmenu=contracts', '', 'MenuServices', 'contracts', 1, '$user->rights->contrat->lire', '$conf->contrat->enabled', 2, '2016-02-07 20:06:23'),
(11829, 'auguria', 1, '', 'left', 'commercial', '', 11828, NULL, NULL, 0, '/contrat/services.php?leftmenu=contracts&amp;mode=0', '', 'MenuInactiveServices', 'contracts', 2, '$user->rights->contrat->lire', '$conf->contrat->enabled&&$leftmenu=="contracts"', 2, '2016-02-07 20:06:23'),
(11830, 'auguria', 1, '', 'left', 'commercial', '', 11828, NULL, NULL, 1, '/contrat/services.php?leftmenu=contracts&amp;mode=4', '', 'MenuRunningServices', 'contracts', 2, '$user->rights->contrat->lire', '$conf->contrat->enabled&&$leftmenu=="contracts"', 2, '2016-02-07 20:06:23'),
(11831, 'auguria', 1, '', 'left', 'commercial', '', 11828, NULL, NULL, 2, '/contrat/services.php?leftmenu=contracts&amp;mode=4&amp;filter=expired', '', 'MenuExpiredServices', 'contracts', 2, '$user->rights->contrat->lire', '$conf->contrat->enabled&&$leftmenu=="contracts"', 2, '2016-02-07 20:06:23'),
(11832, 'auguria', 1, '', 'left', 'commercial', '', 11828, NULL, NULL, 3, '/contrat/services.php?leftmenu=contracts&amp;mode=5', '', 'MenuClosedServices', 'contracts', 2, '$user->rights->contrat->lire', '$conf->contrat->enabled&&$leftmenu=="contracts"', 2, '2016-02-07 20:06:23'),
(11925, 'auguria', 1, '', 'left', 'commercial', 'ficheinter', 10430, NULL, NULL, 8, '/fichinter/list.php?leftmenu=ficheinter', '', 'Interventions', 'interventions', 0, '$user->rights->ficheinter->lire', '$conf->ficheinter->enabled', 2, '2016-02-07 20:06:23'),
(11926, 'auguria', 1, '', 'left', 'commercial', '', 11925, NULL, NULL, 0, '/fichinter/card.php?action=create&amp;leftmenu=ficheinter', '', 'NewIntervention', 'interventions', 1, '$user->rights->ficheinter->creer', '$conf->ficheinter->enabled', 2, '2016-02-07 20:06:23'),
(11927, 'auguria', 1, '', 'left', 'commercial', '', 11925, NULL, NULL, 1, '/fichinter/list.php?leftmenu=ficheinter', '', 'List', 'interventions', 1, '$user->rights->ficheinter->lire', '$conf->ficheinter->enabled', 2, '2016-02-07 20:06:23'),
(12025, 'auguria', 1, '', 'left', 'accountancy', 'supplier_bills', 10431, NULL, NULL, 3, '/fourn/facture/list.php?leftmenu=suppliers_bills', '', 'BillsSuppliers', 'bills', 0, '$user->rights->fournisseur->facture->lire', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(12026, 'auguria', 1, '', 'left', 'accountancy', '', 12025, NULL, NULL, 0, '/fourn/facture/card.php?action=create&amp;leftmenu=suppliers_bills', '', 'NewBill', 'bills', 1, '$user->rights->fournisseur->facture->creer', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(12027, 'auguria', 1, '', 'left', 'accountancy', '', 12025, NULL, NULL, 1, '/fourn/facture/impayees.php?leftmenu=suppliers_bills', '', 'Unpaid', 'bills', 1, '$user->rights->fournisseur->facture->lire', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(12028, 'auguria', 1, '', 'left', 'accountancy', '', 12025, NULL, NULL, 2, '/fourn/facture/paiement.php?leftmenu=suppliers_bills', '', 'Payments', 'bills', 1, '$user->rights->fournisseur->facture->lire', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(12029, 'auguria', 1, '', 'left', 'accountancy', '', 12025, NULL, NULL, 8, '/compta/facture/stats/index.php?leftmenu=customers_bills&mode=supplier', '', 'Statistics', 'bills', 1, '$user->rights->fournisseur->facture->lire', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(12125, 'auguria', 1, '', 'left', 'accountancy', 'customer_bills', 10431, NULL, NULL, 3, '/compta/facture/list.php?leftmenu=customers_bills', '', 'BillsCustomers', 'bills', 0, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12126, 'auguria', 1, '', 'left', 'accountancy', '', 12125, NULL, NULL, 3, '/compta/facture.php?action=create&amp;leftmenu=customers_bills', '', 'NewBill', 'bills', 1, '$user->rights->facture->creer', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12127, 'auguria', 1, '', 'left', 'accountancy', '', 12125, NULL, NULL, 5, '/compta/facture/fiche-rec.php?leftmenu=customers_bills', '', 'ListOfTemplates', 'bills', 1, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12128, 'auguria', 1, '', 'left', 'accountancy', '', 12125, NULL, NULL, 7, '/compta/facture/mergepdftool.php?action=facturer&amp;leftmenu=customers_bills', '', 'MergingPDFTool', 'bills', 1, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12129, 'auguria', 1, '', 'left', 'accountancy', '', 12125, NULL, NULL, 6, '/compta/paiement/list.php?leftmenu=customers_bills', '', 'Payments', 'bills', 1, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12130, 'auguria', 1, '', 'left', 'accountancy', '', 12125, NULL, NULL, 4, '/compta/facture/list.php?leftmenu=customers_bills', '', 'List', 'bills', 1, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12135, 'auguria', 1, '', 'left', 'accountancy', '', 12129, NULL, NULL, 1, '/compta/paiement/rapport.php?leftmenu=customers_bills', '', 'Reportings', 'bills', 2, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12136, 'auguria', 1, '', 'left', 'accountancy', 'checks', 10439, NULL, NULL, 9, '/compta/paiement/cheque/index.php?leftmenu=checks&amp;mainmenu=bank', '', 'MenuChequeDeposits', 'bills', 0, '$user->rights->banque->lire', '! empty($conf->banque->enabled) && (! empty($conf->facture->enabled)) || ! empty($conf->global->MAIN_MENU_CHEQUE_DEPOSIT_ON)', 2, '2016-02-07 20:06:23'),
(12137, 'auguria', 1, '', 'left', 'accountancy', '', 12136, NULL, NULL, 0, '/compta/paiement/cheque/card.php?leftmenu=checks&amp;action=new', '', 'NewCheckDeposit', 'compta', 1, '$user->rights->banque->lire', '! empty($conf->banque->enabled) && (! empty($conf->facture->enabled)) || ! empty($conf->global->MAIN_MENU_CHEQUE_DEPOSIT_ON)', 2, '2016-02-07 20:06:23'),
(12138, 'auguria', 1, '', 'left', 'accountancy', '', 12136, NULL, NULL, 1, '/compta/paiement/cheque/list.php?leftmenu=checks', '', 'List', 'bills', 1, '$user->rights->banque->lire', '! empty($conf->banque->enabled) && (! empty($conf->facture->enabled)) || ! empty($conf->global->MAIN_MENU_CHEQUE_DEPOSIT_ON)', 2, '2016-02-07 20:06:23'),
(12139, 'auguria', 1, '', 'left', 'accountancy', '', 12125, NULL, NULL, 8, '/compta/facture/stats/index.php?leftmenu=customers_bills', '', 'Statistics', 'bills', 1, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12145, 'auguria', 1, '', 'left', 'accountancy', '', 12130, NULL, NULL, 1, '/compta/facture/list.php?leftmenu=customers_bills&amp;search_status=0', '', 'BillShortStatusDraft', 'bills', 2, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12146, 'auguria', 1, '', 'left', 'accountancy', '', 12130, NULL, NULL, 2, '/compta/facture/list.php?leftmenu=customers_bills&amp;search_status=1', '', 'BillShortStatusNotPaid', 'bills', 2, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12147, 'auguria', 1, '', 'left', 'accountancy', '', 12130, NULL, NULL, 3, '/compta/facture/list.php?leftmenu=customers_bills&amp;search_status=2', '', 'BillShortStatusPaid', 'bills', 2, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12148, 'auguria', 1, '', 'left', 'accountancy', '', 12130, NULL, NULL, 4, '/compta/facture/list.php?leftmenu=customers_bills&amp;search_status=3', '', 'BillShortStatusCanceled', 'bills', 2, '$user->rights->facture->lire', '$conf->facture->enabled', 2, '2016-02-07 20:06:23'),
(12325, 'auguria', 1, '', 'left', 'accountancy', 'orders', 10431, NULL, NULL, 3, '/commande/list.php?leftmenu=orders&amp;viewstatut=3', '', 'MenuOrdersToBill', 'orders', 0, '$user->rights->commande->lire', '$conf->commande->enabled', 0, '2016-02-07 20:06:23'),
(12425, 'auguria', 1, '', 'left', 'accountancy', 'donations', 10431, NULL, NULL, 4, '/don/index.php?leftmenu=donations&amp;mainmenu=accountancy', '', 'Donations', 'donations', 0, '$user->rights->don->lire', '$conf->don->enabled', 2, '2016-02-07 20:06:23'),
(12426, 'auguria', 1, '', 'left', 'accountancy', '', 12425, NULL, NULL, 0, '/don/card.php?leftmenu=donations&amp;mainmenu=accountancy&amp;action=create', '', 'NewDonation', 'donations', 1, '$user->rights->don->creer', '$conf->don->enabled && $leftmenu=="donations"', 2, '2016-02-07 20:06:23'),
(12427, 'auguria', 1, '', 'left', 'accountancy', '', 12425, NULL, NULL, 1, '/don/list.php?leftmenu=donations&amp;mainmenu=accountancy', '', 'List', 'donations', 1, '$user->rights->don->lire', '$conf->don->enabled && $leftmenu=="donations"', 2, '2016-02-07 20:06:23'),
(12525, 'auguria', 1, '', 'left', 'accountancy', 'tripsandexpenses', 10440, NULL, NULL, 5, '/compta/deplacement/index.php?leftmenu=tripsandexpenses', '', 'TripsAndExpenses', 'trips', 0, '$user->rights->deplacement->lire', '$conf->deplacement->enabled', 0, '2016-02-07 20:06:23'),
(12526, 'auguria', 1, '', 'left', 'accountancy', '', 12525, NULL, NULL, 1, '/compta/deplacement/card.php?action=create&amp;leftmenu=tripsandexpenses', '', 'New', 'trips', 1, '$user->rights->deplacement->creer', '$conf->deplacement->enabled', 0, '2016-02-07 20:06:23'),
(12527, 'auguria', 1, '', 'left', 'accountancy', '', 12525, NULL, NULL, 2, '/compta/deplacement/list.php?leftmenu=tripsandexpenses', '', 'List', 'trips', 1, '$user->rights->deplacement->lire', '$conf->deplacement->enabled', 0, '2016-02-07 20:06:23'),
(12528, 'auguria', 1, '', 'left', 'accountancy', '', 12525, NULL, NULL, 2, '/compta/deplacement/stats/index.php?leftmenu=tripsandexpenses', '', 'Statistics', 'trips', 1, '$user->rights->deplacement->lire', '$conf->deplacement->enabled', 0, '2016-02-07 20:06:23'),
(12625, 'auguria', 1, '', 'left', 'accountancy', 'tax', 10431, NULL, NULL, 6, '/compta/charges/index.php?leftmenu=tax&amp;mainmenu=accountancy', '', 'MenuSpecialExpenses', 'compta', 0, '(! empty($conf->tax->enabled) && $user->rights->tax->charges->lire) || (! empty($conf->salaries->enabled) && $user->rights->salaries->read)', '$conf->tax->enabled || $conf->salaries->enabled', 0, '2016-02-07 20:06:23'),
(12635, 'auguria', 1, '', 'left', 'accountancy', 'tax_sal', 12625, NULL, NULL, 1, '/compta/salaries/index.php?leftmenu=tax_salary&amp;mainmenu=accountancy', '', 'Salaries', 'salaries', 1, '$user->rights->salaries->read', '$conf->salaries->enabled', 0, '2016-02-07 20:06:23'),
(12636, 'auguria', 1, '', 'left', 'accountancy', '', 12635, NULL, NULL, 2, '/compta/salaries/card.php?leftmenu=tax_salary&amp;action=create', '', 'NewPayment', 'companies', 2, '$user->rights->salaries->write', '$conf->salaries->enabled && $leftmenu=="tax_salary"', 0, '2016-02-07 20:06:23'),
(12637, 'auguria', 1, '', 'left', 'accountancy', '', 12635, NULL, NULL, 3, '/compta/salaries/index.php?leftmenu=tax_salary', '', 'Payments', 'companies', 2, '$user->rights->salaries->read', '$conf->salaries->enabled && $leftmenu=="tax_salary"', 0, '2016-02-07 20:06:23'),
(12645, 'auguria', 1, '', 'left', 'accountancy', 'tax_loan', 12625, NULL, NULL, 1, '/loan/index.php?leftmenu=tax_loan&amp;mainmenu=accountancy', '', 'Loans', 'loan', 1, '$user->rights->loan->read', '$conf->loan->enabled', 0, '2016-02-07 20:06:23'),
(12646, 'auguria', 1, '', 'left', 'accountancy', '', 12645, NULL, NULL, 2, '/loan/card.php?leftmenu=tax_loan&amp;action=create', '', 'NewLoan', 'loan', 2, '$user->rights->loan->write', '$conf->loan->enabled && $leftmenu=="tax_loan"', 0, '2016-02-07 20:06:23'),
(12647, 'auguria', 1, '', 'left', 'accountancy', '', 12645, NULL, NULL, 3, '/loan/index.php?leftmenu=tax_loan', '', 'Payments', 'companies', 2, '$user->rights->loan->read', '$conf->loan->enabled && $leftmenu=="tax_loan"', 0, '2016-02-07 20:06:23'),
(12648, 'auguria', 1, '', 'left', 'accountancy', '', 12645, NULL, NULL, 4, '/loan/calc.php?leftmenu=tax_loan', '', 'Calculator', 'companies', 2, '$user->rights->loan->calc', '$conf->loan->enabled && $leftmenu=="tax_loan"', 0, '2016-02-07 20:06:23'),
(12675, 'auguria', 1, '', 'left', 'accountancy', 'tax_social', 12625, NULL, NULL, 1, '/compta/sociales/index.php?leftmenu=tax_social', '', 'SocialContributions', '', 1, '$user->rights->tax->charges->lire', '$conf->tax->enabled', 0, '2016-02-07 20:06:23'),
(12676, 'auguria', 1, '', 'left', 'accountancy', '', 12675, NULL, NULL, 2, '/compta/sociales/charges.php?leftmenu=tax_social&amp;action=create', '', 'MenuNewSocialContribution', '', 2, '$user->rights->tax->charges->creer', '$conf->tax->enabled && $leftmenu=="tax_social"', 0, '2016-02-07 20:06:23'),
(12677, 'auguria', 1, '', 'left', 'accountancy', '', 12675, NULL, NULL, 3, '/compta/charges/index.php?leftmenu=tax_social&amp;mainmenu=accountancy&amp;mode=sconly', '', 'Payments', '', 2, '$user->rights->tax->charges->lire', '$conf->tax->enabled && $leftmenu=="tax_social"', 0, '2016-02-07 20:06:23'),
(12725, 'auguria', 1, '', 'left', 'accountancy', 'tax_vat', 12625, NULL, NULL, 7, '/compta/tva/index.php?leftmenu=tax_vat&amp;mainmenu=accountancy', '', 'VAT', 'companies', 1, '$user->rights->tax->charges->lire', '$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS)', 0, '2016-02-07 20:06:23'),
(12726, 'auguria', 1, '', 'left', 'accountancy', '', 12725, NULL, NULL, 0, '/compta/tva/card.php?leftmenu=tax_vat&amp;action=create', '', 'NewPayment', 'companies', 2, '$user->rights->tax->charges->creer', '$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', 0, '2016-02-07 20:06:23'),
(12727, 'auguria', 1, '', 'left', 'accountancy', '', 12725, NULL, NULL, 1, '/compta/tva/reglement.php?leftmenu=tax_vat', '', 'Payments', 'companies', 2, '$user->rights->tax->charges->lire', '$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', 0, '2016-02-07 20:06:23'),
(12728, 'auguria', 1, '', 'left', 'accountancy', '', 12725, NULL, NULL, 2, '/compta/tva/clients.php?leftmenu=tax_vat', '', 'ReportByCustomers', 'companies', 2, '$user->rights->tax->charges->lire', '$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', 0, '2016-02-07 20:06:23'),
(12729, 'auguria', 1, '', 'left', 'accountancy', '', 12725, NULL, NULL, 3, '/compta/tva/quadri_detail.php?leftmenu=tax_vat', '', 'ReportByQuarter', 'companies', 2, '$user->rights->tax->charges->lire', '$conf->tax->enabled && empty($conf->global->TAX_DISABLE_VAT_MENUS) && $leftmenu=="tax_vat"', 0, '2016-02-07 20:06:23'),
(12825, 'auguria', 1, '', 'left', 'accountancy', 'ventil_customer', 10431, NULL, NULL, 8, '/accountancy/customer/index.php?leftmenu=ventil_customer', '', 'CustomersVentilation', 'accountancy', 0, '$user->rights->accounting->ventilation->read', '$conf->accounting->enabled', 0, '2016-02-07 20:06:23'),
(12826, 'auguria', 1, '', 'left', 'accountancy', '', 12825, NULL, NULL, 0, '/accountancy/customer/list.php', '', 'ToDispatch', 'accountancy', 1, '$user->rights->accounting->ventilation->dispatch', '$conf->accounting->enabled && $leftmenu=="ventil_customer"', 0, '2016-02-07 20:06:23'),
(12827, 'auguria', 1, '', 'left', 'accountancy', '', 12825, NULL, NULL, 1, '/accountancy/customer/lines.php', '', 'Dispatched', 'accountancy', 1, '$user->rights->accounting->ventilation->read', '$conf->accounting->enabled && $leftmenu=="ventil_customer"', 0, '2016-02-07 20:06:23'),
(12835, 'auguria', 1, '', 'left', 'accountancy', 'ventil_supplier', 10431, NULL, NULL, 9, '/accountancy/supplier/index.php?leftmenu=ventil_supplier', '', 'SuppliersVentilation', 'accountancy', 0, '$user->rights->accounting->ventilation->read', '$conf->accounting->enabled && $conf->fournisseur->enabled', 0, '2016-02-07 20:06:23'),
(12836, 'auguria', 1, '', 'left', 'accountancy', '', 12835, NULL, NULL, 0, '/accountancy/supplier/list.php', '', 'ToDispatch', 'accountancy', 1, '$user->rights->accounting->ventilation->dispatch', '$conf->accounting->enabled && $conf->fournisseur->enabled && $leftmenu=="ventil_supplier"', 0, '2016-02-07 20:06:23'),
(12837, 'auguria', 1, '', 'left', 'accountancy', '', 12835, NULL, NULL, 1, '/accountancy/supplier/lines.php', '', 'Dispatched', 'accountancy', 1, '$user->rights->accounting->ventilation->read', '$conf->accounting->enabled && $conf->fournisseur->enabled && $leftmenu=="ventil_supplier"', 0, '2016-02-07 20:06:23'),
(12925, 'auguria', 1, '', 'left', 'accountancy', 'withdraw', 10439, NULL, NULL, 9, '/compta/prelevement/index.php?leftmenu=withdraw&amp;mainmenu=bank', '', 'StandingOrders', 'withdrawals', 0, '$user->rights->prelevement->bons->lire', '$conf->prelevement->enabled', 2, '2016-02-07 20:06:23'),
(12927, 'auguria', 1, '', 'left', 'accountancy', '', 12925, NULL, NULL, 0, '/compta/prelevement/create.php?leftmenu=withdraw', '', 'NewStandingOrder', 'withdrawals', 1, '$user->rights->prelevement->bons->lire', '$conf->prelevement->enabled && $leftmenu=="withdraw"', 2, '2016-02-07 20:06:23'),
(12928, 'auguria', 1, '', 'left', 'accountancy', '', 12925, NULL, NULL, 2, '/compta/prelevement/bons.php?leftmenu=withdraw', '', 'WithdrawalsReceipts', 'withdrawals', 1, '$user->rights->prelevement->bons->lire', '$conf->prelevement->enabled && $leftmenu=="withdraw"', 2, '2016-02-07 20:06:23'),
(12929, 'auguria', 1, '', 'left', 'accountancy', '', 12925, NULL, NULL, 3, '/compta/prelevement/list.php?leftmenu=withdraw', '', 'WithdrawalsLines', 'withdrawals', 1, '$user->rights->prelevement->bons->lire', '$conf->prelevement->enabled && $leftmenu=="withdraw"', 2, '2016-02-07 20:06:23'),
(12931, 'auguria', 1, '', 'left', 'accountancy', '', 12925, NULL, NULL, 5, '/compta/prelevement/rejets.php?leftmenu=withdraw', '', 'Rejects', 'withdrawals', 1, '$user->rights->prelevement->bons->lire', '$conf->prelevement->enabled && $leftmenu=="withdraw"', 2, '2016-02-07 20:06:23'),
(12932, 'auguria', 1, '', 'left', 'accountancy', '', 12925, NULL, NULL, 6, '/compta/prelevement/stats.php?leftmenu=withdraw', '', 'Statistics', 'withdrawals', 1, '$user->rights->prelevement->bons->lire', '$conf->prelevement->enabled && $leftmenu=="withdraw"', 2, '2016-02-07 20:06:23'),
(13025, 'auguria', 1, '', 'left', 'accountancy', 'bank', 10439, NULL, NULL, 1, '/compta/bank/index.php?leftmenu=bank&amp;mainmenu=bank', '', 'MenuBankCash', 'banks', 0, '$user->rights->banque->lire', '$conf->banque->enabled', 0, '2016-02-07 20:06:23'),
(13026, 'auguria', 1, '', 'left', 'accountancy', '', 13025, NULL, NULL, 0, '/compta/bank/card.php?action=create&amp;leftmenu=bank', '', 'MenuNewFinancialAccount', 'banks', 1, '$user->rights->banque->configurer', '$conf->banque->enabled && ($leftmenu=="bank" || $leftmenu=="checks" || $leftmenu=="withdraw")', 0, '2016-02-07 20:06:23'),
(13027, 'auguria', 1, '', 'left', 'accountancy', '', 13025, NULL, NULL, 1, '/compta/bank/categ.php?leftmenu=bank', '', 'Rubriques', 'categories', 1, '$user->rights->banque->configurer', '$conf->banque->enabled && ($leftmenu=="bank" || $leftmenu=="checks" || $leftmenu=="withdraw")', 0, '2016-02-07 20:06:23'),
(13028, 'auguria', 1, '', 'left', 'accountancy', '', 13025, NULL, NULL, 2, '/compta/bank/search.php?leftmenu=bank', '', 'ListTransactions', 'banks', 1, '$user->rights->banque->lire', '$conf->banque->enabled && ($leftmenu=="bank" || $leftmenu=="checks" || $leftmenu=="withdraw")', 0, '2016-02-07 20:06:23'),
(13029, 'auguria', 1, '', 'left', 'accountancy', '', 13025, NULL, NULL, 3, '/compta/bank/budget.php?leftmenu=bank', '', 'ListTransactionsByCategory', 'banks', 1, '$user->rights->banque->lire', '$conf->banque->enabled && ($leftmenu=="bank" || $leftmenu=="checks" || $leftmenu=="withdraw")', 0, '2016-02-07 20:06:23'),
(13031, 'auguria', 1, '', 'left', 'accountancy', '', 13025, NULL, NULL, 5, '/compta/bank/virement.php?leftmenu=bank', '', 'BankTransfers', 'banks', 1, '$user->rights->banque->transfer', '$conf->banque->enabled && ($leftmenu=="bank" || $leftmenu=="checks" || $leftmenu=="withdraw")', 0, '2016-02-07 20:06:23'),
(13125, 'auguria', 1, '', 'left', 'accountancy', 'ca', 10431, NULL, NULL, 11, '/compta/resultat/index.php?leftmenu=ca&amp;mainmenu=accountancy', '', 'Reportings', 'main', 0, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled || $conf->accounting->enabled', 0, '2016-02-07 20:06:23'),
(13126, 'auguria', 1, '', 'left', 'accountancy', '', 13125, NULL, NULL, 0, '/compta/resultat/index.php?leftmenu=ca', '', 'ReportInOut', 'main', 1, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled || $conf->accounting->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13127, 'auguria', 1, '', 'left', 'accountancy', '', 13126, NULL, NULL, 0, '/compta/resultat/clientfourn.php?leftmenu=ca', '', 'ByCompanies', 'main', 2, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled || $conf->accounting->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13128, 'auguria', 1, '', 'left', 'accountancy', '', 13125, NULL, NULL, 1, '/compta/stats/index.php?leftmenu=ca', '', 'ReportTurnover', 'main', 1, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled || $conf->accounting->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13129, 'auguria', 1, '', 'left', 'accountancy', '', 13128, NULL, NULL, 0, '/compta/stats/casoc.php?leftmenu=ca', '', 'ByCompanies', 'main', 2, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled || $conf->accounting->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13130, 'auguria', 1, '', 'left', 'accountancy', '', 13128, NULL, NULL, 1, '/compta/stats/cabyuser.php?leftmenu=ca', '', 'ByUsers', 'main', 2, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled || $conf->accounting->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13131, 'auguria', 1, '', 'left', 'accountancy', '', 13125, NULL, NULL, 1, '/compta/journal/sellsjournal.php?leftmenu=ca', '', 'SellsJournal', 'main', 1, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13132, 'auguria', 1, '', 'left', 'accountancy', '', 13125, NULL, NULL, 1, '/compta/journal/purchasesjournal.php?leftmenu=ca', '', 'PurchasesJournal', 'main', 1, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13133, 'auguria', 1, '', 'left', 'accountancy', '', 13128, NULL, NULL, 1, '/compta/stats/cabyprodserv.php?leftmenu=ca', '', 'ByProductsAndServices', 'main', 2, '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '$conf->comptabilite->enabled || $conf->accounting->enabled && $leftmenu=="ca"', 0, '2016-02-07 20:06:23'),
(13145, 'auguria', 1, '', 'left', 'accountancy', 'bookkeeping', 10431, NULL, NULL, 12, '/accountancy/bookkeeping/list.php?leftmenu=bookkeeping', '', 'Bookkeeping', 'accountancy', 0, '$user->rights->accounting->mouvements->lire', '$conf->accounting->enabled', 0, '2016-02-07 20:06:23'),
(13146, 'auguria', 1, '', 'left', 'accountancy', '', 13145, NULL, NULL, 0, '/accountancy/bookkeeping/listbyyear.php', '', 'ByYear', 'accountancy', 1, '$user->rights->accounting->mouvements->lire', '$conf->accounting->enabled && $leftmenu=="bookkeeping"', 0, '2016-02-07 20:06:23'),
(13147, 'auguria', 1, '', 'left', 'accountancy', '', 13145, NULL, NULL, 1, '/accountancy/bookkeeping/balancebymonth.php', '', 'AccountBalanceByMonth', 'accountancy', 1, '$user->rights->accounting->mouvements->lire', '$conf->accounting->enabled && $leftmenu=="bookkeeping"', 0, '2016-02-07 20:06:23');
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
(13175, 'auguria', 1, '', 'left', 'home', '', 10431, NULL, NULL, 20, '/accountancy/admin/fiscalyear.php?leftmenu=setup', '', 'Fiscalyear', 'accountancy', 1, '$user->rights->accounting->fiscalyear', '$conf->accounting->enabled', 2, '2016-02-07 20:06:23'),
(13176, 'auguria', 1, '', 'left', 'home', '', 10431, NULL, NULL, 21, '/accountancy/admin/account.php?mainmenu=accountancy', '', 'Chartofaccounts', 'accountancy', 1, '$user->rights->accounting->chartofaccount', '$conf->accounting->enabled', 2, '2016-02-07 20:06:23'),
(13225, 'auguria', 1, '', 'left', 'products', 'product', 10428, NULL, NULL, 0, '/product/index.php?leftmenu=product&amp;type=0', '', 'Products', 'products', 0, '$user->rights->produit->lire', '$conf->product->enabled', 2, '2016-02-07 20:06:23'),
(13226, 'auguria', 1, '', 'left', 'products', '', 13225, NULL, NULL, 0, '/product/card.php?leftmenu=product&amp;action=create&amp;type=0', '', 'NewProduct', 'products', 1, '$user->rights->produit->creer', '$conf->product->enabled', 2, '2016-02-07 20:06:23'),
(13227, 'auguria', 1, '', 'left', 'products', '', 13225, NULL, NULL, 1, '/product/list.php?leftmenu=product&amp;type=0', '', 'List', 'products', 1, '$user->rights->produit->lire', '$conf->product->enabled', 2, '2016-02-07 20:06:23'),
(13228, 'auguria', 1, '', 'left', 'products', '', 13225, NULL, NULL, 4, '/product/reassort.php?type=0', '', 'Stocks', 'products', 1, '$user->rights->produit->lire && $user->rights->stock->lire', '$conf->product->enabled', 2, '2016-02-07 20:06:23'),
(13229, 'auguria', 1, '', 'left', 'products', '', 13225, NULL, NULL, 6, '/product/popuprop.php?leftmenu=stats&amp;type=0', '', 'Statistics', 'main', 1, '$user->rights->produit->lire', '$conf->propal->enabled', 2, '2016-02-07 20:06:23'),
(13230, 'auguria', 1, '', 'left', 'products', '', 13225, NULL, NULL, 5, '/product/reassortlot.php?type=0', '', 'StocksByLotSerial', 'products', 1, '$user->rights->produit->lire && $user->rights->stock->lire', '$conf->productbatch->enabled', 2, '2016-02-07 20:06:23'),
(13325, 'auguria', 1, '', 'left', 'products', 'service', 10428, NULL, NULL, 1, '/product/index.php?leftmenu=service&amp;type=1', '', 'Services', 'products', 0, '$user->rights->service->lire', '$conf->service->enabled', 2, '2016-02-07 20:06:23'),
(13326, 'auguria', 1, '', 'left', 'products', '', 13325, NULL, NULL, 0, '/product/card.php?leftmenu=service&amp;action=create&amp;type=1', '', 'NewService', 'products', 1, '$user->rights->service->creer', '$conf->service->enabled', 2, '2016-02-07 20:06:23'),
(13327, 'auguria', 1, '', 'left', 'products', '', 13325, NULL, NULL, 1, '/product/list.php?leftmenu=service&amp;type=1', '', 'List', 'products', 1, '$user->rights->service->lire', '$conf->service->enabled', 2, '2016-02-07 20:06:23'),
(13328, 'auguria', 1, '', 'left', 'products', '', 13325, NULL, NULL, 5, '/product/popuprop.php?leftmenu=stats&amp;type=1', '', 'Statistics', 'main', 1, '$user->rights->service->lire', '$conf->propal->enabled', 2, '2016-02-07 20:06:23'),
(13525, 'auguria', 1, '', 'left', 'products', 'stock', 10428, NULL, NULL, 3, '/product/stock/index.php?leftmenu=stock', '', 'Stock', 'stocks', 0, '$user->rights->stock->lire', '$conf->stock->enabled', 2, '2016-02-07 20:06:23'),
(13526, 'auguria', 1, '', 'left', 'products', '', 13525, NULL, NULL, 0, '/product/stock/card.php?action=create', '', 'MenuNewWarehouse', 'stocks', 1, '$user->rights->stock->creer', '$conf->stock->enabled', 2, '2016-02-07 20:06:23'),
(13527, 'auguria', 1, '', 'left', 'products', '', 13525, NULL, NULL, 1, '/product/stock/list.php', '', 'List', 'stocks', 1, '$user->rights->stock->lire', '$conf->stock->enabled', 2, '2016-02-07 20:06:23'),
(13529, 'auguria', 1, '', 'left', 'products', '', 13525, NULL, NULL, 3, '/product/stock/mouvement.php', '', 'Movements', 'stocks', 1, '$user->rights->stock->mouvement->lire', '$conf->stock->enabled', 2, '2016-02-07 20:06:23'),
(13530, 'auguria', 1, '', 'left', 'products', '', 13525, NULL, NULL, 4, '/product/stock/replenish.php', '', 'Replenishments', 'stocks', 1, '$user->rights->stock->mouvement->creer && $user->rights->fournisseur->lire', '$conf->stock->enabled && $conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(13531, 'auguria', 1, '', 'left', 'products', '', 13525, NULL, NULL, 5, '/product/stock/massstockmove.php', '', 'StockTransfer', 'stocks', 1, '$user->rights->stock->mouvement->creer', '$conf->stock->enabled', 2, '2016-02-07 20:06:23'),
(13625, 'auguria', 1, '', 'left', 'products', 'cat', 10428, NULL, NULL, 4, '/categories/index.php?leftmenu=cat&amp;type=0', '', 'Categories', 'categories', 0, '$user->rights->categorie->lire', '$conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(13626, 'auguria', 1, '', 'left', 'products', '', 13625, NULL, NULL, 0, '/categories/card.php?action=create&amp;type=0', '', 'NewCategory', 'categories', 1, '$user->rights->categorie->creer', '$conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(14025, 'auguria', 1, '', 'left', 'project', 'projects', 10432, NULL, NULL, 0, '/projet/index.php?leftmenu=projects', '', 'Projects', 'projects', 0, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14026, 'auguria', 1, '', 'left', 'project', '', 14025, NULL, NULL, 1, '/projet/card.php?leftmenu=projects&amp;action=create', '', 'NewProject', 'projects', 1, '$user->rights->projet->creer', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14027, 'auguria', 1, '', 'left', 'project', '', 14025, NULL, NULL, 2, '/projet/list.php?leftmenu=projects', '', 'List', 'projects', 1, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14035, 'auguria', 1, '', 'left', 'project', 'myprojects', 10432, NULL, NULL, 0, '/projet/index.php?leftmenu=projects&amp;mode=mine', '', 'MyProjects', 'projects', 0, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14036, 'auguria', 1, '', 'left', 'project', '', 14035, NULL, NULL, 1, '/projet/card.php?leftmenu=projects&amp;action=create&amp;mode=mine', '', 'NewProject', 'projects', 1, '$user->rights->projet->creer', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14037, 'auguria', 1, '', 'left', 'project', '', 14035, NULL, NULL, 2, '/projet/list.php?leftmenu=projects&amp;mode=mine', '', 'List', 'projects', 1, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14125, 'auguria', 1, '', 'left', 'project', '', 10432, NULL, NULL, 0, '/projet/activity/index.php?leftmenu=projects', '', 'Activities', 'projects', 0, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14126, 'auguria', 1, '', 'left', 'project', '', 14125, NULL, NULL, 1, '/projet/tasks.php?leftmenu=projects&amp;action=create', '', 'NewTask', 'projects', 1, '$user->rights->projet->creer', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14127, 'auguria', 1, '', 'left', 'project', '', 14125, NULL, NULL, 2, '/projet/tasks/index.php?leftmenu=projects', '', 'List', 'projects', 1, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14128, 'auguria', 1, '', 'left', 'project', '', 14125, NULL, NULL, 3, '/projet/activity/perweek.php?leftmenu=projects', '', 'NewTimeSpent', 'projects', 1, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14225, 'auguria', 1, '', 'left', 'project', '', 10432, NULL, NULL, 0, '/projet/activity/index.php?leftmenu=projects&amp;mode=mine', '', 'MyActivities', 'projects', 0, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14226, 'auguria', 1, '', 'left', 'project', '', 14225, NULL, NULL, 1, '/projet/tasks.php?leftmenu=projects&amp;action=create&amp;mode=mine', '', 'NewTask', 'projects', 1, '$user->rights->projet->creer', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14227, 'auguria', 1, '', 'left', 'project', '', 14225, NULL, NULL, 2, '/projet/tasks/index.php?leftmenu=projects&amp;mode=mine', '', 'List', 'projects', 1, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14228, 'auguria', 1, '', 'left', 'project', '', 14225, NULL, NULL, 3, '/projet/activity/perweek.php?leftmenu=projects&amp;mode=mine', '', 'NewTimeSpent', 'projects', 1, '$user->rights->projet->lire', '$conf->projet->enabled', 2, '2016-02-07 20:06:23'),
(14325, 'auguria', 1, '', 'left', 'tools', 'mailing', 10433, NULL, NULL, 0, '/comm/mailing/index.php?leftmenu=mailing', '', 'EMailings', 'mails', 0, '$user->rights->mailing->lire', '$conf->mailing->enabled', 0, '2016-02-07 20:06:23'),
(14326, 'auguria', 1, '', 'left', 'tools', '', 14325, NULL, NULL, 0, '/comm/mailing/card.php?leftmenu=mailing&amp;action=create', '', 'NewMailing', 'mails', 1, '$user->rights->mailing->creer', '$conf->mailing->enabled', 0, '2016-02-07 20:06:23'),
(14327, 'auguria', 1, '', 'left', 'tools', '', 14325, NULL, NULL, 1, '/comm/mailing/list.php?leftmenu=mailing', '', 'List', 'mails', 1, '$user->rights->mailing->lire', '$conf->mailing->enabled', 0, '2016-02-07 20:06:23'),
(14525, 'auguria', 1, '', 'left', 'tools', 'export', 10433, NULL, NULL, 2, '/exports/index.php?leftmenu=export', '', 'FormatedExport', 'exports', 0, '$user->rights->export->lire', '$conf->export->enabled', 2, '2016-02-07 20:06:23'),
(14526, 'auguria', 1, '', 'left', 'tools', '', 14525, NULL, NULL, 0, '/exports/export.php?leftmenu=export', '', 'NewExport', 'exports', 1, '$user->rights->export->creer', '$conf->export->enabled', 2, '2016-02-07 20:06:23'),
(14555, 'auguria', 1, '', 'left', 'tools', 'import', 10433, NULL, NULL, 2, '/imports/index.php?leftmenu=import', '', 'FormatedImport', 'exports', 0, '$user->rights->import->run', '$conf->import->enabled', 2, '2016-02-07 20:06:23'),
(14556, 'auguria', 1, '', 'left', 'tools', '', 14555, NULL, NULL, 0, '/imports/import.php?leftmenu=import', '', 'NewImport', 'exports', 1, '$user->rights->import->run', '$conf->import->enabled', 2, '2016-02-07 20:06:23'),
(14625, 'auguria', 1, '', 'left', 'members', 'members', 10438, NULL, NULL, 0, '/adherents/index.php?leftmenu=members&amp;mainmenu=members', '', 'Members', 'members', 0, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14626, 'auguria', 1, '', 'left', 'members', '', 14625, NULL, NULL, 0, '/adherents/card.php?leftmenu=members&amp;action=create', '', 'NewMember', 'members', 1, '$user->rights->adherent->creer', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14627, 'auguria', 1, '', 'left', 'members', '', 14625, NULL, NULL, 1, '/adherents/list.php', '', 'List', 'members', 1, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14628, 'auguria', 1, '', 'left', 'members', '', 14627, NULL, NULL, 2, '/adherents/list.php?leftmenu=members&amp;statut=-1', '', 'MenuMembersToValidate', 'members', 2, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14629, 'auguria', 1, '', 'left', 'members', '', 14627, NULL, NULL, 3, '/adherents/list.php?leftmenu=members&amp;statut=1', '', 'MenuMembersValidated', 'members', 2, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14630, 'auguria', 1, '', 'left', 'members', '', 14627, NULL, NULL, 4, '/adherents/list.php?leftmenu=members&amp;statut=1&amp;filter=outofdate', '', 'MenuMembersNotUpToDate', 'members', 2, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14631, 'auguria', 1, '', 'left', 'members', '', 14627, NULL, NULL, 5, '/adherents/list.php?leftmenu=members&amp;statut=1&amp;filter=uptodate', '', 'MenuMembersUpToDate', 'members', 2, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14632, 'auguria', 1, '', 'left', 'members', '', 14627, NULL, NULL, 6, '/adherents/list.php?leftmenu=members&amp;statut=0', '', 'MenuMembersResiliated', 'members', 2, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14633, 'auguria', 1, '', 'left', 'members', '', 14625, NULL, NULL, 7, '/adherents/stats/geo.php?leftmenu=members&amp;mode=memberbycountry', '', 'MenuMembersStats', 'members', 1, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14725, 'auguria', 1, '', 'left', 'members', '', 10438, NULL, NULL, 1, '/adherents/index.php?leftmenu=members&amp;mainmenu=members', '', 'Subscriptions', 'compta', 0, '$user->rights->adherent->cotisation->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14726, 'auguria', 1, '', 'left', 'members', '', 14725, NULL, NULL, 0, '/adherents/list.php?statut=-1&amp;leftmenu=accountancy&amp;mainmenu=members', '', 'NewSubscription', 'compta', 1, '$user->rights->adherent->cotisation->creer', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14727, 'auguria', 1, '', 'left', 'members', '', 14725, NULL, NULL, 1, '/adherents/cotisations.php?leftmenu=members', '', 'List', 'compta', 1, '$user->rights->adherent->cotisation->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14728, 'auguria', 1, '', 'left', 'members', '', 14725, NULL, NULL, 7, '/adherents/stats/index.php?leftmenu=members', '', 'MenuMembersStats', 'members', 1, '$user->rights->adherent->lire', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14925, 'auguria', 1, '', 'left', 'members', 'export', 10438, NULL, NULL, 3, '/adherents/index.php?leftmenu=export&amp;mainmenu=members', '', 'Exports', 'members', 0, '$user->rights->adherent->export', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14926, 'auguria', 1, '', 'left', 'members', '', 14925, NULL, NULL, 0, '/exports/index.php?leftmenu=export', '', 'Datas', 'members', 1, '$user->rights->adherent->export', '$conf->adherent->enabled && $conf->export->enabled', 2, '2016-02-07 20:06:23'),
(14927, 'auguria', 1, '', 'left', 'members', '', 14925, NULL, NULL, 1, '/adherents/htpasswd.php?leftmenu=export', '', 'Filehtpasswd', 'members', 1, '$user->rights->adherent->export', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(14928, 'auguria', 1, '', 'left', 'members', '', 14925, NULL, NULL, 2, '/adherents/cartes/carte.php?leftmenu=export', '', 'MembersCards', 'members', 1, '$user->rights->adherent->export', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(15125, 'auguria', 1, '', 'left', 'members', 'setup', 10438, NULL, NULL, 5, '/adherents/type.php?leftmenu=setup&amp;mainmenu=members', '', 'MembersTypes', 'members', 0, '$user->rights->adherent->configurer', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(15126, 'auguria', 1, '', 'left', 'members', '', 15125, NULL, NULL, 0, '/adherents/type.php?leftmenu=setup&amp;mainmenu=members&amp;action=create', '', 'New', 'members', 1, '$user->rights->adherent->configurer', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(15127, 'auguria', 1, '', 'left', 'members', '', 15125, NULL, NULL, 1, '/adherents/type.php?leftmenu=setup&amp;mainmenu=members', '', 'List', 'members', 1, '$user->rights->adherent->configurer', '$conf->adherent->enabled', 2, '2016-02-07 20:06:23'),
(15425, 'auguria', 1, '', 'left', 'hrm', 'hrm', 10440, NULL, NULL, 1, '/holiday/list.php?&leftmenu=hrm', '', 'CPTitreMenu', 'holiday', 0, '$user->rights->holiday->read', '$conf->holiday->enabled', 0, '2016-02-07 20:06:23'),
(15426, 'auguria', 1, '', 'left', 'hrm', '', 15425, NULL, NULL, 1, '/holiday/card.php?&action=request', '', 'MenuAddCP', 'holiday', 1, '$user->rights->holiday->write', '$conf->holiday->enabled', 0, '2016-02-07 20:06:23'),
(15427, 'auguria', 1, '', 'left', 'hrm', '', 15425, NULL, NULL, 1, '/holiday/list.php?&leftmenu=hrm', '', 'List', 'holiday', 1, '$user->rights->holiday->read', '$conf->holiday->enabled', 0, '2016-02-07 20:06:23'),
(15428, 'auguria', 1, '', 'left', 'hrm', '', 15427, NULL, NULL, 1, '/holiday/list.php?select_statut=2&leftmenu=hrm', '', 'ListToApprove', 'trips', 2, '$user->rights->holiday->read', '$conf->holiday->enabled', 0, '2016-02-07 20:06:23'),
(15429, 'auguria', 1, '', 'left', 'hrm', '', 15425, NULL, NULL, 2, '/holiday/define_holiday.php?&action=request', '', 'MenuConfCP', 'holiday', 1, '$user->rights->holiday->define_holiday', '$conf->holiday->enabled', 0, '2016-02-07 20:06:23'),
(15430, 'auguria', 1, '', 'left', 'hrm', '', 15425, NULL, NULL, 3, '/holiday/view_log.php?&action=request', '', 'MenuLogCP', 'holiday', 1, '$user->rights->holiday->define_holiday', '$conf->holiday->enabled', 0, '2016-02-07 20:06:23'),
(15431, 'auguria', 1, '', 'left', 'hrm', '', 15425, NULL, NULL, 4, '/holiday/month_report.php?&action=request', '', 'MenuReportMonth', 'holiday', 1, '$user->rights->holiday->define_holiday', '$conf->holiday->enabled', 0, '2016-02-07 20:06:23'),
(15525, 'auguria', 1, '', 'left', 'commercial', 'orders_suppliers', 10430, NULL, NULL, 6, '/fourn/commande/index.php?leftmenu=orders_suppliers', '', 'SuppliersOrders', 'orders', 0, '$user->rights->fournisseur->commande->lire', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(15526, 'auguria', 1, '', 'left', 'commercial', '', 15525, NULL, NULL, 0, '/fourn/commande/card.php?action=create&amp;leftmenu=orders_suppliers', '', 'NewOrder', 'orders', 1, '$user->rights->fournisseur->commande->creer', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(15527, 'auguria', 1, '', 'left', 'commercial', '', 15525, NULL, NULL, 1, '/fourn/commande/list.php?leftmenu=orders_suppliers&amp;viewstatut=0', '', 'List', 'orders', 1, '$user->rights->fournisseur->commande->lire', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(15533, 'auguria', 1, '', 'left', 'commercial', '', 15525, NULL, NULL, 7, '/commande/stats/index.php?leftmenu=orders_suppliers&amp;mode=supplier', '', 'Statistics', 'orders', 1, '$user->rights->fournisseur->commande->lire', '$conf->fournisseur->enabled', 2, '2016-02-07 20:06:23'),
(15625, 'auguria', 1, '', 'left', 'members', 'cat', 10438, NULL, NULL, 3, '/categories/index.php?leftmenu=cat&amp;type=3', '', 'MembersCategoriesShort', 'categories', 0, '$user->rights->categorie->lire', '$conf->adherent->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23'),
(15626, 'auguria', 1, '', 'left', 'members', '', 15625, NULL, NULL, 0, '/categories/card.php?action=create&amp;type=3', '', 'NewCategory', 'categories', 1, '$user->rights->categorie->creer', '$conf->adherent->enabled && $conf->categorie->enabled', 2, '2016-02-07 20:06:23');

-- --------------------------------------------------------

--
-- Structure de la table `llx_notify`
--

CREATE TABLE IF NOT EXISTS `llx_notify` (
  `rowid` int(11) NOT NULL,
  `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,
  `type` varchar(16) DEFAULT 'email',
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `objet_type` varchar(24) NOT NULL,
  `objet_id` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_notify_def`
--

CREATE TABLE IF NOT EXISTS `llx_notify_def` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_opensurvey_comments`
--

CREATE TABLE IF NOT EXISTS `llx_opensurvey_comments` (
  `id_comment` int(10) unsigned NOT NULL,
  `id_sondage` char(16) NOT NULL,
  `comment` text NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `usercomment` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_opensurvey_sondage`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_opensurvey_user_studs`
--

CREATE TABLE IF NOT EXISTS `llx_opensurvey_user_studs` (
  `id_users` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_order_merged_pdf`
--

CREATE TABLE IF NOT EXISTS `llx_order_merged_pdf` (
  `rowid` int(11) NOT NULL,
  `fk_commande` int(11) NOT NULL,
  `file_name` varchar(200) NOT 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_paiement`
--

CREATE TABLE IF NOT EXISTS `llx_paiement` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_paiement_facture`
--

CREATE TABLE IF NOT EXISTS `llx_paiement_facture` (
  `rowid` int(11) NOT NULL,
  `fk_paiement` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_paiementcharge`
--

CREATE TABLE IF NOT EXISTS `llx_paiementcharge` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_paiementfourn`
--

CREATE TABLE IF NOT EXISTS `llx_paiementfourn` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_paiementfourn_facturefourn`
--

CREATE TABLE IF NOT EXISTS `llx_paiementfourn_facturefourn` (
  `rowid` int(11) NOT NULL,
  `fk_paiementfourn` int(11) DEFAULT NULL,
  `fk_facturefourn` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT '0.00000000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_payment_donation`
--

CREATE TABLE IF NOT EXISTS `llx_payment_donation` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_payment_expensereport`
--

CREATE TABLE IF NOT EXISTS `llx_payment_expensereport` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_payment_loan`
--

CREATE TABLE IF NOT EXISTS `llx_payment_loan` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_payment_salary`
--

CREATE TABLE IF NOT EXISTS `llx_payment_salary` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_prelevement_bons`
--

CREATE TABLE IF NOT EXISTS `llx_prelevement_bons` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_prelevement_facture`
--

CREATE TABLE IF NOT EXISTS `llx_prelevement_facture` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `fk_prelevement_lignes` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_prelevement_facture_demande`
--

CREATE TABLE IF NOT EXISTS `llx_prelevement_facture_demande` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_prelevement_lignes`
--

CREATE TABLE IF NOT EXISTS `llx_prelevement_lignes` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_prelevement_rejet`
--

CREATE TABLE IF NOT EXISTS `llx_prelevement_rejet` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_printer_ipp`
--

CREATE TABLE IF NOT EXISTS `llx_printer_ipp` (
  `rowid` int(11) NOT NULL,
  `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_uri` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT '1',
  `module` varchar(16) NOT NULL,
  `login` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_printing`
--

CREATE TABLE IF NOT EXISTS `llx_printing` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product`
--

CREATE TABLE IF NOT EXISTS `llx_product` (
  `rowid` int(11) NOT NULL,
  `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,
  `desiredstock` int(11) DEFAULT '0',
  `fk_price_expression` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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`, `desiredstock`, `fk_price_expression`, `fk_unit`) VALUES
(1, 'SE1410-001', 1, NULL, '2014-10-04 17:56:58', '2014-10-04 15:57:56', 0, 0, 'AMOA', 'Assistance à la conduite de projet', 'Assistance à la direction de projet du coté utilisateur', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, '', 0.000, 0, 0.000, 0.000, 1, NULL, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL),
(2, 'SE1410-002', 1, NULL, '2014-10-04 18:01:03', '2014-10-04 16:08:53', 0, 0, 'Direction de projet', '', '', '', 1, 650.00000000, 780.00000000, 580.00000000, 696.00000000, 'HT', 20.000, 0, 0.000, 0.000, 1, NULL, 1, 0, 0, 1, 'd', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL),
(3, 'SE1410-003', 1, NULL, '2014-10-04 18:10:34', '2014-10-04 16:11:33', 0, 0, 'Support technique', 'Support technique sur logiciel', '', '', NULL, 550.00000000, 660.00000000, 480.00000000, 576.00000000, 'HT', 20.000, 0, 0.000, 0.000, 1, NULL, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL),
(4, 'SE1601-004', 1, NULL, '2016-01-15 15:00:26', '2016-01-15 14:00:55', 0, 0, 'Support administratif', '', '', '', NULL, 280.00000000, 280.00000000, 0.00000000, 0.00000000, 'HT', 0.000, 0, 0.000, 0.000, 4, NULL, 1, 1, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_association`
--

CREATE TABLE IF NOT EXISTS `llx_product_association` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_batch`
--

CREATE TABLE IF NOT EXISTS `llx_product_batch` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_customer_price`
--

CREATE TABLE IF NOT EXISTS `llx_product_customer_price` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_customer_price_log`
--

CREATE TABLE IF NOT EXISTS `llx_product_customer_price_log` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_product_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_fournisseur_price`
--

CREATE TABLE IF NOT EXISTS `llx_product_fournisseur_price` (
  `rowid` int(11) NOT NULL,
  `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,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_supplier_price_expression` int(11) DEFAULT NULL,
  `delivery_time_days` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_fournisseur_price_log`
--

CREATE TABLE IF NOT EXISTS `llx_product_fournisseur_price_log` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_lang`
--

CREATE TABLE IF NOT EXISTS `llx_product_lang` (
  `rowid` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL DEFAULT '0',
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text,
  `note` text
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_product_lang`
--

INSERT INTO `llx_product_lang` (`rowid`, `fk_product`, `lang`, `label`, `description`, `note`) VALUES
(1, 4, 'fr_FR', 'Support administratif', '', '');

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_price`
--

CREATE TABLE IF NOT EXISTS `llx_product_price` (
  `rowid` int(11) NOT NULL,
  `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',
  `import_key` varchar(14) DEFAULT NULL,
  `fk_price_expression` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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`, `import_key`, `fk_price_expression`) VALUES
(1, 1, '2014-10-04 15:56:58', 1, '2014-10-04 17:56:58', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, '', 0.000, 0, 0.000, 0.000, 1, 1, 0, NULL, NULL),
(3, 1, '2014-10-04 16:08:31', 2, '2014-10-04 18:08:31', 1, 890.00000000, 1068.00000000, 650.00000000, 780.00000000, 'HT', 20.000, 0, 0.000, 0.000, 1, 1, 0, NULL, NULL),
(4, 1, '2014-10-04 16:08:53', 2, '2014-10-04 18:08:53', 2, 650.00000000, 780.00000000, 580.00000000, 696.00000000, 'HT', 20.000, 0, 0.000, 0.000, 1, 1, 0, NULL, NULL),
(6, 1, '2014-10-04 16:11:14', 3, '2014-10-04 18:11:13', 1, 650.00000000, 780.00000000, 550.00000000, 660.00000000, 'HT', 20.000, 0, 0.000, 0.000, 1, 1, 0, NULL, NULL),
(7, 1, '2014-10-04 16:11:33', 3, '2014-10-04 18:11:33', 2, 550.00000000, 660.00000000, 480.00000000, 576.00000000, 'HT', 20.000, 0, 0.000, 0.000, 1, 1, 0, NULL, NULL),
(8, 1, '2016-01-15 14:00:26', 4, '2016-01-15 15:00:26', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, '', 0.000, 0, 0.000, 0.000, 4, 1, 0, NULL, NULL),
(9, 1, '2016-01-15 14:00:55', 4, '2016-01-15 15:00:55', 1, 280.00000000, 280.00000000, 0.00000000, 0.00000000, 'HT', 0.000, 0, 0.000, 0.000, 4, 1, 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_price_by_qty`
--

CREATE TABLE IF NOT EXISTS `llx_product_price_by_qty` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_product_stock`
--

CREATE TABLE IF NOT EXISTS `llx_product_stock` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_projet`
--

CREATE TABLE IF NOT EXISTS `llx_projet` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `title` varchar(255) NOT NULL,
  `description` text,
  `fk_user_creat` int(11) NOT NULL,
  `public` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT '0',
  `fk_opp_status` int(11) DEFAULT NULL,
  `note_private` text,
  `note_public` text,
  `model_pdf` varchar(255) DEFAULT NULL,
  `budget_amount` double(24,8) DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `fk_user_close` int(11) DEFAULT NULL,
  `opp_amount` double(24,8) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_projet`
--

INSERT INTO `llx_projet` (`rowid`, `fk_soc`, `datec`, `tms`, `dateo`, `datee`, `ref`, `entity`, `title`, `description`, `fk_user_creat`, `public`, `fk_statut`, `fk_opp_status`, `note_private`, `note_public`, `model_pdf`, `budget_amount`, `date_close`, `fk_user_close`, `opp_amount`) VALUES
(1, 5, '2015-09-25', '2015-09-25 07:46:12', '2015-10-05', NULL, 'PJ1509-0001', 1, 'Assistance ADV/ADP', '', 4, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_projet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_projet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_projet_task`
--

CREATE TABLE IF NOT EXISTS `llx_projet_task` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_projet_task_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_projet_task_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_projet_task_time`
--

CREATE TABLE IF NOT EXISTS `llx_projet_task_time` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_propal`
--

CREATE TABLE IF NOT EXISTS `llx_propal` (
  `rowid` int(11) NOT NULL,
  `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,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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`, `import_key`, `extraparams`, `fk_delivery_address`, `fk_incoterms`, `location_incoterms`) VALUES
(1, 'DV1410-0001', 1, NULL, NULL, 'na', 1, NULL, '2015-12-04 10:59:18', '2014-10-04 18:34:46', '2014-10-04', '2014-10-19 12:00:00', '2015-12-04 11:59:18', NULL, 1, NULL, 3, NULL, 1, 0, NULL, NULL, 0, 4060.00000000, 812.00000000, 0.00000000, 0.00000000, 4872.00000000, NULL, NULL, 1, 2, '', '', 'azur', NULL, NULL, 4, 8, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_propal_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_propal_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `newline` text
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_propal_extrafields`
--

INSERT INTO `llx_propal_extrafields` (`rowid`, `tms`, `fk_object`, `import_key`, `newline`) VALUES
(1, '2014-10-04 16:34:46', 1, NULL, '0');

-- --------------------------------------------------------

--
-- Structure de la table `llx_propal_merge_pdf_product`
--

CREATE TABLE IF NOT EXISTS `llx_propal_merge_pdf_product` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_propal_merged_pdf`
--

CREATE TABLE IF NOT EXISTS `llx_propal_merged_pdf` (
  `rowid` int(11) NOT NULL,
  `fk_propal` int(11) NOT NULL,
  `file_name` varchar(200) NOT 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_propaldet`
--

CREATE TABLE IF NOT EXISTS `llx_propaldet` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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, 1, NULL, 'Assistance à la conduite de projet\r\nAssistance au cadrage du besoin et à l''installation de la solution ERP retenue', NULL, 20.000, 0.000, '0', 0.000, '0', 7, 0, 0, 580, 580.00000000, 4060.00000000, 812.00000000, 0.00000000, 0.00000000, 4872.00000000, 1, NULL, NULL, 0, 400.00000000, NULL, 0, 1, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_propaldet_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_propaldet_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_resource`
--

CREATE TABLE IF NOT EXISTS `llx_resource` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_rights_def`
--

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



-- --------------------------------------------------------

--
-- Structure de la table `llx_societe`
--

CREATE TABLE IF NOT EXISTS `llx_societe` (
  `rowid` int(11) NOT NULL,
  `nom` 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,
  `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,
  `name_alias` varchar(128) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_societe`
--

INSERT INTO `llx_societe` (`rowid`, `nom`, `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`, `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`, `name_alias`, `fk_incoterms`, `location_incoterms`) VALUES
(1, 'DG INNOVATIONS', 1, NULL, NULL, 0, NULL, '2014-10-04 16:22:29', '2014-10-04 18:22:03', 1, 'CL1410-0001', NULL, '411CL14100001', NULL, '75, rue Jules GUESDES', '69230', 'saint genis laval', 71, 1, '0478815519', NULL, 'www.dg-innovations.com', 'loanne@dg-innovations.com', NULL, 1, 4, 57, NULL, '803878362', '80387836200018', '', '', '', '', '', 25000, 1, NULL, NULL, NULL, 3, 0, NULL, NULL, 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'ORCHESTRA - PREMAMAN', 1, NULL, NULL, 0, NULL, '2016-01-29 14:52:33', '2015-08-18 18:32:06', 1, 'CL1508-0001', 'CF1508-0001', '411CL15080001', '401CF15080001', 'ZAC Saint Antoine\r\n200 avenue des Tamaris', '34130', 'SAINT AUNES', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '398471565', '39847156501990', '4771Z', '', '', '', '', 0, 0, NULL, NULL, NULL, 1, 0, NULL, NULL, 0, 0, 0, 4, 4, 0, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL),
(3, 'EUROTAB GROUP', 1, NULL, NULL, 0, NULL, '2015-08-25 12:46:09', '2015-08-25 14:46:09', 1, 'CL1508-0002', NULL, '411CL15080002', NULL, 'Zac des Peyrardes', '42170', 'Saint Just Saint Rambert', 0, 1, '0477021212', NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', 0, 0, NULL, NULL, NULL, 2, 0, NULL, NULL, 0, 0, 0, 4, 4, 0, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, 'HAULOTTE GROUP', 1, NULL, NULL, 0, NULL, '2015-08-25 12:57:24', '2015-08-25 14:50:15', 1, 'CL1508-0003', NULL, '411CL15080003', NULL, 'La Péronnière, 27 Rue d''Onzion', '42152', 'L''HORME', 0, 1, '0477292424', NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', 0, 0, NULL, NULL, NULL, 2, 0, NULL, NULL, 0, 0, 0, 4, 4, 0, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(5, 'NOVAXIOM GROUP', 1, NULL, NULL, 0, NULL, '2016-01-29 13:11:42', '2015-08-25 14:53:19', 1, 'CL1508-0004', NULL, '411CL15080004', NULL, '23 Rue Jules Vallès', '69100', 'VILLEURBANNE', 0, 1, '0472838870', NULL, NULL, NULL, NULL, 4, 3, 57, NULL, '420824971', '42082497100014', '7112B', '', '', '', '', 362000, 0, NULL, NULL, NULL, 1, 0, NULL, NULL, 0, 0, 0, 4, 4, 0, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, 'fr_FR', NULL, NULL, NULL, NULL, NULL, '', 0, NULL),
(6, 'SPIE SUD EST', 1, NULL, NULL, 0, NULL, '2015-08-25 12:54:29', '2015-08-25 14:54:29', 1, 'CL1508-0005', NULL, '411CL15080005', NULL, '4 Avenue Jean Jaurès', '69320', 'FEYZIN', 0, 1, '0472211200', NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', 0, 0, NULL, NULL, NULL, 2, 0, NULL, NULL, 0, 0, 0, 4, 4, 0, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(7, 'SPC CONSULTANTS', 1, NULL, NULL, 0, NULL, '2015-08-25 12:55:48', '2015-08-25 14:55:48', 1, 'CL1508-0006', NULL, '411CL15080006', NULL, '204 Route de Vourles', '69230', 'Saint-Genis-Laval', 0, 1, '0472671234', NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', 0, 0, NULL, NULL, NULL, 2, 0, NULL, NULL, 0, 0, 0, 4, 4, 0, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_address`
--

CREATE TABLE IF NOT EXISTS `llx_societe_address` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_commerciaux`
--

CREATE TABLE IF NOT EXISTS `llx_societe_commerciaux` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_societe_commerciaux`
--

INSERT INTO `llx_societe_commerciaux` (`rowid`, `fk_soc`, `fk_user`) VALUES
(1, 1, 3),
(2, 2, 4),
(3, 3, 4),
(4, 4, 4),
(5, 5, 4),
(6, 6, 4),
(7, 7, 4);

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_societe_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_log`
--

CREATE TABLE IF NOT EXISTS `llx_societe_log` (
  `id` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_prices`
--

CREATE TABLE IF NOT EXISTS `llx_societe_prices` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_remise`
--

CREATE TABLE IF NOT EXISTS `llx_societe_remise` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_remise_except`
--

CREATE TABLE IF NOT EXISTS `llx_societe_remise_except` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_societe_rib`
--

CREATE TABLE IF NOT EXISTS `llx_societe_rib` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_socpeople`
--

CREATE TABLE IF NOT EXISTS `llx_socpeople` (
  `rowid` int(11) NOT NULL,
  `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'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Contenu de la 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, '2014-10-04 18:27:23', '2014-10-04 16:27:23', 1, 1, NULL, 'MR', 'PERRIER', 'Lionnel', '75, rue Jules GUESDES', '69230', 'saint genis laval', 71, 1, NULL, 'Directeur Commercial', '', '', '0658161333', '', 'lperrier@dg-innovations.com', '', '', 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1),
(2, '2014-10-04 18:31:34', '2014-10-04 16:31:34', 1, 1, NULL, 'MLE', 'POIZAT', 'Loanne', '75, rue Jules GUESDES', '69230', 'saint genis laval', 71, 1, NULL, 'Responsable marketing', '', '', '', '', 'loanne@dg-innovations.com', '', '', 0, 0, 1, 1, '', '', NULL, NULL, NULL, 1);

-- --------------------------------------------------------

--
-- Structure de la table `llx_socpeople_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_socpeople_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_stock_mouvement`
--

CREATE TABLE IF NOT EXISTS `llx_stock_mouvement` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `datem` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` 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,
  `fk_origin` int(11) DEFAULT NULL,
  `origintype` varchar(32) DEFAULT NULL,
  `inventorycode` varchar(128) DEFAULT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_tva`
--

CREATE TABLE IF NOT EXISTS `llx_tva` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_ultimatepdf`
--

CREATE TABLE IF NOT EXISTS `llx_ultimatepdf` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `label` varchar(255) NOT NULL,
  `description` text,
  `datec` datetime DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `options` text,
  `active` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_ultimatepdf`
--

INSERT INTO `llx_ultimatepdf` (`rowid`, `entity`, `tms`, `label`, `description`, `datec`, `fk_user_creat`, `options`, `active`) VALUES
(1, 1, '2014-10-02 15:46:10', 'Mod&egrave;le ma&icirc;tre', 'C&#039;est le mod&egrave;le par d&eacute;faut', '2014-10-02 17:46:10', 1, '{"bgcolor":"aad4ff","bordercolor":"003f7f","textcolor":"191919","dashdotted":"8, 2","withref":"no","withoutvat":"no"}', 1);

-- --------------------------------------------------------

--
-- Structure de la table `llx_user_alert`
--

CREATE TABLE IF NOT EXISTS `llx_user_alert` (
  `rowid` int(11) NOT NULL,
  `type` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_user_clicktodial`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_user_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_user_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_user_param`
--

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

-- --------------------------------------------------------

--
-- Structure de la table `llx_user_rights`
--

CREATE TABLE IF NOT EXISTS `llx_user_rights` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=1252 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_user_rights`
--

INSERT INTO `llx_user_rights` (`rowid`, `fk_user`, `fk_id`) VALUES
(1108, 1, 11),
(1095, 1, 12),
(1098, 1, 13),
(1100, 1, 14),
(1102, 1, 15),
(1105, 1, 16),
(1109, 1, 19),
(276, 1, 21),
(268, 1, 22),
(270, 1, 24),
(271, 1, 25),
(273, 1, 26),
(275, 1, 27),
(277, 1, 28),
(298, 1, 31),
(295, 1, 32),
(297, 1, 34),
(299, 1, 38),
(253, 1, 41),
(250, 1, 42),
(252, 1, 44),
(254, 1, 45),
(111, 1, 61),
(108, 1, 62),
(110, 1, 64),
(112, 1, 67),
(113, 1, 68),
(1058, 1, 81),
(1045, 1, 82),
(1048, 1, 84),
(1050, 1, 86),
(1053, 1, 87),
(1056, 1, 88),
(1059, 1, 89),
(184, 1, 91),
(181, 1, 92),
(183, 1, 93),
(185, 1, 94),
(134, 1, 95),
(135, 1, 96),
(137, 1, 97),
(138, 1, 98),
(177, 1, 111),
(168, 1, 112),
(170, 1, 113),
(172, 1, 114),
(174, 1, 115),
(176, 1, 116),
(178, 1, 117),
(1174, 1, 121),
(1167, 1, 122),
(1171, 1, 125),
(1175, 1, 126),
(258, 1, 141),
(257, 1, 142),
(259, 1, 144),
(82, 1, 161),
(77, 1, 162),
(79, 1, 163),
(81, 1, 164),
(83, 1, 165),
(1078, 1, 171),
(1067, 1, 172),
(1071, 1, 173),
(1075, 1, 174),
(1079, 1, 178),
(303, 1, 241),
(302, 1, 242),
(304, 1, 243),
(1248, 1, 251),
(1210, 1, 252),
(1213, 1, 253),
(1216, 1, 254),
(1219, 1, 255),
(1223, 1, 256),
(1178, 1, 262),
(1190, 1, 281),
(1183, 1, 282),
(1187, 1, 283),
(1191, 1, 286),
(1226, 1, 341),
(1228, 1, 342),
(1230, 1, 343),
(1232, 1, 344),
(1244, 1, 351),
(1237, 1, 352),
(1241, 1, 353),
(1245, 1, 354),
(1249, 1, 358),
(191, 1, 510),
(188, 1, 512),
(190, 1, 514),
(192, 1, 517),
(1204, 1, 531),
(1197, 1, 532),
(1201, 1, 534),
(1205, 1, 538),
(1114, 1, 1181),
(1160, 1, 1182),
(1119, 1, 1183),
(1122, 1, 1184),
(1125, 1, 1185),
(1129, 1, 1186),
(1133, 1, 1187),
(1139, 1, 1188),
(1136, 1, 1189),
(261, 1, 1201),
(262, 1, 1202),
(1156, 1, 1231),
(1145, 1, 1232),
(1148, 1, 1233),
(1151, 1, 1234),
(1154, 1, 1235),
(1157, 1, 1236),
(1161, 1, 1237),
(263, 1, 1251),
(1112, 1, 1321),
(1062, 1, 1421),
(1088, 1, 2501),
(1085, 1, 2503),
(1089, 1, 2515),
(264, 1, 59001),
(265, 1, 59002),
(828, 1, 63001),
(821, 1, 63002),
(825, 1, 63003),
(829, 1, 63004),
(365, 1, 300101),
(366, 1, 300102),
(305, 2, 11),
(306, 2, 21),
(307, 2, 31),
(308, 2, 41),
(309, 2, 61),
(310, 2, 81),
(311, 2, 91),
(312, 2, 95),
(313, 2, 97),
(314, 2, 111),
(315, 2, 121),
(316, 2, 161),
(317, 2, 171),
(318, 2, 241),
(319, 2, 262),
(320, 2, 281),
(321, 2, 341),
(322, 2, 342),
(323, 2, 343),
(324, 2, 344),
(325, 2, 531),
(326, 2, 1181),
(327, 2, 1182),
(328, 2, 1201),
(329, 2, 1231),
(330, 2, 2501),
(331, 2, 2503),
(332, 2, 2515),
(333, 2, 59001),
(1110, 3, 11),
(1097, 3, 12),
(1099, 3, 13),
(1101, 3, 14),
(1103, 3, 15),
(1107, 3, 16),
(1111, 3, 19),
(335, 3, 21),
(336, 3, 31),
(337, 3, 41),
(338, 3, 61),
(1060, 3, 81),
(1047, 3, 82),
(1049, 3, 84),
(1051, 3, 86),
(1055, 3, 87),
(1057, 3, 88),
(1061, 3, 89),
(340, 3, 91),
(341, 3, 95),
(342, 3, 97),
(343, 3, 111),
(1176, 3, 121),
(1169, 3, 122),
(1173, 3, 125),
(1177, 3, 126),
(345, 3, 161),
(1080, 3, 171),
(1069, 3, 172),
(1073, 3, 173),
(1077, 3, 174),
(1081, 3, 178),
(347, 3, 241),
(1250, 3, 251),
(1211, 3, 252),
(1215, 3, 253),
(1217, 3, 254),
(1221, 3, 255),
(1225, 3, 256),
(1179, 3, 262),
(1192, 3, 281),
(1185, 3, 282),
(1189, 3, 283),
(1193, 3, 286),
(1227, 3, 341),
(1229, 3, 342),
(1231, 3, 343),
(1233, 3, 344),
(1246, 3, 351),
(1239, 3, 352),
(1243, 3, 353),
(1247, 3, 354),
(1251, 3, 358),
(1206, 3, 531),
(1199, 3, 532),
(1203, 3, 534),
(1207, 3, 538),
(1115, 3, 1181),
(1162, 3, 1182),
(1121, 3, 1183),
(1123, 3, 1184),
(1127, 3, 1185),
(1131, 3, 1186),
(1135, 3, 1187),
(1141, 3, 1188),
(1137, 3, 1189),
(357, 3, 1201),
(1158, 3, 1231),
(1147, 3, 1232),
(1149, 3, 1233),
(1153, 3, 1234),
(1155, 3, 1235),
(1159, 3, 1236),
(1163, 3, 1237),
(1113, 3, 1321),
(1063, 3, 1421),
(1090, 3, 2501),
(1087, 3, 2503),
(1091, 3, 2515),
(362, 3, 59001),
(830, 3, 63001),
(823, 3, 63002),
(827, 3, 63003),
(831, 3, 63004),
(367, 3, 300101),
(368, 3, 300102),
(561, 4, 11),
(562, 4, 21),
(563, 4, 31),
(564, 4, 41),
(565, 4, 61),
(594, 4, 81),
(595, 4, 82),
(596, 4, 84),
(597, 4, 86),
(598, 4, 87),
(599, 4, 88),
(600, 4, 89),
(567, 4, 91),
(568, 4, 95),
(569, 4, 97),
(570, 4, 111),
(571, 4, 121),
(602, 4, 161),
(603, 4, 162),
(604, 4, 163),
(605, 4, 164),
(606, 4, 165),
(607, 4, 167),
(573, 4, 171),
(591, 4, 241),
(592, 4, 242),
(593, 4, 243),
(575, 4, 262),
(576, 4, 281),
(577, 4, 341),
(578, 4, 342),
(579, 4, 343),
(580, 4, 344),
(581, 4, 531),
(582, 4, 1181),
(583, 4, 1182),
(584, 4, 1201),
(585, 4, 1231),
(601, 4, 1421),
(586, 4, 2501),
(587, 4, 2503),
(588, 4, 2515),
(589, 4, 59001),
(590, 4, 300101);

-- --------------------------------------------------------

--
-- Structure de la table `llx_usergroup`
--

CREATE TABLE IF NOT EXISTS `llx_usergroup` (
  `rowid` int(11) NOT NULL,
  `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
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_usergroup`
--

INSERT INTO `llx_usergroup` (`rowid`, `nom`, `entity`, `datec`, `tms`, `note`) VALUES
(1, 'Gestionnaire', 1, '2014-10-01 18:14:45', '2014-10-01 16:14:45', ''),
(2, 'Administrateur', 1, '2015-08-18 17:58:24', '2015-08-18 15:58:24', '');

-- --------------------------------------------------------

--
-- Structure de la table `llx_usergroup_extrafields`
--

CREATE TABLE IF NOT EXISTS `llx_usergroup_extrafields` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Structure de la table `llx_usergroup_rights`
--

CREATE TABLE IF NOT EXISTS `llx_usergroup_rights` (
  `rowid` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=250 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_usergroup_rights`
--

INSERT INTO `llx_usergroup_rights` (`rowid`, `fk_usergroup`, `fk_id`) VALUES
(37, 1, 11),
(38, 1, 12),
(39, 1, 13),
(40, 1, 14),
(41, 1, 15),
(42, 1, 16),
(43, 1, 19),
(73, 1, 21),
(74, 1, 22),
(75, 1, 24),
(76, 1, 25),
(77, 1, 26),
(78, 1, 27),
(79, 1, 28),
(80, 1, 31),
(81, 1, 32),
(82, 1, 34),
(83, 1, 38),
(66, 1, 41),
(67, 1, 42),
(68, 1, 44),
(69, 1, 45),
(45, 1, 61),
(46, 1, 62),
(47, 1, 64),
(48, 1, 67),
(49, 1, 68),
(11, 1, 81),
(12, 1, 82),
(13, 1, 84),
(14, 1, 86),
(15, 1, 87),
(16, 1, 88),
(17, 1, 89),
(103, 1, 91),
(104, 1, 92),
(105, 1, 93),
(106, 1, 94),
(19, 1, 95),
(20, 1, 96),
(21, 1, 97),
(22, 1, 98),
(1, 1, 111),
(2, 1, 112),
(3, 1, 113),
(4, 1, 114),
(5, 1, 115),
(6, 1, 116),
(7, 1, 117),
(94, 1, 121),
(95, 1, 122),
(96, 1, 125),
(97, 1, 126),
(70, 1, 141),
(71, 1, 142),
(72, 1, 144),
(23, 1, 161),
(24, 1, 162),
(25, 1, 163),
(26, 1, 164),
(27, 1, 165),
(28, 1, 171),
(29, 1, 172),
(30, 1, 173),
(31, 1, 178),
(8, 1, 241),
(9, 1, 242),
(10, 1, 243),
(107, 1, 251),
(108, 1, 252),
(109, 1, 253),
(110, 1, 254),
(111, 1, 255),
(112, 1, 256),
(98, 1, 262),
(99, 1, 281),
(100, 1, 282),
(101, 1, 283),
(102, 1, 286),
(113, 1, 341),
(114, 1, 342),
(115, 1, 343),
(116, 1, 344),
(117, 1, 351),
(118, 1, 352),
(119, 1, 353),
(120, 1, 354),
(121, 1, 358),
(86, 1, 510),
(87, 1, 512),
(88, 1, 514),
(89, 1, 517),
(90, 1, 531),
(91, 1, 532),
(92, 1, 534),
(93, 1, 538),
(50, 1, 1181),
(51, 1, 1182),
(52, 1, 1183),
(53, 1, 1184),
(54, 1, 1185),
(55, 1, 1186),
(56, 1, 1187),
(57, 1, 1188),
(35, 1, 1201),
(36, 1, 1202),
(58, 1, 1231),
(59, 1, 1232),
(60, 1, 1233),
(61, 1, 1234),
(62, 1, 1235),
(63, 1, 1236),
(64, 1, 1237),
(44, 1, 1321),
(18, 1, 1421),
(32, 1, 2501),
(33, 1, 2503),
(34, 1, 2515),
(84, 1, 59001),
(85, 1, 59002),
(163, 2, 11),
(164, 2, 12),
(165, 2, 13),
(166, 2, 14),
(167, 2, 15),
(168, 2, 16),
(169, 2, 19),
(205, 2, 21),
(206, 2, 22),
(207, 2, 24),
(208, 2, 25),
(209, 2, 26),
(210, 2, 27),
(211, 2, 28),
(194, 2, 31),
(195, 2, 32),
(196, 2, 34),
(197, 2, 38),
(198, 2, 41),
(199, 2, 42),
(200, 2, 44),
(201, 2, 45),
(171, 2, 61),
(172, 2, 62),
(173, 2, 64),
(174, 2, 67),
(175, 2, 68),
(135, 2, 81),
(136, 2, 82),
(137, 2, 84),
(138, 2, 86),
(139, 2, 87),
(140, 2, 88),
(141, 2, 89),
(229, 2, 91),
(230, 2, 92),
(231, 2, 93),
(232, 2, 94),
(143, 2, 95),
(144, 2, 96),
(145, 2, 97),
(146, 2, 98),
(125, 2, 111),
(126, 2, 112),
(127, 2, 113),
(128, 2, 114),
(129, 2, 115),
(130, 2, 116),
(131, 2, 117),
(220, 2, 121),
(221, 2, 122),
(222, 2, 125),
(223, 2, 126),
(202, 2, 141),
(203, 2, 142),
(204, 2, 144),
(147, 2, 161),
(148, 2, 162),
(149, 2, 163),
(150, 2, 164),
(151, 2, 165),
(152, 2, 167),
(153, 2, 171),
(154, 2, 172),
(155, 2, 173),
(156, 2, 174),
(157, 2, 178),
(132, 2, 241),
(133, 2, 242),
(134, 2, 243),
(235, 2, 251),
(236, 2, 252),
(237, 2, 253),
(238, 2, 254),
(239, 2, 255),
(240, 2, 256),
(224, 2, 262),
(225, 2, 281),
(226, 2, 282),
(227, 2, 283),
(228, 2, 286),
(241, 2, 341),
(242, 2, 342),
(243, 2, 343),
(244, 2, 344),
(245, 2, 351),
(246, 2, 352),
(247, 2, 353),
(248, 2, 354),
(249, 2, 358),
(212, 2, 510),
(213, 2, 512),
(214, 2, 514),
(215, 2, 517),
(216, 2, 531),
(217, 2, 532),
(218, 2, 534),
(219, 2, 538),
(176, 2, 1181),
(177, 2, 1182),
(178, 2, 1183),
(179, 2, 1184),
(180, 2, 1185),
(181, 2, 1186),
(182, 2, 1187),
(183, 2, 1188),
(161, 2, 1201),
(162, 2, 1202),
(184, 2, 1231),
(185, 2, 1232),
(186, 2, 1233),
(187, 2, 1234),
(188, 2, 1235),
(189, 2, 1236),
(190, 2, 1237),
(191, 2, 1251),
(170, 2, 1321),
(142, 2, 1421),
(158, 2, 2501),
(159, 2, 2503),
(160, 2, 2515),
(192, 2, 59001),
(193, 2, 59002),
(233, 2, 300101),
(234, 2, 300102);

-- --------------------------------------------------------

--
-- Structure de la table `llx_usergroup_user`
--

CREATE TABLE IF NOT EXISTS `llx_usergroup_user` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT '1',
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

--
-- Contenu de la table `llx_usergroup_user`
--

INSERT INTO `llx_usergroup_user` (`rowid`, `entity`, `fk_user`, `fk_usergroup`) VALUES
(1, 1, 2, 1),
(4, 1, 3, 2),
(3, 1, 4, 1);

--
-- Index pour les tables exportées
--

--
-- Index pour la table `llx_accounting_bookkeeping`
--
ALTER TABLE `llx_accounting_bookkeeping`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_accounting_fiscalyear`
--
ALTER TABLE `llx_accounting_fiscalyear`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_accounting_system`
--
ALTER TABLE `llx_accounting_system`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_accounting_system_pcg_version` (`pcg_version`);

--
-- Index pour la table `llx_accountingaccount`
--
ALTER TABLE `llx_accountingaccount`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accountingaccount_fk_pcg_version` (`fk_pcg_version`);

--
-- Index pour la table `llx_accountingtransaction`
--
ALTER TABLE `llx_accountingtransaction`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_actioncomm`
--
ALTER TABLE `llx_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_actioncomm_fk_soc` (`fk_soc`),
  ADD KEY `idx_actioncomm_fk_contact` (`fk_contact`),
  ADD KEY `idx_actioncomm_code` (`code`),
  ADD KEY `idx_actioncomm_fk_element` (`fk_element`);

--
-- Index pour la table `llx_actioncomm_extrafields`
--
ALTER TABLE `llx_actioncomm_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_actioncomm_extrafields` (`fk_object`);

--
-- Index pour la table `llx_actioncomm_resources`
--
ALTER TABLE `llx_actioncomm_resources`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_actioncomm_resources` (`fk_actioncomm`,`element_type`,`fk_element`),
  ADD KEY `idx_actioncomm_resources_fk_element` (`fk_element`);

--
-- Index pour la table `llx_adherent`
--
ALTER TABLE `llx_adherent`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_adherent_login` (`login`,`entity`),
  ADD UNIQUE KEY `uk_adherent_fk_soc` (`fk_soc`),
  ADD KEY `idx_adherent_fk_adherent_type` (`fk_adherent_type`);

--
-- Index pour la table `llx_adherent_extrafields`
--
ALTER TABLE `llx_adherent_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_extrafields` (`fk_object`);

--
-- Index pour la table `llx_adherent_type`
--
ALTER TABLE `llx_adherent_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_adherent_type_libelle` (`libelle`,`entity`);

--
-- Index pour la table `llx_adherent_type_extrafields`
--
ALTER TABLE `llx_adherent_type_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_adherent_type_extrafields` (`fk_object`);

--
-- Index pour la table `llx_askpricesupplier`
--
ALTER TABLE `llx_askpricesupplier`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_askpricesupplier_extrafields`
--
ALTER TABLE `llx_askpricesupplier_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_askpricesupplierdet`
--
ALTER TABLE `llx_askpricesupplierdet`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_askpricesupplierdet_extrafields`
--
ALTER TABLE `llx_askpricesupplierdet_extrafields`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_bank`
--
ALTER TABLE `llx_bank`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bank_datev` (`datev`),
  ADD KEY `idx_bank_dateo` (`dateo`),
  ADD KEY `idx_bank_fk_account` (`fk_account`),
  ADD KEY `idx_bank_rappro` (`rappro`),
  ADD KEY `idx_bank_num_releve` (`num_releve`);

--
-- Index pour la table `llx_bank_account_extrafields`
--
ALTER TABLE `llx_bank_account_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_bank_account_extrafields` (`fk_object`);

--
-- Index pour la table `llx_bank_categ`
--
ALTER TABLE `llx_bank_categ`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_bank_class`
--
ALTER TABLE `llx_bank_class`
  ADD UNIQUE KEY `uk_bank_class_lineid` (`lineid`,`fk_categ`);

--
-- Index pour la table `llx_bank_url`
--
ALTER TABLE `llx_bank_url`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bank_url` (`fk_bank`,`type`);

--
-- Index pour la table `llx_bookmark`
--
ALTER TABLE `llx_bookmark`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bookmark_url` (`fk_user`,`url`),
  ADD UNIQUE KEY `uk_bookmark_title` (`fk_user`,`title`);

--
-- Index pour la table `llx_bordereau_cheque`
--
ALTER TABLE `llx_bordereau_cheque`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_bordereau_cheque` (`number`,`entity`);

--
-- Index pour la table `llx_boxes`
--
ALTER TABLE `llx_boxes`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_boxes` (`entity`,`box_id`,`position`,`fk_user`),
  ADD KEY `idx_boxes_boxid` (`box_id`),
  ADD KEY `idx_boxes_fk_user` (`fk_user`);

--
-- Index pour la table `llx_boxes_def`
--
ALTER TABLE `llx_boxes_def`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_boxes_def` (`file`,`entity`,`note`);

--
-- Index pour la table `llx_c_action_trigger`
--
ALTER TABLE `llx_c_action_trigger`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_action_trigger_code` (`code`),
  ADD KEY `idx_action_trigger_rang` (`rang`);

--
-- Index pour la table `llx_c_actioncomm`
--
ALTER TABLE `llx_c_actioncomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_actioncomm` (`code`);

--
-- Index pour la table `llx_c_availability`
--
ALTER TABLE `llx_c_availability`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_availability` (`code`);

--
-- Index pour la table `llx_c_barcode_type`
--
ALTER TABLE `llx_c_barcode_type`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_barcode_type` (`code`,`entity`);

--
-- Index pour la table `llx_c_chargesociales`
--
ALTER TABLE `llx_c_chargesociales`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `llx_c_civility`
--
ALTER TABLE `llx_c_civility`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_civility` (`code`);

--
-- Index pour la table `llx_c_country`
--
ALTER TABLE `llx_c_country`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_c_country_code` (`code`),
  ADD UNIQUE KEY `idx_c_pays_libelle` (`label`),
  ADD UNIQUE KEY `idx_c_country_code_iso` (`code_iso`);

--
-- Index pour la table `llx_c_currencies`
--
ALTER TABLE `llx_c_currencies`
  ADD PRIMARY KEY (`code_iso`),
  ADD UNIQUE KEY `uk_c_currencies_code_iso` (`code_iso`);

--
-- Index pour la table `llx_c_departements`
--
ALTER TABLE `llx_c_departements`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_departements` (`code_departement`,`fk_region`),
  ADD KEY `idx_departements_fk_region` (`fk_region`);

--
-- Index pour la table `llx_c_ecotaxe`
--
ALTER TABLE `llx_c_ecotaxe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ecotaxe` (`code`);

--
-- Index pour la table `llx_c_effectif`
--
ALTER TABLE `llx_c_effectif`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_effectif` (`code`);

--
-- Index pour la table `llx_c_email_templates`
--
ALTER TABLE `llx_c_email_templates`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_email_templates` (`entity`,`label`,`lang`),
  ADD KEY `idx_type` (`type_template`);

--
-- Index pour la table `llx_c_field_list`
--
ALTER TABLE `llx_c_field_list`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_forme_juridique`
--
ALTER TABLE `llx_c_forme_juridique`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_forme_juridique` (`code`);

--
-- Index pour la table `llx_c_holiday_types`
--
ALTER TABLE `llx_c_holiday_types`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_holiday_types` (`code`);

--
-- Index pour la table `llx_c_incoterms`
--
ALTER TABLE `llx_c_incoterms`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_incoterms` (`code`);

--
-- Index pour la table `llx_c_input_method`
--
ALTER TABLE `llx_c_input_method`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_method` (`code`);

--
-- Index pour la table `llx_c_input_reason`
--
ALTER TABLE `llx_c_input_reason`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_input_reason` (`code`);

--
-- Index pour la table `llx_c_lead_status`
--
ALTER TABLE `llx_c_lead_status`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_paiement`
--
ALTER TABLE `llx_c_paiement`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_paiement` (`code`);

--
-- Index pour la table `llx_c_paper_format`
--
ALTER TABLE `llx_c_paper_format`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_payment_term`
--
ALTER TABLE `llx_c_payment_term`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_price_expression`
--
ALTER TABLE `llx_c_price_expression`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_price_global_variable`
--
ALTER TABLE `llx_c_price_global_variable`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_price_global_variable_updater`
--
ALTER TABLE `llx_c_price_global_variable_updater`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_propalst`
--
ALTER TABLE `llx_c_propalst`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_propalst` (`code`);

--
-- Index pour la table `llx_c_prospectlevel`
--
ALTER TABLE `llx_c_prospectlevel`
  ADD PRIMARY KEY (`code`);

--
-- Index pour la table `llx_c_regions`
--
ALTER TABLE `llx_c_regions`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `code_region` (`code_region`),
  ADD UNIQUE KEY `uk_code_region` (`code_region`),
  ADD KEY `idx_c_regions_fk_pays` (`fk_pays`);

--
-- Index pour la table `llx_c_revenuestamp`
--
ALTER TABLE `llx_c_revenuestamp`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_shipment_mode`
--
ALTER TABLE `llx_c_shipment_mode`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_stcomm`
--
ALTER TABLE `llx_c_stcomm`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_stcomm` (`code`);

--
-- Index pour la table `llx_c_tva`
--
ALTER TABLE `llx_c_tva`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_tva_id` (`fk_pays`,`taux`,`recuperableonly`);

--
-- Index pour la table `llx_c_type_contact`
--
ALTER TABLE `llx_c_type_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_contact_id` (`element`,`source`,`code`);

--
-- Index pour la table `llx_c_type_fees`
--
ALTER TABLE `llx_c_type_fees`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_type_fees` (`code`);

--
-- Index pour la table `llx_c_type_resource`
--
ALTER TABLE `llx_c_type_resource`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_c_typent`
--
ALTER TABLE `llx_c_typent`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `uk_c_typent` (`code`);

--
-- Index pour la table `llx_c_ultimatepdf_line`
--
ALTER TABLE `llx_c_ultimatepdf_line`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_ultimatepdf_line` (`code`,`entity`);

--
-- Index pour la table `llx_c_units`
--
ALTER TABLE `llx_c_units`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_units_code` (`code`);

--
-- Index pour la table `llx_c_ziptown`
--
ALTER TABLE `llx_c_ziptown`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ziptown_fk_pays` (`zip`,`town`,`fk_pays`),
  ADD KEY `idx_c_ziptown_fk_county` (`fk_county`),
  ADD KEY `idx_c_ziptown_fk_pays` (`fk_pays`),
  ADD KEY `idx_c_ziptown_zip` (`zip`);

--
-- Index pour la table `llx_categorie`
--
ALTER TABLE `llx_categorie`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_categorie_ref` (`entity`,`fk_parent`,`label`,`type`),
  ADD KEY `idx_categorie_type` (`type`),
  ADD KEY `idx_categorie_label` (`label`);

--
-- Index pour la table `llx_categorie_contact`
--
ALTER TABLE `llx_categorie_contact`
  ADD PRIMARY KEY (`fk_categorie`,`fk_socpeople`),
  ADD KEY `idx_categorie_contact_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_contact_fk_socpeople` (`fk_socpeople`);

--
-- Index pour la table `llx_categorie_fournisseur`
--
ALTER TABLE `llx_categorie_fournisseur`
  ADD PRIMARY KEY (`fk_categorie`,`fk_soc`),
  ADD KEY `idx_categorie_fournisseur_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_fournisseur_fk_societe` (`fk_soc`);

--
-- Index pour la table `llx_categorie_lang`
--
ALTER TABLE `llx_categorie_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_category_lang` (`fk_category`,`lang`);

--
-- Index pour la table `llx_categorie_member`
--
ALTER TABLE `llx_categorie_member`
  ADD PRIMARY KEY (`fk_categorie`,`fk_member`),
  ADD KEY `idx_categorie_member_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_member_fk_member` (`fk_member`);

--
-- Index pour la table `llx_categorie_product`
--
ALTER TABLE `llx_categorie_product`
  ADD PRIMARY KEY (`fk_categorie`,`fk_product`),
  ADD KEY `idx_categorie_product_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_product_fk_product` (`fk_product`);

--
-- Index pour la table `llx_categorie_societe`
--
ALTER TABLE `llx_categorie_societe`
  ADD PRIMARY KEY (`fk_categorie`,`fk_soc`),
  ADD KEY `idx_categorie_societe_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_societe_fk_societe` (`fk_soc`);

--
-- Index pour la table `llx_categories_extrafields`
--
ALTER TABLE `llx_categories_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_categories_extrafields` (`fk_object`);

--
-- Index pour la table `llx_chargesociales`
--
ALTER TABLE `llx_chargesociales`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_commande`
--
ALTER TABLE `llx_commande`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_commande_ref` (`ref`,`entity`),
  ADD KEY `idx_commande_fk_soc` (`fk_soc`),
  ADD KEY `idx_commande_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_commande_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_commande_fk_user_cloture` (`fk_user_cloture`),
  ADD KEY `idx_commande_fk_projet` (`fk_projet`),
  ADD KEY `idx_commande_fk_account` (`fk_account`),
  ADD KEY `idx_commande_fk_currency` (`fk_currency`);

--
-- Index pour la table `llx_commande_extrafields`
--
ALTER TABLE `llx_commande_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_extrafields` (`fk_object`);

--
-- Index pour la table `llx_commande_fournisseur`
--
ALTER TABLE `llx_commande_fournisseur`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_commande_fournisseur_ref` (`ref`,`fk_soc`,`entity`),
  ADD KEY `idx_commande_fournisseur_fk_soc` (`fk_soc`);

--
-- Index pour la table `llx_commande_fournisseur_dispatch`
--
ALTER TABLE `llx_commande_fournisseur_dispatch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_dispatch_fk_commande` (`fk_commande`);

--
-- Index pour la table `llx_commande_fournisseur_extrafields`
--
ALTER TABLE `llx_commande_fournisseur_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseur_extrafields` (`fk_object`);

--
-- Index pour la table `llx_commande_fournisseur_log`
--
ALTER TABLE `llx_commande_fournisseur_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_commande_fournisseurdet`
--
ALTER TABLE `llx_commande_fournisseurdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_commande_fournisseurdet_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_commande_fournisseurdet_extrafields`
--
ALTER TABLE `llx_commande_fournisseurdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commande_fournisseurdet_extrafields` (`fk_object`);

--
-- Index pour la table `llx_commandedet`
--
ALTER TABLE `llx_commandedet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_fk_commande` (`fk_commande`),
  ADD KEY `idx_commandedet_fk_product` (`fk_product`),
  ADD KEY `fk_commandedet_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_commandedet_extrafields`
--
ALTER TABLE `llx_commandedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_extrafields` (`fk_object`);

--
-- Index pour la table `llx_const`
--
ALTER TABLE `llx_const`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_const` (`name`,`entity`);

--
-- Index pour la table `llx_contrat`
--
ALTER TABLE `llx_contrat`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_contrat_ref` (`ref`,`entity`),
  ADD KEY `idx_contrat_fk_soc` (`fk_soc`),
  ADD KEY `idx_contrat_fk_user_author` (`fk_user_author`);

--
-- Index pour la table `llx_contrat_extrafields`
--
ALTER TABLE `llx_contrat_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contrat_extrafields` (`fk_object`);

--
-- Index pour la table `llx_contratdet`
--
ALTER TABLE `llx_contratdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
  ADD KEY `idx_contratdet_fk_product` (`fk_product`),
  ADD KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
  ADD KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
  ADD KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`),
  ADD KEY `fk_contratdet_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_contratdet_extrafields`
--
ALTER TABLE `llx_contratdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_extrafields` (`fk_object`);

--
-- Index pour la table `llx_contratdet_log`
--
ALTER TABLE `llx_contratdet_log`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  ADD KEY `idx_contratdet_log_date` (`date`);

--
-- Index pour la table `llx_cotisation`
--
ALTER TABLE `llx_cotisation`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_cotisation` (`fk_adherent`,`dateadh`);

--
-- Index pour la table `llx_cronjob`
--
ALTER TABLE `llx_cronjob`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_deplacement`
--
ALTER TABLE `llx_deplacement`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_document_generator`
--
ALTER TABLE `llx_document_generator`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_document_model`
--
ALTER TABLE `llx_document_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`);

--
-- Index pour la table `llx_don`
--
ALTER TABLE `llx_don`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_don_extrafields`
--
ALTER TABLE `llx_don_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_don_extrafields` (`fk_object`);

--
-- Index pour la table `llx_ecm_directories`
--
ALTER TABLE `llx_ecm_directories`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_ecm_directories` (`label`,`fk_parent`,`entity`),
  ADD KEY `idx_ecm_directories_fk_user_c` (`fk_user_c`),
  ADD KEY `idx_ecm_directories_fk_user_m` (`fk_user_m`);

--
-- Index pour la table `llx_element_contact`
--
ALTER TABLE `llx_element_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
  ADD KEY `fk_element_contact_fk_c_type_contact` (`fk_c_type_contact`),
  ADD KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`);

--
-- Index pour la table `llx_element_element`
--
ALTER TABLE `llx_element_element`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_element_idx1` (`fk_source`,`sourcetype`,`fk_target`,`targettype`),
  ADD KEY `idx_element_element_fk_target` (`fk_target`);

--
-- Index pour la table `llx_element_lock`
--
ALTER TABLE `llx_element_lock`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_element_resources`
--
ALTER TABLE `llx_element_resources`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_resources_idx1` (`resource_id`,`resource_type`,`element_id`,`element_type`),
  ADD KEY `idx_element_element_element_id` (`element_id`);

--
-- Index pour la table `llx_element_tag`
--
ALTER TABLE `llx_element_tag`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_element_tag` (`entity`,`lang`,`tag`,`fk_element`,`element`);

--
-- Index pour la table `llx_entrepot`
--
ALTER TABLE `llx_entrepot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_entrepot_label` (`label`,`entity`);

--
-- Index pour la table `llx_event_element`
--
ALTER TABLE `llx_event_element`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_events`
--
ALTER TABLE `llx_events`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_events_dateevent` (`dateevent`);

--
-- Index pour la table `llx_expedition`
--
ALTER TABLE `llx_expedition`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_expedition_fk_soc` (`fk_soc`),
  ADD KEY `idx_expedition_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_expedition_fk_shipping_method` (`fk_shipping_method`);

--
-- Index pour la table `llx_expeditiondet`
--
ALTER TABLE `llx_expeditiondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`);

--
-- Index pour la table `llx_expeditiondet_batch`
--
ALTER TABLE `llx_expeditiondet_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_expeditiondet` (`fk_expeditiondet`);

--
-- Index pour la table `llx_expensereport`
--
ALTER TABLE `llx_expensereport`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_expensereport_det`
--
ALTER TABLE `llx_expensereport_det`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_export_compta`
--
ALTER TABLE `llx_export_compta`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_export_model`
--
ALTER TABLE `llx_export_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_export_model` (`label`,`type`);

--
-- Index pour la table `llx_extrafields`
--
ALTER TABLE `llx_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`);

--
-- Index pour la table `llx_facture`
--
ALTER TABLE `llx_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_facture_uk_facnumber` (`facnumber`,`entity`),
  ADD KEY `idx_facture_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
  ADD KEY `idx_facture_fk_projet` (`fk_projet`),
  ADD KEY `idx_facture_fk_account` (`fk_account`),
  ADD KEY `idx_facture_fk_currency` (`fk_currency`);

--
-- Index pour la table `llx_facture_extrafields`
--
ALTER TABLE `llx_facture_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_extrafields` (`fk_object`);

--
-- Index pour la table `llx_facture_fourn`
--
ALTER TABLE `llx_facture_fourn`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  ADD KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
  ADD KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_facture_fourn_fk_projet` (`fk_projet`);

--
-- Index pour la table `llx_facture_fourn_det`
--
ALTER TABLE `llx_facture_fourn_det`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  ADD KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_facture_fourn_det_extrafields`
--
ALTER TABLE `llx_facture_fourn_det_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_extrafields` (`fk_object`);

--
-- Index pour la table `llx_facture_fourn_extrafields`
--
ALTER TABLE `llx_facture_fourn_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_extrafields` (`fk_object`);

--
-- Index pour la table `llx_facture_rec`
--
ALTER TABLE `llx_facture_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
  ADD KEY `idx_facture_rec_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_rec_fk_projet` (`fk_projet`);

--
-- Index pour la table `llx_facturedet`
--
ALTER TABLE `llx_facturedet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture`),
  ADD KEY `idx_facturedet_fk_facture` (`fk_facture`),
  ADD KEY `idx_facturedet_fk_product` (`fk_product`),
  ADD KEY `fk_facturedet_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_facturedet_extrafields`
--
ALTER TABLE `llx_facturedet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facturedet_extrafields` (`fk_object`);

--
-- Index pour la table `llx_facturedet_rec`
--
ALTER TABLE `llx_facturedet_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_facturedet_rec_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_fichinter`
--
ALTER TABLE `llx_fichinter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  ADD KEY `idx_fichinter_fk_soc` (`fk_soc`);

--
-- Index pour la table `llx_fichinter_extrafields`
--
ALTER TABLE `llx_fichinter_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinter_extrafields` (`fk_object`);

--
-- Index pour la table `llx_fichinterdet`
--
ALTER TABLE `llx_fichinterdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`);

--
-- Index pour la table `llx_fichinterdet_extrafields`
--
ALTER TABLE `llx_fichinterdet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ficheinterdet_extrafields` (`fk_object`);

--
-- Index pour la table `llx_holiday`
--
ALTER TABLE `llx_holiday`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_holiday_fk_user` (`fk_user`),
  ADD KEY `idx_holiday_fk_user_create` (`fk_user_create`),
  ADD KEY `idx_holiday_date_create` (`date_create`),
  ADD KEY `idx_holiday_date_debut` (`date_debut`),
  ADD KEY `idx_holiday_date_fin` (`date_fin`),
  ADD KEY `idx_holiday_fk_validator` (`fk_validator`);

--
-- Index pour la table `llx_holiday_config`
--
ALTER TABLE `llx_holiday_config`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `name` (`name`);

--
-- Index pour la table `llx_holiday_events`
--
ALTER TABLE `llx_holiday_events`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_holiday_name` (`name`,`entity`);

--
-- Index pour la table `llx_holiday_logs`
--
ALTER TABLE `llx_holiday_logs`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_holiday_users`
--
ALTER TABLE `llx_holiday_users`
  ADD PRIMARY KEY (`fk_user`);

--
-- Index pour la table `llx_import_model`
--
ALTER TABLE `llx_import_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_import_model` (`label`,`type`);

--
-- Index pour la table `llx_invoice_merged_pdf`
--
ALTER TABLE `llx_invoice_merged_pdf`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_links`
--
ALTER TABLE `llx_links`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_livraison`
--
ALTER TABLE `llx_livraison`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_livraison_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_livraison_fk_soc` (`fk_soc`),
  ADD KEY `idx_livraison_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_livraison_fk_user_valid` (`fk_user_valid`);

--
-- Index pour la table `llx_livraisondet`
--
ALTER TABLE `llx_livraisondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraisondet_fk_expedition` (`fk_livraison`);

--
-- Index pour la table `llx_loan`
--
ALTER TABLE `llx_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_localtax`
--
ALTER TABLE `llx_localtax`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_mailing`
--
ALTER TABLE `llx_mailing`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_mailing_cibles`
--
ALTER TABLE `llx_mailing_cibles`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  ADD KEY `idx_mailing_cibles_email` (`email`);

--
-- Index pour la table `llx_menu`
--
ALTER TABLE `llx_menu`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_menu_uk_menu` (`menu_handler`,`fk_menu`,`position`,`url`,`entity`),
  ADD KEY `idx_menu_menuhandler_type` (`menu_handler`,`type`);

--
-- Index pour la table `llx_notify`
--
ALTER TABLE `llx_notify`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_notify_def`
--
ALTER TABLE `llx_notify_def`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_opensurvey_comments`
--
ALTER TABLE `llx_opensurvey_comments`
  ADD PRIMARY KEY (`id_comment`),
  ADD KEY `idx_id_comment` (`id_comment`),
  ADD KEY `idx_id_sondage` (`id_sondage`);

--
-- Index pour la table `llx_opensurvey_sondage`
--
ALTER TABLE `llx_opensurvey_sondage`
  ADD PRIMARY KEY (`id_sondage`),
  ADD KEY `idx_date_fin` (`date_fin`);

--
-- Index pour la table `llx_opensurvey_user_studs`
--
ALTER TABLE `llx_opensurvey_user_studs`
  ADD PRIMARY KEY (`id_users`),
  ADD KEY `idx_opensurvey_user_studs_id_users` (`id_users`),
  ADD KEY `idx_opensurvey_user_studs_nom` (`nom`),
  ADD KEY `idx_opensurvey_user_studs_id_sondage` (`id_sondage`);

--
-- Index pour la table `llx_order_merged_pdf`
--
ALTER TABLE `llx_order_merged_pdf`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_paiement`
--
ALTER TABLE `llx_paiement`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_paiement_facture`
--
ALTER TABLE `llx_paiement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_paiement_facture` (`fk_paiement`,`fk_facture`),
  ADD KEY `idx_paiement_facture_fk_facture` (`fk_facture`),
  ADD KEY `idx_paiement_facture_fk_paiement` (`fk_paiement`);

--
-- Index pour la table `llx_paiementcharge`
--
ALTER TABLE `llx_paiementcharge`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_paiementfourn`
--
ALTER TABLE `llx_paiementfourn`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_paiementfourn_facturefourn`
--
ALTER TABLE `llx_paiementfourn_facturefourn`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_paiementfourn_facturefourn` (`fk_paiementfourn`,`fk_facturefourn`),
  ADD KEY `idx_paiementfourn_facturefourn_fk_facture` (`fk_facturefourn`),
  ADD KEY `idx_paiementfourn_facturefourn_fk_paiement` (`fk_paiementfourn`);

--
-- Index pour la table `llx_payment_donation`
--
ALTER TABLE `llx_payment_donation`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_payment_expensereport`
--
ALTER TABLE `llx_payment_expensereport`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_payment_loan`
--
ALTER TABLE `llx_payment_loan`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_payment_salary`
--
ALTER TABLE `llx_payment_salary`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_payment_salary_ref` (`num_payment`),
  ADD KEY `idx_payment_salary_user` (`fk_user`,`entity`),
  ADD KEY `idx_payment_salary_datep` (`datep`),
  ADD KEY `idx_payment_salary_datesp` (`datesp`),
  ADD KEY `idx_payment_salary_dateep` (`dateep`);

--
-- Index pour la table `llx_prelevement_bons`
--
ALTER TABLE `llx_prelevement_bons`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`);

--
-- Index pour la table `llx_prelevement_facture`
--
ALTER TABLE `llx_prelevement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`);

--
-- Index pour la table `llx_prelevement_facture_demande`
--
ALTER TABLE `llx_prelevement_facture_demande`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_prelevement_lignes`
--
ALTER TABLE `llx_prelevement_lignes`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`);

--
-- Index pour la table `llx_prelevement_rejet`
--
ALTER TABLE `llx_prelevement_rejet`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_printer_ipp`
--
ALTER TABLE `llx_printer_ipp`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_printing`
--
ALTER TABLE `llx_printing`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_product`
--
ALTER TABLE `llx_product`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_product_label` (`label`),
  ADD KEY `idx_product_barcode` (`barcode`),
  ADD KEY `idx_product_import_key` (`import_key`),
  ADD KEY `idx_product_seuil_stock_alerte` (`seuil_stock_alerte`),
  ADD KEY `idx_product_fk_country` (`fk_country`),
  ADD KEY `idx_product_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  ADD KEY `fk_product_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_product_association`
--
ALTER TABLE `llx_product_association`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
  ADD KEY `idx_product_association_fils` (`fk_product_fils`);

--
-- Index pour la table `llx_product_batch`
--
ALTER TABLE `llx_product_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_product_stock` (`fk_product_stock`);

--
-- Index pour la table `llx_product_customer_price`
--
ALTER TABLE `llx_product_customer_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_customer_price_fk_product_fk_soc` (`fk_product`,`fk_soc`),
  ADD KEY `idx_product_customer_price_fk_user` (`fk_user`),
  ADD KEY `idx_product_customer_price_fk_soc` (`fk_soc`);

--
-- Index pour la table `llx_product_customer_price_log`
--
ALTER TABLE `llx_product_customer_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_product_extrafields`
--
ALTER TABLE `llx_product_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_extrafields` (`fk_object`);

--
-- Index pour la table `llx_product_fournisseur_price`
--
ALTER TABLE `llx_product_fournisseur_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`entity`),
  ADD KEY `idx_product_fournisseur_price_fk_user` (`fk_user`),
  ADD KEY `idx_product_fourn_price_fk_product` (`fk_product`,`entity`),
  ADD KEY `idx_product_fourn_price_fk_soc` (`fk_soc`,`entity`);

--
-- Index pour la table `llx_product_fournisseur_price_log`
--
ALTER TABLE `llx_product_fournisseur_price_log`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_product_lang`
--
ALTER TABLE `llx_product_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`);

--
-- Index pour la table `llx_product_price`
--
ALTER TABLE `llx_product_price`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_price_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_product_price_fk_product` (`fk_product`);

--
-- Index pour la table `llx_product_price_by_qty`
--
ALTER TABLE `llx_product_price_by_qty`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_price_by_qty_level` (`fk_product_price`,`quantity`),
  ADD KEY `idx_product_price_by_qty_fk_product_price` (`fk_product_price`);

--
-- Index pour la table `llx_product_stock`
--
ALTER TABLE `llx_product_stock`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_stock` (`fk_product`,`fk_entrepot`),
  ADD KEY `idx_product_stock_fk_product` (`fk_product`),
  ADD KEY `idx_product_stock_fk_entrepot` (`fk_entrepot`);

--
-- Index pour la table `llx_projet`
--
ALTER TABLE `llx_projet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_fk_soc` (`fk_soc`);

--
-- Index pour la table `llx_projet_extrafields`
--
ALTER TABLE `llx_projet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_extrafields` (`fk_object`);

--
-- Index pour la table `llx_projet_task`
--
ALTER TABLE `llx_projet_task`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_fk_projet` (`fk_projet`),
  ADD KEY `idx_projet_task_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_projet_task_fk_user_valid` (`fk_user_valid`);

--
-- Index pour la table `llx_projet_task_extrafields`
--
ALTER TABLE `llx_projet_task_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_extrafields` (`fk_object`);

--
-- Index pour la table `llx_projet_task_time`
--
ALTER TABLE `llx_projet_task_time`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_time_task` (`fk_task`),
  ADD KEY `idx_projet_task_time_date` (`task_date`),
  ADD KEY `idx_projet_task_time_datehour` (`task_datehour`);

--
-- Index pour la table `llx_propal`
--
ALTER TABLE `llx_propal`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_propal_ref` (`ref`,`entity`),
  ADD KEY `idx_propal_fk_soc` (`fk_soc`),
  ADD KEY `idx_propal_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_propal_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_propal_fk_user_cloture` (`fk_user_cloture`),
  ADD KEY `idx_propal_fk_projet` (`fk_projet`),
  ADD KEY `idx_propal_fk_account` (`fk_account`),
  ADD KEY `idx_propal_fk_currency` (`fk_currency`);

--
-- Index pour la table `llx_propal_extrafields`
--
ALTER TABLE `llx_propal_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propal_extrafields` (`fk_object`);

--
-- Index pour la table `llx_propal_merge_pdf_product`
--
ALTER TABLE `llx_propal_merge_pdf_product`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_propal_merged_pdf`
--
ALTER TABLE `llx_propal_merged_pdf`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_propaldet`
--
ALTER TABLE `llx_propaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_fk_propal` (`fk_propal`),
  ADD KEY `idx_propaldet_fk_product` (`fk_product`),
  ADD KEY `fk_propaldet_fk_unit` (`fk_unit`);

--
-- Index pour la table `llx_propaldet_extrafields`
--
ALTER TABLE `llx_propaldet_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_extrafields` (`fk_object`);

--
-- Index pour la table `llx_resource`
--
ALTER TABLE `llx_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_code_type_resource_idx` (`fk_code_type_resource`);

--
-- Index pour la table `llx_rights_def`
--
ALTER TABLE `llx_rights_def`
  ADD PRIMARY KEY (`id`,`entity`);

--
-- Index pour la table `llx_societe`
--
ALTER TABLE `llx_societe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_fournisseur` (`code_fournisseur`,`entity`),
  ADD UNIQUE KEY `uk_societe_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_societe_user_creat` (`fk_user_creat`),
  ADD KEY `idx_societe_user_modif` (`fk_user_modif`);

--
-- Index pour la table `llx_societe_address`
--
ALTER TABLE `llx_societe_address`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_societe_commerciaux`
--
ALTER TABLE `llx_societe_commerciaux`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`);

--
-- Index pour la table `llx_societe_extrafields`
--
ALTER TABLE `llx_societe_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_extrafields` (`fk_object`);

--
-- Index pour la table `llx_societe_log`
--
ALTER TABLE `llx_societe_log`
  ADD PRIMARY KEY (`id`);

--
-- Index pour la table `llx_societe_prices`
--
ALTER TABLE `llx_societe_prices`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_societe_remise`
--
ALTER TABLE `llx_societe_remise`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_societe_remise_except`
--
ALTER TABLE `llx_societe_remise_except`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  ADD KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  ADD KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  ADD KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  ADD KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`);

--
-- Index pour la table `llx_societe_rib`
--
ALTER TABLE `llx_societe_rib`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_socpeople`
--
ALTER TABLE `llx_socpeople`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_fk_soc` (`fk_soc`),
  ADD KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`);

--
-- Index pour la table `llx_socpeople_extrafields`
--
ALTER TABLE `llx_socpeople_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_extrafields` (`fk_object`);

--
-- Index pour la table `llx_stock_mouvement`
--
ALTER TABLE `llx_stock_mouvement`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  ADD KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`);

--
-- Index pour la table `llx_tva`
--
ALTER TABLE `llx_tva`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_ultimatepdf`
--
ALTER TABLE `llx_ultimatepdf`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_ultimatepdf_label` (`fk_user_creat`);

--
-- Index pour la table `llx_user_alert`
--
ALTER TABLE `llx_user_alert`
  ADD PRIMARY KEY (`rowid`);

--
-- Index pour la table `llx_user_clicktodial`
--
ALTER TABLE `llx_user_clicktodial`
  ADD PRIMARY KEY (`fk_user`);

--
-- Index pour la table `llx_user_extrafields`
--
ALTER TABLE `llx_user_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_user_extrafields` (`fk_object`);

--
-- Index pour la table `llx_user_param`
--
ALTER TABLE `llx_user_param`
  ADD UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`);

--
-- Index pour la table `llx_user_rights`
--
ALTER TABLE `llx_user_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_rights` (`fk_user`,`fk_id`);

--
-- Index pour la table `llx_usergroup`
--
ALTER TABLE `llx_usergroup`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`);

--
-- Index pour la table `llx_usergroup_extrafields`
--
ALTER TABLE `llx_usergroup_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_usergroup_extrafields` (`fk_object`);

--
-- Index pour la table `llx_usergroup_rights`
--
ALTER TABLE `llx_usergroup_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `fk_usergroup` (`fk_usergroup`,`fk_id`);

--
-- Index pour la table `llx_usergroup_user`
--
ALTER TABLE `llx_usergroup_user`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`),
  ADD KEY `fk_usergroup_user_fk_user` (`fk_user`),
  ADD KEY `fk_usergroup_user_fk_usergroup` (`fk_usergroup`);

--
-- AUTO_INCREMENT pour les tables exportées
--

--
-- AUTO_INCREMENT pour la table `llx_accounting_bookkeeping`
--
ALTER TABLE `llx_accounting_bookkeeping`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_accounting_fiscalyear`
--
ALTER TABLE `llx_accounting_fiscalyear`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_accounting_system`
--
ALTER TABLE `llx_accounting_system`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT pour la table `llx_accountingaccount`
--
ALTER TABLE `llx_accountingaccount`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4785;
--
-- AUTO_INCREMENT pour la table `llx_accountingtransaction`
--
ALTER TABLE `llx_accountingtransaction`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_actioncomm`
--
ALTER TABLE `llx_actioncomm`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_actioncomm_extrafields`
--
ALTER TABLE `llx_actioncomm_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_actioncomm_resources`
--
ALTER TABLE `llx_actioncomm_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_adherent`
--
ALTER TABLE `llx_adherent`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_adherent_extrafields`
--
ALTER TABLE `llx_adherent_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_adherent_type`
--
ALTER TABLE `llx_adherent_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_adherent_type_extrafields`
--
ALTER TABLE `llx_adherent_type_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_askpricesupplier`
--
ALTER TABLE `llx_askpricesupplier`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_askpricesupplier_extrafields`
--
ALTER TABLE `llx_askpricesupplier_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_askpricesupplierdet`
--
ALTER TABLE `llx_askpricesupplierdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_askpricesupplierdet_extrafields`
--
ALTER TABLE `llx_askpricesupplierdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_bank`
--
ALTER TABLE `llx_bank`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_bank_account_extrafields`
--
ALTER TABLE `llx_bank_account_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_bank_categ`
--
ALTER TABLE `llx_bank_categ`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_bank_url`
--
ALTER TABLE `llx_bank_url`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_bookmark`
--
ALTER TABLE `llx_bookmark`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_bordereau_cheque`
--
ALTER TABLE `llx_bordereau_cheque`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_boxes`
--
ALTER TABLE `llx_boxes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT pour la table `llx_boxes_def`
--
ALTER TABLE `llx_boxes_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT pour la table `llx_c_action_trigger`
--
ALTER TABLE `llx_c_action_trigger`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=174;
--
-- AUTO_INCREMENT pour la table `llx_c_availability`
--
ALTER TABLE `llx_c_availability`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT pour la table `llx_c_barcode_type`
--
ALTER TABLE `llx_c_barcode_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_c_chargesociales`
--
ALTER TABLE `llx_c_chargesociales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=231;
--
-- AUTO_INCREMENT pour la table `llx_c_departements`
--
ALTER TABLE `llx_c_departements`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=1010;
--
-- AUTO_INCREMENT pour la table `llx_c_ecotaxe`
--
ALTER TABLE `llx_c_ecotaxe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=39;
--
-- AUTO_INCREMENT pour la table `llx_c_email_templates`
--
ALTER TABLE `llx_c_email_templates`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_c_field_list`
--
ALTER TABLE `llx_c_field_list`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_c_forme_juridique`
--
ALTER TABLE `llx_c_forme_juridique`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=193;
--
-- AUTO_INCREMENT pour la table `llx_c_holiday_types`
--
ALTER TABLE `llx_c_holiday_types`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT pour la table `llx_c_incoterms`
--
ALTER TABLE `llx_c_incoterms`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=34;
--
-- AUTO_INCREMENT pour la table `llx_c_input_method`
--
ALTER TABLE `llx_c_input_method`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT pour la table `llx_c_input_reason`
--
ALTER TABLE `llx_c_input_reason`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT pour la table `llx_c_lead_status`
--
ALTER TABLE `llx_c_lead_status`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT pour la table `llx_c_paper_format`
--
ALTER TABLE `llx_c_paper_format`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=226;
--
-- AUTO_INCREMENT pour la table `llx_c_price_expression`
--
ALTER TABLE `llx_c_price_expression`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_c_price_global_variable`
--
ALTER TABLE `llx_c_price_global_variable`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_c_price_global_variable_updater`
--
ALTER TABLE `llx_c_price_global_variable_updater`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_c_regions`
--
ALTER TABLE `llx_c_regions`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=23210;
--
-- AUTO_INCREMENT pour la table `llx_c_revenuestamp`
--
ALTER TABLE `llx_c_revenuestamp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=102;
--
-- AUTO_INCREMENT pour la table `llx_c_shipment_mode`
--
ALTER TABLE `llx_c_shipment_mode`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT pour la table `llx_c_tva`
--
ALTER TABLE `llx_c_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2469;
--
-- AUTO_INCREMENT pour la table `llx_c_type_fees`
--
ALTER TABLE `llx_c_type_fees`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT pour la table `llx_c_ultimatepdf_line`
--
ALTER TABLE `llx_c_ultimatepdf_line`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_c_units`
--
ALTER TABLE `llx_c_units`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT pour la table `llx_c_ziptown`
--
ALTER TABLE `llx_c_ziptown`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_categorie`
--
ALTER TABLE `llx_categorie`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_categorie_lang`
--
ALTER TABLE `llx_categorie_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_categories_extrafields`
--
ALTER TABLE `llx_categories_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_chargesociales`
--
ALTER TABLE `llx_chargesociales`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_commande`
--
ALTER TABLE `llx_commande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT pour la table `llx_commande_extrafields`
--
ALTER TABLE `llx_commande_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT pour la table `llx_commande_fournisseur`
--
ALTER TABLE `llx_commande_fournisseur`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_commande_fournisseur_dispatch`
--
ALTER TABLE `llx_commande_fournisseur_dispatch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_commande_fournisseur_extrafields`
--
ALTER TABLE `llx_commande_fournisseur_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_commande_fournisseur_log`
--
ALTER TABLE `llx_commande_fournisseur_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_commande_fournisseurdet`
--
ALTER TABLE `llx_commande_fournisseurdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_commande_fournisseurdet_extrafields`
--
ALTER TABLE `llx_commande_fournisseurdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_commandedet`
--
ALTER TABLE `llx_commandedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT pour la table `llx_commandedet_extrafields`
--
ALTER TABLE `llx_commandedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_const`
--
ALTER TABLE `llx_const`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=537;
--
-- AUTO_INCREMENT pour la table `llx_contrat`
--
ALTER TABLE `llx_contrat`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_contrat_extrafields`
--
ALTER TABLE `llx_contrat_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_contratdet`
--
ALTER TABLE `llx_contratdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_contratdet_extrafields`
--
ALTER TABLE `llx_contratdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_contratdet_log`
--
ALTER TABLE `llx_contratdet_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_cotisation`
--
ALTER TABLE `llx_cotisation`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_cronjob`
--
ALTER TABLE `llx_cronjob`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_deplacement`
--
ALTER TABLE `llx_deplacement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_document_model`
--
ALTER TABLE `llx_document_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT pour la table `llx_don`
--
ALTER TABLE `llx_don`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_don_extrafields`
--
ALTER TABLE `llx_don_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_ecm_directories`
--
ALTER TABLE `llx_ecm_directories`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_element_contact`
--
ALTER TABLE `llx_element_contact`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_element_element`
--
ALTER TABLE `llx_element_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT pour la table `llx_element_lock`
--
ALTER TABLE `llx_element_lock`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_element_resources`
--
ALTER TABLE `llx_element_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_element_tag`
--
ALTER TABLE `llx_element_tag`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_entrepot`
--
ALTER TABLE `llx_entrepot`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_event_element`
--
ALTER TABLE `llx_event_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_events`
--
ALTER TABLE `llx_events`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_expedition`
--
ALTER TABLE `llx_expedition`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_expeditiondet`
--
ALTER TABLE `llx_expeditiondet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_expeditiondet_batch`
--
ALTER TABLE `llx_expeditiondet_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_expensereport`
--
ALTER TABLE `llx_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_expensereport_det`
--
ALTER TABLE `llx_expensereport_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_export_compta`
--
ALTER TABLE `llx_export_compta`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_export_model`
--
ALTER TABLE `llx_export_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_extrafields`
--
ALTER TABLE `llx_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3001004;
--
-- AUTO_INCREMENT pour la table `llx_facture`
--
ALTER TABLE `llx_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT pour la table `llx_facture_extrafields`
--
ALTER TABLE `llx_facture_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT pour la table `llx_facture_fourn`
--
ALTER TABLE `llx_facture_fourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_facture_fourn_det`
--
ALTER TABLE `llx_facture_fourn_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_facture_fourn_det_extrafields`
--
ALTER TABLE `llx_facture_fourn_det_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_facture_fourn_extrafields`
--
ALTER TABLE `llx_facture_fourn_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_facture_rec`
--
ALTER TABLE `llx_facture_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_facturedet`
--
ALTER TABLE `llx_facturedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT pour la table `llx_facturedet_extrafields`
--
ALTER TABLE `llx_facturedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_facturedet_rec`
--
ALTER TABLE `llx_facturedet_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_fichinter`
--
ALTER TABLE `llx_fichinter`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_fichinter_extrafields`
--
ALTER TABLE `llx_fichinter_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_fichinterdet`
--
ALTER TABLE `llx_fichinterdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_fichinterdet_extrafields`
--
ALTER TABLE `llx_fichinterdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_holiday`
--
ALTER TABLE `llx_holiday`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_holiday_config`
--
ALTER TABLE `llx_holiday_config`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT pour la table `llx_holiday_events`
--
ALTER TABLE `llx_holiday_events`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_holiday_logs`
--
ALTER TABLE `llx_holiday_logs`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_import_model`
--
ALTER TABLE `llx_import_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_invoice_merged_pdf`
--
ALTER TABLE `llx_invoice_merged_pdf`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_links`
--
ALTER TABLE `llx_links`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_livraison`
--
ALTER TABLE `llx_livraison`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_livraisondet`
--
ALTER TABLE `llx_livraisondet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_loan`
--
ALTER TABLE `llx_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_localtax`
--
ALTER TABLE `llx_localtax`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_mailing`
--
ALTER TABLE `llx_mailing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_mailing_cibles`
--
ALTER TABLE `llx_mailing_cibles`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_menu`
--
ALTER TABLE `llx_menu`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15627;
--
-- AUTO_INCREMENT pour la table `llx_notify`
--
ALTER TABLE `llx_notify`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_notify_def`
--
ALTER TABLE `llx_notify_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_opensurvey_comments`
--
ALTER TABLE `llx_opensurvey_comments`
  MODIFY `id_comment` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_opensurvey_user_studs`
--
ALTER TABLE `llx_opensurvey_user_studs`
  MODIFY `id_users` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_order_merged_pdf`
--
ALTER TABLE `llx_order_merged_pdf`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_paiement`
--
ALTER TABLE `llx_paiement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_paiement_facture`
--
ALTER TABLE `llx_paiement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_paiementcharge`
--
ALTER TABLE `llx_paiementcharge`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_paiementfourn`
--
ALTER TABLE `llx_paiementfourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_paiementfourn_facturefourn`
--
ALTER TABLE `llx_paiementfourn_facturefourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_payment_donation`
--
ALTER TABLE `llx_payment_donation`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_payment_expensereport`
--
ALTER TABLE `llx_payment_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_payment_loan`
--
ALTER TABLE `llx_payment_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_payment_salary`
--
ALTER TABLE `llx_payment_salary`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_prelevement_bons`
--
ALTER TABLE `llx_prelevement_bons`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_prelevement_facture`
--
ALTER TABLE `llx_prelevement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_prelevement_facture_demande`
--
ALTER TABLE `llx_prelevement_facture_demande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_prelevement_lignes`
--
ALTER TABLE `llx_prelevement_lignes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_prelevement_rejet`
--
ALTER TABLE `llx_prelevement_rejet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_printer_ipp`
--
ALTER TABLE `llx_printer_ipp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_printing`
--
ALTER TABLE `llx_printing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product`
--
ALTER TABLE `llx_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT pour la table `llx_product_association`
--
ALTER TABLE `llx_product_association`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_batch`
--
ALTER TABLE `llx_product_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_customer_price`
--
ALTER TABLE `llx_product_customer_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_customer_price_log`
--
ALTER TABLE `llx_product_customer_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_extrafields`
--
ALTER TABLE `llx_product_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_fournisseur_price`
--
ALTER TABLE `llx_product_fournisseur_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_fournisseur_price_log`
--
ALTER TABLE `llx_product_fournisseur_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_lang`
--
ALTER TABLE `llx_product_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_product_price`
--
ALTER TABLE `llx_product_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT pour la table `llx_product_price_by_qty`
--
ALTER TABLE `llx_product_price_by_qty`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_product_stock`
--
ALTER TABLE `llx_product_stock`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_projet`
--
ALTER TABLE `llx_projet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_projet_extrafields`
--
ALTER TABLE `llx_projet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_projet_task`
--
ALTER TABLE `llx_projet_task`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_projet_task_extrafields`
--
ALTER TABLE `llx_projet_task_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_projet_task_time`
--
ALTER TABLE `llx_projet_task_time`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_propal`
--
ALTER TABLE `llx_propal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_propal_extrafields`
--
ALTER TABLE `llx_propal_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_propal_merge_pdf_product`
--
ALTER TABLE `llx_propal_merge_pdf_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_propal_merged_pdf`
--
ALTER TABLE `llx_propal_merged_pdf`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_propaldet`
--
ALTER TABLE `llx_propaldet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_propaldet_extrafields`
--
ALTER TABLE `llx_propaldet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_resource`
--
ALTER TABLE `llx_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_societe`
--
ALTER TABLE `llx_societe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT pour la table `llx_societe_address`
--
ALTER TABLE `llx_societe_address`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_societe_commerciaux`
--
ALTER TABLE `llx_societe_commerciaux`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT pour la table `llx_societe_extrafields`
--
ALTER TABLE `llx_societe_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_societe_log`
--
ALTER TABLE `llx_societe_log`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_societe_prices`
--
ALTER TABLE `llx_societe_prices`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_societe_remise`
--
ALTER TABLE `llx_societe_remise`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_societe_remise_except`
--
ALTER TABLE `llx_societe_remise_except`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_societe_rib`
--
ALTER TABLE `llx_societe_rib`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_socpeople`
--
ALTER TABLE `llx_socpeople`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT pour la table `llx_socpeople_extrafields`
--
ALTER TABLE `llx_socpeople_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_stock_mouvement`
--
ALTER TABLE `llx_stock_mouvement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_tva`
--
ALTER TABLE `llx_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_ultimatepdf`
--
ALTER TABLE `llx_ultimatepdf`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `llx_user_alert`
--
ALTER TABLE `llx_user_alert`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_user_extrafields`
--
ALTER TABLE `llx_user_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_user_rights`
--
ALTER TABLE `llx_user_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=1252;
--
-- AUTO_INCREMENT pour la table `llx_usergroup`
--
ALTER TABLE `llx_usergroup`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT pour la table `llx_usergroup_extrafields`
--
ALTER TABLE `llx_usergroup_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `llx_usergroup_rights`
--
ALTER TABLE `llx_usergroup_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=250;
--
-- AUTO_INCREMENT pour la table `llx_usergroup_user`
--
ALTER TABLE `llx_usergroup_user`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- Contraintes pour les tables exportées
--

--
-- Contraintes pour la table `llx_accountingaccount`
--
ALTER TABLE `llx_accountingaccount`
  ADD CONSTRAINT `fk_accountingaccount_fk_pcg_version` FOREIGN KEY (`fk_pcg_version`) REFERENCES `llx_accounting_system` (`pcg_version`);

--
-- Contraintes pour la table `llx_adherent`
--
ALTER TABLE `llx_adherent`
  ADD CONSTRAINT `adherent_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_adherent_adherent_type` FOREIGN KEY (`fk_adherent_type`) REFERENCES `llx_adherent_type` (`rowid`);

--
-- Contraintes pour la table `llx_boxes`
--
ALTER TABLE `llx_boxes`
  ADD CONSTRAINT `fk_boxes_box_id` FOREIGN KEY (`box_id`) REFERENCES `llx_boxes_def` (`rowid`);

--
-- Contraintes pour la table `llx_c_departements`
--
ALTER TABLE `llx_c_departements`
  ADD CONSTRAINT `fk_departements_code_region` FOREIGN KEY (`fk_region`) REFERENCES `llx_c_regions` (`code_region`);

--
-- Contraintes pour la table `llx_c_regions`
--
ALTER TABLE `llx_c_regions`
  ADD CONSTRAINT `fk_c_regions_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_country` (`rowid`);

--
-- Contraintes pour la table `llx_c_ziptown`
--
ALTER TABLE `llx_c_ziptown`
  ADD CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `llx_c_departements` (`rowid`),
  ADD CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `llx_c_country` (`rowid`);

--
-- Contraintes pour la table `llx_categorie_contact`
--
ALTER TABLE `llx_categorie_contact`
  ADD CONSTRAINT `fk_categorie_contact_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_contact_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `llx_socpeople` (`rowid`);

--
-- Contraintes pour la table `llx_categorie_fournisseur`
--
ALTER TABLE `llx_categorie_fournisseur`
  ADD CONSTRAINT `fk_categorie_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_categorie_fournisseur_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`);

--
-- Contraintes pour la table `llx_categorie_lang`
--
ALTER TABLE `llx_categorie_lang`
  ADD CONSTRAINT `fk_category_lang_fk_category` FOREIGN KEY (`fk_category`) REFERENCES `llx_categorie` (`rowid`);

--
-- Contraintes pour la table `llx_categorie_member`
--
ALTER TABLE `llx_categorie_member`
  ADD CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_member_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `llx_adherent` (`rowid`);

--
-- Contraintes pour la table `llx_categorie_product`
--
ALTER TABLE `llx_categorie_product`
  ADD CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`);

--
-- Contraintes pour la table `llx_categorie_societe`
--
ALTER TABLE `llx_categorie_societe`
  ADD CONSTRAINT `fk_categorie_societe_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_categorie_societe_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `llx_categorie` (`rowid`);

--
-- Contraintes pour la table `llx_commande`
--
ALTER TABLE `llx_commande`
  ADD CONSTRAINT `fk_commande_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_commande_fournisseur`
--
ALTER TABLE `llx_commande_fournisseur`
  ADD CONSTRAINT `fk_commande_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Contraintes pour la table `llx_commande_fournisseurdet`
--
ALTER TABLE `llx_commande_fournisseurdet`
  ADD CONSTRAINT `fk_commande_fournisseurdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_commandedet`
--
ALTER TABLE `llx_commandedet`
  ADD CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `llx_commande` (`rowid`),
  ADD CONSTRAINT `fk_commandedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_contrat`
--
ALTER TABLE `llx_contrat`
  ADD CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_contratdet`
--
ALTER TABLE `llx_contratdet`
  ADD CONSTRAINT `fk_contratdet_fk_contrat` FOREIGN KEY (`fk_contrat`) REFERENCES `llx_contrat` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_contratdet_log`
--
ALTER TABLE `llx_contratdet_log`
  ADD CONSTRAINT `fk_contratdet_log_fk_contratdet` FOREIGN KEY (`fk_contratdet`) REFERENCES `llx_contratdet` (`rowid`);

--
-- Contraintes pour la table `llx_ecm_directories`
--
ALTER TABLE `llx_ecm_directories`
  ADD CONSTRAINT `fk_ecm_directories_fk_user_c` FOREIGN KEY (`fk_user_c`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_ecm_directories_fk_user_m` FOREIGN KEY (`fk_user_m`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_element_contact`
--
ALTER TABLE `llx_element_contact`
  ADD CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `llx_c_type_contact` (`rowid`);

--
-- Contraintes pour la table `llx_expedition`
--
ALTER TABLE `llx_expedition`
  ADD CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_expeditiondet`
--
ALTER TABLE `llx_expeditiondet`
  ADD CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`);

--
-- Contraintes pour la table `llx_expeditiondet_batch`
--
ALTER TABLE `llx_expeditiondet_batch`
  ADD CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `llx_expeditiondet` (`rowid`);

--
-- Contraintes pour la table `llx_facture`
--
ALTER TABLE `llx_facture`
  ADD CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_facture_fourn`
--
ALTER TABLE `llx_facture_fourn`
  ADD CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_facture_fourn_det`
--
ALTER TABLE `llx_facture_fourn_det`
  ADD CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `llx_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_facture_rec`
--
ALTER TABLE `llx_facture_rec`
  ADD CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_facturedet`
--
ALTER TABLE `llx_facturedet`
  ADD CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_facturedet_rec`
--
ALTER TABLE `llx_facturedet_rec`
  ADD CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_fichinter`
--
ALTER TABLE `llx_fichinter`
  ADD CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Contraintes pour la table `llx_fichinterdet`
--
ALTER TABLE `llx_fichinterdet`
  ADD CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `llx_fichinter` (`rowid`);

--
-- Contraintes pour la table `llx_livraison`
--
ALTER TABLE `llx_livraison`
  ADD CONSTRAINT `fk_livraison_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_livraisondet`
--
ALTER TABLE `llx_livraisondet`
  ADD CONSTRAINT `fk_livraisondet_fk_livraison` FOREIGN KEY (`fk_livraison`) REFERENCES `llx_livraison` (`rowid`);

--
-- Contraintes pour la table `llx_paiement_facture`
--
ALTER TABLE `llx_paiement_facture`
  ADD CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `llx_paiement` (`rowid`);

--
-- Contraintes pour la table `llx_payment_salary`
--
ALTER TABLE `llx_payment_salary`
  ADD CONSTRAINT `fk_payment_salary_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_prelevement_facture`
--
ALTER TABLE `llx_prelevement_facture`
  ADD CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `llx_prelevement_lignes` (`rowid`);

--
-- Contraintes pour la table `llx_prelevement_lignes`
--
ALTER TABLE `llx_prelevement_lignes`
  ADD CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `llx_prelevement_bons` (`rowid`);

--
-- Contraintes pour la table `llx_product`
--
ALTER TABLE `llx_product`
  ADD CONSTRAINT `fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `llx_c_barcode_type` (`rowid`),
  ADD CONSTRAINT `fk_product_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `llx_c_country` (`rowid`),
  ADD CONSTRAINT `fk_product_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_product_batch`
--
ALTER TABLE `llx_product_batch`
  ADD CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `llx_product_stock` (`rowid`);

--
-- Contraintes pour la table `llx_product_customer_price`
--
ALTER TABLE `llx_product_customer_price`
  ADD CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_product_fournisseur_price`
--
ALTER TABLE `llx_product_fournisseur_price`
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_product_lang`
--
ALTER TABLE `llx_product_lang`
  ADD CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`);

--
-- Contraintes pour la table `llx_product_price`
--
ALTER TABLE `llx_product_price`
  ADD CONSTRAINT `fk_product_price_product` FOREIGN KEY (`fk_product`) REFERENCES `llx_product` (`rowid`),
  ADD CONSTRAINT `fk_product_price_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_product_price_by_qty`
--
ALTER TABLE `llx_product_price_by_qty`
  ADD CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `llx_product_price` (`rowid`);

--
-- Contraintes pour la table `llx_projet`
--
ALTER TABLE `llx_projet`
  ADD CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`);

--
-- Contraintes pour la table `llx_projet_task`
--
ALTER TABLE `llx_projet_task`
  ADD CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_propal`
--
ALTER TABLE `llx_propal`
  ADD CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_propaldet`
--
ALTER TABLE `llx_propaldet`
  ADD CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `llx_propal` (`rowid`),
  ADD CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`);

--
-- Contraintes pour la table `llx_societe_remise_except`
--
ALTER TABLE `llx_societe_remise_except`
  ADD CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `llx_facturedet` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_socpeople`
--
ALTER TABLE `llx_socpeople`
  ADD CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_ultimatepdf`
--
ALTER TABLE `llx_ultimatepdf`
  ADD CONSTRAINT `fk_ultimatepdf_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_user_rights`
--
ALTER TABLE `llx_user_rights`
  ADD CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`);

--
-- Contraintes pour la table `llx_usergroup_rights`
--
ALTER TABLE `llx_usergroup_rights`
  ADD CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`);

--
-- Contraintes pour la table `llx_usergroup_user`
--
ALTER TABLE `llx_usergroup_user`
  ADD CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `llx_user` (`rowid`),
  ADD CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `llx_usergroup` (`rowid`);

