-- Table structure for table `llx_expedition`
--

CREATE TABLE `llx_expedition` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_customer` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` 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,
  `height_unit` int(11) 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 DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `billed` smallint(6) DEFAULT 0,
  `fk_user_modif` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
  KEY `idx_expedition_fk_soc` (`fk_soc`),
  KEY `idx_expedition_fk_user_author` (`fk_user_author`),
  KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
  KEY `idx_expedition_fk_shipping_method` (`fk_shipping_method`),
  CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `llx_c_shipment_mode` (`rowid`),
  CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_expedition` VALUES
(1,'2018-01-22 17:33:03','SH1302-0001',1,NULL,1,NULL,NULL,NULL,'2013-08-08 03:05:34',1,'2015-02-17 18:22:51',1,NULL,'2013-08-09 00:00:00',NULL,NULL,'',1,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,'merou',NULL,NULL,NULL,NULL,0,NULL,NULL),
(2,'2017-02-15 23:11:35','(PROV2)',1,NULL,4,NULL,NULL,NULL,'2017-02-16 03:11:35',12,NULL,NULL,NULL,NULL,NULL,1,'',0,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,'merou',0,'',NULL,NULL,0,NULL,NULL);

--
-- Table structure for table `llx_expedition_extrafields`
--

CREATE TABLE `llx_expedition_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expedition_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expedition_extrafields`
--


--
-- Table structure for table `llx_expedition_package`
--

CREATE TABLE `llx_expedition_package` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expedition` int(11) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `value` double(24,8) DEFAULT 0.00000000,
  `fk_package_type` int(11) DEFAULT NULL,
  `height` float DEFAULT NULL,
  `width` float DEFAULT NULL,
  `size` float DEFAULT NULL,
  `size_units` int(11) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `weight_units` int(11) DEFAULT NULL,
  `dangerous_goods` smallint(6) DEFAULT 0,
  `tail_lift` smallint(6) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expedition_package`
--


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

CREATE TABLE `llx_expeditiondet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expedition` int(11) NOT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`),
  KEY `idx_expeditiondet_fk_origin_line` (`fk_origin_line`),
  CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `llx_expedition` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_expeditiondet` VALUES
(1,1,10,3,1,0),
(2,2,226,19,2,0);

--
-- Table structure for table `llx_expeditiondet_batch`
--

CREATE TABLE `llx_expeditiondet_batch` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expeditiondet` int(11) NOT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `batch` varchar(128) DEFAULT NULL,
  `qty` double NOT NULL DEFAULT 0,
  `fk_origin_stock` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_fk_expeditiondet` (`fk_expeditiondet`),
  CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `llx_expeditiondet` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_expeditiondet_extrafields`
--

CREATE TABLE `llx_expeditiondet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expeditiondet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expeditiondet_extrafields`
--


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

CREATE TABLE `llx_expensereport` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_number_int` int(11) DEFAULT NULL,
  `ref_ext` int(11) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `date_create` datetime NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_approve` datetime DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_author` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_validator` int(11) DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `fk_statut` int(11) NOT NULL,
  `fk_c_paiement` int(11) DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `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,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_expensereport_uk_ref` (`ref`,`entity`),
  KEY `idx_expensereport_date_debut` (`date_debut`),
  KEY `idx_expensereport_date_fin` (`date_fin`),
  KEY `idx_expensereport_fk_statut` (`fk_statut`),
  KEY `idx_expensereport_fk_user_author` (`fk_user_author`),
  KEY `idx_expensereport_fk_user_valid` (`fk_user_valid`),
  KEY `idx_expensereport_fk_user_approve` (`fk_user_approve`),
  KEY `idx_expensereport_fk_refuse` (`fk_user_approve`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_expensereport` VALUES
(1,'ADMIN-ER00002-150101',1,2,NULL,8.33000000,1.67000000,0.00000000,0.00000000,10.00000000,'2022-01-01','2022-01-03','2022-01-22 19:03:37','2022-01-22 19:06:50','2021-02-16 02:12:40',NULL,NULL,'2022-02-07 13:37:54',12,NULL,12,12,12,NULL,NULL,5,NULL,0,'Holidays',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL),
(2,'ER1912-0001',1,NULL,NULL,141.67000000,28.33000000,0.00000000,0.00000000,170.00000000,'2022-02-01','2021-02-28','2022-01-22 19:04:44','2021-12-20 20:34:13','2021-12-20 20:34:19',NULL,'2021-12-21 00:34:26','2022-02-07 13:37:54',12,12,12,12,12,NULL,12,4,NULL,0,'Work on projet X','','','aaaa',NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL),
(3,'(PROV3)',1,NULL,NULL,40.00000000,0.00000000,0.00000000,0.00000000,40.00000000,'2022-02-02','2022-02-02','2022-02-02 03:57:03','2022-02-02 00:00:00',NULL,NULL,NULL,'2022-12-19 12:02:55',19,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'expensereport/(PROV3)/(PROV3).pdf',NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL);

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

CREATE TABLE `llx_expensereport_det` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_expensereport` int(11) NOT NULL,
  `docnumber` varchar(128) DEFAULT 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,
  `subprice` double(24,8) NOT NULL DEFAULT 0.00000000,
  `value_unit` double(24,8) 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,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_facture` int(11) DEFAULT 0,
  `fk_code_ventilation` int(11) DEFAULT 0,
  `vat_src_code` varchar(10) DEFAULT '',
  `rule_warning_message` text DEFAULT NULL,
  `fk_c_exp_tax_cat` int(11) DEFAULT NULL,
  `fk_ecm_files` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_expensereport_det` VALUES
(1,1,NULL,3,1,'',-1,1,0.00000000,10.00000000,NULL,20.000,0.000,NULL,0.000,NULL,8.33000000,1.67000000,0.00000000,0.00000000,10.00000000,'2017-01-01',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,NULL,NULL),
(2,2,NULL,3,4,'',-1,1,0.00000000,20.00000000,NULL,20.000,0.000,NULL,0.000,NULL,16.67000000,3.33000000,0.00000000,0.00000000,20.00000000,'2017-01-07',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,NULL,NULL),
(3,2,NULL,2,5,'Train',-1,1,0.00000000,150.00000000,NULL,20.000,0.000,NULL,0.000,NULL,125.00000000,25.00000000,0.00000000,0.00000000,150.00000000,'2017-02-05',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'','',0,73),
(4,3,NULL,1,NULL,'',-1,1,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163),
(5,3,NULL,1,NULL,'',-1,1,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163),
(6,3,NULL,1,NULL,'',-1,1,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163),
(7,3,NULL,1,NULL,'',-1,1,0.00000000,10.00000000,NULL,0.000,0.000,'0',0.000,'0',10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,'2022-12-19',0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0,0,'',NULL,0,163);

--
-- Table structure for table `llx_expensereport_extrafields`
--

CREATE TABLE `llx_expensereport_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_expensereport_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_extrafields`
--


--
-- Table structure for table `llx_expensereport_ik`
--

CREATE TABLE `llx_expensereport_ik` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_c_exp_tax_cat` int(11) NOT NULL DEFAULT 0,
  `fk_range` int(11) NOT NULL DEFAULT 0,
  `coef` double NOT NULL DEFAULT 0,
  `ikoffset` double NOT NULL DEFAULT 0,
  `active` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_ik`
--

INSERT INTO `llx_expensereport_ik` VALUES
(1,NULL,'2018-01-19 11:09:35',4,1,0.41,0,1),
(2,NULL,'2018-01-19 11:09:35',4,2,0.244,824,1),
(3,NULL,'2018-01-19 11:09:35',4,3,0.286,0,1),
(4,NULL,'2018-01-19 11:09:35',5,4,0.493,0,1),
(5,NULL,'2018-01-19 11:09:35',5,5,0.277,1082,1),
(6,NULL,'2018-01-19 11:09:35',5,6,0.332,0,1),
(7,NULL,'2018-01-19 11:09:35',6,7,0.543,0,1),
(8,NULL,'2018-01-19 11:09:35',6,8,0.305,1180,1),
(9,NULL,'2018-01-19 11:09:35',6,9,0.364,0,1),
(10,NULL,'2018-01-19 11:09:35',7,10,0.568,0,1),
(11,NULL,'2018-01-19 11:09:35',7,11,0.32,1244,1),
(12,NULL,'2018-01-19 11:09:35',7,12,0.382,0,1),
(13,NULL,'2018-01-19 11:09:35',8,13,0.595,0,1),
(14,NULL,'2018-01-19 11:09:35',8,14,0.337,1288,1),
(15,NULL,'2018-01-19 11:09:35',8,15,0.401,0,1);

--
-- Table structure for table `llx_expensereport_rules`
--

CREATE TABLE `llx_expensereport_rules` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dates` datetime NOT NULL,
  `datee` datetime NOT NULL,
  `amount` double(24,8) DEFAULT NULL,
  `restrictive` tinyint(4) NOT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_usergroup` int(11) DEFAULT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `code_expense_rules_type` varchar(50) NOT NULL,
  `is_for_all` tinyint(4) DEFAULT 0,
  `entity` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_expensereport_rules`
--


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

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

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


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

CREATE TABLE `llx_export_model` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL DEFAULT 0,
  `label` varchar(50) NOT NULL,
  `type` varchar(64) DEFAULT NULL,
  `field` text NOT NULL,
  `filter` text DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_export_model` (`label`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_export_model` VALUES
(1,0,'MyExport','facture_2','s.rowid,s.nom,s.code_client,s.address,s.zip,s.town,c.code,cd.nom,s.phone,s.siren,s.siret,s.ape,s.idprof4,s.code_compta,s.code_compta_fournisseur,s.tva_intra,f.rowid,f.ref,f.ref_client,f.type,f.datec,f.datef,f.date_lim_reglement,f.total_ht,f.total_ttc,f.total_tva,f.localtax1,f.localtax2,none.rest,f.paye,f.fk_statut,f.note_private,f.note_public,f.fk_user_author,uc.login,f.fk_user_valid,uv.login,pj.ref,pj.title,p.rowid,p.ref,p.amount,pf.amount,p.datep,p.num_paiement,pt.code,pt.libelle,p.note,p.fk_bank,ba.ref,f.multicurrency_code,f.multicurrency_tx,f.multicurrency_total_ht,f.multicurrency_total_tva,f.multicurrency_total_ttc,f.module_source,f.pos_source','',0),
(2,11,'Export by joe','facture_2','s.rowid,s.nom,s.code_client,s.address,s.zip,s.town,c.code,cd.nom,s.phone,s.siren,s.siret,s.ape,s.idprof4,s.code_compta,s.code_compta_fournisseur,s.tva_intra,f.rowid,f.ref,f.ref_client,f.type,f.datec,f.datef,f.date_lim_reglement,f.total_ht,f.total_ttc,f.total_tva,f.localtax1,f.localtax2,none.rest,f.paye,f.fk_statut,f.note_private,f.note_public,f.fk_user_author,uc.login,f.fk_user_valid,uv.login,pj.ref,pj.title,p.rowid,p.ref,p.amount,pf.amount,p.datep,p.num_paiement,pt.code,pt.libelle,p.note,p.fk_bank,ba.ref,f.multicurrency_code,f.multicurrency_tx,f.multicurrency_total_ht,f.multicurrency_total_tva,f.multicurrency_total_ttc,f.module_source,f.pos_source','',0),
(3,12,'test','societe_1','s.rowid,s.nom,s.name_alias,s.status,s.client,s.fournisseur,s.datec,s.tms,s.code_client,s.code_fournisseur,s.code_compta,s.code_compta_fournisseur,s.address,s.zip,s.town,d.nom,c.label,c.code,s.phone,s.fax,s.url,s.email,s.default_lang,s.siren,s.siret,s.ape,s.idprof4,s.idprof5,s.idprof6,s.tva_intra,s.capital,s.note_private,s.note_public,t.libelle,ce.code,cfj.libelle,s.fk_prospectlevel,st.code,payterm.libelle,paymode.libelle,s.price_level,extra.height,extra.weight,extra.prof,extra.birthdate,u.login,u.firstname,u.lastname','s.nom=%a%',0);

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

CREATE TABLE `llx_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `elementtype` varchar(64) NOT NULL DEFAULT 'member',
  `name` varchar(64) 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,
  `type` varchar(8) DEFAULT NULL,
  `size` varchar(8) DEFAULT NULL,
  `pos` int(11) DEFAULT 0,
  `alwayseditable` int(11) DEFAULT 0,
  `param` text DEFAULT NULL,
  `fieldunique` int(11) DEFAULT 0,
  `fieldrequired` int(11) DEFAULT 0,
  `perms` varchar(255) DEFAULT NULL,
  `list` varchar(128) DEFAULT NULL,
  `totalizable` tinyint(1) DEFAULT 0,
  `ishidden` int(11) DEFAULT 0,
  `fieldcomputed` text DEFAULT NULL,
  `fielddefault` text DEFAULT NULL,
  `langs` varchar(64) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `enabled` varchar(255) DEFAULT '1',
  `help` text DEFAULT NULL,
  `printable` int(11) DEFAULT 0,
  `css` varchar(128) DEFAULT NULL,
  `cssview` varchar(128) DEFAULT NULL,
  `csslist` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`)
) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_extrafields` VALUES
(27,'projet','priority',1,'2018-01-19 11:17:49','Priority','select','',0,1,'a:1:{s:7:\"options\";a:5:{i:1;s:1:\"1\";i:2;s:1:\"2\";i:3;s:1:\"3\";i:4;s:1:\"4\";i:5;s:1:\"5\";}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,NULL,NULL,NULL,'1',NULL,0,NULL,NULL,NULL),
(33,'adherent','extradatamember',1,'2019-10-08 18:47:11','Extra personalized data','varchar','10',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2019-10-08 20:47:11','1',NULL,0,NULL,NULL,NULL),
(34,'adherent_type','extradatamembertype',1,'2019-10-08 18:47:43','Extra personalized data','varchar','32',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2019-10-08 20:47:43','1',NULL,0,NULL,NULL,NULL),
(35,'commande','custom1',1,'2019-12-21 13:31:31','Custom field 1','varchar','10',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2019-12-21 17:31:31','1',NULL,0,NULL,NULL,NULL),
(36,'societe','height',1,'2020-01-05 20:37:18','Height','varchar','128',1,0,'',0,0,NULL,'-1',0,0,NULL,NULL,NULL,12,12,'2020-01-06 00:37:18','1',NULL,0,NULL,NULL,NULL),
(37,'societe','weight',1,'2020-01-05 20:37:18','Weigth','varchar','128',2,0,'',0,0,NULL,'-1',0,0,NULL,NULL,NULL,12,12,'2020-01-06 00:37:18','1',NULL,0,NULL,NULL,NULL),
(38,'societe','prof',1,'2020-01-05 20:37:18','Profession','varchar','128',3,0,'',0,0,NULL,'-1',0,0,NULL,NULL,NULL,12,12,'2020-01-06 00:37:18','1',NULL,0,NULL,NULL,NULL),
(39,'societe','birthdate',1,'2020-01-05 20:37:19','Birth date','date','0',4,0,'',0,0,NULL,'-1',0,0,NULL,NULL,NULL,12,12,'2020-01-06 00:37:19','1',NULL,0,NULL,NULL,NULL),
(40,'cabinetmed_cons','aaa',1,'2020-01-06 17:23:52','aaa','varchar','255',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2020-01-06 21:23:52','1',NULL,0,NULL,NULL,NULL),
(45,'commande','aaa',1,'2023-01-12 11:33:26','aaa','varchar','255',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2023-01-12 08:33:26','1',NULL,0,NULL,NULL,NULL),
(46,'product','separatorproduct',1,'2023-01-19 12:20:13','SELLYOURSAAS_NAME','separate','',100,1,'a:1:{s:7:\"options\";a:1:{i:1;i:1;}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(47,'product','app_or_option',1,'2023-01-19 12:20:13','AppOrOption','select','',110,1,'a:1:{s:7:\"options\";a:3:{s:3:\"app\";s:11:\"Application\";s:6:\"system\";s:6:\"System\";s:6:\"option\";s:6:\"Option\";}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','HelpOnAppOrOption',0,NULL,NULL,NULL),
(48,'product','availabelforresellers',1,'2023-01-19 12:20:13','AvailableForResellers','boolean','',111,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(49,'product','package',1,'2023-01-19 12:20:13','Package','link','',111,1,'a:1:{s:7:\"options\";a:1:{s:46:\"Packages:sellyoursaas/class/packages.class.php\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','IfSomethingMustBeDeployed',0,NULL,NULL,NULL),
(50,'product','resource_formula',1,'2023-01-19 12:20:13','QuantityCalculationFormula','text','8192',112,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','QtyFormulaExamples',0,NULL,NULL,NULL),
(51,'product','resource_label',1,'2023-01-19 12:20:13','ResourceUnitLabel','varchar','32',112,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','ResourceUnitLabelDesc',0,NULL,NULL,NULL),
(52,'product','freeperioddays',1,'2023-01-19 12:20:13','DaysForFreePeriod','int','6',113,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(53,'product','directaccess',1,'2023-01-19 12:20:13','AccessToResources','select','',114,1,'a:1:{s:7:\"options\";a:5:{i:0;s:2:\"No\";i:1;s:3:\"Yes\";i:2;s:20:\"DuringTestPeriodOnly\";i:3;s:19:\"AfterTestPeriodOnly\";i:4;s:8:\"OnDemand\";}}',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(54,'product','sshaccesstype',1,'2023-01-19 12:20:13','SshAccessType','select','',114,1,'a:1:{s:7:\"options\";a:3:{i:0;s:13:\"SystemDefault\";i:1;s:14:\"CommonUserJail\";i:2;s:15:\"PrivateUserJail\";}}',0,0,NULL,'($conf->global->SELLYOURSAAS_SSH_JAILKIT_ENABLED?1:0)',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','HelpOnSshAccessType',0,NULL,NULL,NULL),
(55,'product','typesupport',1,'2023-01-19 12:20:13','TypeOfSupport','select','',115,1,'a:1:{s:7:\"options\";a:3:{s:5:\"basic\";s:5:\"Basic\";s:7:\"premium\";s:7:\"Premium\";s:4:\"none\";s:4:\"None\";}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(56,'product','register_text',1,'2023-01-19 12:20:13','RegisterText','varchar','255',120,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','EnterHereTranslationKeyToUseOnRegisterPage',0,NULL,NULL,NULL),
(57,'product','register_discountcode',1,'2023-01-19 12:20:13','DiscountCodes','varchar','255',121,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled && !empty($conf->global->SELLYOURSAAS_ACCEPT_DISCOUNTCODE)','EnterHereListOfDiscountCodes',0,NULL,NULL,NULL),
(58,'product','email_template_trialreminder',1,'2023-01-19 12:20:13','EmailTemplateTrialExpiringReminder','int','',123,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','EmailTemplateTrialExpiringReminderHelp',0,NULL,NULL,NULL),
(59,'product','email_template_trialsuspended',1,'2023-01-19 12:20:13','EmailTemplateSuspendedTrial','int','',125,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','EmailTemplateSuspendedTrialHelp',0,NULL,NULL,NULL),
(60,'product','position',1,'2023-01-19 12:20:13','Position','int','5',150,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(61,'societe','separatorthirdparty',1,'2023-01-19 12:20:13','SELLYOURSAAS_NAME','separate','',100,1,'a:1:{s:7:\"options\";a:1:{i:1;i:1;}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(62,'societe','dolicloud',1,'2023-01-19 12:20:13','SaasCustomer','select','3',102,1,'a:1:{s:7:\"options\";a:2:{s:2:\"no\";s:2:\"No\";s:5:\"yesv2\";s:3:\"Yes\";}}',0,1,NULL,'1',0,0,NULL,'no','sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(63,'societe','date_registration',1,'2023-01-19 12:20:13','RegistrationDate','datetime','',103,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(64,'societe','domain_registration_page',1,'2023-01-19 12:20:13','DomainOfRegistrationPage','varchar','128',103,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(65,'societe','ip_confirm_email',1,'2023-01-19 12:20:13','IPConfirmEmail','ip','',180,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(66,'societe','source',1,'2023-01-19 12:20:13','Source','varchar','64',104,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,'tdoverflowmax200'),
(67,'societe','source_utm',1,'2023-01-19 12:20:13','SourceUtm','varchar','64',104,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,'tdoverflowmax150'),
(68,'societe','firstname',1,'2023-01-19 12:20:13','FirstName','varchar','64',105,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(69,'societe','lastname',1,'2023-01-19 12:20:13','LastName','varchar','64',106,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(70,'societe','password',1,'2023-01-19 12:20:13','DashboardPassword','password','128',150,1,'a:1:{s:7:\"options\";a:1:{s:4:\"auto\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(71,'societe','oldpassword',1,'2023-01-19 12:20:13','OldDashboardPassword','varchar','128',151,0,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(72,'societe','pass_temp',1,'2023-01-19 12:20:13','HashForPasswordReset','varchar','128',152,1,'',0,0,NULL,'0',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(73,'societe','optinmessages',1,'2023-01-19 12:20:13','OptinForCommercialMessages','boolean','',160,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(74,'societe','emailccinvoice',1,'2023-01-19 12:20:13','EmailCCInvoices','varchar','255',180,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(75,'societe','manualcollection',1,'2023-01-19 12:20:13','ManualCollection','boolean','',194,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','If checked, the batch SellYourSaasValidateDraftInvoices will never validate invoices of this customer',0,NULL,NULL,NULL),
(76,'societe','commission',1,'2023-01-19 12:20:13','PartnerCommission','int','3',195,1,'a:1:{s:7:\"options\";a:1:{s:4:\"auto\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(78,'societe','maxnbofinstances',1,'2023-01-19 12:20:13','MaxNbOfInstances','int','3',198,1,'',0,0,NULL,'-1',0,0,NULL,'4','sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(79,'societe','checkboxnonprofitorga',1,'2023-01-19 12:20:13','NonProfitOrganization','select','10',199,1,'a:1:{s:7:\"options\";a:2:{s:6:\"profit\";s:18:\"ProfitOrganization\";s:9:\"nonprofit\";s:21:\"NonProfitOrganization\";}}',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(80,'contrat','separatorcontract',1,'2023-01-19 12:20:13','SELLYOURSAAS_NAME','separate','',100,1,'a:1:{s:7:\"options\";a:1:{i:1;i:1;}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(81,'contrat','plan',1,'2023-01-19 12:20:13','Plan','varchar','64',102,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,'tdoverflowmax150'),
(82,'contrat','deployment_init_adminpass',1,'2023-01-19 12:20:13','DeploymentInitPassword','varchar','64',103,1,'',0,0,NULL,'-2',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(83,'contrat','deployment_status',1,'2023-01-19 12:20:13','DeploymentStatus','select','',104,1,'a:1:{s:7:\"options\";a:3:{s:10:\"processing\";s:10:\"Processing\";s:4:\"done\";s:4:\"Done\";s:10:\"undeployed\";s:10:\"Undeployed\";}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(84,'contrat','deployment_host',1,'2023-01-19 12:20:13','DeploymentHost','varchar','128',105,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:13','$conf->sellyoursaas->enabled','DeploymentHostDesc',0,NULL,NULL,NULL),
(85,'contrat','deployment_date_start',1,'2023-01-19 12:20:14','DeploymentDateStart','datetime','',106,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(86,'contrat','deployment_date_end',1,'2023-01-19 12:20:14','DeploymentDateEnd','datetime','',107,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(87,'contrat','deployment_ip',1,'2023-01-19 12:20:14','DeploymentIP','ip','',108,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(88,'contrat','deployment_vpn_proba',1,'2023-01-19 12:20:14','DeploymentIPVPNProba','double','8,4',109,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','DeploymentIPVPNProbaDesc:ipvpnprob',0,NULL,NULL,NULL),
(89,'contrat','deployment_ipquality',1,'2023-01-19 12:20:14','DeploymentIPQuality','varchar','255',110,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','DeploymentIPQualityDesc:ipquality',0,NULL,NULL,NULL),
(90,'contrat','deployment_emailquality',1,'2023-01-19 12:20:14','DeploymentEmailQuality','varchar','255',110,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','DeploymentEmailQualityDesc:ipquality',0,NULL,NULL,NULL),
(91,'contrat','deployment_ua',1,'2023-01-19 12:20:14','DeploymentUserAgent','varchar','255',111,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(92,'contrat','date_softalert_endfreeperiod',1,'2023-01-19 12:20:14','DateSoftAlertEndTrial','datetime','',112,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(93,'contrat','date_endfreeperiod',1,'2023-01-19 12:20:14','DateEndTrial','datetime','',113,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(94,'contrat','undeployment_date',1,'2023-01-19 12:20:14','UndeploymentDate','datetime','',114,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(95,'contrat','undeployment_ip',1,'2023-01-19 12:20:14','UndeploymentIP','varchar','128',115,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(96,'contrat','custom_url',1,'2023-01-19 12:20:14','CustomURL','varchar','128',117,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(97,'contrat','custom_virtualhostline',1,'2023-01-19 12:20:14','CustomVirtualHostLine','varchar','255',118,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','EnterAVirtualHostLine:virthostline',0,NULL,NULL,NULL),
(98,'contrat','custom_virtualhostdir',1,'2023-01-19 12:20:14','CustomVirtualHostDir','varchar','255',119,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','EnterAVirtualHostDirLine:virthostdirline',0,NULL,NULL,NULL),
(99,'contrat','hostname_os',1,'2023-01-19 12:20:14','Hostname OS','varchar','128',120,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(100,'contrat','username_os',1,'2023-01-19 12:20:14','Username OS','varchar','32',121,1,'',1,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(101,'contrat','password_os',1,'2023-01-19 12:20:14','Password OS','varchar','32',122,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(102,'contrat','sshaccesstype',1,'2023-01-19 12:20:14','SshAccessType','select','',123,1,'a:1:{s:7:\"options\";a:3:{i:0;s:13:\"SystemDefault\";i:1;s:14:\"CommonUserJail\";i:2;s:15:\"PrivateUserJail\";}}',0,0,NULL,'($conf->global->SELLYOURSAAS_SSH_JAILKIT_ENABLED?1:0)',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','HelpOnSshAccessType',0,NULL,NULL,NULL),
(103,'contrat','hostname_db',1,'2023-01-19 12:20:14','Hostname DB','varchar','128',124,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(104,'contrat','database_db',1,'2023-01-19 12:20:14','Database DB','varchar','32',125,1,'',1,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(105,'contrat','port_db',1,'2023-01-19 12:20:14','Port DB','varchar','8',126,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(106,'contrat','username_db',1,'2023-01-19 12:20:14','Username DB','varchar','32',127,1,'',1,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(107,'contrat','password_db',1,'2023-01-19 12:20:14','Password DB','varchar','64',128,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','ToUpdateDBPassword',0,NULL,NULL,NULL),
(108,'contrat','username_ro_db',1,'2023-01-19 12:20:14','Read-only Username DB','varchar','32',129,1,'',1,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(109,'contrat','password_ro_db',1,'2023-01-19 12:20:14','Read-only Password DB','varchar','64',130,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','ToCreateDBUserManualy',0,NULL,NULL,NULL),
(110,'contrat','prefix_db',1,'2023-01-19 12:20:14','Special table prefix DB','varchar','64',140,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(111,'contrat','timezone',1,'2023-01-19 12:20:14','TimeZone','varchar','64',141,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','SellYourSaasTimeZoneDesc',0,NULL,NULL,NULL),
(112,'contrat','fileauthorizekey',1,'2023-01-19 12:20:14','DateFileauthorizekey','datetime','',150,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(113,'contrat','filelock',1,'2023-01-19 12:20:14','DateFilelock','datetime','',151,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(114,'contrat','fileinstallmoduleslock',1,'2023-01-19 12:20:14','DateFileInstallmoduleslock','datetime','',152,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(115,'contrat','latestresupdate_date',1,'2023-01-19 12:20:14','LatestResUpdateDate','datetime','',155,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(116,'contrat','latestbackup_date',1,'2023-01-19 12:20:14','LatestBackupDate','datetime','',159,1,'',0,0,NULL,'-2',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(117,'contrat','latestbackup_date_ok',1,'2023-01-19 12:20:14','LatestBackupDateOK','datetime','',160,1,'',0,0,NULL,'-2',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(118,'contrat','latestbackup_status',1,'2023-01-19 12:20:14','LatestBackupStatus','varchar','2',161,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(119,'contrat','latestbackup_message',1,'2023-01-19 12:20:14','LatestBackupMessage','text','8192',162,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(120,'contrat','backup_frequency',1,'2023-01-19 12:20:14','BackupFrequency','int','3',165,1,'',0,0,NULL,'-1',0,0,NULL,'1','sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(121,'contrat','maxperday',1,'2023-01-19 12:20:14','MaxEmailPerDay','int','6',166,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','MaxEmailPerDayDesc',0,NULL,NULL,NULL),
(122,'contrat','cookieregister_counter',1,'2023-01-19 12:20:14','RegistrationCounter','int','10',170,1,'',0,0,NULL,'-1',1,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(123,'contrat','cookieregister_previous_instance',1,'2023-01-19 12:20:14','RegistrationPreviousInstance','varchar','128',171,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(124,'contrat','discountcode',1,'2023-01-19 12:20:14','DiscountCode','varchar','255',200,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','DiscountCodeDesc',0,NULL,NULL,NULL),
(125,'contrat','suspendmaintenance_message',1,'2023-01-19 12:20:14','Maintenance message','varchar','255',210,1,'',0,0,NULL,'-2',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(126,'contrat','commentonqty',1,'2023-01-19 12:20:14','CommentOnQty','text','8192',220,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','CommentOnQtyDesc',0,NULL,NULL,'tdoverflowmax150'),
(127,'contrat','spammer',1,'2023-01-19 12:20:14','EvilUser','varchar','8',300,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(128,'contrat','reasonundeploy',1,'2023-01-19 12:20:14','ReasonUninstall','varchar','255',300,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(129,'contrat','commentundeploy',1,'2023-01-19 12:20:14','CommentOfUninstall','text','8192',300,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(131,'facture','commission',1,'2023-01-19 12:20:14','PartnerCommissionForThisInvoice','int','3',1020,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(132,'facture','reseller',1,'2023-01-19 12:20:14','Reseller','link','3',1030,1,'a:1:{s:7:\"options\";a:1:{s:39:\"Societe:societe/class/societe.class.php\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(133,'facture','delayautopayment',1,'2023-01-19 12:20:14','DelayAutomaticPayment','date','',1035,1,'',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','DelayAutomaticPaymentDesc',0,NULL,NULL,NULL),
(134,'facture_rec','discountcode',1,'2023-01-19 12:20:14','DiscountCode','varchar','255',200,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','DiscountCodeDesc',0,NULL,NULL,NULL),
(135,'facture_rec','commentonqty',1,'2023-01-19 12:20:14','CommentOnQty','text','8192',220,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','CommentOnQtyDesc',0,NULL,NULL,NULL),
(136,'user','rsapublicmain',1,'2023-01-19 12:20:14','PublicRSAKey','text','2000',100,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','PublicRSAKeyDesc',0,NULL,NULL,NULL),
(137,'user','ippublicmain',1,'2023-01-19 12:20:14','IPPublicMain','varchar','255',105,1,'',0,0,NULL,'1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-01-19 09:20:14','$conf->sellyoursaas->enabled','IPPublicMainDesc',0,NULL,NULL,NULL),
(138,'facture','separatorinvoice',1,'2023-02-04 13:58:54','SELLYOURSAAS_NAME','separate','',1000,0,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'3',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-02-04 10:58:54','$conf->sellyoursaas->enabled',NULL,0,NULL,NULL,NULL),
(140,'user','aaa',1,'2023-02-07 00:41:52','aaa','varchar','255',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,'$objectoffield->fk_user',NULL,NULL,12,12,'2023-02-06 21:41:52','1',NULL,0,NULL,NULL,NULL),
(141,'societe','stripeaccount',1,'2023-02-10 23:45:28','StripeAccount','varchar','255',197,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'-1',0,0,NULL,NULL,'sellyoursaas@sellyoursaas',12,12,'2023-02-10 20:45:28','$conf->sellyoursaas->enabled','Ceci est un texte',0,NULL,NULL,NULL),
(142,'partnership','fdsf',1,'2023-02-21 09:25:48','fdsf','varchar','255',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2023-02-21 06:25:48','1',NULL,0,NULL,NULL,NULL),
(143,'user','news_viewed',1,'2023-02-28 12:49:59','Nouveautés vues','boolean','2',100,0,'',0,0,NULL,'0',0,0,NULL,NULL,NULL,12,12,'2023-02-28 09:49:59','1',NULL,0,NULL,NULL,NULL),
(144,'socpeople','c42contact_infoextranet',1,'2023-02-28 12:53:23','Contact li&eacute; &agrave; Gestion de Parc','boolean','',42600,1,'',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2023-02-28 09:53:23','1',NULL,0,NULL,NULL,NULL),
(145,'ticket','c42ticket_device_linked',1,'2023-02-28 12:53:23','Equipement li&eacute;','link','',42601,1,'a:1:{s:7:\"options\";a:1:{s:41:\"Device:gestionparc/class/device.class.php\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2023-02-28 09:53:23','1',NULL,0,NULL,NULL,NULL),
(146,'fichinter','c42i_device_id_under_contract',1,'2023-02-28 12:53:23','Equipement sous gestion','link','',42602,1,'a:1:{s:7:\"options\";a:1:{s:42:\"Device:/gestionparc/class/device.class.php\";N;}}',0,0,NULL,'1',0,0,NULL,NULL,NULL,12,12,'2023-02-28 09:53:23','1',NULL,0,NULL,NULL,NULL),
(161,'commande_fournisseurdet','ddm',1,'2023-03-08 01:39:52','ddm','double','24,8',100,1,'a:1:{s:7:\"options\";a:1:{s:0:\"\";N;}}',0,0,NULL,'1',0,0,'(($reloadedobj = new CommandeFournisseur($db)) && ($reloadedobj->fetchNoCompute($objectoffield->fk_commande))) ? dol_print_date($reloadedobj->delivery_date + 3600 * 24 * 18 * 30, \'day\') : \'error\'',NULL,NULL,12,12,'2023-03-07 22:39:52','1',NULL,0,NULL,NULL,NULL);

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

CREATE TABLE `llx_facture` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `ref_client` varchar(255) DEFAULT NULL,
  `increment` varchar(10) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_closing` datetime 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_missing_amount` double(24,8) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `total_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_ht` 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_user_closing` 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 DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `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,
  `retained_warranty` double DEFAULT NULL,
  `retained_warranty_date_limit` date DEFAULT NULL,
  `retained_warranty_fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_transport_mode` int(11) DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_fac_rec_source` int(11) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `module_source` varchar(32) DEFAULT NULL,
  `pos_source` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_ref` (`ref`,`entity`),
  KEY `idx_facture_fk_soc` (`fk_soc`),
  KEY `idx_facture_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
  KEY `idx_facture_fk_projet` (`fk_projet`),
  KEY `idx_facture_fk_account` (`fk_account`),
  KEY `idx_facture_fk_currency` (`fk_currency`),
  KEY `idx_facture_fk_statut` (`fk_statut`),
  KEY `idx_facture_datef` (`datef`),
  CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=241 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture` VALUES
(2,'FA1007-0002',1,NULL,NULL,0,NULL,NULL,2,'2012-07-10 18:20:13','2022-07-10',NULL,NULL,'2023-01-02 18:40:38',1,10.00000000,NULL,NULL,0,NULL,NULL,NULL,0.10000000,0.00000000,0.00000000,0.00000000,46.00000000,46.10000000,2,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-07-10',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,'facture/FA1007-0002/FA1007-0002.pdf',NULL,NULL),
(3,'FA1107-0006',1,NULL,NULL,0,NULL,NULL,10,'2013-07-18 20:33:35','2022-07-18',NULL,NULL,'2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,15.00000000,15.00000000,2,1,NULL,1,NULL,NULL,1,NULL,NULL,1,0,'2022-07-18',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(5,'FA1108-0003',1,NULL,NULL,0,NULL,NULL,7,'2013-08-01 03:34:11','2022-08-01',NULL,NULL,'2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.63000000,0.00000000,0.00000000,0.00000000,5.00000000,5.63000000,2,1,NULL,1,NULL,NULL,NULL,NULL,NULL,0,6,'2022-08-01',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(6,'FA1108-0004',1,NULL,NULL,0,NULL,NULL,7,'2013-08-06 20:33:53','2022-08-06',NULL,NULL,'2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.98000000,0.00000000,0.00000000,0.00000000,5.00000000,5.98000000,2,1,NULL,1,NULL,NULL,NULL,NULL,NULL,0,4,'2022-08-06','Cash\nReceived : 6 EUR\nRendu : 0.02 EUR\n\n--------------------------------------',NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(8,'FA1108-0005',1,NULL,NULL,3,NULL,NULL,2,'2013-08-08 02:41:44','2022-08-08',NULL,NULL,'2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,10.00000000,10.00000000,2,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-08-08',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(9,'FA1108-0007',1,NULL,NULL,3,NULL,NULL,10,'2013-08-08 02:55:14','2022-08-08',NULL,NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,1.96000000,0.00000000,0.00000000,0.00000000,10.00000000,11.96000000,1,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-08-08',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(10,'AV1212-0001',1,NULL,NULL,2,NULL,NULL,10,'2014-12-08 17:45:20','2022-12-08','2022-12-08 00:00:00',NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,-0.63000000,0.00000000,0.00000000,0.00000000,-11.00000000,-11.63000000,1,1,NULL,1,NULL,3,NULL,NULL,NULL,0,0,'2022-12-08',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(12,'AV1212-0002',1,NULL,NULL,2,NULL,NULL,10,'2014-12-08 18:20:14','2022-12-08','2022-12-08 00:00:00',NULL,'2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,-5.00000000,-5.00000000,2,1,NULL,1,NULL,3,NULL,NULL,NULL,0,0,'2022-12-08',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(13,'FA1212-0011',1,NULL,NULL,0,NULL,NULL,7,'2014-12-09 20:04:19','2022-12-09','2022-02-12 00:00:00',NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,2.74000000,0.00000000,0.00000000,0.00000000,14.00000000,16.74000000,1,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-12-09',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(32,'FA1212-0021',1,NULL,NULL,0,NULL,NULL,1,'2014-12-11 09:34:23','2022-12-11','2022-03-24 00:00:00',NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,90.00000000,0.00000000,0.00000000,0.60000000,520.00000000,610.60000000,1,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-12-11','This is a comment (private)','This is a comment (public)','crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(33,'FA1212-0023',1,NULL,NULL,0,NULL,NULL,1,'2014-12-11 09:34:23','2022-12-11','2022-03-03 00:00:00',NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,'abandon',NULL,NULL,0.24000000,0.00000000,0.00000000,0.00000000,2.48000000,2.72000000,3,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-12-11','This is a comment (private)','This is a comment (public)','crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(55,'FA1212-0009',1,NULL,NULL,0,NULL,NULL,1,'2014-12-11 09:35:51','2022-12-11','2023-02-04 12:42:34',NULL,'2023-02-08 12:48:41',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.36000000,0.00000000,0.00000000,0.00000000,4.48000000,4.84000000,1,1,NULL,12,NULL,NULL,NULL,NULL,NULL,1,3,'2022-12-11','This is a comment (private)','This is a comment (public)','crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,2.00000000,0.12000000,2.12000000,NULL,NULL,NULL,NULL),
(148,'FS1301-0001',1,NULL,NULL,0,NULL,NULL,1,'2015-01-19 18:22:48','2022-01-19','2022-01-19 00:00:00',NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.63000000,0.00000000,0.00000000,0.00000000,5.00000000,5.63000000,1,1,NULL,1,NULL,NULL,NULL,NULL,NULL,0,1,'2022-01-19',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,'facture/FS1301-0001/FS1301-0001.pdf',NULL,NULL),
(149,'FA1601-0024',1,NULL,NULL,0,NULL,NULL,1,'2015-01-19 18:30:05','2022-01-19','2021-08-29 00:00:00','2020-01-02 20:49:34','2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,'other',NULL,'test',1.80000000,0.90000000,0.90000000,0.00000000,20.00000000,23.60000000,2,1,NULL,12,12,NULL,NULL,NULL,NULL,0,0,'2022-01-19',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,20.00000000,1.80000000,23.60000000,NULL,'facture/FA1601-0024/FA1601-0024.pdf',NULL,NULL),
(150,'FA6801-0010',1,NULL,NULL,0,NULL,NULL,1,'2015-01-19 18:31:10','2022-01-19','2021-10-04 00:00:00',NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.63000000,0.00000000,0.00000000,0.00000000,5.00000000,5.63000000,1,1,NULL,12,NULL,NULL,NULL,NULL,NULL,0,1,'2022-01-19',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,5.00000000,0.63000000,5.63000000,NULL,'facture/FA6801-0010/FA6801-0010.pdf',NULL,NULL),
(151,'FS1301-0002',1,NULL,NULL,0,NULL,NULL,1,'2015-01-19 18:31:58','2022-01-19','2022-01-19 00:00:00',NULL,'2022-02-07 13:37:54',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,2,1,NULL,1,NULL,NULL,NULL,NULL,NULL,0,1,'2022-01-19',NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(160,'FA1507-0015',1,NULL,NULL,0,NULL,NULL,12,'2015-03-06 16:47:48','2022-07-18','2022-03-06 00:00:00',NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,1.11000000,0.00000000,0.00000000,0.00000000,8.89000000,10.00000000,1,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-07-18',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(210,'FA1107-0019',1,NULL,NULL,0,NULL,NULL,10,'2015-03-20 14:30:11','2022-07-10','2022-03-20 00:00:00',NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,10.00000000,10.00000000,1,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,0,'2022-07-10',NULL,NULL,'generic_invoice_odt:/home/ldestailleur/git/dolibarr_3.8/documents/doctemplates/invoices/template_invoice.odt',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(211,'FA1303-0020',1,NULL,NULL,0,NULL,NULL,19,'2015-03-22 09:40:10','2022-03-22','2021-03-02 00:00:00',NULL,'2022-07-04 01:11:35',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,17.64000000,0.00000000,0.00000000,0.40000000,340.00000000,358.04000000,1,1,NULL,1,NULL,NULL,NULL,NULL,NULL,1,3,'2022-03-22',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(213,'AV1303-0003',1,NULL,NULL,2,NULL,NULL,1,'2016-03-03 19:22:03','2022-03-03','2021-03-03 00:00:00',NULL,'2022-07-04 01:11:35',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,-1000.00000000,-1000.00000000,1,1,NULL,1,NULL,32,NULL,NULL,NULL,0,0,'2022-03-03',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(216,'(PROV216)',1,NULL,NULL,0,NULL,NULL,26,'2017-02-12 23:21:27','2022-02-12',NULL,NULL,'2022-07-04 01:11:35',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,'2022-02-12',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,'',NULL,NULL,0,'EUR',1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL),
(217,'(PROV217)',1,NULL,NULL,0,NULL,NULL,1,'2017-08-31 13:26:17','2022-08-31',NULL,NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,1.13000000,0.00000000,0.00000000,0.00000000,21.00000000,22.13000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,'2022-08-31',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,'',NULL,NULL,1,'EUR',1.00000000,21.00000000,1.13000000,22.13000000,NULL,'facture/(PROV217)/(PROV217).pdf',NULL,NULL),
(218,'FA1909-0025',1,NULL,NULL,0,NULL,NULL,12,'2019-09-26 17:30:14','2022-09-26','2022-09-26 00:00:00',NULL,'2022-12-11 21:23:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,1.08000000,0.00000000,0.00000000,0.00000000,42.50000000,43.58000000,1,12,NULL,12,NULL,NULL,NULL,NULL,NULL,0,0,'2022-09-26',NULL,NULL,'',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,0,'',NULL,NULL,0,'EUR',1.00000000,42.50000000,1.08000000,43.58000000,NULL,NULL,'takepos','1'),
(219,'(PROV-POS1-0)',1,NULL,NULL,0,NULL,NULL,1,'2019-11-28 19:04:03','2022-11-28',NULL,NULL,'2023-01-31 19:53:15',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,5.77000000,0.00000000,0.00000000,0.00000000,34.59000000,40.36000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,'2022-11-28',NULL,NULL,'',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,0,'USD',1.30000000,44.98000000,7.49000000,52.47000000,NULL,NULL,'takepos','1'),
(220,'(PROV220)',1,NULL,NULL,3,NULL,NULL,19,'2020-01-16 02:03:17','2022-01-16',NULL,NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,100.00000000,100.00000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,'2022-01-16',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,100.00000000,0.00000000,100.00000000,NULL,NULL,NULL,NULL),
(221,'AC2001-0001',1,NULL,NULL,3,NULL,NULL,19,'2020-01-16 02:21:05','2022-01-16','2022-01-16 00:00:00',NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,123.00000000,123.00000000,0,12,NULL,12,NULL,NULL,NULL,NULL,NULL,1,0,'2022-01-16',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,123.00000000,0.00000000,123.00000000,NULL,'facture/AC2001-0001/AC2001-0001.pdf',NULL,NULL),
(222,'(PROV222)',1,NULL,NULL,3,NULL,NULL,19,'2020-01-16 02:21:28','2022-01-16',NULL,NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,100.00000000,100.00000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,'2022-01-16',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,100.00000000,0.00000000,100.00000000,NULL,NULL,NULL,NULL),
(223,'(PROV223)',1,NULL,NULL,0,NULL,NULL,19,'2020-01-16 02:32:04','2022-01-16',NULL,NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,410.00000000,410.00000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,0,'2021-02-15',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,410.00000000,0.00000000,410.00000000,NULL,NULL,NULL,NULL),
(224,'AC2001-0002',1,NULL,NULL,3,NULL,NULL,19,'2020-01-16 02:33:19','2022-01-16','2022-01-16 00:00:00','2020-01-16 02:36:48','2022-02-07 13:37:54',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,20.50000000,20.50000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,1,0,'2022-01-16',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,20.50000000,0.00000000,20.50000000,NULL,'facture/AC2001-0002/AC2001-0002.pdf',NULL,NULL),
(225,'(PROV225)',1,NULL,NULL,0,NULL,NULL,19,'2020-01-16 02:37:48','2022-01-16',NULL,NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,389.50000000,389.50000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,2,0,'2021-02-15',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,389.50000000,0.00000000,389.50000000,NULL,'facture/(PROV225)/(PROV225).pdf',NULL,NULL),
(226,'(PROV226)',1,NULL,NULL,3,NULL,NULL,11,'2020-01-19 14:20:54','2022-01-19',NULL,NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,12.50000000,0.00000000,0.00000000,0.00000000,120.00000000,132.50000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,'2022-01-19',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,120.00000000,12.50000000,132.50000000,NULL,'facture/(PROV226)/(PROV226).pdf',NULL,NULL),
(227,'AC2001-0003',1,NULL,NULL,3,NULL,NULL,1,'2020-01-19 14:22:54','2022-01-19','2022-01-19 00:00:00',NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,39.20000000,0.00000000,0.00000000,0.00000000,200.00000000,239.20000000,0,12,NULL,12,NULL,NULL,NULL,NULL,NULL,1,0,'2022-01-19',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,200.00000000,39.20000000,239.20000000,NULL,'facture/AC2001-0003/AC2001-0003.pdf',NULL,NULL),
(228,'AC2001-0004',1,NULL,NULL,3,NULL,NULL,1,'2020-01-19 14:24:49','2022-01-19','2022-01-19 00:00:00',NULL,'2022-02-07 13:37:54',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,1.94000000,0.00000000,0.00000000,0.00000000,48.60000000,50.54000000,1,12,NULL,12,NULL,NULL,NULL,NULL,NULL,1,0,'2022-01-19',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,48.60000000,1.94000000,50.54000000,NULL,'facture/AC2001-0004/AC2001-0004.pdf',NULL,NULL),
(229,'FA1707-0026',1,NULL,NULL,0,NULL,NULL,12,'2020-01-21 10:23:17','2022-07-18','2023-01-21 00:00:00','2020-01-21 10:23:17','2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,50.00000000,50.00000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,1,0,'2022-07-18',NULL,NULL,'',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,50.00000000,0.00000000,50.00000000,NULL,'facture/FA1707-0026/FA1707-0026.pdf',NULL,NULL),
(230,'FA1807-0027',1,NULL,NULL,0,NULL,NULL,12,'2020-01-21 10:23:28','2022-07-18','2022-01-21 00:00:00','2020-01-21 10:23:28','2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,50.00000000,50.00000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,1,0,'2022-07-18',NULL,NULL,'',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,50.00000000,0.00000000,50.00000000,NULL,'facture/FA1807-0027/FA1807-0027.pdf',NULL,NULL),
(231,'FA1907-0028',1,NULL,NULL,0,NULL,NULL,12,'2020-01-21 10:23:49','2022-07-18','2022-01-21 00:00:00','2020-01-21 10:23:49','2022-12-11 21:23:22',1,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,50.00000000,50.00000000,2,12,NULL,12,12,NULL,NULL,NULL,NULL,1,0,'2022-07-18',NULL,NULL,'',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,0,'EUR',1.00000000,50.00000000,0.00000000,50.00000000,NULL,'facture/FA1907-0028/FA1907-0028.pdf',NULL,NULL),
(232,'FA2301-0029',1,NULL,NULL,0,NULL,NULL,36,'2023-01-18 07:53:53','2023-01-18','2023-01-18 07:54:02',NULL,'2023-01-18 10:54:02',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,200.00000000,0.00000000,0.00000000,0.00000000,1000.00000000,1200.00000000,1,12,NULL,12,NULL,NULL,NULL,NULL,NULL,1,0,'2023-01-18',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,'2023-01-18',0,0,'',NULL,NULL,1,'EUR',1.00000000,1000.00000000,200.00000000,1200.00000000,NULL,'facture/FA2301-0029/FA2301-0029.pdf',NULL,NULL),
(233,'AV2301-0004',1,NULL,NULL,2,NULL,NULL,36,'2023-01-18 07:54:15','2023-01-18','2023-01-18 07:54:30',NULL,'2023-01-18 10:54:30',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,-200.00000000,0.00000000,0.00000000,0.00000000,-1000.00000000,-1200.00000000,1,12,NULL,12,NULL,232,NULL,NULL,NULL,0,0,'2023-01-18',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,-1000.00000000,-200.00000000,-1200.00000000,NULL,'facture/AV2301-0004/AV2301-0004.pdf',NULL,NULL),
(234,'(PROV-POS1-0-1)',1,NULL,NULL,0,NULL,NULL,7,'2023-01-31 16:48:47','2023-01-31',NULL,NULL,'2023-01-31 19:53:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,8.83000000,0.00000000,0.00000000,0.00000000,44.07000000,52.90000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,'2023-01-31',NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,0,'USD',1.30000000,57.32000000,11.45000000,68.77000000,NULL,NULL,'takepos','1'),
(235,'FA2302-0030',1,NULL,NULL,0,'fdfd',NULL,34,'2023-02-15 13:05:13','2023-02-15','2023-02-15 13:05:21',NULL,'2023-02-27 14:40:22',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,2.00000000,0.00000000,0.00000000,0.00000000,10.00000000,12.00000000,1,12,NULL,12,NULL,NULL,NULL,3,NULL,1,3,'2023-02-15',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,'2023-02-15',0,0,'',NULL,NULL,1,'EUR',1.00000000,10.00000000,2.00000000,12.00000000,NULL,'facture/FA2302-0030/FA2302-0030.pdf',NULL,NULL),
(236,'FA2302-0031',1,NULL,NULL,0,NULL,NULL,34,'2023-02-15 13:17:22','2023-02-15','2023-02-15 13:17:31',NULL,'2023-02-15 16:17:31',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,2.00000000,0.00000000,0.00000000,0.00000000,10.00000000,12.00000000,1,12,NULL,12,NULL,NULL,4,3,NULL,1,0,'2023-02-15',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,'2023-02-15',0,0,'',NULL,NULL,1,'EUR',1.00000000,10.00000000,2.00000000,12.00000000,NULL,'facture/FA2302-0031/FA2302-0031.pdf',NULL,NULL),
(237,'FA2303-0032',1,NULL,NULL,5,NULL,NULL,1,'2023-03-02 13:11:22','2023-03-02','2023-03-02 13:16:15',NULL,'2023-03-02 16:16:15',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,50.00000000,50.00000000,1,12,NULL,12,NULL,NULL,NULL,3,NULL,1,0,'2023-03-02',NULL,NULL,'crabe',NULL,NULL,1,1,0,0,'2023-03-02',0,0,'',NULL,NULL,1,'EUR',1.00000000,50.00000000,0.00000000,50.00000000,NULL,'facture/FA2303-0032/FA2303-0032.pdf',NULL,NULL),
(238,'FA2303-0033',1,NULL,NULL,5,NULL,NULL,1,'2023-03-02 13:20:59','2023-03-02','2023-03-02 13:21:13',NULL,'2023-03-08 09:40:57',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,30.00000000,30.00000000,1,12,NULL,12,NULL,237,NULL,NULL,NULL,1,3,'2023-03-02',NULL,NULL,'crabe',NULL,NULL,1,2,0,0,'2023-03-02',0,0,'',NULL,NULL,0,'EUR',1.00000000,30.00000000,0.00000000,30.00000000,NULL,'facture/FA2303-0033/FA2303-0033.pdf',NULL,NULL),
(239,'(PROV239)',1,NULL,NULL,2,NULL,NULL,2,'2023-03-15 08:24:26','2023-03-15',NULL,NULL,'2023-03-15 12:42:01',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.09000000,0.09000000,0.00000000,-1.00000000,-1.18000000,0,12,NULL,NULL,NULL,2,NULL,3,NULL,0,0,'2023-03-15',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,NULL,0,0,'',NULL,NULL,1,'EUR',1.00000000,-1.00000000,0.00000000,-1.18000000,NULL,'facture/(PROV239)/(PROV239).pdf',NULL,NULL),
(240,'(PROV240)',1,NULL,NULL,0,NULL,NULL,2,'2023-03-15 09:42:22','2023-03-15',NULL,NULL,'2023-03-15 12:45:29',0,0.00000000,NULL,NULL,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,12,NULL,NULL,NULL,NULL,NULL,3,NULL,1,0,'2023-03-15',NULL,NULL,'crabe',NULL,NULL,NULL,NULL,0,0,'2023-03-15',0,0,'',NULL,NULL,1,'EUR',1.00000000,0.00000000,0.00000000,0.00000000,NULL,'facture/(PROV240)/(PROV240).pdf',NULL,NULL);

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

CREATE TABLE `llx_facture_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `commission` int(3) DEFAULT NULL,
  `reseller` int(11) DEFAULT NULL,
  `delayautopayment` date DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_extrafields` (`fk_object`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture_extrafields` VALUES
(1,'2023-02-15 16:05:13',235,NULL,NULL,NULL,NULL),
(2,'2023-02-15 16:17:22',236,NULL,NULL,NULL,NULL),
(3,'2023-03-02 16:11:22',237,NULL,NULL,NULL,NULL),
(5,'2023-03-02 16:20:59',238,NULL,NULL,NULL,NULL),
(6,'2023-03-15 11:24:26',239,NULL,NULL,NULL,NULL),
(7,'2023-03-15 12:42:22',240,NULL,NULL,NULL,NULL);

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

CREATE TABLE `llx_facture_fourn` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(255) NOT NULL,
  `ref_supplier` varchar(255) 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_missing_amount` double(24,8) 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_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_user_closing` 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 DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `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,
  `fk_transport_mode` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL,
  `date_closing` datetime DEFAULT NULL,
  `fk_fac_rec_source` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`entity`),
  UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
  KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
  KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
  KEY `idx_facture_fourn_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`),
  CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture_fourn` VALUES
(16,'SI1601-0001','FR70813',1,NULL,0,1,'2014-12-19 15:24:11','2003-04-11','2017-02-06 04:08:22','OVH FR70813',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,829.00000000,162.48000000,991.48000000,1,1,NULL,12,NULL,NULL,NULL,NULL,1,NULL,'2003-04-11','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,NULL),
(17,'SI1601-0002','FR81385',1,NULL,0,1,'2015-02-13 17:19:35','2003-06-04','2019-10-04 08:31:30','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,NULL,NULL,26.00000000,5.10000000,31.10000000,1,1,NULL,12,NULL,NULL,NULL,NULL,4,NULL,'2003-08-03','','','canelle',NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,'2019-10-04',NULL,NULL),
(18,'SI1601-0003','FR81385',1,NULL,0,2,'2015-02-13 17:20:25','2003-06-04','2017-02-06 04:08:35','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,'2003-06-04','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,NULL),
(19,'SI1601-0004','FR813852',1,NULL,0,2,'2015-03-16 17:59:02','2015-03-16','2017-02-06 04:08:38','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,1,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,'','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,NULL,NULL,NULL),
(20,'SI1702-0001','INV-AE56ER08',1,NULL,0,13,'2017-02-01 19:00:31','2017-02-01','2017-02-01 15:05:28','',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,200.00000000,39.20000000,239.20000000,1,12,NULL,12,NULL,NULL,5,NULL,1,0,'2017-02-01','The customer has called us the 24th april. He agree us to not pay the remain of invoice due to default.<br />\r\nLet\'s see with our book keeper, if we must cancel invoice or ask the supplier a credit note...',NULL,'canelle',NULL,NULL,0,'',NULL,0,'EUR',1.00000000,200.00000000,39.20000000,239.20000000,NULL,NULL,NULL,NULL,NULL),
(21,'SI1911-0005','NL-123',1,NULL,0,10,'2019-11-28 15:54:30','2019-11-28','2019-11-28 11:54:46','',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,450.00000000,0.00000000,450.00000000,1,12,NULL,12,NULL,NULL,NULL,NULL,1,NULL,'2019-11-28','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,450.00000000,0.00000000,450.00000000,NULL,NULL,'2019-11-28',NULL,NULL),
(22,'SI2001-0006','INV20200101',1,NULL,0,17,'2020-01-01 17:48:01','2020-01-01','2023-01-10 16:24:45','',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,361.00000000,70.93000000,431.93000000,0,12,NULL,12,NULL,NULL,NULL,1,1,2,'2020-01-01','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,361.00000000,70.93000000,431.93000000,'fournisseur/facture/2/2/SI2001-0006/SI2001-0006.pdf',NULL,'2022-12-29',NULL,NULL),
(27,'SA2001-0001','CN01',1,NULL,2,17,'2020-01-01 20:21:51','2020-01-01','2022-02-07 13:38:10','',1,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,-350.00000000,-43.75000000,-393.75000000,2,12,12,12,NULL,22,NULL,NULL,1,NULL,NULL,'','ddd',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,-350.00000000,-43.75000000,-393.75000000,NULL,NULL,'2020-01-01',NULL,NULL),
(28,'SI2001-0007','INV02',1,NULL,0,17,'2020-01-01 20:22:48','2020-01-01','2020-01-01 18:06:02','',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,79.17000000,9.89000000,89.06000000,1,12,NULL,12,NULL,NULL,NULL,NULL,1,NULL,'2020-01-01','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,79.17000000,9.89000000,89.06000000,NULL,NULL,'2020-01-01',NULL,NULL),
(30,'SA2001-0002','555',1,NULL,2,1,'2020-01-01 20:51:32','2020-01-01','2020-01-01 17:15:57','',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,-26.00000000,-5.10000000,-31.10000000,1,12,NULL,12,NULL,17,NULL,NULL,1,NULL,NULL,'','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,0.00000000,0.00000000,0.00000000,NULL,NULL,'2020-01-01',NULL,NULL),
(31,'(PROV31)','aaaa',1,'',3,13,'2023-02-11 08:27:18','2023-02-11','2023-02-11 11:27:18','',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,2,NULL,'2023-03-13','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,0.00000000,0.00000000,0.00000000,'fournisseur/facture/1/3/(PROV31)/(PROV31).pdf',NULL,NULL,NULL,NULL),
(32,'SI2302-0008','aaaa',1,'',0,17,'2023-02-15 13:18:16','2023-02-15','2023-02-15 16:54:52','',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,50.00000000,10.00000000,60.00000000,1,12,NULL,12,NULL,NULL,4,NULL,1,4,'2023-02-15','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,50.00000000,10.00000000,60.00000000,'fournisseur/facture/2/3/SI2302-0008/SI2302-0008.pdf',NULL,'2023-02-15',NULL,NULL),
(34,'(PROV34)','Copy of FR81385',1,'',0,1,'2023-02-21 08:01:43','2023-02-21','2023-02-21 11:01:43','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,4,NULL,NULL,'','',NULL,NULL,NULL,0,'',NULL,0,'EUR',1.00000000,26.00000000,5.10000000,31.10000000,NULL,NULL,NULL,NULL,NULL),
(36,'(PROV36)','Copy of FR81385gg',1,'',0,1,'2023-02-21 08:05:09','2023-02-21','2023-02-21 11:05:09','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,4,NULL,NULL,'','',NULL,NULL,NULL,0,'',NULL,0,'EUR',1.00000000,26.00000000,5.10000000,31.10000000,NULL,NULL,NULL,NULL,NULL),
(38,'(PROV38)','Copy of FR81385c',1,'',0,1,'2023-02-21 08:10:59','2023-02-21','2023-02-21 11:10:59','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,NULL,NULL,26.00000000,5.10000000,31.10000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,'2023-02-21','','',NULL,NULL,NULL,0,'',NULL,0,'EUR',1.00000000,26.00000000,5.10000000,31.10000000,NULL,NULL,NULL,NULL,NULL),
(39,'(PROV39)','Copy of Copy of FR81385c',1,'',0,1,'2023-02-21 08:14:59','2023-02-21','2023-02-21 11:14:59','OVH FR81385',0,0.00000000,0.00000000,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,26.00000000,5.10000000,31.10000000,0,12,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,'2023-02-21','','',NULL,NULL,NULL,0,'',NULL,1,'EUR',1.00000000,26.00000000,5.10000000,31.10000000,NULL,NULL,NULL,NULL,NULL);

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

CREATE TABLE `llx_facture_fourn_det` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture_fourn` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `pu_ht` double(24,8) DEFAULT NULL,
  `pu_ttc` double(24,8) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `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) NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture_fourn`),
  KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`),
  KEY `idx_facture_fourn_det_fk_code_ventilation` (`fk_code_ventilation`),
  KEY `idx_facture_fourn_det_fk_product` (`fk_product`),
  CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `llx_facture_fourn` (`rowid`),
  CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture_fourn_det` VALUES
(44,16,NULL,NULL,NULL,NULL,'<strong>ref :sd.loc.sp.512.6</strong><br>6 mois - Location de SuperPlan avec la connexion 512kbs<br>Du 11/04/2003 &agrave; 11/10/2003',414.00000000,495.14400000,1,0,NULL,19.600,'',0.000,'',0.000,'',414.00000000,81.14000000,0.00000000,0.00000000,495.14000000,0,NULL,NULL,0,NULL,105,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(45,16,NULL,NULL,NULL,NULL,'<strong>ref :sd.loc.sp.512.6</strong><br>6 mois - Location de SuperPlan avec la connexion 512kbs<br>Du 11/10/2003 &agrave; 11/04/2004',414.00000000,495.14400000,1,0,NULL,19.600,'',0.000,'',0.000,'',414.00000000,81.14000000,0.00000000,0.00000000,495.14000000,0,NULL,NULL,0,NULL,104,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(46,16,NULL,NULL,NULL,NULL,'<strong>ref :sd.installation.annuel</strong><br>Frais de mise en service d\'un serveur dédié pour un paiement annuel<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,105,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(47,17,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,106,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(48,17,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,103,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(49,18,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(50,18,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(51,19,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(52,19,NULL,NULL,NULL,NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000),
(53,20,NULL,NULL,NULL,NULL,'Chips',20.00000000,23.92000000,10,0,NULL,19.600,'',0.000,'0',0.000,'0',200.00000000,39.20000000,0.00000000,0.00000000,239.20000000,0,NULL,NULL,0,NULL,323,0,0,NULL,0,'EUR',20.00000000,200.00000000,39.20000000,239.20000000),
(54,21,NULL,1,'aaa',NULL,'A beatifull pink dress',100.00000000,90.00000000,5,10,NULL,0.000,'',0.000,'0',0.000,'0',450.00000000,0.00000000,0.00000000,0.00000000,450.00000000,0,NULL,NULL,0,NULL,323,0,1,NULL,1,'EUR',100.00000000,450.00000000,0.00000000,450.00000000),
(78,22,NULL,1,'BK01',NULL,'A beatifull pink dress',70.00000000,84.00000000,5,0,NULL,20.000,'',0.000,'',0.000,'',350.00000000,70.00000000,0.00000000,0.00000000,420.00000000,0,NULL,NULL,0,NULL,323,0,2,NULL,1,'EUR',70.00000000,350.00000000,70.00000000,420.00000000),
(83,27,NULL,1,'BK01','Pink dress','A beatifull pink dress',-70.00000000,-78.75000000,5,0,NULL,12.500,'',0.000,'0',0.000,'0',-350.00000000,-43.75000000,0.00000000,0.00000000,-393.75000000,0,NULL,NULL,0,NULL,323,0,2,NULL,1,'EUR',-70.00000000,-350.00000000,-43.75000000,-393.75000000),
(84,28,NULL,1,'BK01',NULL,'A beatifull pink dress',79.16667000,89.06000000,1,0,NULL,12.500,'',0.000,'0',0.000,'0',79.17000000,9.89000000,0.00000000,0.00000000,89.06000000,0,NULL,NULL,0,NULL,323,0,1,NULL,1,'EUR',79.16667000,79.17000000,9.89000000,89.06000000),
(86,30,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',-1.00000000,-1.20000000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',-1.00000000,-0.20000000,0.00000000,0.00000000,-1.20000000,0,NULL,NULL,0,NULL,325,0,0,NULL,0,'',0.00000000,0.00000000,0.00000000,0.00000000),
(87,30,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',-25.00000000,-29.90000000,1,0,NULL,19.600,'',0.000,'0',0.000,'0',-25.00000000,-4.90000000,0.00000000,0.00000000,-29.90000000,0,NULL,NULL,0,NULL,325,0,0,NULL,0,'',0.00000000,0.00000000,0.00000000,0.00000000),
(89,22,NULL,2,'BKPEARPIE',NULL,'',7.00000000,7.70000000,1,0,NULL,10.000,'',0.000,'',0.000,'',7.00000000,0.70000000,0.00000000,0.00000000,7.70000000,0,NULL,NULL,0,NULL,324,0,3,NULL,1,'EUR',7.00000000,7.00000000,0.70000000,7.70000000),
(90,22,NULL,NULL,'',NULL,'aaa',1.00000000,1.06000000,1,0,NULL,5.500,'aaa',0.000,'0',0.000,'0',1.00000000,0.06000000,0.00000000,0.00000000,1.06000000,0,NULL,NULL,0,NULL,0,0,4,NULL,1,'EUR',1.00000000,1.00000000,0.06000000,1.06000000),
(91,22,NULL,NULL,'',NULL,'aa',2.00000000,2.11000000,1,0,NULL,5.500,'bbb',0.000,'0',0.000,'0',2.00000000,0.11000000,0.00000000,0.00000000,2.11000000,1,NULL,NULL,0,NULL,0,0,5,NULL,1,'EUR',2.00000000,2.00000000,0.11000000,2.11000000),
(92,22,NULL,NULL,'',NULL,'1',1.00000000,1.06000000,1,0,NULL,5.500,'aaa',0.000,'0',0.000,'0',1.00000000,0.06000000,0.00000000,0.00000000,1.06000000,0,NULL,NULL,0,NULL,0,0,6,NULL,1,'EUR',1.00000000,1.00000000,0.06000000,1.06000000),
(93,32,NULL,NULL,'aaa',NULL,'fsdfds',50.00000000,60.00000000,1,0,NULL,20.000,'',0.000,'',0.000,'',50.00000000,10.00000000,0.00000000,0.00000000,60.00000000,0,NULL,NULL,0,NULL,0,0,1,NULL,1,'EUR',50.00000000,50.00000000,10.00000000,60.00000000),
(96,34,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,1.00000000,1.00000000,0.20000000,1.20000000),
(97,34,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,25.00000000,25.00000000,4.90000000,29.90000000),
(98,36,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,1.00000000,1.00000000,0.20000000,1.20000000),
(99,36,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,25.00000000,25.00000000,4.90000000,29.90000000),
(100,38,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,1.00000000,1.00000000,0.20000000,1.20000000),
(101,38,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,25.00000000,25.00000000,4.90000000,29.90000000),
(102,39,NULL,NULL,'',NULL,'<strong>ref :bk.full250.creation</strong><br>Création du compte backup ftp 250Mo.<br>',1.00000000,1.19600000,1,0,NULL,19.600,'',0.000,'',0.000,'',1.00000000,0.20000000,0.00000000,0.00000000,1.20000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,1.00000000,1.00000000,0.20000000,1.20000000),
(103,39,NULL,NULL,'',NULL,'<strong>ref :bk.full250.12</strong><br>Redevance pour un backup de 250Mo sur 12 mois<br>',25.00000000,29.90000000,1,0,NULL,19.600,'',0.000,'',0.000,'',25.00000000,4.90000000,0.00000000,0.00000000,29.90000000,0,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,25.00000000,25.00000000,4.90000000,29.90000000);

--
-- Table structure for table `llx_facture_fourn_det_extrafields`
--

CREATE TABLE `llx_facture_fourn_det_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_det_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_facture_fourn_det_rec`
--

CREATE TABLE `llx_facture_fourn_det_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture_fourn` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `pu_ht` double(24,8) DEFAULT NULL,
  `pu_ttc` double(24,8) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `tva_tx` double(7,4) DEFAULT NULL,
  `localtax1_tx` double(7,4) DEFAULT 0.0000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(7,4) DEFAULT 0.0000,
  `localtax2_type` varchar(10) 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` int(11) DEFAULT NULL,
  `date_end` int(11) DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(10) unsigned DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`),
  KEY `fk_facture_fourn_det_rec_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facture_fourn_det_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_det_rec`
--


--
-- Table structure for table `llx_facture_fourn_det_rec_extrafields`
--

CREATE TABLE `llx_facture_fourn_det_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `llx_facture_fourn_det_rec_extrafields` (`fk_object`),
  KEY `idx_facture_fourn_det_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_det_rec_extrafields`
--


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

CREATE TABLE `llx_facture_fourn_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_facture_fourn_rec`
--

CREATE TABLE `llx_facture_fourn_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(200) NOT NULL,
  `ref_supplier` varchar(180) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `suspended` int(11) DEFAULT 0,
  `libelle` varchar(255) DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double DEFAULT 0,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` 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_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` 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 DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `modelpdf` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `usenewprice` int(11) DEFAULT 0,
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'm',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `auto_validate` int(11) DEFAULT 0,
  `generate_pdf` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_facture_fourn_rec_ref` (`titre`,`entity`),
  UNIQUE KEY `uk_facture_fourn_rec_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  KEY `idx_facture_fourn_rec_fk_soc` (`fk_soc`),
  KEY `idx_facture_fourn_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_fourn_rec_fk_projet` (`fk_projet`),
  KEY `idx_facture_fourn_rec_date_lim_reglement` (`date_lim_reglement`),
  CONSTRAINT `fk_facture_fourn_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_fourn_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_fourn_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_rec`
--


--
-- Table structure for table `llx_facture_fourn_rec_extrafields`
--

CREATE TABLE `llx_facture_fourn_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_fourn_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_fourn_rec_extrafields`
--


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

CREATE TABLE `llx_facture_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(200) 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,
  `total_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,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) NOT NULL DEFAULT 1,
  `fk_mode_reglement` int(11) DEFAULT 0,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `modelpdf` varchar(255) DEFAULT NULL,
  `last_gen` varchar(7) 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,
  `frequency` int(11) DEFAULT NULL,
  `usenewprice` int(11) DEFAULT 0,
  `revenuestamp` double(24,8) DEFAULT 0.00000000,
  `auto_validate` int(11) DEFAULT 0,
  `generate_pdf` int(11) DEFAULT 1,
  `fk_account` int(11) DEFAULT 0,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `vat_src_code` varchar(10) DEFAULT '',
  `suspended` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
  KEY `idx_facture_rec_fk_soc` (`fk_soc`),
  KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_facture_rec_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facture_rec` VALUES
(1,'Template invoice for Alice services',1,10,'2017-02-07 03:47:00',0.00000000,0,0,0,0.00000000,0.00000000,0.00000000,10.00000000,10.00000000,12,NULL,1,6,NULL,NULL,NULL,NULL,NULL,'m',NULL,NULL,0,0,1,0,0.00000000,0,1,3,NULL,NULL,1.00000000,10.00000000,0.00000000,10.00000000,12,'2019-12-22 15:29:08','',1),
(2,'Template invoice for Alice cooking - Project 1',1,10,'2017-02-07 03:47:58',0.00000000,0,0,0,0.00000000,0.00000000,0.00000000,75.00000000,75.00000000,12,6,1,2,NULL,NULL,NULL,NULL,NULL,'m',NULL,NULL,0,0,0,0,0.00000000,0,1,4,NULL,NULL,1.00000000,75.00000000,0.00000000,75.00000000,12,'2019-12-22 15:30:40','',0);

--
-- Table structure for table `llx_facture_rec_extrafields`
--

CREATE TABLE `llx_facture_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `discountcode` varchar(255) DEFAULT NULL,
  `commentonqty` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facture_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facture_rec_extrafields`
--


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

CREATE TABLE `llx_facturedet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(10) unsigned DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `situation_percent` double DEFAULT 100,
  `fk_prev_id` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `ref_ext` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture`),
  KEY `idx_facturedet_fk_facture` (`fk_facture`),
  KEY `idx_facturedet_fk_product` (`fk_product`),
  KEY `fk_facturedet_fk_unit` (`fk_unit`),
  KEY `idx_facturedet_fk_code_ventilation` (`fk_code_ventilation`),
  CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `llx_facture` (`rowid`),
  CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=1113 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facturedet` VALUES
(3,2,NULL,3,NULL,'Service S1',0.000,'',0.000,'',0.000,'',1,10,4,NULL,40.00000000,36.00000000,36.00000000,0.00000000,0.00000000,0.00000000,36.00000000,1,'2012-07-10 00:00:00',NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(4,2,NULL,NULL,NULL,'Abonnement annuel assurance',1.000,'',0.000,'',0.000,'',1,0,0,NULL,10.00000000,10.00000000,10.00000000,0.10000000,0.00000000,0.00000000,10.10000000,0,'2012-07-10 00:00:00','2013-07-10 00:00:00',0,NULL,0.00000000,0,0,3,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(11,3,NULL,4,NULL,'afsdfsdfsdfsdf',0.000,'',0.000,'',0.000,'',1,0,0,NULL,5.00000000,5.00000000,5.00000000,0.00000000,0.00000000,0.00000000,5.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,0,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(12,3,NULL,NULL,NULL,'dfdfd',0.000,'',0.000,'',0.000,'',1,0,0,NULL,10.00000000,10.00000000,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(13,5,NULL,4,NULL,'Decapsuleur',12.500,'',0.000,'',0.000,'',1,0,0,NULL,5.00000000,5.00000000,5.00000000,0.63000000,0.00000000,0.00000000,5.63000000,0,NULL,NULL,0,NULL,0.00000000,0,0,0,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(14,6,NULL,4,NULL,'Decapsuleur',19.600,'',0.000,'',0.000,'',1,0,0,NULL,5.00000000,5.00000000,5.00000000,0.98000000,0.00000000,0.00000000,5.98000000,0,NULL,NULL,0,NULL,0.00000000,0,0,0,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(21,8,NULL,NULL,NULL,'dddd',0.000,'',0.000,'',0.000,'',1,0,0,NULL,10.00000000,10.00000000,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(22,9,NULL,NULL,NULL,'ggg',19.600,'',0.000,'',0.000,'',1,0,0,NULL,10.00000000,10.00000000,10.00000000,1.96000000,0.00000000,0.00000000,11.96000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(23,10,NULL,4,NULL,'',12.500,'',0.000,'',0.000,'',1,0,0,NULL,-5.00000000,NULL,-5.00000000,-0.63000000,0.00000000,0.00000000,-5.63000000,0,NULL,NULL,0,NULL,12.00000000,394,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(24,10,NULL,1,NULL,'A beatifull pink dress\r\nlkm',0.000,'',0.000,'',0.000,'',1,0,0,NULL,-6.00000000,NULL,-6.00000000,0.00000000,0.00000000,0.00000000,-6.00000000,0,NULL,NULL,0,0,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(26,12,NULL,1,NULL,'A beatifull pink dress\r\nhfghf',0.000,'',0.000,'',0.000,'',1,0,0,NULL,-5.00000000,NULL,-5.00000000,0.00000000,0.00000000,0.00000000,-5.00000000,0,NULL,NULL,0,0,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(27,13,NULL,NULL,NULL,'gdfgdf',19.600,'',0.000,'',0.000,'',1.4,0,0,NULL,10.00000000,NULL,14.00000000,2.74000000,0.00000000,0.00000000,16.74000000,0,NULL,NULL,0,NULL,0.00000000,108,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(137,33,NULL,NULL,NULL,'Desc',10.000,'',0.000,'',0.000,'',1,0,0,NULL,1.24000000,NULL,1.24000000,0.12000000,0.00000000,0.00000000,1.36000000,0,NULL,NULL,0,NULL,0.00000000,110,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(138,33,NULL,NULL,NULL,'Desc',10.000,'',0.000,'',0.000,'',1,0,0,NULL,1.24000000,NULL,1.24000000,0.12000000,0.00000000,0.00000000,1.36000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(256,55,NULL,NULL,NULL,'Desc',10.000,'',0.000,'',0.000,'',1,0,0,NULL,1.24000000,NULL,1.24000000,0.12000000,0.00000000,0.00000000,1.36000000,0,NULL,NULL,0,NULL,0.00000000,110,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(257,55,NULL,NULL,NULL,'Desc',10.000,'',0.000,'',0.000,'',1,0,0,NULL,1.24000000,NULL,1.24000000,0.12000000,0.00000000,0.00000000,1.36000000,0,NULL,NULL,0,NULL,0.00000000,110,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(753,13,NULL,2,NULL,'(Pays d\'origine: Albanie)',0.000,'',0.000,'',0.000,'',1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,0,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(754,148,NULL,11,NULL,'hfghf',0.000,'',0.000,'',0.000,'',1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(755,148,NULL,4,NULL,'Decapsuleur',12.500,'',0.000,'',0.000,'',1,0,0,NULL,5.00000000,NULL,5.00000000,0.63000000,0.00000000,0.00000000,5.63000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(757,150,NULL,2,NULL,'Product P1',12.500,'',0.000,'0',0.000,'0',1,0,0,NULL,5.00000000,NULL,5.00000000,0.63000000,0.00000000,0.00000000,5.63000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,NULL,NULL,NULL,5.00000000,5.00000000,0.63000000,5.63000000,NULL),
(758,151,NULL,2,NULL,'Product P1',12.500,'',0.000,'',0.000,'',1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(768,32,NULL,NULL,NULL,'mlml',18.000,'',0.000,'',0.000,'',1,0,0,NULL,100.00000000,NULL,100.00000000,18.00000000,0.00000000,0.00000000,118.00000000,0,NULL,NULL,0,NULL,46.00000000,110,0,3,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(769,32,NULL,NULL,NULL,'mlkml',18.000,'',0.000,'',0.000,'',1,0,0,NULL,400.00000000,NULL,400.00000000,72.00000000,0.00000000,0.00000000,472.00000000,0,NULL,NULL,0,NULL,300.00000000,110,0,4,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(772,160,NULL,NULL,NULL,'Adhésion/cotisation 2015',12.500,'',0.000,'',0.000,'',1,0,0,NULL,8.88889000,NULL,8.89000000,1.11000000,0.00000000,0.00000000,10.00000000,1,'2017-07-18 00:00:00','2018-07-17 00:00:00',0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(776,32,NULL,NULL,NULL,'fsdfsdfds',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,NULL,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,110,0,5,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(777,32,NULL,NULL,NULL,'fsdfsdfds',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,NULL,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,110,0,6,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(779,32,NULL,NULL,NULL,'fsdfds',0.000,'',0.000,'0',0.000,'0',0,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,0,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(780,32,NULL,NULL,NULL,'ffsdf',0.000,'',0.000,'0',0.000,'0',0,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,9,NULL,NULL,0,NULL,0.00000000,0,1790,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(1022,210,NULL,NULL,NULL,'Adhésion/cotisation 2011',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,NULL,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,1,'2013-07-10 00:00:00','2014-07-09 00:00:00',0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(1023,211,NULL,NULL,NULL,'Samsung Android x4',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,250.00000000,NULL,250.00000000,0.00000000,0.00000000,0.00000000,250.00000000,0,NULL,NULL,0,NULL,200.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(1024,211,NULL,1,NULL,'A beatifull pink dress\r\nSize XXL',19.600,'',0.000,'0',0.000,'0',1,10,0,NULL,100.00000000,NULL,90.00000000,17.64000000,0.00000000,0.00000000,107.64000000,0,NULL,NULL,0,NULL,90.00000000,0,0,2,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(1026,213,NULL,1,NULL,'A beatifull pink dress',0.000,'',0.000,'0',0.000,'0',10,0,0,NULL,-100.00000000,NULL,-1000.00000000,0.00000000,0.00000000,0.00000000,-1000.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,NULL,NULL,NULL,NULL,0.00000000,0.00000000,0.00000000,0.00000000,NULL),
(1028,149,NULL,NULL,NULL,'opoo',0.000,'CGST+SGST',9.000,'1',9.000,'1',1,0,0,NULL,10.00000000,NULL,10.00000000,0.00000000,0.90000000,0.90000000,11.80000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,0,'',10.00000000,10.00000000,0.00000000,11.80000000,NULL),
(1029,149,NULL,NULL,NULL,'gdgd',18.000,'IGST',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,NULL,10.00000000,1.80000000,0.00000000,0.00000000,11.80000000,0,NULL,NULL,0,NULL,0.00000000,0,0,3,NULL,NULL,100,NULL,NULL,12,12,0,'',10.00000000,10.00000000,1.80000000,11.80000000,NULL),
(1030,217,NULL,NULL,NULL,'gfdgdf',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,12.00000000,NULL,12.00000000,0.00000000,0.00000000,0.00000000,12.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,0,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',12.00000000,12.00000000,0.00000000,12.00000000,NULL),
(1035,218,NULL,12,NULL,'Cloud hosting of Dolibarr ERP and CRM software',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,9.00000000,NULL,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',9.00000000,9.00000000,0.00000000,9.00000000,NULL),
(1036,218,NULL,5,NULL,'<strong><span style=\"font-family:roboto,uilanguagefont,arial,sans-serif; font-size:14px\">DoliDroid is the Android front-end client for Dolibarr ERP &amp; CRM web software.</span><br />\r\n<span style=\"font-family:roboto,uilanguagefont,arial,sans-serif; font-size:14px\">This application is not a standalone program. It is a front end to use a online hosted Dolibarr ERP &amp; CRM software (an Open-source web software to manage your business).</span></strong>\r\n<p><u>The advantage of DoliDroid are :</u><br />\r\n- DoliDroid is not a duplicate code of Dolibarr, but a front-end of a Dolibarr web installation, so all your online existing features are supported by this application. This is also true for external modules features.<br />\r\n- Upgrading Dolibarr will not break DoliDroid.<br />\r\n- DoliDroid use embedded image resources to reduce bandwidth usage.<br />\r\n- DoliDroid use internal cache for pages that should not change (like menu page)<br />\r\n- Connections parameters are saved. No need to enter them each time you use DoliDroid.<br />\r\n- Integration with your phone or other applications (Clicking on PDF open PDF reader, clicking onto email or phone launch your email application or launch Android dialer, ...)</p>\r\n\r\n<p><span style=\"color:#DAA520\"><strong>WARNING !&nbsp;</strong></span></p>\r\n\r\n<p>This application need Android 4.0+ and a hosted Dolibarr ERP &amp; CRM version 3.5 or newer accessible by internet<br />\r\n(For example, when hosted on any SaaS solution like DoliCloud -&nbsp;<a href=\"https://www.google.com/url?q=https://www.google.com/url?q%3Dhttp://www.dolicloud.com%26sa%3DD%26usg%3DAFQjCNGdd9htz4JDciiMtScpBwK83qIRkw&amp;sa=D&amp;usg=AFQjCNGMpCbxNnU5BiK59e368K5AR0l_pg\" style=\"text-decoration: none; color: rgb(51, 105, 30); cursor: pointer;\" target=\"_blank\">http://www.dolicloud.com</a>).</p>',19.600,'',0.000,'0',0.000,'0',1,45,0,NULL,10.00000000,NULL,5.50000000,1.08000000,0.00000000,0.00000000,6.58000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',10.00000000,5.50000000,1.08000000,6.58000000,NULL),
(1037,218,NULL,12,NULL,'Cloud hosting of Dolibarr ERP and CRM software',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,9.00000000,NULL,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,NULL,NULL,0,NULL,0.00000000,0,0,3,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',9.00000000,9.00000000,0.00000000,9.00000000,NULL),
(1039,218,NULL,12,NULL,'Cloud hosting of Dolibarr ERP and CRM software',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,9.00000000,NULL,9.00000000,0.00000000,0.00000000,0.00000000,9.00000000,1,NULL,NULL,0,NULL,0.00000000,0,0,4,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',9.00000000,9.00000000,0.00000000,9.00000000,NULL),
(1040,218,NULL,NULL,NULL,'aaa',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,NULL,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,5,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',10.00000000,10.00000000,0.00000000,10.00000000,NULL),
(1055,220,NULL,NULL,NULL,'(DEPOSIT) (100.00 €) - CO7001-0018',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',100.00000000,100.00000000,0.00000000,100.00000000,NULL),
(1056,221,NULL,NULL,NULL,'(DEPOSIT) (30%) - CO7001-0018',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,123.00000000,NULL,123.00000000,0.00000000,0.00000000,0.00000000,123.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',123.00000000,123.00000000,0.00000000,123.00000000,NULL),
(1057,222,NULL,NULL,NULL,'(DEPOSIT) (100.00 €) - CO7001-0018',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,100.00000000,0.00000000,0.00000000,0.00000000,100.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',100.00000000,100.00000000,0.00000000,100.00000000,NULL),
(1058,223,NULL,4,NULL,'Nice Bio Apple Pie.<br />\r\n&nbsp;',0.000,'',0.000,'0',0.000,'0',2,0,0,NULL,5.00000000,NULL,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',5.00000000,10.00000000,0.00000000,10.00000000,NULL),
(1059,223,NULL,10,NULL,'A powerfull computer XP4523&nbsp;',0.000,'',0.000,'0',0.000,'0',2,0,0,NULL,100.00000000,NULL,200.00000000,0.00000000,0.00000000,0.00000000,200.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',100.00000000,200.00000000,0.00000000,200.00000000,NULL),
(1060,223,NULL,1,NULL,'A beatifull pink dress',0.000,'',0.000,'0',0.000,'0',2,0,0,NULL,100.00000000,NULL,200.00000000,0.00000000,0.00000000,0.00000000,200.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,3,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',100.00000000,200.00000000,0.00000000,200.00000000,NULL),
(1061,224,NULL,NULL,NULL,'(DEPOSIT) (5%) - CO7001-0018',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,20.50000000,NULL,20.50000000,0.00000000,0.00000000,0.00000000,20.50000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',20.50000000,20.50000000,0.00000000,20.50000000,NULL),
(1062,225,NULL,4,NULL,'Nice Bio Apple Pie.<br />\r\n&nbsp;',0.000,'',0.000,'0',0.000,'0',2,0,0,NULL,5.00000000,NULL,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',5.00000000,10.00000000,0.00000000,10.00000000,NULL),
(1063,225,NULL,10,NULL,'A powerfull computer XP4523&nbsp;',0.000,'',0.000,'0',0.000,'0',2,0,0,NULL,100.00000000,NULL,200.00000000,0.00000000,0.00000000,0.00000000,200.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',100.00000000,200.00000000,0.00000000,200.00000000,NULL),
(1064,225,NULL,1,NULL,'A beatifull pink dress',0.000,'',0.000,'0',0.000,'0',2,0,0,NULL,100.00000000,NULL,200.00000000,0.00000000,0.00000000,0.00000000,200.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,3,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',100.00000000,200.00000000,0.00000000,200.00000000,NULL),
(1065,225,NULL,NULL,NULL,'(DEPOSIT)',0.000,'',0.000,'0',0.000,'0',1,0,0,15,-20.50000000,NULL,-20.50000000,0.00000000,0.00000000,0.00000000,-20.50000000,0,NULL,NULL,2,NULL,0.00000000,0,0,-1,NULL,NULL,100,NULL,NULL,12,12,0,'',-20.50000000,-20.50000000,0.00000000,-20.50000000,NULL),
(1066,226,NULL,NULL,NULL,'aaa',12.500,'',0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,100.00000000,12.50000000,0.00000000,0.00000000,112.50000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',100.00000000,100.00000000,12.50000000,112.50000000,NULL),
(1067,226,NULL,NULL,NULL,'bbb',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,20.00000000,NULL,20.00000000,0.00000000,0.00000000,0.00000000,20.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',20.00000000,20.00000000,0.00000000,20.00000000,NULL),
(1069,228,NULL,NULL,NULL,'(DEPOSIT) (70%) - PR2001-0034',4.000,'',0.000,'0',0.000,'0',1,0,0,NULL,50.00000000,NULL,50.00000000,2.00000000,0.00000000,0.00000000,52.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',50.00000000,50.00000000,2.00000000,52.00000000,NULL),
(1070,228,NULL,NULL,NULL,'(DEPOSIT) (70%) - PR2001-0034',4.000,'',0.000,'0',0.000,'0',1,0,0,NULL,-1.40000000,NULL,-1.40000000,-0.06000000,0.00000000,0.00000000,-1.46000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',-1.40000000,-1.40000000,-0.06000000,-1.46000000,NULL),
(1071,227,NULL,NULL,NULL,'gdfgd',19.600,'',0.000,'0',0.000,'0',1,0,0,NULL,200.00000000,NULL,200.00000000,39.20000000,0.00000000,0.00000000,239.20000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',200.00000000,200.00000000,39.20000000,239.20000000,NULL),
(1072,217,NULL,1,NULL,'A beatifull pink dress',12.500,'',0.000,'0',0.000,'0',1,0,0,NULL,9.00000000,NULL,9.00000000,1.13000000,0.00000000,0.00000000,10.13000000,0,NULL,NULL,0,NULL,79.16667000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',9.00000000,9.00000000,1.13000000,10.13000000,NULL),
(1074,219,NULL,30,NULL,'',20.000,'',0.000,'0',0.000,'0',6,6,0,NULL,4.16667000,NULL,23.50000000,4.70000000,0.00000000,0.00000000,28.20000000,0,NULL,NULL,0,NULL,0.00000000,0,0,5,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',5.41667000,30.55000000,6.11000000,36.66000000,''),
(1089,219,NULL,24,NULL,'',20.000,'',0.000,'0',0.000,'0',1,6,0,NULL,0.83333000,NULL,0.78000000,0.16000000,0.00000000,0.00000000,0.94000000,0,NULL,NULL,0,NULL,0.00000000,0,0,20,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.08333000,1.02000000,0.20000000,1.22000000,''),
(1090,229,NULL,NULL,NULL,'Subscription 2017',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,50.00000000,NULL,50.00000000,0.00000000,0.00000000,0.00000000,50.00000000,1,'2017-07-18 00:00:00',NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',50.00000000,50.00000000,0.00000000,50.00000000,NULL),
(1091,230,NULL,NULL,NULL,'Subscription 2018',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,50.00000000,NULL,50.00000000,0.00000000,0.00000000,0.00000000,50.00000000,1,'2018-07-18 00:00:00',NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',50.00000000,50.00000000,0.00000000,50.00000000,NULL),
(1092,231,NULL,NULL,NULL,'Subscription 2019',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,50.00000000,NULL,50.00000000,0.00000000,0.00000000,0.00000000,50.00000000,1,'2019-07-18 00:00:00',NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',50.00000000,50.00000000,0.00000000,50.00000000,NULL),
(1093,55,NULL,NULL,NULL,'a',5.500,'aaa',0.000,'0',0.000,'0',1,0,0,NULL,1.00000000,NULL,1.00000000,0.06000000,0.00000000,0.00000000,1.06000000,0,NULL,NULL,0,NULL,0.00000000,110,0,3,NULL,NULL,100,NULL,NULL,12,12,0,'',1.00000000,1.00000000,0.06000000,1.06000000,''),
(1094,55,NULL,NULL,NULL,'z',5.500,'bbb',0.000,'0',0.000,'0',1,0,0,NULL,1.00000000,NULL,1.00000000,0.06000000,0.00000000,0.00000000,1.06000000,1,NULL,NULL,0,NULL,0.00000000,110,0,4,NULL,NULL,100,NULL,NULL,12,12,0,'',1.00000000,1.00000000,0.06000000,1.06000000,''),
(1095,232,NULL,NULL,NULL,'fdsfsdf',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1000.00000000,NULL,1000.00000000,200.00000000,0.00000000,0.00000000,1200.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',1000.00000000,1000.00000000,200.00000000,1200.00000000,''),
(1096,233,NULL,NULL,NULL,'gfdgdfgdf',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,-1000.00000000,NULL,-1000.00000000,-200.00000000,0.00000000,0.00000000,-1200.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',-1000.00000000,-1000.00000000,-200.00000000,-1200.00000000,''),
(1097,234,NULL,26,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.08333000,NULL,1.08000000,0.22000000,0.00000000,0.00000000,1.30000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.40833000,1.41000000,0.28000000,1.69000000,''),
(1098,234,NULL,25,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.25000000,NULL,1.25000000,0.25000000,0.00000000,0.00000000,1.50000000,0,NULL,NULL,0,NULL,0.00000000,0,0,2,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.62500000,1.63000000,0.32000000,1.95000000,''),
(1099,234,NULL,25,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.25000000,NULL,1.25000000,0.25000000,0.00000000,0.00000000,1.50000000,0,NULL,NULL,0,NULL,0.00000000,0,0,3,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.62500000,1.63000000,0.32000000,1.95000000,''),
(1100,234,NULL,27,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,38.33333000,NULL,38.33000000,7.67000000,0.00000000,0.00000000,46.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,4,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',49.83333000,49.83000000,9.97000000,59.80000000,''),
(1101,234,NULL,27,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.08333000,NULL,1.08000000,0.22000000,0.00000000,0.00000000,1.30000000,0,NULL,NULL,0,NULL,0.00000000,0,0,5,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.40833000,1.41000000,0.28000000,1.69000000,''),
(1102,234,NULL,27,NULL,'',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,1.08333000,NULL,1.08000000,0.22000000,0.00000000,0.00000000,1.30000000,0,NULL,NULL,0,NULL,0.00000000,0,0,6,NULL,NULL,100,NULL,NULL,12,12,0,'EUR',1.40833000,1.41000000,0.28000000,1.69000000,''),
(1103,219,NULL,27,NULL,'',0.000,'',0.000,'0',0.000,'0',1,6,0,NULL,1.30000000,NULL,1.22000000,0.00000000,0.00000000,0.00000000,1.22000000,0,NULL,NULL,0,NULL,0.00000000,0,0,21,NULL,NULL,100,NULL,NULL,12,12,0,'USD',1.69000000,1.59000000,0.00000000,1.59000000,''),
(1104,219,NULL,NULL,NULL,'kml',10.000,'',0.000,'0',0.000,'0',1,0,0,NULL,9.09091000,NULL,9.09000000,0.91000000,0.00000000,0.00000000,10.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,22,NULL,NULL,100,NULL,NULL,12,12,0,'USD',11.81818000,11.82000000,1.18000000,13.00000000,''),
(1105,235,NULL,NULL,NULL,'gfdgdfgfd',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,NULL,10.00000000,2.00000000,0.00000000,0.00000000,12.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',10.00000000,10.00000000,2.00000000,12.00000000,''),
(1106,236,NULL,NULL,NULL,'hfg',20.000,'',0.000,'0',0.000,'0',1,0,0,NULL,10.00000000,NULL,10.00000000,2.00000000,0.00000000,0.00000000,12.00000000,0,NULL,NULL,0,NULL,0.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',10.00000000,10.00000000,2.00000000,12.00000000,''),
(1108,237,NULL,1,NULL,'A beatifull pink dress',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,50.00000000,0.00000000,0.00000000,0.00000000,50.00000000,0,NULL,NULL,0,NULL,79.16667000,110,0,2,NULL,NULL,50,NULL,NULL,12,12,1,'EUR',100.00000000,50.00000000,0.00000000,50.00000000,''),
(1109,238,NULL,1,NULL,'A beatifull pink dress',0.000,'',0.000,'0',0.000,'0',1,0,0,NULL,100.00000000,NULL,80.00000000,0.00000000,0.00000000,0.00000000,80.00000000,0,NULL,NULL,0,NULL,79.16667000,110,0,1,NULL,NULL,80,1108,NULL,12,12,0,'EUR',100.00000000,80.00000000,0.00000000,80.00000000,''),
(1111,239,NULL,NULL,NULL,'aaa',0.000,'CGST+SGST',9.000,'1',9.000,'1',1,0,0,NULL,-1.00000000,NULL,-1.00000000,0.00000000,0.09000000,0.09000000,-1.18000000,0,NULL,NULL,0,NULL,100.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',-1.00000000,-1.00000000,0.00000000,-1.18000000,''),
(1112,240,NULL,NULL,NULL,'aaa',0.000,'CGST+SGST',9.000,'1',9.000,'1',1,0,0,NULL,0.00000000,NULL,0.00000000,0.00000000,0.00000000,0.00000000,0.00000000,0,NULL,NULL,0,NULL,1.00000000,0,0,1,NULL,NULL,100,NULL,NULL,12,12,1,'EUR',0.00000000,0.00000000,0.00000000,0.00000000,'');

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

CREATE TABLE `llx_facturedet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facturedet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


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

CREATE TABLE `llx_facturedet_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `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,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(3) DEFAULT NULL,
  `multicurrency_subprice` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ht` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_tva` double(24,8) DEFAULT 0.00000000,
  `multicurrency_total_ttc` double(24,8) DEFAULT 0.00000000,
  `date_start_fill` int(11) DEFAULT 0,
  `date_end_fill` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `fk_facturedet_rec_fk_unit` (`fk_unit`),
  CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `llx_c_units` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_facturedet_rec` VALUES
(4,1,NULL,NULL,1,NULL,'Services by Alice.<br />\r\nMonthly.',0.000,'',0.000,'0',0.000,'0',1,0,NULL,10.00000000,10.00000000,10.00000000,0.00000000,0.00000000,0.00000000,10.00000000,0,0,0,NULL,NULL,NULL,0,'',10.00000000,10.00000000,0.00000000,10.00000000,1,1,0.00000000,NULL,NULL,NULL),
(5,2,NULL,4,0,NULL,'Nice Bio Apple Pie.<br />\r\n&nbsp;',0.000,'',0.000,'0',0.000,'0',5,0,NULL,5.00000000,5.00000000,25.00000000,0.00000000,0.00000000,0.00000000,25.00000000,0,0,-1,NULL,NULL,NULL,0,'',5.00000000,25.00000000,0.00000000,25.00000000,0,0,0.00000000,NULL,NULL,NULL),
(6,2,NULL,2,0,NULL,'',0.000,'',0.000,'0',0.000,'0',5,0,NULL,10.00000000,10.00000000,50.00000000,0.00000000,0.00000000,0.00000000,50.00000000,0,0,-1,NULL,NULL,NULL,0,'',10.00000000,50.00000000,0.00000000,50.00000000,0,0,0.00000000,NULL,NULL,NULL);

--
-- Table structure for table `llx_facturedet_rec_extrafields`
--

CREATE TABLE `llx_facturedet_rec_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_facturedet_rec_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_facturedet_rec_extrafields`
--


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

CREATE TABLE `llx_fichinter` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT 0,
  `fk_contrat` int(11) DEFAULT 0,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `datei` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `duree` double DEFAULT NULL,
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `datet` date DEFAULT NULL,
  `description` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `last_main_doc` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  KEY `idx_fichinter_fk_soc` (`fk_soc`),
  CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_fichinter` VALUES
(1,2,1,0,'FI1007-0001',1,'2018-01-22 17:39:37','2012-07-09 01:42:41','2018-01-22 18:39:37',NULL,1,NULL,12,1,10800,NULL,NULL,NULL,NULL,NULL,NULL,'soleil',NULL,NULL,NULL,NULL,NULL),
(2,1,NULL,0,'FI1007-0002',1,'2014-12-08 13:11:07','2012-07-11 16:07:51',NULL,NULL,1,NULL,NULL,0,3600,NULL,NULL,NULL,'ferfrefeferf',NULL,NULL,'soleil',NULL,NULL,NULL,NULL,NULL),
(3,2,NULL,0,'FI1511-0003',1,'2018-07-30 15:51:16','2017-11-18 15:57:34','2018-01-22 18:38:46',NULL,2,NULL,12,1,36000,NULL,NULL,NULL,NULL,NULL,NULL,'soleil',NULL,NULL,NULL,NULL,NULL);

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

CREATE TABLE `llx_fichinter_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `c42i_device_id_under_contract` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_ficheinter_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_fichinter_rec`
--

CREATE TABLE `llx_fichinter_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `titre` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_contrat` int(11) DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `duree` double DEFAULT NULL,
  `description` text DEFAULT NULL,
  `modelpdf` varchar(50) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'm',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `auto_validate` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `idx_fichinter_rec_uk_titre` (`titre`,`entity`),
  KEY `idx_fichinter_rec_fk_soc` (`fk_soc`),
  KEY `idx_fichinter_rec_fk_user_author` (`fk_user_author`),
  KEY `idx_fichinter_rec_fk_projet` (`fk_projet`),
  CONSTRAINT `fk_fichinter_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`),
  CONSTRAINT `fk_fichinter_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_fichinter_rec`
--


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

CREATE TABLE `llx_fichinterdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_fichinter` int(11) DEFAULT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  PRIMARY KEY (`rowid`),
  KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`),
  CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `llx_fichinter` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_fichinterdet` VALUES
(1,1,NULL,'2012-07-07 04:00:00','Intervention sur site',3600,0),
(2,1,NULL,'2012-07-08 11:00:00','Other actions on client site.',7200,0),
(3,2,NULL,'2012-07-11 05:00:00','Pres',3600,0),
(5,3,NULL,'2017-11-18 09:00:00','Intervention on building windows 1',32400,0),
(6,3,NULL,'2018-01-22 00:00:00','Intervention on building windows 2',3600,0);

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

CREATE TABLE `llx_fichinterdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_ficheinterdet_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


--
-- Table structure for table `llx_fichinterdet_rec`
--

CREATE TABLE `llx_fichinterdet_rec` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_fichinter` int(11) NOT NULL,
  `date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `total_ht` double(24,8) DEFAULT NULL,
  `subprice` double(24,8) DEFAULT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(1) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(1) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `price` 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,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_fichinterdet_rec`
--


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

CREATE TABLE `llx_holiday` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL,
  `date_create` datetime NOT NULL,
  `description` varchar(255) NOT NULL,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `halfday` int(11) DEFAULT 0,
  `statut` int(11) NOT NULL DEFAULT 1,
  `fk_validator` int(11) NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `detail_refuse` varchar(250) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_type` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(30) NOT NULL,
  `ref_ext` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `date_approval` datetime DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `nb_open_day` double(24,8) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_holiday_fk_user` (`fk_user`),
  KEY `idx_holiday_date_debut` (`date_debut`),
  KEY `idx_holiday_date_fin` (`date_fin`),
  KEY `idx_holiday_fk_user_create` (`fk_user_create`),
  KEY `idx_holiday_date_create` (`date_create`),
  KEY `idx_holiday_fk_validator` (`fk_validator`),
  KEY `idx_holiday_entity` (`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_holiday` VALUES
(1,1,'2022-02-17 19:06:35','gdf','2022-02-10','2022-02-11',0,3,1,'2022-02-17 19:06:57',1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,'2022-12-11 21:23:35',1,'1',NULL,NULL,NULL,NULL,'2022-02-17 19:06:57',1,NULL),
(2,12,'2022-01-22 19:10:01','','2021-12-28','2022-01-03',0,2,11,'2023-01-31 07:08:36',12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,5,'2023-01-31 10:08:36',1,'HL2112-0001',NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(3,13,'2022-01-22 19:10:29','','2022-01-11','2022-01-13',0,2,11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,5,'2022-02-07 13:37:54',1,'3',NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(4,12,'2023-01-31 07:09:11','','2023-01-31','2023-01-31',0,3,12,'2023-01-31 07:09:13',12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,12,3,'2023-01-31 10:09:16',1,'HL2301-0002',NULL,NULL,NULL,NULL,'2023-01-31 07:09:16',12,NULL);

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

CREATE TABLE `llx_holiday_config` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(128) DEFAULT NULL,
  `value` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `idx_holiday_config` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

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

--
-- Table structure for table `llx_holiday_extrafields`
--

CREATE TABLE `llx_holiday_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_holiday_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_holiday_extrafields`
--


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

CREATE TABLE `llx_holiday_logs` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_action` datetime NOT NULL,
  `fk_user_action` int(11) NOT NULL,
  `fk_user_update` int(11) NOT NULL,
  `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,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=196 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_holiday_logs` VALUES
(1,'2015-01-17 21:03:15',1,1,'Event : Mise à jour mensuelle','0.00','2.08',1),
(2,'2015-01-17 21:03:15',1,2,'Event : Mise à jour mensuelle','0.00','2.08',1),
(3,'2015-01-17 21:03:15',1,3,'Event : Mise à jour mensuelle','0.00','2.08',1),
(4,'2015-02-01 09:53:26',1,1,'Event : Mise à jour mensuelle','2.08','4.16',1),
(5,'2015-02-01 09:53:26',1,2,'Event : Mise à jour mensuelle','2.08','4.16',1),
(6,'2015-02-01 09:53:26',1,3,'Event : Mise à jour mensuelle','2.08','4.16',1),
(7,'2015-02-01 09:53:26',1,1,'Event : Mise à jour mensuelle','4.17','6.25',1),
(8,'2015-02-01 09:53:26',1,2,'Event : Mise à jour mensuelle','4.17','6.25',1),
(9,'2015-02-01 09:53:26',1,3,'Event : Mise à jour mensuelle','4.17','6.25',1),
(10,'2015-02-01 09:53:26',1,4,'Event : Mise à jour mensuelle','0.00','2.08',1),
(11,'2015-02-01 09:53:31',1,1,'Event : Mise à jour mensuelle','6.25','8.33',1),
(12,'2015-02-01 09:53:31',1,2,'Event : Mise à jour mensuelle','6.25','8.33',1),
(13,'2015-02-01 09:53:31',1,3,'Event : Mise à jour mensuelle','6.25','8.33',1),
(14,'2015-02-01 09:53:31',1,4,'Event : Mise à jour mensuelle','2.08','4.16',1),
(15,'2015-02-01 09:53:31',1,1,'Event : Mise à jour mensuelle','8.33','10.41',1),
(16,'2015-02-01 09:53:31',1,2,'Event : Mise à jour mensuelle','8.33','10.41',1),
(17,'2015-02-01 09:53:31',1,3,'Event : Mise à jour mensuelle','8.33','10.41',1),
(18,'2015-02-01 09:53:31',1,4,'Event : Mise à jour mensuelle','4.17','6.25',1),
(19,'2015-02-01 09:53:33',1,1,'Event : Mise à jour mensuelle','10.42','12.50',1),
(20,'2015-02-01 09:53:33',1,2,'Event : Mise à jour mensuelle','10.42','12.50',1),
(21,'2015-02-01 09:53:33',1,3,'Event : Mise à jour mensuelle','10.42','12.50',1),
(22,'2015-02-01 09:53:33',1,4,'Event : Mise à jour mensuelle','6.25','8.33',1),
(23,'2015-02-01 09:53:34',1,1,'Event : Mise à jour mensuelle','12.50','14.58',1),
(24,'2015-02-01 09:53:34',1,2,'Event : Mise à jour mensuelle','12.50','14.58',1),
(25,'2015-02-01 09:53:34',1,3,'Event : Mise à jour mensuelle','12.50','14.58',1),
(26,'2015-02-01 09:53:34',1,4,'Event : Mise à jour mensuelle','8.33','10.41',1),
(27,'2015-02-01 09:53:34',1,1,'Event : Mise à jour mensuelle','14.58','16.66',1),
(28,'2015-02-01 09:53:34',1,2,'Event : Mise à jour mensuelle','14.58','16.66',1),
(29,'2015-02-01 09:53:34',1,3,'Event : Mise à jour mensuelle','14.58','16.66',1),
(30,'2015-02-01 09:53:34',1,4,'Event : Mise à jour mensuelle','10.42','12.50',1),
(31,'2015-02-01 09:53:36',1,1,'Event : Mise à jour mensuelle','16.67','18.75',1),
(32,'2015-02-01 09:53:36',1,2,'Event : Mise à jour mensuelle','16.67','18.75',1),
(33,'2015-02-01 09:53:36',1,3,'Event : Mise à jour mensuelle','16.67','18.75',1),
(34,'2015-02-01 09:53:36',1,4,'Event : Mise à jour mensuelle','12.50','14.58',1),
(35,'2015-02-01 09:53:36',1,1,'Event : Mise à jour mensuelle','18.75','20.83',1),
(36,'2015-02-01 09:53:36',1,2,'Event : Mise à jour mensuelle','18.75','20.83',1),
(37,'2015-02-01 09:53:36',1,3,'Event : Mise à jour mensuelle','18.75','20.83',1),
(38,'2015-02-01 09:53:36',1,4,'Event : Mise à jour mensuelle','14.58','16.66',1),
(39,'2015-02-01 09:53:37',1,1,'Event : Mise à jour mensuelle','20.83','22.91',1),
(40,'2015-02-01 09:53:37',1,2,'Event : Mise à jour mensuelle','20.83','22.91',1),
(41,'2015-02-01 09:53:37',1,3,'Event : Mise à jour mensuelle','20.83','22.91',1),
(42,'2015-02-01 09:53:37',1,4,'Event : Mise à jour mensuelle','16.67','18.75',1),
(43,'2015-02-01 09:53:37',1,1,'Event : Mise à jour mensuelle','22.92','25.00',1),
(44,'2015-02-01 09:53:37',1,2,'Event : Mise à jour mensuelle','22.92','25.00',1),
(45,'2015-02-01 09:53:37',1,3,'Event : Mise à jour mensuelle','22.92','25.00',1),
(46,'2015-02-01 09:53:37',1,4,'Event : Mise à jour mensuelle','18.75','20.83',1),
(47,'2015-02-01 09:53:44',1,1,'Event : Mise à jour mensuelle','25.00','27.08',1),
(48,'2015-02-01 09:53:44',1,2,'Event : Mise à jour mensuelle','25.00','27.08',1),
(49,'2015-02-01 09:53:44',1,3,'Event : Mise à jour mensuelle','25.00','27.08',1),
(50,'2015-02-01 09:53:44',1,4,'Event : Mise à jour mensuelle','20.83','22.91',1),
(51,'2015-02-01 09:53:47',1,1,'Event : Mise à jour mensuelle','27.08','29.16',1),
(52,'2015-02-01 09:53:47',1,2,'Event : Mise à jour mensuelle','27.08','29.16',1),
(53,'2015-02-01 09:53:47',1,3,'Event : Mise à jour mensuelle','27.08','29.16',1),
(54,'2015-02-01 09:53:47',1,4,'Event : Mise à jour mensuelle','22.92','25.00',1),
(55,'2015-02-01 09:53:47',1,1,'Event : Mise à jour mensuelle','29.17','31.25',1),
(56,'2015-02-01 09:53:47',1,2,'Event : Mise à jour mensuelle','29.17','31.25',1),
(57,'2015-02-01 09:53:47',1,3,'Event : Mise à jour mensuelle','29.17','31.25',1),
(58,'2015-02-01 09:53:47',1,4,'Event : Mise à jour mensuelle','25.00','27.08',1),
(59,'2015-02-01 09:53:49',1,1,'Event : Mise à jour mensuelle','31.25','33.33',1),
(60,'2015-02-01 09:53:49',1,2,'Event : Mise à jour mensuelle','31.25','33.33',1),
(61,'2015-02-01 09:53:49',1,3,'Event : Mise à jour mensuelle','31.25','33.33',1),
(62,'2015-02-01 09:53:49',1,4,'Event : Mise à jour mensuelle','27.08','29.16',1),
(63,'2015-02-01 09:53:52',1,1,'Event : Mise à jour mensuelle','33.33','35.41',1),
(64,'2015-02-01 09:53:52',1,2,'Event : Mise à jour mensuelle','33.33','35.41',1),
(65,'2015-02-01 09:53:52',1,3,'Event : Mise à jour mensuelle','33.33','35.41',1),
(66,'2015-02-01 09:53:52',1,4,'Event : Mise à jour mensuelle','29.17','31.25',1),
(67,'2015-02-01 09:53:52',1,1,'Event : Mise à jour mensuelle','35.42','37.50',1),
(68,'2015-02-01 09:53:52',1,2,'Event : Mise à jour mensuelle','35.42','37.50',1),
(69,'2015-02-01 09:53:52',1,3,'Event : Mise à jour mensuelle','35.42','37.50',1),
(70,'2015-02-01 09:53:52',1,4,'Event : Mise à jour mensuelle','31.25','33.33',1),
(71,'2015-02-01 09:53:53',1,1,'Event : Mise à jour mensuelle','37.50','39.58',1),
(72,'2015-02-01 09:53:53',1,2,'Event : Mise à jour mensuelle','37.50','39.58',1),
(73,'2015-02-01 09:53:53',1,3,'Event : Mise à jour mensuelle','37.50','39.58',1),
(74,'2015-02-01 09:53:53',1,4,'Event : Mise à jour mensuelle','33.33','35.41',1),
(75,'2015-02-01 09:53:54',1,1,'Event : Mise à jour mensuelle','39.58','41.66',1),
(76,'2015-02-01 09:53:54',1,2,'Event : Mise à jour mensuelle','39.58','41.66',1),
(77,'2015-02-01 09:53:54',1,3,'Event : Mise à jour mensuelle','39.58','41.66',1),
(78,'2015-02-01 09:53:54',1,4,'Event : Mise à jour mensuelle','35.42','37.50',1),
(79,'2015-02-01 09:53:54',1,1,'Event : Mise à jour mensuelle','41.67','43.75',1),
(80,'2015-02-01 09:53:54',1,2,'Event : Mise à jour mensuelle','41.67','43.75',1),
(81,'2015-02-01 09:53:54',1,3,'Event : Mise à jour mensuelle','41.67','43.75',1),
(82,'2015-02-01 09:53:54',1,4,'Event : Mise à jour mensuelle','37.50','39.58',1),
(83,'2015-02-01 09:55:49',1,1,'Event : Mise à jour mensuelle','43.75','45.83',1),
(84,'2015-02-01 09:55:49',1,2,'Event : Mise à jour mensuelle','43.75','45.83',1),
(85,'2015-02-01 09:55:49',1,3,'Event : Mise à jour mensuelle','43.75','45.83',1),
(86,'2015-02-01 09:55:49',1,4,'Event : Mise à jour mensuelle','39.58','41.66',1),
(87,'2015-02-01 09:55:56',1,1,'Event : Mise à jour mensuelle','45.83','47.91',1),
(88,'2015-02-01 09:55:56',1,2,'Event : Mise à jour mensuelle','45.83','47.91',1),
(89,'2015-02-01 09:55:56',1,3,'Event : Mise à jour mensuelle','45.83','47.91',1),
(90,'2015-02-01 09:55:56',1,4,'Event : Mise à jour mensuelle','41.67','43.75',1),
(91,'2015-02-01 09:56:01',1,1,'Event : Mise à jour mensuelle','47.92','50.00',1),
(92,'2015-02-01 09:56:01',1,2,'Event : Mise à jour mensuelle','47.92','50.00',1),
(93,'2015-02-01 09:56:01',1,3,'Event : Mise à jour mensuelle','47.92','50.00',1),
(94,'2015-02-01 09:56:01',1,4,'Event : Mise à jour mensuelle','43.75','45.83',1),
(95,'2015-02-01 09:56:01',1,1,'Event : Mise à jour mensuelle','50.00','52.08',1),
(96,'2015-02-01 09:56:01',1,2,'Event : Mise à jour mensuelle','50.00','52.08',1),
(97,'2015-02-01 09:56:01',1,3,'Event : Mise à jour mensuelle','50.00','52.08',1),
(98,'2015-02-01 09:56:01',1,4,'Event : Mise à jour mensuelle','45.83','47.91',1),
(99,'2015-02-01 09:56:03',1,1,'Event : Mise à jour mensuelle','52.08','54.16',1),
(100,'2015-02-01 09:56:03',1,2,'Event : Mise à jour mensuelle','52.08','54.16',1),
(101,'2015-02-01 09:56:03',1,3,'Event : Mise à jour mensuelle','52.08','54.16',1),
(102,'2015-02-01 09:56:03',1,4,'Event : Mise à jour mensuelle','47.92','50.00',1),
(103,'2015-02-01 09:56:03',1,1,'Event : Mise à jour mensuelle','54.17','56.25',1),
(104,'2015-02-01 09:56:03',1,2,'Event : Mise à jour mensuelle','54.17','56.25',1),
(105,'2015-02-01 09:56:03',1,3,'Event : Mise à jour mensuelle','54.17','56.25',1),
(106,'2015-02-01 09:56:03',1,4,'Event : Mise à jour mensuelle','50.00','52.08',1),
(107,'2015-02-01 09:56:05',1,1,'Event : Mise à jour mensuelle','56.25','58.33',1),
(108,'2015-02-01 09:56:05',1,2,'Event : Mise à jour mensuelle','56.25','58.33',1),
(109,'2015-02-01 09:56:05',1,3,'Event : Mise à jour mensuelle','56.25','58.33',1),
(110,'2015-02-01 09:56:05',1,4,'Event : Mise à jour mensuelle','52.08','54.16',1),
(111,'2015-02-01 09:56:06',1,1,'Event : Mise à jour mensuelle','58.33','60.41',1),
(112,'2015-02-01 09:56:06',1,2,'Event : Mise à jour mensuelle','58.33','60.41',1),
(113,'2015-02-01 09:56:06',1,3,'Event : Mise à jour mensuelle','58.33','60.41',1),
(114,'2015-02-01 09:56:06',1,4,'Event : Mise à jour mensuelle','54.17','56.25',1),
(115,'2015-02-01 09:56:06',1,1,'Event : Mise à jour mensuelle','60.42','62.50',1),
(116,'2015-02-01 09:56:06',1,2,'Event : Mise à jour mensuelle','60.42','62.50',1),
(117,'2015-02-01 09:56:06',1,3,'Event : Mise à jour mensuelle','60.42','62.50',1),
(118,'2015-02-01 09:56:06',1,4,'Event : Mise à jour mensuelle','56.25','58.33',1),
(119,'2015-02-01 09:56:07',1,1,'Event : Mise à jour mensuelle','62.50','64.58',1),
(120,'2015-02-01 09:56:07',1,2,'Event : Mise à jour mensuelle','62.50','64.58',1),
(121,'2015-02-01 09:56:07',1,3,'Event : Mise à jour mensuelle','62.50','64.58',1),
(122,'2015-02-01 09:56:07',1,4,'Event : Mise à jour mensuelle','58.33','60.41',1),
(123,'2015-02-01 09:56:07',1,1,'Event : Mise à jour mensuelle','64.58','66.66',1),
(124,'2015-02-01 09:56:07',1,2,'Event : Mise à jour mensuelle','64.58','66.66',1),
(125,'2015-02-01 09:56:07',1,3,'Event : Mise à jour mensuelle','64.58','66.66',1),
(126,'2015-02-01 09:56:07',1,4,'Event : Mise à jour mensuelle','60.42','62.50',1),
(127,'2015-02-01 09:56:50',1,1,'Event : Mise à jour mensuelle','66.67','68.75',1),
(128,'2015-02-01 09:56:50',1,2,'Event : Mise à jour mensuelle','66.67','68.75',1),
(129,'2015-02-01 09:56:50',1,3,'Event : Mise à jour mensuelle','66.67','68.75',1),
(130,'2015-02-01 09:56:50',1,4,'Event : Mise à jour mensuelle','62.50','64.58',1),
(131,'2015-02-01 09:56:50',1,1,'Event : Mise à jour mensuelle','68.75','70.83',1),
(132,'2015-02-01 09:56:50',1,2,'Event : Mise à jour mensuelle','68.75','70.83',1),
(133,'2015-02-01 09:56:50',1,3,'Event : Mise à jour mensuelle','68.75','70.83',1),
(134,'2015-02-01 09:56:50',1,4,'Event : Mise à jour mensuelle','64.58','66.66',1),
(135,'2015-02-17 18:49:21',1,1,'Event : Mise à jour mensuelle','70.83','72.91',1),
(136,'2015-02-17 18:49:21',1,2,'Event : Mise à jour mensuelle','70.83','72.91',1),
(137,'2015-02-17 18:49:21',1,3,'Event : Mise à jour mensuelle','70.83','72.91',1),
(138,'2015-02-17 18:49:21',1,4,'Event : Mise à jour mensuelle','66.67','68.75',1),
(139,'2015-02-17 19:06:57',1,1,'Event : Holiday','72.92','71.92',1),
(140,'2015-03-01 23:12:31',1,1,'Event : Mise à jour mensuelle','71.92','74.00',1),
(141,'2015-03-01 23:12:31',1,2,'Event : Mise à jour mensuelle','72.92','75.00',1),
(142,'2015-03-01 23:12:31',1,3,'Event : Mise à jour mensuelle','72.92','75.00',1),
(143,'2015-03-01 23:12:31',1,4,'Event : Mise à jour mensuelle','68.75','70.83',1),
(145,'2017-07-19 15:44:57',1,1,'Monthly update','0','2.08334',4),
(146,'2017-07-19 15:44:57',1,2,'Monthly update','0','2.08334',4),
(147,'2017-07-19 15:44:57',1,3,'Monthly update','0','2.08334',4),
(148,'2017-07-19 15:44:57',1,4,'Monthly update','0','2.08334',4),
(151,'2017-07-19 15:44:57',1,1,'Monthly update','0','2.08334',5),
(152,'2017-07-19 15:44:57',1,2,'Monthly update','0','2.08334',5),
(153,'2017-07-19 15:44:57',1,3,'Monthly update','0','2.08334',5),
(154,'2017-07-19 15:44:57',1,4,'Monthly update','0','2.08334',5),
(157,'2017-07-19 15:44:57',1,1,'Monthly update','0','2.08334',9),
(158,'2017-07-19 15:44:57',1,2,'Monthly update','0','2.08334',9),
(159,'2017-07-19 15:44:57',1,3,'Monthly update','0','2.08334',9),
(160,'2017-07-19 15:44:57',1,4,'Monthly update','0','2.08334',9),
(163,'2018-01-22 18:59:06',12,1,'Monthly update','0','2.08334',4),
(164,'2018-01-22 18:59:06',12,2,'Monthly update','0','2.08334',4),
(165,'2018-01-22 18:59:06',12,3,'Monthly update','0','2.08334',4),
(166,'2018-01-22 18:59:06',12,4,'Monthly update','0','2.08334',4),
(168,'2018-01-22 18:59:06',12,1,'Monthly update','0','2.08334',5),
(169,'2018-01-22 18:59:06',12,2,'Monthly update','0','2.08334',5),
(170,'2018-01-22 18:59:06',12,3,'Monthly update','0','2.08334',5),
(171,'2018-01-22 18:59:06',12,4,'Monthly update','0','2.08334',5),
(173,'2018-01-22 18:59:06',12,1,'Monthly update','0','2.08334',9),
(174,'2018-01-22 18:59:06',12,2,'Monthly update','0','2.08334',9),
(175,'2018-01-22 18:59:06',12,3,'Monthly update','0','2.08334',9),
(176,'2018-01-22 18:59:06',12,4,'Monthly update','0','2.08334',9),
(178,'2018-01-22 18:59:38',12,18,'Manual update','0','10',5),
(179,'2018-01-22 18:59:42',12,16,'Manual update','0','10',5),
(180,'2018-01-22 18:59:45',12,12,'Manual update','0','10',5),
(181,'2018-01-22 18:59:49',12,1,'Manual update','0','10',5),
(182,'2018-01-22 18:59:52',12,2,'Manual update','0','10',5),
(183,'2018-01-22 18:59:55',12,3,'Manual update','0','5',5),
(184,'2018-07-30 19:45:49',12,1,'Manual update','0','25',3),
(185,'2018-07-30 19:45:52',12,2,'Manual update','0','23',3),
(186,'2018-07-30 19:45:54',12,3,'Manual update','0','10',3),
(187,'2018-07-30 19:45:57',12,4,'Manual update','0','-4',3),
(188,'2018-07-30 19:46:02',12,10,'Manual update','0','20',3),
(189,'2018-07-30 19:46:04',12,11,'Manual update','0','30',3),
(190,'2018-07-30 19:46:07',12,12,'Manual update','0','15',3),
(191,'2018-07-30 19:46:09',12,13,'Manual update','0','11',3),
(192,'2018-07-30 19:46:12',12,14,'Manual update','0','4',3),
(193,'2018-07-30 19:46:14',12,16,'Manual update','0','5',3),
(194,'2018-07-30 19:46:16',12,18,'Manual update','0','22',3),
(195,'2023-01-31 07:09:16',12,12,'Leaves - HL2301-0002','15','14',3);

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

CREATE TABLE `llx_holiday_users` (
  `fk_user` int(11) NOT NULL,
  `nb_holiday` double NOT NULL DEFAULT 0,
  `fk_type` int(11) NOT NULL DEFAULT 1,
  UNIQUE KEY `uk_holiday_users` (`fk_user`,`fk_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_holiday_users` VALUES
(0,0,1),
(1,74.00334000000001,1),
(1,25,3),
(1,10,5),
(2,75.00024000000003,1),
(2,23,3),
(2,10,5),
(3,75.00024000000003,1),
(3,10,3),
(3,5,5),
(4,70.83356000000002,1),
(4,-4,3),
(5,2.08334,1),
(6,0,1),
(10,20,3),
(11,30,3),
(12,14,3),
(12,10,5),
(13,11,3),
(14,4,3),
(16,5,3),
(16,10,5),
(18,22,3),
(18,10,5);

--
-- Table structure for table `llx_hrm_evaluation`
--

CREATE TABLE `llx_hrm_evaluation` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL DEFAULT '(PROV)',
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `status` smallint(6) NOT NULL,
  `date_eval` date DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_job` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_evaluation_rowid` (`rowid`),
  KEY `idx_hrm_evaluation_ref` (`ref`),
  KEY `llx_hrm_evaluation_fk_user_creat` (`fk_user_creat`),
  KEY `idx_hrm_evaluation_status` (`status`),
  CONSTRAINT `llx_hrm_evaluation_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluation`
--

INSERT INTO `llx_hrm_evaluation` VALUES
(1,'EVAL2302-0001','bbb','eval ',NULL,NULL,'2023-02-11 08:42:19','2023-02-11 11:42:59',12,NULL,NULL,1,'2023-02-11',12,1);

--
-- Table structure for table `llx_hrm_evaluation_extrafields`
--

CREATE TABLE `llx_hrm_evaluation_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_evaluation_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluation_extrafields`
--


--
-- Table structure for table `llx_hrm_evaluationdet`
--

CREATE TABLE `llx_hrm_evaluationdet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_skill` int(11) NOT NULL,
  `fk_evaluation` int(11) NOT NULL,
  `rankorder` int(11) NOT NULL,
  `required_rank` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_evaluationdet_rowid` (`rowid`),
  KEY `llx_hrm_evaluationdet_fk_user_creat` (`fk_user_creat`),
  KEY `idx_hrm_evaluationdet_fk_skill` (`fk_skill`),
  KEY `idx_hrm_evaluationdet_fk_evaluation` (`fk_evaluation`),
  CONSTRAINT `llx_hrm_evaluationdet_fk_evaluation` FOREIGN KEY (`fk_evaluation`) REFERENCES `llx_hrm_evaluation` (`rowid`),
  CONSTRAINT `llx_hrm_evaluationdet_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluationdet`
--

INSERT INTO `llx_hrm_evaluationdet` VALUES
(1,'2023-02-11 08:42:19','2023-02-11 11:42:19',12,12,1,1,2,0,NULL);

--
-- Table structure for table `llx_hrm_evaluationdet_extrafields`
--

CREATE TABLE `llx_hrm_evaluationdet_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_evaluationdet_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_evaluationdet_extrafields`
--


--
-- Table structure for table `llx_hrm_job`
--

CREATE TABLE `llx_hrm_job` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `deplacement` varchar(255) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_job_rowid` (`rowid`),
  KEY `idx_hrm_job_label` (`label`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_job`
--

INSERT INTO `llx_hrm_job` VALUES
(1,'aaa','aaa','2023-01-05 09:31:33','2023-01-05 12:31:33','0',NULL,NULL,12,NULL);

--
-- Table structure for table `llx_hrm_job_extrafields`
--

CREATE TABLE `llx_hrm_job_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_job_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_job_extrafields`
--


--
-- Table structure for table `llx_hrm_job_user`
--

CREATE TABLE `llx_hrm_job_user` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `description` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_contrat` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_job` int(11) NOT NULL,
  `date_start` date DEFAULT NULL,
  `date_end` date DEFAULT NULL,
  `abort_comment` varchar(255) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_job_user_rowid` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_job_user`
--

INSERT INTO `llx_hrm_job_user` VALUES
(1,'','2023-01-05 09:51:12','2023-01-05 12:51:12',NULL,12,1,'2023-01-05','2023-01-05',NULL,NULL,NULL,12,NULL);

--
-- Table structure for table `llx_hrm_skill`
--

CREATE TABLE `llx_hrm_skill` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `required_level` int(11) NOT NULL,
  `date_validite` int(11) NOT NULL,
  `temps_theorique` double(24,8) NOT NULL,
  `skill_type` int(11) NOT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_skill_rowid` (`rowid`),
  KEY `llx_hrm_skill_fk_user_creat` (`fk_user_creat`),
  KEY `idx_hrm_skill_skill_type` (`skill_type`),
  CONSTRAINT `llx_hrm_skill_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skill`
--

INSERT INTO `llx_hrm_skill` VALUES
(1,'dd','','2023-01-05 09:34:31','2023-01-05 12:34:31',12,NULL,0,0,0.00000000,0,NULL,NULL);

--
-- Table structure for table `llx_hrm_skill_extrafields`
--

CREATE TABLE `llx_hrm_skill_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_skill_fk_object` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skill_extrafields`
--


--
-- Table structure for table `llx_hrm_skilldet`
--

CREATE TABLE `llx_hrm_skilldet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `description` text DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_skill` int(11) NOT NULL,
  `rankorder` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_skilldet_rowid` (`rowid`),
  KEY `llx_hrm_skilldet_fk_user_creat` (`fk_user_creat`),
  KEY `llx_hrm_skilldet_fk_skill` (`fk_skill`),
  CONSTRAINT `llx_hrm_skilldet_fk_skill` FOREIGN KEY (`fk_skill`) REFERENCES `llx_hrm_skill` (`rowid`),
  CONSTRAINT `llx_hrm_skilldet_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skilldet`
--

INSERT INTO `llx_hrm_skilldet` VALUES
(1,'No description 1',12,NULL,1,1),
(2,'No description 2',12,NULL,1,2),
(3,'No description 3',12,NULL,1,3);

--
-- Table structure for table `llx_hrm_skillrank`
--

CREATE TABLE `llx_hrm_skillrank` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_skill` int(11) NOT NULL,
  `rankorder` int(11) NOT NULL,
  `fk_object` int(11) NOT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `objecttype` varchar(128) NOT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_hrm_skillrank_rowid` (`rowid`),
  KEY `idx_hrm_skillrank_fk_skill` (`fk_skill`),
  KEY `llx_hrm_skillrank_fk_user_creat` (`fk_user_creat`),
  CONSTRAINT `llx_hrm_skillrank_fk_skill` FOREIGN KEY (`fk_skill`) REFERENCES `llx_hrm_skill` (`rowid`),
  CONSTRAINT `llx_hrm_skillrank_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `llx_user` (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_hrm_skillrank`
--

INSERT INTO `llx_hrm_skillrank` VALUES
(1,1,0,1,'2023-01-05 09:45:09','2023-01-05 12:45:09',12,NULL,'job');

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

CREATE TABLE `llx_import_model` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_user` int(11) NOT NULL DEFAULT 0,
  `label` varchar(50) NOT NULL,
  `type` varchar(64) DEFAULT NULL,
  `field` text NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_import_model` (`label`,`type`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_import_model` VALUES
(1,12,'Import profile 1','user_1','1=u.login,2=u.lastname,3=u.firstname,4=u.employee,5=u.job,6=u.gender,7=u.accountancy_code,8=u.pass_crypted,9=u.admin,10=u.fk_soc,11=u.address,12=u.zip,13=u.town,14=u.fk_state,15=u.fk_country,16=u.office_phone,17=u.user_mobile,18=u.office_fax,19=u.email,20=u.note,21=u.signature,22=u.fk_user,23=u.thm,24=u.tjm,25=u.weeklyhours,26=u.dateemployment,27=u.salary,28=u.color,29=u.api_key,30=u.birth,31=u.datec,32=u.statut',0),
(3,0,'Import profile 2','user_1','1=u.login,2=u.lastname,3=u.firstname,4=u.employee,5=u.job,6=u.gender,7=u.accountancy_code,8=u.pass_crypted,9=u.admin,10=u.fk_soc,11=u.address,12=u.zip,13=u.town,14=u.fk_state,15=u.fk_country,16=u.office_phone,17=u.user_mobile,18=u.office_fax,19=u.email,20=u.note,21=u.signature,22=u.fk_user,23=u.thm,24=u.tjm,25=u.weeklyhours,26=u.dateemployment,27=u.salary,28=u.color,29=u.api_key,30=u.birth,31=u.datec,32=u.statut',0);

--
-- Table structure for table `llx_intracommreport`
--

CREATE TABLE `llx_intracommreport` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(30) CHARACTER SET utf8mb4 NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `type_declaration` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL,
  `periods` varchar(32) DEFAULT NULL,
  `mode` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL,
  `content_xml` text CHARACTER SET utf8mb4 DEFAULT NULL,
  `type_export` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_intracommreport`
--


--
-- Table structure for table `llx_inventory`
--

CREATE TABLE `llx_inventory` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_warehouse` int(11) DEFAULT NULL,
  `date_inventory` date DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `date_validation` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `categories_product` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_inventory_ref` (`ref`,`entity`),
  KEY `idx_inventory_rowid` (`rowid`),
  KEY `idx_inventory_ref` (`ref`),
  KEY `idx_inventory_entity` (`entity`),
  KEY `idx_inventory_fk_warehouse` (`fk_warehouse`),
  KEY `idx_inventory_status` (`status`),
  KEY `idx_inventory_import_key` (`import_key`),
  KEY `idx_inventory_tms` (`tms`),
  KEY `idx_inventory_datec` (`datec`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_inventory`
--

INSERT INTO `llx_inventory` VALUES
(1,'aaa',1,NULL,NULL,'aa aaa',0,'2020-01-10 01:41:10',NULL,'2020-01-09 21:41:10',12,12,NULL,NULL,NULL,4,NULL);

--
-- Table structure for table `llx_inventory_extrafields`
--

CREATE TABLE `llx_inventory_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  KEY `idx_inventory_extrafields` (`fk_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_inventory_extrafields`
--


--
-- Table structure for table `llx_inventorydet`
--

CREATE TABLE `llx_inventorydet` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_inventory` int(11) DEFAULT 0,
  `fk_warehouse` int(11) DEFAULT 0,
  `fk_product` int(11) DEFAULT 0,
  `batch` varchar(30) DEFAULT NULL,
  `qty_view` double DEFAULT NULL,
  `qty_stock` double DEFAULT NULL,
  `qty_regulated` double DEFAULT NULL,
  `fk_movement` int(11) DEFAULT NULL,
  `pmp_real` double DEFAULT NULL,
  `pmp_expected` double DEFAULT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_inventorydet` (`fk_inventory`,`fk_warehouse`,`fk_product`,`batch`),
  KEY `idx_inventorydet_tms` (`tms`),
  KEY `idx_inventorydet_datec` (`datec`),
  KEY `idx_inventorydet_fk_inventory` (`fk_inventory`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_inventorydet`
--


--
-- Table structure for table `llx_knowledgemanagement_knowledgerecord`
--

CREATE TABLE `llx_knowledgemanagement_knowledgerecord` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `ref` varchar(128) NOT NULL,
  `date_creation` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `last_main_doc` varchar(255) DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `question` text NOT NULL,
  `answer` text DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `fk_ticket` int(11) DEFAULT NULL,
  `fk_c_ticket_category` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `lang` varchar(6) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_knowledgemanagement_knowledgerecord`
--

INSERT INTO `llx_knowledgemanagement_knowledgerecord` VALUES
(1,'(PROV1)','2022-02-07 13:40:53','2022-02-07 13:40:53',NULL,12,NULL,NULL,NULL,NULL,'This is a FAQ 1','And this is the solution of the FAQ 1',NULL,NULL,NULL,0,'en_US',1),
(2,'KM2202-0001','2022-02-07 13:50:46','2022-02-07 13:50:49',NULL,12,NULL,12,NULL,NULL,'This is a FAQ 2','This is solution of FAQ 2',NULL,NULL,NULL,1,'',1),
(3,'KM2302-0002','2023-02-22 11:06:47','2023-02-22 14:10:20',NULL,12,NULL,12,NULL,NULL,'ggdf','gfdgdfg',NULL,NULL,1,1,'',1);

--
-- Table structure for table `llx_knowledgemanagement_knowledgerecord_extrafields`
--

CREATE TABLE `llx_knowledgemanagement_knowledgerecord_extrafields` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_object` int(11) NOT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_knowledgemanagement_knowledgerecord_extrafields`
--


--
-- Table structure for table `llx_links`
--

CREATE TABLE `llx_links` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datea` datetime NOT NULL,
  `url` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `objecttype` varchar(255) NOT NULL,
  `objectid` int(11) NOT NULL,
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_links` (`objectid`,`label`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_links` VALUES
(1,1,'2018-01-16 16:45:35','http://www.dolicloud.com','The DoliCoud service','societe',10),
(2,1,'2018-01-16 17:14:35','https://www.dolistore.com/en/tools-documentation/12-SVG-file-for-85cm-x-200cm-rollup.html','Link to rollup file on dolistore.com','product',11),
(3,1,'2018-01-22 17:40:23','http://www.nltechno.com','NLtechno portal','societe',10),
(4,1,'2018-01-22 18:32:31','https://play.google.com/store/apps/details?id=com.nltechno.dolidroidpro','Link on Google Play','product',5),
(6,1,'2019-11-28 16:52:58','https://www.youtube.com/watch?v=hJSXQj_KeE0','Link on YouTube','product',5),
(7,1,'2019-11-28 16:53:46','https://www.youtube.com/watch?v=hMNjvManaF4&vl=fr','Link on YouTube','product',12);

--
-- Table structure for table `llx_loan`
--

CREATE TABLE `llx_loan` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(80) NOT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `capital` double(24,8) DEFAULT NULL,
  `datestart` date DEFAULT NULL,
  `dateend` date DEFAULT NULL,
  `nbterm` double DEFAULT NULL,
  `rate` double NOT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `capital_position` double(24,8) DEFAULT NULL,
  `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,
  `fk_projet` int(11) DEFAULT NULL,
  `insurance_amount` double(24,8) DEFAULT 0.00000000,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_loan` VALUES
(1,1,'2019-12-26 01:56:08','2019-12-25 21:56:08','aaaa',4,1000.00000000,'2019-12-25','2020-12-25',2,0.5,'','',NULL,NULL,0,'164','11','11',12,NULL,1,NULL,0.00000000),
(2,1,'2019-12-26 01:58:27','2019-12-25 22:12:50','aaaa',4,1000.00000000,'2019-12-25','2020-12-25',2,0.5,'','',NULL,NULL,0,'164','11','11',12,NULL,1,4,0.00000000),
(3,1,'2019-12-26 01:58:59','2023-02-16 10:59:23','aaaa',4,1000.00000000,'2019-12-25','2020-12-25',2,0.5,'','',NULL,NULL,2,'164','11','11',12,NULL,1,NULL,0.00000000);

--
-- Table structure for table `llx_loan_schedule`
--

CREATE TABLE `llx_loan_schedule` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount_capital` double(24,8) DEFAULT NULL,
  `amount_insurance` double(24,8) DEFAULT NULL,
  `amount_interest` double(24,8) DEFAULT NULL,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_payment_loan` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `llx_loan_schedule`
--


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

CREATE TABLE `llx_localtax` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `entity` int(11) NOT NULL DEFAULT 1,
  `localtaxtype` tinyint(4) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double NOT NULL DEFAULT 0,
  `label` varchar(255) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  PRIMARY KEY (`rowid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


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

CREATE TABLE `llx_mailing` (
  `rowid` int(11) NOT NULL AUTO_INCREMENT,
  `statut` smallint(6) DEFAULT 0,
  `titre` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `sujet` varchar(128) DEFAULT NULL,
  `body` mediumtext DEFAULT NULL,
  `bgcolor` varchar(8) DEFAULT NULL,
  `bgimage` varchar(255) DEFAULT NULL,
  `cible` varchar(60) DEFAULT NULL,
  `nbemail` int(11) DEFAULT NULL,
  `email_from` varchar(160) DEFAULT NULL,
  `email_replyto` varchar(160) DEFAULT NULL,
  `email_errorsto` varchar(160) DEFAULT NULL,
  `tag` varchar(128) DEFAULT NULL,
  `date_creat` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_appro` datetime DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_appro` int(11) DEFAULT NULL,
  `joined_file1` varchar(255) DEFAULT NULL,
  `joined_file2` varchar(255) DEFAULT NULL,
  `joined_file3` varchar(255) DEFAULT NULL,
  `joined_file4` varchar(255) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`rowid`),
  UNIQUE KEY `uk_mailing` (`titre`,`entity`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `llx_mailing` VALUES
(3,2,'Commercial emailing January',1,'Buy my product','<div style=\"text-align: center; background: #220044\"><span style=\"color:#FFFFFF\"><strong><span style=\"font-size:18px\"><img alt=\"\" src=\"/dolibarr_4.0/htdocs/viewimage.php?modulepart=medias&file=image/myimagesforemailing/dolicloud_logo_white.png\" style=\"height:80px; width:260px\" /></span></strong></span><br />\r\n<a href=\"http://www.facebook.com\" target=\"_new\"><img alt=\"Seguici su facebook\" src=\"https://mosaico.io/templates/versafluid/img/social/facebook.png\" style=\"height:24px; padding:0px 5px 0px 5px; width:24px\" /></a><a href=\"http://www.twitter.com\" target=\"_new\"><img alt=\"Seguici su twitter\" src=\"https://mosaico.io/templates/versafluid/img/social/twitter.png\" style=\"height:24px; padding:0px 5px; width:24px\" /></a><a href=\"http://plus.google.com\" target=\"_new\"><img alt=\"Seguici su G+\" src=\"https://mosaico.io/templates/versafluid/img/social/google-plus.png\" style=\"height:24px; padding:0px 5px; width:24px\" /></a><a href=\"http://www.linkedin.com\" target=\"_new\"><img alt=\"Seguici su linkedin\" src=\"https://mosaico.io/templates/versafluid/img/social/linkedin.png\" style=\"height:24px; padding:0px 5px; width:24px\" /></a></div>\r\n\r\n<table style=\"background:#ffffff; border:0; margin:0; padding:5px; text-align:center; width:100%\">\r\n	<tbody>\r\n		<tr>\r\n			<td>\r\n			<table cellpadding=\"0\" cellspacing=\"0\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n				<tbody>\r\n					<tr>\r\n						<td>\r\n						<table border=\"0\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n							<tbody>\r\n								<tr>\r\n									<td>\r\n									<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n										<tbody>\r\n											<tr>\r\n												<td>\r\n												<p style=\"text-align:center\"><span style=\"font-size:16px\"><strong>DoliCloud</strong> is the service to provide you a web hosting solution of Dolibarr ERP CRM in one click. Just enter your email to create your instance and you are ready to work. Backup and full access is to data (SFTP, Mysql) are provided.</span></p>\r\n												</td>\r\n											</tr>\r\n										</tbody>\r\n									</table>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td>\r\n									<table style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n										<tbody>\r\n											<tr>\r\n												<td>\r\n												<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"responsive-table\" style=\"width:100%\">\r\n													<tbody>\r\n														<tr>\r\n															<td style=\"text-align:center\"><a class=\"mobile-button\" href=\"https://www.on.dolicloud.com/signUp/index?origin=dolicloudhome&planCode=basic\" style=\"display: inline-block; font-size: 18px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #9C010F; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-bottom: 3px solid #5f0109;\" target=\"_new\">Test Dolibarr ERP CRM on Dolicloud →</a></td>\r\n														</tr>\r\n													</tbody>\r\n												</table>\r\n												</td>\r\n											</tr>\r\n										</tbody>\r\n									</table>\r\n									</td>\r\n								</tr>\r\n							</tbody>\r\n						</table>\r\n						</td>\r\n					</tr>\r\n				</tbody>\r\n			</table>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"ko_footerBlock_2\" style=\"min-width:500px; width:100%\">\r\n	<tbody>\r\n		<tr>\r\n			<td>\r\n			<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%\">\r\n				<tbody>\r\n					<tr>\r\n						<td>\r\n						<table align=\"center\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n							<tbody>\r\n								<tr>\r\n									<td style=\"text-align:center\"><span style=\"color:#3F3D33\">DoliCloud team</span><br />\r\n									<strong><a class=\"original-only\" href=\"%5Bprofile_link%5D\" style=\"color: #3F3D33; text-decoration: none;\" target=\"_new\">Unsubscribe</a><span style=\"color:#444444; font-family:arial,sans-serif; font-size:12px\">   |   </span><a href=\"%5Bshow_link%5D\" style=\"color: #3F3D33; text-decoration: none;\" target=\"_new\">View on web browser</a></strong></td>\r\n								</tr>\r\n							</tbody>\r\n						</table>\r\n						</td>\r\n					</tr>\r\n				</tbody>\r\n			</table>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>','','',NULL,26,'dolibarr@domain.com','','',NULL,'2012-07-11 13:15:59','2017-01-29 21:33:11',NULL,'2017-01-29 21:36:40',1,12,NULL,NULL,NULL,NULL,NULL,NULL,'2019-11-28 11:52:54'),
(4,0,'Commercial emailing February',1,'Buy my product','This is a new éEéé\"Mailing content<br />\r\n<br />\r\n<style type=\"text/css\">\r\n<!--\r\na:link {\r\n	color: #E2017A;\r\n}\r\n--></style>\r\n<span style=\"color:#800080;\"><strong>You can adit it with the WYSIWYG editor.</strong></span><br />\r\nIt is\r\n<ul>\r\n	<li>\r\n		Fast</li>\r\n	<li>\r\n		Easy to use</li>\r\n	<li>\r\n		Pretty</li>\r\n</ul>','','',NULL,NULL,'dolibarr@domain.com','','',NULL,'2013-07-18 20:44:33',NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2019-11-28 11:52:54'),
(5,1,'Commercial emailing March',1,'Test for free Dolibarr ERP CRM - no credit card required','<div style=\"background:#220044; text-align:center\"><span style=\"color:#ffffff\"><strong><span style=\"font-size:18px\"><img alt=\"\" src=\"/dolibarr_11.0/htdocs/viewimage.php?modulepart=medias&file=image/myimagesforemailing/dolicloud_logo_white.png\" style=\"height:80px; width:260px\" /></span></strong></span><br />\r\n<a href=\"http://www.facebook.com\" target=\"_new\"><img alt=\"Seguici su facebook\" src=\"https://mosaico.io/templates/versafluid/img/social/facebook.png\" style=\"height:24px; padding:0px 5px 0px 5px; width:24px\" /></a><a href=\"http://www.twitter.com\" target=\"_new\"><img alt=\"Seguici su twitter\" src=\"https://mosaico.io/templates/versafluid/img/social/twitter.png\" style=\"height:24px; padding:0px 5px; width:24px\" /></a><a href=\"http://plus.google.com\" target=\"_new\"><img alt=\"Seguici su G+\" src=\"https://mosaico.io/templates/versafluid/img/social/google-plus.png\" style=\"height:24px; padding:0px 5px; width:24px\" /></a><a href=\"http://www.linkedin.com\" target=\"_new\"><img alt=\"Seguici su linkedin\" src=\"https://mosaico.io/templates/versafluid/img/social/linkedin.png\" style=\"height:24px; padding:0px 5px; width:24px\" /></a></div>\r\n\r\n<table style=\"background:#ffffff; border:0; margin:0; padding:5px; text-align:center; width:100%\">\r\n	<tbody>\r\n		<tr>\r\n			<td>\r\n			<table cellpadding=\"0\" cellspacing=\"0\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n				<tbody>\r\n					<tr>\r\n						<td>\r\n						<table border=\"0\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n							<tbody>\r\n								<tr>\r\n									<td>\r\n									<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n										<tbody>\r\n											<tr>\r\n												<td>\r\n												<p style=\"text-align:center\"><span style=\"font-size:16px\"><strong>DoliCloud</strong> is the service to provide you a web hosting solution __EMAIL__ of Dolibarr ERP CRM in one click. Just enter your email to create your instance and you are ready to work. Backup and full access is to data (SFTP, Mysql) are provided.</span></p>\r\n												</td>\r\n											</tr>\r\n										</tbody>\r\n									</table>\r\n									</td>\r\n								</tr>\r\n								<tr>\r\n									<td>\r\n									<table style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n										<tbody>\r\n											<tr>\r\n												<td>\r\n												<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"responsive-table\" style=\"width:100%\">\r\n													<tbody>\r\n														<tr>\r\n															<td style=\"text-align:center\"><a class=\"mobile-button\" href=\"https://www.on.dolicloud.com/signUp/index?origin=dolicloudhome&planCode=basic\" style=\"display: inline-block; font-size: 18px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #9C010F; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-bottom: 3px solid #5f0109;\" target=\"_new\">Test Dolibarr ERP CRM on Dolicloud →</a></td>\r\n														</tr>\r\n													</tbody>\r\n												</table>\r\n												</td>\r\n											</tr>\r\n										</tbody>\r\n									</table>\r\n									</td>\r\n								</tr>\r\n							</tbody>\r\n						</table>\r\n						</td>\r\n					</tr>\r\n				</tbody>\r\n			</table>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"ko_footerBlock_2\" style=\"min-width:500px; width:100%\">\r\n	<tbody>\r\n		<tr>\r\n			<td>\r\n			<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%\">\r\n				<tbody>\r\n					<tr>\r\n						<td>\r\n						<table align=\"center\" style=\"background:#ffffff; border:0; margin:0; padding:5px; width:100%\">\r\n							<tbody>\r\n								<tr>\r\n									<td style=\"text-align:center\"><span style=\"color:#3f3d33\">DoliCloud team</span><br />\r\n									<strong><a class=\"original-only\" href=\"%5Bprofile_link%5D\" style=\"color: #3F3D33; text-decoration: none;\" target=\"_new\">Unsubscribe</a><span style=\"color:#444444; font-family:arial,sans-serif; font-size:12px\">   |   </span><a href=\"%5Bshow_link%5D\" style=\"color: #3F3D33; text-decoration: none;\" target=\"_new\">View on web browser</a></strong></td>\r\n								</tr>\r\n							</tbody>\r\n						</table>\r\n						</td>\r\n					</tr>\r\n				</tbody>\r\n			</table>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>','e5e5e5','',NULL,28,'dolibarr@domain.com','','',NULL,'2017-01-29 21:47:37','2019-12-21 20:23:29',NULL,NULL,12,12,NULL,NULL,NULL,NULL,NULL,NULL,'2019-12-21 16:23:29'),
(6,3,'Copy of Commercial emailing March Feb 24, 2023',1,'Test for free Dolibarr ERP CRM - no credit card required','<div style=\"text-align:center\"><img src=\"data:image/png;base64,[encoded data, 197448 characters]\" style=\"width:35%\" /></div>\r\n\r\n<hr />\r\n<div style=\"text-align:left\">\r\n<h1 style=\"text-align:center\"><span style=\"font-size:18px\"><span style=\"color:#222222\"><strong><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\">Parce que votre temps est pr&eacute;cieux,</span></span></strong></span><br />\r\n<span style=\"color:#7f8c8d\"><strong><span style=\"font-family:Calibri,sans-serif\">DoliCloud</span></strong></span><span style=\"color:#222222\"><strong><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\"> &eacute;tablit un partenariat avec </span></span></strong></span><span style=\"color:#7f8c8d\"><strong><span style=\"font-family:Calibri,sans-serif\">MB TanaServices</span></strong></span><span style=\"color:#222222\"><strong><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\"> pour vous proposer un service compl&eacute;mentaire...</span></span></strong></span></span></h1>\r\n\r\n<p><span style=\"font-size:12pt\"><span style=\"color:#222222\">&nbsp;</span></span><br />\r\n<span style=\"font-size:12pt\"><span style=\"color:#222222\"><span style=\"font-size:11pt\"><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\">A la recherche de la satisfaction compl&egrave;te de nos clients, DoliCloud et MB TanaServices s&rsquo;associent dans le but d&rsquo;unir leurs expertises en Dolibarr en vous offrant des services d&rsquo;assistance de gestion externalis&eacute;e.</span></span></span></span></span><br />\r\n<span style=\"font-size:12pt\"><span style=\"color:#222222\">&nbsp;</span></span><br />\r\n<span style=\"font-size:12pt\"><span style=\"color:#222222\"><span style=\"font-size:11pt\"><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\">Bas&eacute;es &agrave; Madagascar (pays francophone), les assistantes de gestion de MB TanaServices sont sp&eacute;cialis&eacute;es sur l&rsquo;outil Dolibarr. Elles sont disponibles &agrave; temps complet ou &agrave; temps partiel, pour vous permettre de d&eacute;l&eacute;guer vos t&acirc;ches de gestion quotidiennes fastidieuses et/ou r&eacute;p&eacute;titives.</span></span></span></span></span><br />\r\n<br />\r\n<span style=\"font-size:12pt\"><span style=\"color:#222222\"><span style=\"font-size:11pt\"><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\">MB TanaServices propose &eacute;galement des formations &agrave; l&rsquo;utilisation de Dolibarr et de l&rsquo;assistance pour le param&eacute;trage ou l&rsquo;installation des modules compl&eacute;mentaires.</span></span></span></span></span><br />\r\n<span style=\"font-size:12pt\"><span style=\"color:#222222\">&nbsp;</span></span><br />\r\n<span style=\"font-size:14px\"><span style=\"color:#222222\"><strong><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\">Gagner du temps au quotidien et concentrez-vous sur votre c&oelig;ur de m&eacute;tier.</span></span></strong></span><br />\r\n<span style=\"color:#222222\">&nbsp;</span><br />\r\n<span style=\"color:#222222\"><strong><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:#0070c0\">MB TanaServices offre la mise en place du processus d&#39;assistanat ainsi que le premier mois gratuit (sans engagement) aux premiers inscrits</span></span>.</strong></span><br />\r\n<span style=\"color:#222222\">&nbsp;</span><br />\r\n<span style=\"color:#222222\"><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\">Pour plus d&rsquo;informations, suivre le lien :&nbsp;</span></span><strong><span style=\"font-family:Calibri,sans-serif\"><span style=\"color:black\">&nbsp;</span></span></strong></span><a href=\"https://www.dolicloud.com/fr/beneficier-d-une-assistance-de-gestion-pour-dolibarr.php\" target=\"_blank\">https://www.dolicloud.com/fr/beneficier-d-une-assistance-de-gestion-pour-dolibarr.php</a><br />\r\n<span style=\"color:black\">Contactez directement Olivier Bayle, g&eacute;rant de MB TanaServices :</span>&nbsp;&nbsp;<a href=\"mailto:contact@tana-services.com\" style=\"color:#1155cc\" target=\"_blank\">contact@tana-services.com</a>&nbsp; <span style=\"color:black\">ou Whatsapp : +261 34 92 623 84</span></span><br />\r\n<br />\r\n<br />\r\nPour ne plus recevoir d&#39;information sur nos partenariats: <a href=\"__UNSUBSCRIBE_URL__\">Cliquez ici</a></p>\r\n</div>\r\n\r\n<hr /><em>__SENDEREMAIL_SIGNATURE__<br />\r\n<br />\r\n__CHECK_READ__</em>','e5e5e5','',NULL,4,'dolibarr@domain.com','','',NULL,'2023-02-24 21:37:16','2023-02-25 00:01:46',NULL,'2023-02-25 00:02:21',12,12,NULL,NULL,NULL,NULL,NULL,NULL,'2023-02-25 03:02:21');

--
