CREATE TABLE `pnfq_c_revenuestamp` (
  `rowid` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `taux` double NOT NULL,
  `note` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_c_revenuestamp`
--

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

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

--
-- Structure de la table `pnfq_c_shipment_mode`
--

CREATE TABLE `pnfq_c_shipment_mode` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `code` varchar(30) NOT NULL,
  `libelle` varchar(50) NOT NULL,
  `description` text DEFAULT NULL,
  `tracking` varchar(255) NOT NULL,
  `active` tinyint(4) DEFAULT 0,
  `module` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_c_shipment_mode`
--

INSERT INTO `pnfq_c_shipment_mode` (`rowid`, `tms`, `code`, `libelle`, `description`, `tracking`, `active`, `module`) VALUES
(1, '2014-12-01 03:25:41', 'CATCH', 'Catch', 'Catch by client', '', 1, NULL),
(2, '2014-12-01 03:25:41', 'TRANS', 'Transporter', 'Generic transporter', '', 1, NULL),
(3, '2014-12-01 03:25:41', 'COLSUI', 'Colissimo Suivi', 'Colissimo Suivi', '', 0, NULL),
(4, '2014-12-01 03:25:41', 'LETTREMAX', 'Lettre Max', 'Courrier Suivi et Lettre Max', '', 0, NULL),
(5, '2014-12-01 03:25:41', 'UPS', 'UPS', 'United Parcel Service', 'http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber2=&InquiryNumber3=&tracknums_displayed=3&loc=fr_FR&TypeOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumber22=&InquiryNumber32=&track=Track&Suivi.x=64&Suivi.y=7&Suivi=Valider&InquiryNumber1={TRACKID}', 0, NULL),
(6, '2014-12-01 03:25:41', 'KIALA', 'KIALA', 'Relais Kiala', 'http://www.kiala.fr/tnt/delivery/{TRACKID}', 0, NULL),
(7, '2014-12-01 03:25:41', 'GLS', 'GLS', 'General Logistics Systems', 'http://www.gls-group.eu/276-I-PORTAL-WEB/content/GLS/FR01/FR/5004.htm?txtAction=71000&txtRefNo={TRACKID}', 0, NULL),
(8, '2014-12-01 03:25:41', 'CHRONO', 'Chronopost', 'Chronopost', 'http://www.chronopost.fr/expedier/inputLTNumbersNoJahia.do?listeNumeros={TRACKID}', 0, NULL);

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

--
-- Structure de la table `pnfq_c_stcomm`
--

CREATE TABLE `pnfq_c_stcomm` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(30) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `picto` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_c_stcomm`
--

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

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

--
-- Structure de la table `pnfq_c_tva`
--

CREATE TABLE `pnfq_c_tva` (
  `rowid` int(11) NOT NULL,
  `fk_pays` int(11) NOT NULL,
  `code` varchar(10) DEFAULT '',
  `taux` double NOT NULL,
  `localtax1` varchar(20) DEFAULT NULL,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2` varchar(20) DEFAULT NULL,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `note` varchar(128) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_c_tva`
--

INSERT INTO `pnfq_c_tva` (`rowid`, `fk_pays`, `code`, `taux`, `localtax1`, `localtax1_type`, `localtax2`, `localtax2_type`, `recuperableonly`, `note`, `active`, `accountancy_code_sell`, `accountancy_code_buy`) VALUES
(11, 1, '', 20, '0', '0', '0', '0', 0, 'VAT standard rate (France hors DOM-TOM)', 1, NULL, NULL),
(12, 1, '', 8.5, '0', '0', '0', '0', 0, 'VAT standard rate (DOM sauf Guyane et Saint-Martin)', 0, NULL, NULL),
(13, 1, '', 8.5, '0', '0', '0', '0', 1, 'VAT standard rate (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par acheteur', 0, NULL, NULL),
(14, 1, '', 5.5, '0', '0', '0', '0', 0, 'VAT reduced rate (France hors DOM-TOM)', 1, NULL, NULL),
(15, 1, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0 ou non applicable', 1, NULL, NULL),
(16, 1, '', 2.1, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(17, 1, '', 10, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(21, 2, '', 21, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(22, 2, '', 6, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(23, 2, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0 ou non applicable', 1, NULL, NULL),
(24, 2, '', 12, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(31, 3, '', 21, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(32, 3, '', 10, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(33, 3, '', 4, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(34, 3, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(41, 4, '', 21, '5.2', '3', '-21', '1', 0, 'VAT standard rate', 1, NULL, NULL),
(42, 4, '', 10, '1.4', '3', '-21', '1', 0, 'VAT reduced rate', 1, NULL, NULL),
(43, 4, '', 4, '0.5', '3', '-21', '1', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(44, 4, '', 0, '0', '3', '-21', '1', 0, 'VAT Rate 0', 1, NULL, NULL),
(51, 5, '', 19, '0', '0', '0', '0', 0, 'allgemeine Ust.', 1, NULL, NULL),
(52, 5, '', 7, '0', '0', '0', '0', 0, 'ermäßigte USt.', 1, NULL, NULL),
(53, 5, '', 0, '0', '0', '0', '0', 0, 'keine USt.', 1, NULL, NULL),
(54, 5, '', 5.5, '0', '0', '0', '0', 0, 'USt. Forst', 0, NULL, NULL),
(55, 5, '', 10.7, '0', '0', '0', '0', 0, 'USt. Landwirtschaft', 0, NULL, NULL),
(61, 6, '', 8, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(62, 6, '', 3.8, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(63, 6, '', 2.5, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(64, 6, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(71, 7, '', 20, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(72, 7, '', 17.5, '0', '0', '0', '0', 0, 'VAT standard rate before 2011', 1, NULL, NULL),
(73, 7, '', 5, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(74, 7, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(91, 9, '', 17, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(92, 9, '', 13, '0', '0', '0', '0', 0, 'VAT reduced rate 0', 1, NULL, NULL),
(93, 9, '', 3, '0', '0', '0', '0', 0, 'VAT super reduced rate 0', 1, NULL, NULL),
(94, 9, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(101, 10, '', 6, '1', '4', '0', '0', 0, 'VAT 6%', 1, NULL, NULL),
(102, 10, '', 12, '1', '4', '0', '0', 0, 'VAT 12%', 1, NULL, NULL),
(103, 10, '', 18, '1', '4', '0', '0', 0, 'VAT 18%', 1, NULL, NULL),
(104, 10, '', 7.5, '1', '4', '0', '0', 0, 'VAT 6% Majoré à 25% (7.5%)', 1, NULL, NULL),
(105, 10, '', 15, '1', '4', '0', '0', 0, 'VAT 12% Majoré à 25% (15%)', 1, NULL, NULL),
(106, 10, '', 22.5, '1', '4', '0', '0', 0, 'VAT 18% Majoré à 25% (22.5%)', 1, NULL, NULL),
(107, 10, '', 0, '1', '4', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(111, 11, '', 0, '0', '0', '0', '0', 0, 'No Sales Tax', 1, NULL, NULL),
(112, 11, '', 4, '0', '0', '0', '0', 0, 'Sales Tax 4%', 1, NULL, NULL),
(113, 11, '', 6, '0', '0', '0', '0', 0, 'Sales Tax 6%', 1, NULL, NULL),
(121, 12, '', 20, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(122, 12, '', 14, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(123, 12, '', 10, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(124, 12, '', 7, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(125, 12, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(141, 14, '', 7, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(142, 14, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(143, 14, '', 5, '9.975', '1', '0', '0', 0, 'TPS and TVQ rate', 1, NULL, NULL),
(171, 17, '', 19, '0', '0', '0', '0', 0, 'Algemeen BTW tarief', 1, NULL, NULL),
(172, 17, '', 6, '0', '0', '0', '0', 0, 'Verlaagd BTW tarief', 1, NULL, NULL),
(173, 17, '', 0, '0', '0', '0', '0', 0, '0 BTW tarief', 1, NULL, NULL),
(174, 17, '', 21, '0', '0', '0', '0', 0, 'Algemeen BTW tarief (vanaf 1 oktober 2012)', 0, NULL, NULL),
(201, 20, '', 25, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(202, 20, '', 12, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(203, 20, '', 6, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(204, 20, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(211, 21, '', 0, '0', '0', '0', '0', 0, 'IVA Rate 0', 1, NULL, NULL),
(212, 21, '', 18, '7.5', '2', '0', '0', 0, 'IVA standard rate', 1, NULL, NULL),
(231, 23, '', 21, '0', '0', '0', '0', 0, 'IVA standard rate', 1, NULL, NULL),
(232, 23, '', 10.5, '0', '0', '0', '0', 0, 'IVA reduced rate', 1, NULL, NULL),
(233, 23, '', 0, '0', '0', '0', '0', 0, 'IVA Rate 0', 1, NULL, NULL),
(241, 24, '', 19.25, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(242, 24, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(251, 25, '', 23, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(252, 25, '', 13, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(253, 25, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(254, 25, '', 6, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(261, 26, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(271, 27, '', 19.6, '0', '0', '0', '0', 0, 'VAT standard rate (France hors DOM-TOM)', 1, NULL, NULL),
(272, 27, '', 8.5, '0', '0', '0', '0', 0, 'VAT standard rate (DOM sauf Guyane et Saint-Martin)', 0, NULL, NULL),
(273, 27, '', 8.5, '0', '0', '0', '0', 1, 'VAT standard rate (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par acheteur', 0, NULL, NULL),
(274, 27, '', 5.5, '0', '0', '0', '0', 0, 'VAT reduced rate (France hors DOM-TOM)', 0, NULL, NULL),
(275, 27, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0 ou non applicable', 1, NULL, NULL),
(276, 27, '', 2.1, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(277, 27, '', 7, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(281, 28, '', 10, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(282, 28, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(411, 41, '', 20, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(412, 41, '', 10, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(413, 41, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(461, 46, '', 0, '0', '0', '0', '0', 0, 'No VAT', 1, NULL, NULL),
(462, 46, '', 15, '0', '0', '0', '0', 0, 'VAT 15%', 1, NULL, NULL),
(463, 46, '', 7.5, '0', '0', '0', '0', 0, 'VAT 7.5%', 1, NULL, NULL),
(561, 56, '', 0, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(591, 59, '', 20, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(592, 59, '', 7, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(593, 59, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(671, 67, '', 19, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(672, 67, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(801, 80, '', 25, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(802, 80, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(861, 86, '', 13, '0', '0', '0', '0', 0, 'IVA 13', 1, NULL, NULL),
(862, 86, '', 0, '0', '0', '0', '0', 0, 'SIN IVA', 1, NULL, NULL),
(1141, 114, '', 0, '0', '0', '0', '0', 0, 'No ISV', 1, NULL, NULL),
(1142, 114, '', 12, '0', '0', '0', '0', 0, 'ISV 12%', 1, NULL, NULL),
(1161, 116, '', 25.5, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1162, 116, '', 7, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1163, 116, '', 0, '0', '0', '0', '0', 0, 'VAT rate 0', 1, NULL, NULL),
(1171, 117, '', 12.5, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1172, 117, '', 4, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1173, 117, '', 1, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(1174, 117, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1176, 117, 'C+S-18', 0, '9', '1', '9', '1', 0, 'CGST+SGST - Same state sales', 1, NULL, NULL),
(1177, 117, 'I-18', 18, '0', '0', '0', '0', 0, 'IGST', 1, NULL, NULL),
(1178, 117, 'C+S-5', 0, '2.5', '1', '2.5', '1', 0, 'CGST+SGST - Same state sales', 1, NULL, NULL),
(1179, 117, 'I-5', 5, '0', '0', '0', '0', 0, 'IGST', 1, NULL, NULL),
(1180, 117, 'C+S-12', 0, '6', '1', '6', '1', 0, 'CGST+SGST - Same state sales', 1, NULL, NULL),
(1181, 117, 'I-12', 12, '0', '0', '0', '0', 0, 'IGST', 1, NULL, NULL),
(1182, 117, 'C+S-28', 0, '14', '1', '14', '1', 0, 'CGST+SGST - Same state sales', 1, NULL, NULL),
(1183, 117, 'I-28', 28, '0', '0', '0', '0', 0, 'IGST', 1, NULL, NULL),
(1231, 123, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1232, 123, '', 5, '0', '0', '0', '0', 0, 'VAT Rate 5', 1, NULL, NULL),
(1401, 140, '', 15, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1402, 140, '', 12, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1403, 140, '', 6, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1404, 140, '', 3, '0', '0', '0', '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(1405, 140, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1481, 148, '', 18, NULL, '0', NULL, '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1482, 148, '', 7, NULL, '0', NULL, '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1483, 148, '', 5, NULL, '0', NULL, '0', 0, 'VAT super-reduced rate', 1, NULL, NULL),
(1484, 148, '', 0, NULL, '0', NULL, '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1511, 151, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1512, 151, '', 14, '0', '0', '0', '0', 0, 'VAT Rate 14', 1, NULL, NULL),
(1521, 152, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1522, 152, '', 15, '0', '0', '0', '0', 0, 'VAT Rate 15', 1, NULL, NULL),
(1541, 154, '', 0, '0', '0', '0', '0', 0, 'No VAT', 1, NULL, NULL),
(1542, 154, '', 16, '0', '0', '0', '0', 0, 'VAT 16%', 1, NULL, NULL),
(1543, 154, '', 10, '0', '0', '0', '0', 0, 'VAT Frontero', 1, NULL, NULL),
(1662, 166, '', 15, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1663, 166, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1692, 169, '', 5, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1693, 169, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1731, 173, '', 25, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1732, 173, '', 14, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1733, 173, '', 8, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1734, 173, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1781, 178, '', 7, NULL, '0', NULL, '0', 0, 'ITBMS standard rate', 1, NULL, NULL),
(1782, 178, '', 0, NULL, '0', NULL, '0', 0, 'ITBMS Rate 0', 1, NULL, NULL),
(1841, 181, '', 18, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1842, 184, '', 7, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1843, 181, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1844, 184, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1881, 188, '', 24, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(1882, 188, '', 9, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1883, 188, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(1884, 188, '', 5, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(1931, 193, '', 0, '0', '0', '0', '0', 0, 'No VAT in SPM', 1, NULL, NULL),
(2011, 201, '', 19, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(2012, 201, '', 10, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(2013, 201, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(2021, 202, '', 22, '0', '0', '0', '0', 0, 'VAT standard rate', 1, NULL, NULL),
(2022, 202, '', 9.5, '0', '0', '0', '0', 0, 'VAT reduced rate', 1, NULL, NULL),
(2023, 202, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(2051, 205, '', 0, '0', '0', '0', '0', 0, 'No VAT', 1, NULL, NULL),
(2052, 205, '', 14, '0', '0', '0', '0', 0, 'VAT 14%', 1, NULL, NULL),
(2131, 213, '', 5, NULL, '0', NULL, '0', 0, 'VAT 5%', 1, NULL, NULL),
(2261, 226, '', 20, '0', '0', '0', '0', 0, 'VAT standart rate', 1, NULL, NULL),
(2262, 226, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(2321, 232, '', 0, '0', '0', '0', '0', 0, 'No VAT', 1, NULL, NULL),
(2322, 232, '', 12, '0', '0', '0', '0', 0, 'VAT 12%', 1, NULL, NULL),
(2323, 232, '', 8, '0', '0', '0', '0', 0, 'VAT 8%', 1, NULL, NULL),
(2461, 246, '', 0, '0', '0', '0', '0', 0, 'VAT Rate 0', 1, NULL, NULL),
(2462, 102, '', 23, '0', '0', '0', '0', 0, '????????? ?.?.?.', 1, NULL, NULL),
(2463, 102, '', 0, '0', '0', '0', '0', 0, '???????? ?.?.?.', 1, NULL, NULL),
(2464, 102, '', 13, '0', '0', '0', '0', 0, '????????? ?.?.?.', 1, NULL, NULL),
(2465, 102, '', 6.5, '0', '0', '0', '0', 0, '????????????? ?.?.?.', 1, NULL, NULL),
(2466, 102, '', 16, '0', '0', '0', '0', 0, '????? ????????? ?.?.?.', 1, NULL, NULL),
(2467, 102, '', 9, '0', '0', '0', '0', 0, '????? ????????? ?.?.?.', 1, NULL, NULL),
(2468, 102, '', 5, '0', '0', '0', '0', 0, '????? ????????????? ?.?.?.', 1, NULL, NULL),
(2469, 1, '85', 8.5, NULL, '0', NULL, '0', 0, 'VAT standard rate (DOM sauf Guyane et Saint-Martin)', 0, NULL, NULL),
(2470, 1, '85NPR', 8.5, NULL, '0', NULL, '0', 1, 'VAT standard rate (DOM sauf Guyane et Saint-Martin), non perçu par le vendeur mais récupérable par acheteur', 0, NULL, NULL),
(2471, 1, '85NPROM', 8.5, '2', '3', NULL, '0', 1, 'VAT standard rate (DOM sauf Guyane et Saint-Martin), NPR, Octroi de Mer', 0, NULL, NULL),
(2472, 1, '85NPROMOMR', 8.5, '2', '3', '2.5', '3', 1, 'VAT standard rate (DOM sauf Guyane et Saint-Martin), NPR, Octroi de Mer et Octroi de Mer Regional', 0, NULL, NULL);

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

--
-- Structure de la table `pnfq_c_typent`
--

CREATE TABLE `pnfq_c_typent` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `libelle` varchar(64) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_c_typent`
--

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

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

--
-- Structure de la table `pnfq_c_type_contact`
--

CREATE TABLE `pnfq_c_type_contact` (
  `rowid` int(11) NOT NULL,
  `element` varchar(30) NOT NULL,
  `source` varchar(8) NOT NULL DEFAULT 'external',
  `code` varchar(32) NOT NULL,
  `libelle` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_c_type_contact`
--

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

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

--
-- Structure de la table `pnfq_c_type_fees`
--

CREATE TABLE `pnfq_c_type_fees` (
  `id` int(11) NOT NULL,
  `code` varchar(12) NOT NULL,
  `label` varchar(30) DEFAULT NULL,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `module` varchar(32) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_c_type_fees`
--

INSERT INTO `pnfq_c_type_fees` (`id`, `code`, `label`, `accountancy_code`, `active`, `module`, `position`) VALUES
(1, 'TF_OTHER', 'Other', NULL, 1, NULL, 0),
(2, 'TF_TRIP', 'Trip', NULL, 1, NULL, 0),
(3, 'TF_LUNCH', 'Lunch', NULL, 1, NULL, 0);

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

--
-- Structure de la table `pnfq_c_type_resource`
--

CREATE TABLE `pnfq_c_type_resource` (
  `rowid` int(11) NOT NULL,
  `code` varchar(32) NOT NULL,
  `label` varchar(64) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_c_units`
--

CREATE TABLE `pnfq_c_units` (
  `rowid` int(11) NOT NULL,
  `code` varchar(3) DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  `short_label` varchar(5) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Déchargement des données de la table `pnfq_c_units`
--

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

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

--
-- Structure de la table `pnfq_c_ziptown`
--

CREATE TABLE `pnfq_c_ziptown` (
  `rowid` int(11) NOT NULL,
  `code` varchar(5) DEFAULT NULL,
  `fk_county` int(11) DEFAULT NULL,
  `fk_pays` int(11) NOT NULL DEFAULT 0,
  `zip` varchar(10) NOT NULL,
  `town` varchar(255) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_default_values`
--

CREATE TABLE `pnfq_default_values` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `type` varchar(10) DEFAULT NULL,
  `user_id` int(11) NOT NULL DEFAULT 0,
  `page` varchar(255) DEFAULT NULL,
  `param` varchar(255) DEFAULT NULL,
  `value` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_deplacement`
--

CREATE TABLE `pnfq_deplacement` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dated` datetime DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `type` varchar(12) NOT NULL,
  `fk_statut` int(11) NOT NULL DEFAULT 1,
  `km` double DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_document_model`
--

CREATE TABLE `pnfq_document_model` (
  `rowid` int(11) NOT NULL,
  `nom` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `type` varchar(20) NOT NULL,
  `libelle` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_document_model`
--

INSERT INTO `pnfq_document_model` (`rowid`, `nom`, `entity`, `type`, `libelle`, `description`) VALUES
(1, 'azur', 1, 'propal', NULL, NULL),
(7, 'sepamandate', 1, 'bankaccount', NULL, NULL),
(10, 'strato', 1, 'contract', NULL, NULL),
(11, 'einstein', 1, 'order', NULL, NULL),
(12, 'crabe', 1, 'invoice', NULL, NULL),
(13, 'muscadet', 1, 'order_supplier', NULL, NULL),
(14, 'rouget', 1, 'shipping', NULL, NULL),
(15, 'typhon', 1, 'delivery', NULL, NULL),
(16, 'standard', 1, 'member', NULL, NULL),
(17, 'standard', 1, 'expensereport', NULL, NULL),
(18, 'soleil', 1, 'ficheinter', NULL, NULL),
(19, 'aurore', 1, 'supplier_proposal', NULL, NULL),
(20, 'html_cerfafr', 1, 'donation', NULL, NULL),
(21, '', 1, 'task', NULL, NULL);

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

--
-- Structure de la table `pnfq_don`
--

CREATE TABLE `pnfq_don` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `datec` datetime DEFAULT NULL,
  `datedon` datetime DEFAULT NULL,
  `amount` double DEFAULT 0,
  `fk_payment` int(11) DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `firstname` varchar(50) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `societe` varchar(50) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `zip` varchar(30) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `fk_country` int(11) NOT NULL DEFAULT 0,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(24) DEFAULT NULL,
  `phone_mobile` varchar(24) DEFAULT NULL,
  `public` smallint(6) NOT NULL DEFAULT 1,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_don_extrafields`
--

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

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

--
-- Structure de la table `pnfq_ecm_directories`
--

CREATE TABLE `pnfq_ecm_directories` (
  `rowid` int(11) NOT NULL,
  `label` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_parent` int(11) DEFAULT NULL,
  `description` varchar(255) NOT NULL,
  `cachenbofdoc` int(11) NOT NULL DEFAULT 0,
  `fullpath` varchar(750) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `date_c` datetime DEFAULT NULL,
  `date_m` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_c` int(11) DEFAULT NULL,
  `fk_user_m` int(11) DEFAULT NULL,
  `acl` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_ecm_files`
--

CREATE TABLE `pnfq_ecm_files` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(128) DEFAULT NULL,
  `label` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `filename` varchar(255) NOT NULL,
  `filepath` varchar(255) DEFAULT NULL,
  `fullpath_orig` varchar(2048) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `keywords` text DEFAULT NULL,
  `cover` text DEFAULT NULL,
  `gen_or_uploaded` varchar(12) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `date_c` datetime DEFAULT NULL,
  `date_m` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_c` int(11) DEFAULT NULL,
  `fk_user_m` int(11) DEFAULT NULL,
  `acl` text DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `keyword` varchar(750) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_element_contact`
--

CREATE TABLE `pnfq_element_contact` (
  `rowid` int(11) NOT NULL,
  `datecreate` datetime DEFAULT NULL,
  `statut` smallint(6) DEFAULT 5,
  `element_id` int(11) NOT NULL,
  `fk_c_type_contact` int(11) NOT NULL,
  `fk_socpeople` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_element_contact`
--

INSERT INTO `pnfq_element_contact` (`rowid`, `datecreate`, `statut`, `element_id`, `fk_c_type_contact`, `fk_socpeople`) VALUES
(1, '2018-08-08 09:35:03', 4, 1, 160, 1);

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

--
-- Structure de la table `pnfq_element_element`
--

CREATE TABLE `pnfq_element_element` (
  `rowid` int(11) NOT NULL,
  `fk_source` int(11) NOT NULL,
  `sourcetype` varchar(32) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_element_lock`
--

CREATE TABLE `pnfq_element_lock` (
  `rowid` int(11) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `elementtype` varchar(32) NOT NULL,
  `datel` datetime DEFAULT NULL,
  `datem` datetime DEFAULT NULL,
  `sessionid` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_element_resources`
--

CREATE TABLE `pnfq_element_resources` (
  `rowid` int(11) NOT NULL,
  `resource_id` int(11) DEFAULT NULL,
  `resource_type` varchar(64) DEFAULT NULL,
  `element_id` int(11) DEFAULT NULL,
  `element_type` varchar(64) DEFAULT NULL,
  `busy` int(11) DEFAULT NULL,
  `mandatory` int(11) DEFAULT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `duree` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_element_tag`
--

CREATE TABLE `pnfq_element_tag` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `lang` varchar(5) NOT NULL,
  `tag` varchar(255) NOT NULL,
  `fk_element` int(11) NOT NULL,
  `element` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_entrepot`
--

CREATE TABLE `pnfq_entrepot` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `description` text DEFAULT NULL,
  `lieu` varchar(64) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `statut` tinyint(4) DEFAULT 1,
  `fk_user_author` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_parent` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_establishment`
--

CREATE TABLE `pnfq_establishment` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `name` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_state` int(11) DEFAULT 0,
  `fk_country` int(11) DEFAULT 0,
  `profid1` varchar(20) DEFAULT NULL,
  `profid2` varchar(20) DEFAULT NULL,
  `profid3` varchar(20) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_mod` int(11) DEFAULT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` smallint(6) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_events`
--

CREATE TABLE `pnfq_events` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `type` varchar(32) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `dateevent` datetime DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `description` varchar(250) NOT NULL,
  `ip` varchar(250) DEFAULT NULL,
  `user_agent` varchar(255) DEFAULT NULL,
  `fk_object` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_event_element`
--

CREATE TABLE `pnfq_event_element` (
  `rowid` int(11) NOT NULL,
  `fk_source` int(11) NOT NULL,
  `fk_target` int(11) NOT NULL,
  `targettype` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_expedition`
--

CREATE TABLE `pnfq_expedition` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `ref_ext` varchar(30) DEFAULT NULL,
  `ref_int` varchar(30) DEFAULT NULL,
  `ref_customer` varchar(30) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_expedition` datetime DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tracking_number` varchar(50) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `height` float DEFAULT NULL,
  `width` float DEFAULT NULL,
  `size_units` int(11) DEFAULT NULL,
  `size` float DEFAULT NULL,
  `weight_units` int(11) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `note_private` text 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_expeditiondet`
--

CREATE TABLE `pnfq_expeditiondet` (
  `rowid` int(11) NOT NULL,
  `fk_expedition` int(11) NOT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_entrepot` int(11) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `rang` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_expeditiondet_batch`
--

CREATE TABLE `pnfq_expeditiondet_batch` (
  `rowid` int(11) NOT NULL,
  `fk_expeditiondet` int(11) NOT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `qty` double NOT NULL DEFAULT 0,
  `fk_origin_stock` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_expeditiondet_extrafields`
--

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

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

--
-- Structure de la table `pnfq_expedition_extrafields`
--

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

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

--
-- Structure de la table `pnfq_expensereport`
--

CREATE TABLE `pnfq_expensereport` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_number_int` int(11) DEFAULT NULL,
  `ref_ext` int(11) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `date_create` datetime NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_approve` datetime DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_author` int(11) NOT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_validator` int(11) DEFAULT NULL,
  `fk_user_approve` int(11) DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `fk_statut` int(11) NOT NULL,
  `fk_c_paiement` int(11) DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `note_public` text 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,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_expensereport_det`
--

CREATE TABLE `pnfq_expensereport_det` (
  `rowid` int(11) NOT NULL,
  `fk_expensereport` int(11) NOT NULL,
  `fk_c_type_fees` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `comments` text NOT NULL,
  `product_type` int(11) DEFAULT -1,
  `qty` double NOT NULL,
  `value_unit` double NOT NULL,
  `remise_percent` double DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT NULL,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `total_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `date` date NOT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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 ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_expensereport_extrafields`
--

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

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

--
-- Structure de la table `pnfq_export_compta`
--

CREATE TABLE `pnfq_export_compta` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(12) NOT NULL,
  `date_export` datetime NOT NULL,
  `fk_user` int(11) NOT NULL,
  `note` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_export_model`
--

CREATE TABLE `pnfq_export_model` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL DEFAULT 0,
  `label` varchar(50) NOT NULL,
  `type` varchar(20) NOT NULL,
  `field` text NOT NULL,
  `filter` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_extrafields`
--

CREATE TABLE `pnfq_extrafields` (
  `rowid` int(11) NOT NULL,
  `name` varchar(64) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `elementtype` varchar(64) NOT NULL DEFAULT 'member',
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(255) NOT NULL,
  `type` varchar(8) DEFAULT NULL,
  `size` varchar(8) DEFAULT NULL,
  `fieldunique` int(11) DEFAULT 0,
  `fieldrequired` int(11) DEFAULT 0,
  `perms` varchar(255) DEFAULT NULL,
  `list` int(11) DEFAULT 0,
  `pos` int(11) DEFAULT 0,
  `alwayseditable` int(11) DEFAULT 0,
  `param` text DEFAULT NULL,
  `ishidden` int(11) DEFAULT 0,
  `fieldcomputed` text DEFAULT NULL,
  `fielddefault` varchar(255) DEFAULT NULL,
  `langs` varchar(24) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_facture`
--

CREATE TABLE `pnfq_facture` (
  `rowid` int(11) NOT NULL,
  `facnumber` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `increment` varchar(10) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `date_valid` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `revenuestamp` double(24,8) DEFAULT 0.00000000,
  `total` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) NOT NULL DEFAULT 1,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text 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,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `date_pointoftax` date DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_facture`
--

INSERT INTO `pnfq_facture` (`rowid`, `facnumber`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `type`, `increment`, `fk_soc`, `datec`, `datef`, `date_valid`, `tms`, `paye`, `amount`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `revenuestamp`, `total`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`, `situation_cycle_ref`, `situation_counter`, `situation_final`, `fk_incoterms`, `location_incoterms`, `date_pointoftax`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_fac_rec_source`) VALUES
(1, 'FA1803-0001', 1, NULL, NULL, NULL, 0, NULL, 1, '2018-03-13 22:40:39', '2018-03-13', '2018-03-13', '2018-06-13 02:05:45', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 611.20000000, 0.00000000, 0.00000000, 0.00000000, 3056.00000000, 3667.20000000, 2, 1, NULL, 1, NULL, NULL, NULL, NULL, 2, 2, '2018-04-12', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 3056.00000000, 611.20000000, 3667.20000000, NULL),
(3, 'FA1804-0002', 1, NULL, NULL, NULL, 0, NULL, 1, '2018-04-05 15:51:16', '2018-04-05', '2018-04-05', '2018-06-13 02:05:45', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 793.40000000, 0.00000000, 0.00000000, 0.00000000, 3967.00000000, 4760.40000000, 2, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, 2, '2018-04-05', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 0, 'EUR', 1.00000000, 3967.00000000, 793.40000000, 4760.40000000, NULL),
(4, 'FA1805-0003', 1, NULL, NULL, NULL, 0, NULL, 1, '2018-05-04 21:08:52', '2018-05-04', '2018-06-13', '2018-06-13 02:48:42', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 1136.00000000, 0.00000000, 0.00000000, 0.00000000, 5680.00000000, 6816.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 2, 2, '2018-06-03', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 5680.00000000, 1136.00000000, 6816.00000000, NULL),
(5, 'FA1806-0004', 1, NULL, NULL, NULL, 0, NULL, 1, '2018-06-13 02:02:44', '2018-06-12', '2018-06-13', '2018-07-29 21:20:50', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 475.60000000, 0.00000000, 0.00000000, 0.00000000, 2378.00000000, 2853.60000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 2, 2, '2018-07-12', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2378.00000000, 475.60000000, 2853.60000000, NULL),
(6, 'FA1807-0005', 1, NULL, NULL, NULL, 0, NULL, 1, '2018-07-05 18:18:14', '2018-07-04', '2018-07-05', '2018-08-20 09:42:54', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 298.00000000, 0.00000000, 0.00000000, 0.00000000, 1490.00000000, 1788.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 2, 2, '2018-08-03', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1490.00000000, 298.00000000, 1788.00000000, NULL),
(7, 'FA1805-0006', 1, NULL, NULL, NULL, 0, NULL, 2, '2018-07-27 10:07:14', '2018-05-01', '2018-07-31', '2018-07-31 08:13:51', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 500.00000000, 0.00000000, 0.00000000, 0.00000000, 2500.00000000, 3000.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 7, '2018-05-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2500.00000000, 500.00000000, 3000.00000000, NULL),
(8, 'FA1806-0007', 1, NULL, NULL, NULL, 0, NULL, 2, '2018-07-29 20:39:11', '2018-06-01', '2018-07-31', '2018-07-31 08:15:16', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 500.00000000, 0.00000000, 0.00000000, 0.00000000, 2500.00000000, 3000.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 7, '2018-06-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2500.00000000, 500.00000000, 3000.00000000, NULL),
(9, 'FA1808-0008', 1, NULL, NULL, NULL, 0, NULL, 2, '2018-07-29 20:48:57', '2018-07-01', '2018-07-31', '2018-09-14 15:16:10', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 500.00000000, 0.00000000, 0.00000000, 0.00000000, 2500.00000000, 3000.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 7, '2018-07-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2500.00000000, 500.00000000, 3000.00000000, NULL),
(14, 'FA1808-0009', 1, NULL, NULL, NULL, 0, NULL, 1, '2018-08-20 09:12:45', '2018-08-20', '2018-08-20', '2018-09-14 15:19:18', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 323.60000000, 0.00000000, 0.00000000, 0.00000000, 1618.00000000, 1941.60000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-08-20', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1618.00000000, 323.60000000, 1941.60000000, NULL),
(15, 'FA1809-0010', 1, NULL, NULL, NULL, 0, NULL, 1, '2018-09-11 11:08:24', '2018-09-11', '2018-09-11', '2018-11-08 16:30:46', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 427.60000000, 0.00000000, 0.00000000, 0.00000000, 2138.00000000, 2565.60000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-09-11', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2138.00000000, 427.60000000, 2565.60000000, NULL),
(17, 'FA1809-0011', 1, NULL, NULL, NULL, 0, NULL, 4, '2018-09-14 15:02:51', '2018-09-14', '2018-09-14', '2018-11-08 16:30:03', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 927.00000000, 927.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-09-14', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 927.00000000, 0.00000000, 927.00000000, NULL),
(18, 'FA1810-0012', 1, NULL, NULL, NULL, 0, NULL, 3, '2018-10-02 12:33:15', '2018-10-02', '2018-10-02', '2018-11-08 16:29:25', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 714.40000000, 0.00000000, 0.00000000, 0.00000000, 3572.00000000, 4286.40000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-10-02', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3572.00000000, 714.40000000, 4286.40000000, NULL),
(19, 'FA1811-0013', 1, NULL, NULL, NULL, 0, NULL, 3, '2018-11-08 16:33:49', '2018-11-08', '2018-11-08', '2019-01-07 08:59:10', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 881.80000000, 0.00000000, 0.00000000, 0.00000000, 4409.00000000, 5290.80000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-11-08', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 4409.00000000, 881.80000000, 5290.80000000, NULL),
(20, 'FA1812-0014', 1, NULL, NULL, NULL, 0, NULL, 5, '2018-12-10 12:44:03', '2018-12-10', '2018-12-10', '2019-01-07 09:00:02', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-12-10', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(21, 'FA1812-0015', 1, NULL, NULL, NULL, 0, NULL, 3, '2018-12-10 15:39:09', '2018-12-10', '2018-12-10', '2019-01-07 08:59:10', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 570.80000000, 0.00000000, 0.00000000, 0.00000000, 2854.00000000, 3424.80000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-12-10', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2854.00000000, 570.80000000, 3424.80000000, NULL),
(22, 'FA1812-0016', 1, NULL, NULL, NULL, 0, NULL, 2, '2018-12-18 20:44:08', '2018-12-18', '2019-01-07', '2019-01-07 09:00:53', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 115.40000000, 0.00000000, 0.00000000, 0.00000000, 577.00000000, 692.40000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2018-12-18', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 577.00000000, 115.40000000, 692.40000000, NULL),
(23, 'FA1901-0017', 1, NULL, NULL, NULL, 0, NULL, 1, '2019-01-07 08:46:43', '2019-01-07', '2019-01-07', '2019-03-05 18:01:04', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 779.20000000, 0.00000000, 0.00000000, 0.00000000, 3896.00000000, 4675.20000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-01-07', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3896.00000000, 779.20000000, 4675.20000000, NULL),
(24, 'FA1802-0018', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-01-15 12:33:10', '2019-02-07', '2019-05-06', '2019-05-06 11:59:22', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 40000.00000000, 40000.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-03-08', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 40000.00000000, 0.00000000, 40000.00000000, NULL),
(25, 'AV1802-0001', 1, NULL, NULL, NULL, 2, NULL, 3, '2019-01-15 12:40:23', '2018-02-12', '2019-01-15', '2019-03-05 18:06:21', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, -40000.00000000, -40000.00000000, 2, 1, NULL, 1, 24, NULL, NULL, NULL, 0, 0, '2018-02-12', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 40000.00000000, 0.00000000, 40000.00000000, NULL),
(26, 'FA1901-0019', 1, NULL, NULL, NULL, 0, NULL, 4, '2019-01-21 18:12:48', '2019-01-21', '2019-01-21', '2019-01-21 18:16:59', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 30.00000000, 30.00000000, 2, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, 3, '2019-01-21', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 30.00000000, 0.00000000, 30.00000000, NULL),
(27, 'FA1902-0020', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-02-11 16:46:53', '2019-02-11', '2019-02-11', '2019-03-05 18:02:20', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 659.20000000, 0.00000000, 0.00000000, 0.00000000, 3296.00000000, 3955.20000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-02-11', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3296.00000000, 659.20000000, 3955.20000000, NULL),
(28, 'FA1802-0021', 1, NULL, NULL, NULL, 0, NULL, 6, '2019-03-03 20:41:38', '2019-02-05', '2019-03-05', '2019-05-06 11:54:41', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 6250.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-02-05', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 6250.00000000, 0.00000000, 6250.00000000, NULL),
(29, 'FA1903-0022', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-03-05 08:50:00', '2019-03-05', '2019-03-05', '2019-05-06 11:56:59', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 97.00000000, 0.00000000, 0.00000000, 0.00000000, 485.00000000, 582.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-03-05', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 485.00000000, 97.00000000, 582.00000000, NULL),
(31, 'FA1903-0023', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-03-05 17:35:26', '2019-03-05', '2019-03-05', '2019-05-06 11:57:48', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 401.60000000, 0.00000000, 0.00000000, 0.00000000, 2008.00000000, 2409.60000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-03-05', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2008.00000000, 401.60000000, 2409.60000000, NULL),
(32, 'FA1903-0024', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-03-05 17:48:15', '2019-03-05', '2019-03-05', '2019-05-06 11:56:59', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 400.00000000, 0.00000000, 0.00000000, 0.00000000, 2000.00000000, 2400.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-03-05', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2000.00000000, 400.00000000, 2400.00000000, NULL),
(33, 'FA1904-0025', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-04-02 07:43:48', '2019-04-01', '2019-04-02', '2019-05-06 11:56:59', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 400.00000000, 0.00000000, 0.00000000, 0.00000000, 2000.00000000, 2400.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-04-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2000.00000000, 400.00000000, 2400.00000000, NULL),
(34, 'FA1903-0026', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-04-09 16:39:07', '2019-03-31', '2019-04-09', '2019-05-06 11:57:48', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 462.20000000, 0.00000000, 0.00000000, 0.00000000, 2311.00000000, 2773.20000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-03-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2311.00000000, 462.20000000, 2773.20000000, NULL),
(35, 'FA1905-0028', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-04-29 09:52:28', '2019-05-01', '2019-05-06', '2019-05-06 11:56:59', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 464.17000000, 0.00000000, 0.00000000, 0.00000000, 2320.85000000, 2785.02000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-05-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2320.85000000, 464.17000000, 2785.02000000, NULL),
(36, 'FA1904-0027', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-04-29 09:55:32', '2019-04-29', '2019-05-06', '2019-05-06 11:56:59', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 169.91000000, 0.00000000, 0.00000000, 0.00000000, 849.55000000, 1019.46000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-04-29', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 849.55000000, 169.91000000, 1019.46000000, NULL),
(37, 'FA1904-0029', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-05-06 11:49:34', '2019-04-30', '2019-05-06', '2019-05-06 11:57:48', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 842.00000000, 0.00000000, 0.00000000, 0.00000000, 4210.00000000, 5052.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-04-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 4210.00000000, 842.00000000, 5052.00000000, NULL),
(38, 'FA1905-0030', 1, NULL, NULL, NULL, 0, NULL, 6, '2019-05-06 12:01:21', '2019-05-15', '2019-05-06', '2019-06-29 15:55:39', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 6250.00000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-05-15', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 6250.00000000, 0.00000000, 6250.00000000, NULL),
(39, 'FA1905-0031', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-05-31 14:08:59', '2019-05-31', '2019-05-31', '2019-06-29 15:55:06', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 472.28000000, 0.00000000, 0.00000000, 0.00000000, 2361.39000000, 2833.67000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-05-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2361.39000000, 472.28000000, 2833.67000000, NULL),
(40, 'FA1906-0032', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-06-01 13:18:38', '2019-06-01', '2019-06-29', '2019-06-29 15:55:06', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 167.38000000, 0.00000000, 0.00000000, 0.00000000, 836.88000000, 1004.26000000, 2, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-06-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 836.88000000, 167.38000000, 1004.26000000, NULL),
(41, 'FA1905-0033', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-06-05 17:07:23', '2019-05-31', '2019-06-05', '2019-06-29 15:56:11', 1, 0.00000000, NULL, NULL, 0, NULL, NULL, 427.00000000, 0.00000000, 0.00000000, 0.00000000, 2135.00000000, 2562.00000000, 2, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, 2, '2019-05-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2135.00000000, 427.00000000, 2562.00000000, NULL),
(42, 'FA1906-0034', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-06-29 15:57:08', '2019-06-29', '2019-06-29', '2019-06-29 16:01:16', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 428.00000000, 0.00000000, 0.00000000, 0.00000000, 2140.00000000, 2568.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-06-29', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2140.00000000, 428.00000000, 2568.00000000, NULL),
(43, 'FA1906-0035', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-07-08 16:35:39', '2019-06-30', '2019-07-08', '2019-07-08 16:37:07', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 369.60000000, 0.00000000, 0.00000000, 0.00000000, 1848.00000000, 2217.60000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-06-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1848.00000000, 369.60000000, 2217.60000000, NULL),
(44, 'FA1907-0036', 1, NULL, NULL, NULL, 0, NULL, 7, '2019-07-16 15:02:43', '2019-07-16', '2019-07-16', '2019-07-16 15:20:03', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 849.12000000, 849.12000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-07-16', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 849.12000000, 0.00000000, 849.12000000, NULL),
(45, '(PROV45)', 1, NULL, NULL, NULL, 0, NULL, 8, '2019-07-17 11:00:27', '2019-07-17', NULL, '2019-07-17 11:00:27', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 1, NULL, NULL, NULL, NULL, 1, NULL, 2, 2, '2019-08-16', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL),
(46, 'FA1907-0037', 1, NULL, NULL, NULL, 0, NULL, 6, '2019-07-24 10:20:57', '2019-08-01', '2019-07-24', '2019-07-24 10:23:11', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 6250.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-08-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 6250.00000000, 0.00000000, 6250.00000000, NULL),
(47, 'FA1908-0038', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-08-01 10:18:17', '2019-08-01', '2019-08-01', '2019-08-01 10:27:32', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 563.00000000, 0.00000000, 0.00000000, 0.00000000, 2815.00000000, 3378.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-08-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2815.00000000, 563.00000000, 3378.00000000, NULL),
(48, 'FA1907-0039', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-08-02 07:30:49', '2019-07-31', '2019-08-02', '2019-08-02 07:35:14', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 376.40000000, 0.00000000, 0.00000000, 0.00000000, 1882.00000000, 2258.40000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-07-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1882.00000000, 376.40000000, 2258.40000000, NULL),
(49, 'FA1909-0040', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-09-01 08:01:45', '2019-09-01', '2019-09-01', '2019-09-01 08:01:55', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 563.00000000, 0.00000000, 0.00000000, 0.00000000, 2815.00000000, 3378.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-09-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2815.00000000, 563.00000000, 3378.00000000, NULL),
(50, 'FA1909-0041', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-09-01 08:02:06', '2019-09-01', '2019-09-01', '2019-09-01 08:06:21', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 498.20000000, 0.00000000, 0.00000000, 0.00000000, 2491.00000000, 2989.20000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-09-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2491.00000000, 498.20000000, 2989.20000000, NULL),
(51, 'FA1908-0042', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-09-10 08:09:13', '2019-08-31', '2019-09-10', '2019-09-10 08:10:59', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 358.00000000, 0.00000000, 0.00000000, 0.00000000, 1790.00000000, 2148.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-08-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1790.00000000, 358.00000000, 2148.00000000, NULL),
(53, 'FA1909-0043', 1, NULL, NULL, NULL, 0, NULL, 9, '2019-09-12 16:32:11', '2019-09-12', '2019-09-14', '2019-09-14 09:17:40', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 1, NULL, 1, NULL, NULL, 1, NULL, 0, 0, '2019-09-12', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL),
(54, 'FA1909-0044', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-09-14 09:12:05', '2019-09-14', '2019-09-14', '2019-09-14 09:12:14', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 700.00000000, 0.00000000, 0.00000000, 0.00000000, 3500.00000000, 4200.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 0, 0, '2019-09-14', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3500.00000000, 700.00000000, 4200.00000000, NULL),
(55, 'FA1909-0045', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-09-30 15:21:07', '2019-09-30', '2019-11-06', '2019-11-06 01:53:21', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 641.60000000, 0.00000000, 0.00000000, 0.00000000, 3208.00000000, 3849.60000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-09-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3208.00000000, 641.60000000, 3849.60000000, NULL),
(56, 'FA1910-0046', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-10-07 14:55:54', '2019-09-30', '2019-10-07', '2019-10-07 14:57:55', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 550.80000000, 0.00000000, 0.00000000, 0.00000000, 2754.00000000, 3304.80000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-09-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2754.00000000, 550.80000000, 3304.80000000, NULL),
(57, 'FA1910-0047', 1, NULL, NULL, NULL, 0, NULL, 6, '2019-10-10 09:19:30', '2019-10-10', '2019-10-10', '2019-10-10 09:21:20', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 6250.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-11-15', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 6250.00000000, 0.00000000, 6250.00000000, NULL),
(58, 'FA1910-0048', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-10-30 17:25:50', '2019-10-30', '2019-10-30', '2019-10-30 17:28:17', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 854.20000000, 0.00000000, 0.00000000, 0.00000000, 4271.00000000, 5125.20000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-10-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 4271.00000000, 854.20000000, 5125.20000000, NULL),
(59, 'FA1911-0049', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-11-08 11:45:36', '2019-10-31', '2019-11-08', '2019-11-08 11:48:29', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 633.80000000, 0.00000000, 0.00000000, 0.00000000, 3169.00000000, 3802.80000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-10-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3169.00000000, 633.80000000, 3802.80000000, NULL),
(60, 'FA1911-0050', 1, NULL, NULL, NULL, 0, NULL, 3, '2019-12-03 09:25:13', '2019-11-30', '2019-12-03', '2019-12-03 09:29:41', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 504.00000000, 0.00000000, 0.00000000, 0.00000000, 2520.00000000, 3024.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-11-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2520.00000000, 504.00000000, 3024.00000000, NULL),
(61, 'FA1912-0051', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-12-03 17:23:10', '2019-12-03', '2019-12-03', '2019-12-03 17:23:45', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 400.00000000, 0.00000000, 0.00000000, 0.00000000, 2000.00000000, 2400.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-12-03', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2000.00000000, 400.00000000, 2400.00000000, NULL),
(64, 'FA1912-0052', 1, NULL, NULL, NULL, 0, NULL, 10, '2019-12-26 11:38:52', '2020-01-02', '2020-01-03', '2020-01-03 10:16:01', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 516.00000000, 516.00000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 2, 2, '2020-01-02', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 516.00000000, 0.00000000, 516.00000000, NULL),
(66, 'FA1912-0053', 1, NULL, NULL, NULL, 0, NULL, 2, '2019-12-31 11:26:09', '2019-12-31', '2020-02-04', '2020-02-04 16:45:11', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 185.85000000, 0.00000000, 0.00000000, 0.00000000, 3379.00000000, 3564.85000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 7, 2, '2019-12-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3379.00000000, 185.85000000, 3564.85000000, NULL),
(67, 'FA2001-0054', 1, NULL, NULL, NULL, 0, NULL, 6, '2020-01-01 07:05:53', '2020-01-01', '2020-02-04', '2020-02-04 14:47:21', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 9500.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-01-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 9500.00000000, 0.00000000, 9500.00000000, NULL),
(68, 'FA2001-0055', 1, NULL, NULL, NULL, 0, NULL, 5, '2020-01-06 16:03:21', '2020-01-06', '2020-02-04', '2020-02-04 14:42:53', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-01-06', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(69, 'FA2001-0056', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-01-09 10:40:39', '2019-12-31', '2020-01-09', '2020-01-09 10:46:14', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 625.80000000, 0.00000000, 0.00000000, 0.00000000, 3129.00000000, 3754.80000000, 1, 1, NULL, 1, NULL, NULL, 1, NULL, 1, 2, '2019-12-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3129.00000000, 625.80000000, 3754.80000000, NULL),
(70, 'FA1912-0057', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-02-03 10:01:24', '2019-12-31', '2020-02-04', '2020-02-04 14:45:46', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 704.00000000, 0.00000000, 0.00000000, 0.00000000, 3520.00000000, 4224.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2019-12-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3520.00000000, 704.00000000, 4224.00000000, NULL),
(71, 'AV1912-0002', 1, NULL, NULL, NULL, 2, NULL, 3, '2020-02-04 08:56:00', '2019-12-31', '2020-02-04', '2020-02-04 09:02:48', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, -625.80000000, 0.00000000, 0.00000000, 0.00000000, -3129.00000000, -3754.80000000, 1, 1, NULL, 1, 69, NULL, 1, NULL, 0, 2, '2019-12-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3129.00000000, 625.80000000, 3754.80000000, NULL),
(72, 'FA2002-0058', 1, NULL, NULL, NULL, 0, NULL, 2, '2020-02-06 02:31:35', '2020-02-06', '2025-10-29', '2025-10-29 21:12:54', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 106.77000000, 0.00000000, 0.00000000, 0.00000000, 533.85000000, 640.62000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-02-06', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 533.85000000, 106.77000000, 640.62000000, NULL),
(73, 'FA2001-0059', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-02-06 14:34:07', '2020-01-31', '2020-02-06', '2020-02-06 14:35:51', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 642.00000000, 0.00000000, 0.00000000, 0.00000000, 3210.00000000, 3852.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-01-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3210.00000000, 642.00000000, 3852.00000000, NULL),
(74, 'FA2003-0060', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-03-03 10:11:30', '2020-02-29', '2020-03-03', '2020-03-03 10:13:15', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 597.60000000, 0.00000000, 0.00000000, 0.00000000, 2988.00000000, 3585.60000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-02-29', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2988.00000000, 597.60000000, 3585.60000000, NULL),
(75, 'FA2004-0061', 1, NULL, NULL, NULL, 0, NULL, 6, '2020-04-01 13:07:22', '2020-04-01', '2020-04-01', '2020-04-01 13:07:52', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 9500.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-04-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 9500.00000000, 0.00000000, 9500.00000000, NULL),
(76, 'FA2004-0062', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-04-02 13:15:17', '2020-03-31', '2020-04-02', '2020-04-02 13:18:21', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 1090.20000000, 0.00000000, 0.00000000, 0.00000000, 5451.00000000, 6541.20000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-03-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 5451.00000000, 1090.20000000, 6541.20000000, NULL),
(77, 'FA2005-0063', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-05-07 11:43:21', '2020-04-30', '2020-05-07', '2020-05-07 11:45:06', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 995.80000000, 0.00000000, 0.00000000, 0.00000000, 4979.00000000, 5974.80000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-04-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 4979.00000000, 995.80000000, 5974.80000000, NULL),
(78, 'FA2006-0064', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-06-09 10:42:34', '2020-05-31', '2020-06-09', '2020-06-09 10:49:28', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 414.80000000, 0.00000000, 0.00000000, 0.00000000, 2074.00000000, 2488.80000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-05-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2074.00000000, 414.80000000, 2488.80000000, NULL),
(79, 'FA2006-0065', 1, NULL, NULL, NULL, 0, NULL, 11, '2020-06-28 22:31:22', '2020-06-29', '2020-06-28', '2020-07-24 07:58:49', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 3, '2020-06-29', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(80, 'FA2006-0066', 1, NULL, NULL, NULL, 0, NULL, 6, '2020-06-29 15:16:02', '2020-06-29', '2020-06-30', '2020-06-30 06:58:47', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 9500.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-06-29', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 9500.00000000, 0.00000000, 9500.00000000, NULL),
(81, 'FA2006-0067', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-07-07 14:34:46', '2020-06-30', '2020-07-07', '2020-07-07 14:36:33', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 345.40000000, 0.00000000, 0.00000000, 0.00000000, 1727.00000000, 2072.40000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-06-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1727.00000000, 345.40000000, 2072.40000000, NULL),
(82, 'FA2007-0068', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-08-06 06:58:31', '2020-07-31', '2020-08-06', '2020-08-06 07:05:24', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 255.40000000, 0.00000000, 0.00000000, 0.00000000, 1277.00000000, 1532.40000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-08-06', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1277.00000000, 255.40000000, 1532.40000000, NULL),
(83, 'FA2008-0069', 1, NULL, NULL, NULL, 0, NULL, 11, '2020-08-21 15:25:30', '2020-08-21', '2020-08-21', '2020-08-21 15:39:31', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 3, '2020-08-21', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL),
(84, 'FA2008-0070', 1, NULL, NULL, NULL, 0, NULL, 11, '2020-08-21 15:34:02', '2020-08-25', '2020-08-30', '2020-08-30 15:56:25', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 70.00000000, 0.00000000, 0.00000000, 0.00000000, 350.00000000, 420.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2020-08-25', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 350.00000000, 70.00000000, 420.00000000, NULL),
(85, 'FA2008-0071', 1, NULL, NULL, NULL, 0, NULL, 12, '2020-08-28 20:20:27', '2020-08-28', '2020-08-28', '2020-08-28 20:27:23', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 150.00000000, 0.00000000, 0.00000000, 0.00000000, 750.00000000, 900.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-08-28', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 750.00000000, 150.00000000, 900.00000000, NULL),
(86, 'FA2008-0072', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-09-09 08:34:53', '2020-08-31', '2020-09-09', '2020-09-09 08:36:45', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 46.40000000, 0.00000000, 0.00000000, 0.00000000, 232.00000000, 278.40000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2020-08-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 232.00000000, 46.40000000, 278.40000000, NULL),
(87, 'FA2009-0073', 1, NULL, NULL, NULL, 0, NULL, 6, '2020-09-23 02:03:15', '2020-09-23', '2020-09-23', '2020-09-23 02:04:34', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 9500.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-10-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 9500.00000000, 0.00000000, 9500.00000000, NULL),
(88, 'FA2009-0074', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-10-12 03:17:15', '2020-09-30', '2020-10-12', '2020-10-12 03:18:21', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 137.20000000, 0.00000000, 0.00000000, 0.00000000, 686.00000000, 823.20000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2020-09-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 686.00000000, 137.20000000, 823.20000000, NULL),
(89, 'FA2010-0075', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-11-09 08:52:47', '2020-10-31', '2020-11-09', '2020-11-09 08:55:02', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 1219.20000000, 0.00000000, 0.00000000, 0.00000000, 6096.00000000, 7315.20000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2020-10-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 6096.00000000, 1219.20000000, 7315.20000000, NULL),
(90, 'FA2011-0076', 1, NULL, NULL, NULL, 0, NULL, 17, '2020-11-09 09:48:52', '2020-11-09', '2020-11-25', '2020-11-25 09:03:57', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 1000.00000000, 0.00000000, 0.00000000, 0.00000000, 5000.00000000, 6000.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-11-09', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 5000.00000000, 1000.00000000, 6000.00000000, NULL),
(92, 'FA2011-0077', 1, NULL, NULL, NULL, 0, NULL, 17, '2020-11-25 08:57:52', '2020-11-25', '2020-11-25', '2020-11-25 09:11:42', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 290.80000000, 0.00000000, 0.00000000, 0.00000000, 1454.00000000, 1744.80000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-11-25', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1454.00000000, 290.80000000, 1744.80000000, NULL),
(93, 'FA2011-0078', 1, NULL, NULL, NULL, 0, NULL, 17, '2020-11-25 09:06:02', '2020-11-25', '2020-11-25', '2020-11-25 09:10:59', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 600.00000000, 0.00000000, 0.00000000, 0.00000000, 3000.00000000, 3600.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2020-11-25', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3000.00000000, 600.00000000, 3600.00000000, NULL),
(94, 'FA2012-0079', 1, NULL, NULL, NULL, 0, NULL, 18, '2020-12-03 08:10:38', '2020-12-03', '2020-12-03', '2020-12-03 08:17:46', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 420.00000000, 0.00000000, 0.00000000, 0.00000000, 2100.00000000, 2520.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 0, 0, '2020-12-03', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2100.00000000, 420.00000000, 2520.00000000, NULL),
(95, 'FA2012-0080', 1, NULL, NULL, NULL, 0, NULL, 3, '2020-12-09 15:22:41', '2020-12-09', '2020-12-09', '2020-12-09 15:24:00', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 657.00000000, 0.00000000, 0.00000000, 0.00000000, 3285.00000000, 3942.00000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2020-12-09', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3285.00000000, 657.00000000, 3942.00000000, NULL),
(96, 'FA2012-0081', 1, NULL, NULL, NULL, 0, NULL, 19, '2020-12-22 05:42:22', '2020-12-22', '2020-12-22', '2020-12-22 05:46:04', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 116.67000000, 0.00000000, 0.00000000, 0.00000000, 583.33000000, 700.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2020-12-22', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 583.33000000, 116.67000000, 700.00000000, NULL),
(97, 'FA2012-0082', 1, NULL, NULL, NULL, 0, NULL, 20, '2020-12-22 05:47:35', '2020-12-22', '2020-12-22', '2020-12-22 05:49:41', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 240.00000000, 0.00000000, 0.00000000, 0.00000000, 1200.00000000, 1440.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2020-12-22', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1200.00000000, 240.00000000, 1440.00000000, NULL),
(98, 'FA2002-0083', 1, NULL, NULL, NULL, 0, NULL, 21, '2020-12-30 14:46:47', '2020-02-06', '2020-12-30', '2020-12-30 15:06:42', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 269.97000000, 0.00000000, 0.00000000, 0.00000000, 4908.50000000, 5178.47000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 7, '2020-02-06', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 4908.50000000, 269.97000000, 5178.47000000, NULL),
(99, 'FA2101-0084', 1, NULL, NULL, NULL, 0, NULL, 5, '2021-01-07 16:28:59', '2021-01-07', '2021-01-07', '2021-01-07 16:31:19', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2021-01-07', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(100, 'FA2101-0085', 1, NULL, NULL, NULL, 0, NULL, 3, '2021-01-13 08:22:38', '2021-01-13', '2021-01-13', '2021-01-13 08:23:59', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 584.60000000, 0.00000000, 0.00000000, 0.00000000, 2923.00000000, 3507.60000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2021-01-13', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2923.00000000, 584.60000000, 3507.60000000, NULL),
(101, 'FA2102-0086', 1, NULL, NULL, NULL, 0, NULL, 22, '2021-02-04 15:30:48', '2021-02-04', '2021-02-04', '2021-02-04 15:32:32', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 140.00000000, 0.00000000, 0.00000000, 0.00000000, 700.00000000, 840.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 0, 0, '2021-02-04', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 700.00000000, 140.00000000, 840.00000000, NULL),
(102, 'FA2102-0087', 1, NULL, NULL, NULL, 0, NULL, 3, '2021-02-10 11:32:44', '2021-02-10', '2021-02-10', '2021-06-12 07:08:53', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 592.20000000, 0.00000000, 0.00000000, 0.00000000, 2961.00000000, 3553.20000000, 0, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2021-02-10', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2961.00000000, 592.20000000, 3553.20000000, NULL),
(103, 'FA2102-0088', 1, NULL, NULL, NULL, 0, NULL, 3, '2021-02-15 13:02:01', '2021-02-15', '2021-02-15', '2021-02-15 13:02:47', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 267.20000000, 0.00000000, 0.00000000, 0.00000000, 1336.00000000, 1603.20000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2021-02-15', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1336.00000000, 267.20000000, 1603.20000000, NULL),
(106, 'FA2106-0089', 1, NULL, NULL, NULL, 0, NULL, 23, '2021-06-12 07:07:11', '2021-06-12', '2021-06-12', '2021-06-12 12:34:50', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 15.02000000, 0.00000000, 0.00000000, 0.00000000, 273.00000000, 288.02000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2021-06-12', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 273.00000000, 15.02000000, 288.02000000, NULL),
(107, 'FA2107-0090', 1, NULL, NULL, NULL, 0, NULL, 11, '2021-07-22 21:38:59', '2021-07-15', '2021-07-22', '2021-07-22 21:43:15', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2021-07-15', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(109, 'FA2107-0091', 1, NULL, NULL, NULL, 0, NULL, 24, '2021-07-31 17:32:51', '2021-07-31', '2021-07-31', '2021-07-31 17:43:14', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 420.50000000, 0.00000000, 0.00000000, 0.00000000, 2102.50000000, 2523.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2021-07-31', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2102.50000000, 420.50000000, 2523.00000000, NULL),
(110, 'FA2108-0092', 1, NULL, NULL, NULL, 0, NULL, 25, '2021-08-13 04:01:56', '2021-08-07', '2021-08-13', '2021-08-13 04:06:15', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 170.00000000, 0.00000000, 0.00000000, 0.00000000, 850.00000000, 1020.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2021-08-07', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 850.00000000, 170.00000000, 1020.00000000, NULL),
(111, 'FA2110-0093', 1, NULL, NULL, NULL, 0, NULL, 1, '2021-10-01 04:19:18', '2021-10-01', '2021-10-01', '2021-10-01 04:23:56', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 30.00000000, 0.00000000, 0.00000000, 0.00000000, 150.00000000, 180.00000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2021-10-01', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 150.00000000, 30.00000000, 180.00000000, NULL),
(112, 'FA2112-0094', 1, NULL, NULL, NULL, 0, NULL, 26, '2021-12-24 08:40:10', '2021-12-24', '2021-12-24', '2021-12-24 08:57:07', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 4.00000000, 4.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 1, 0, '2021-12-24', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 4.00000000, 0.00000000, 4.00000000, NULL),
(113, 'FA2201-0095', 1, NULL, NULL, NULL, 0, NULL, 5, '2022-01-13 17:23:26', '2022-01-13', '2022-01-13', '2022-01-13 17:26:02', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 4, NULL, 1, 2, '2022-01-13', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(114, 'FA2201-0096', 1, NULL, NULL, NULL, 0, NULL, 11, '2022-01-13 17:32:43', '2022-01-13', '2022-01-13', '2022-01-13 17:33:21', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2022-01-13', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(115, 'FA2204-0097', 1, NULL, NULL, NULL, 0, NULL, 27, '2022-05-19 18:05:52', '2022-04-14', '2022-05-19', '2022-05-19 18:11:29', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 200.00000000, 0.00000000, 0.00000000, 0.00000000, 1000.00000000, 1200.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 2, 2, '2022-05-14', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1000.00000000, 200.00000000, 1200.00000000, NULL),
(117, 'FA2205-0098', 1, NULL, NULL, NULL, 0, NULL, 28, '2022-05-20 04:06:21', '2022-05-17', '2022-05-20', '2022-05-20 04:07:54', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 331.67000000, 0.00000000, 0.00000000, 0.00000000, 1658.33000000, 1990.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 2, 2, '2022-06-16', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1658.33000000, 331.67000000, 1990.00000000, NULL),
(118, 'FA2205-0099', 1, NULL, NULL, NULL, 0, NULL, 29, '2022-05-26 07:59:45', '2022-05-24', '2022-05-26', '2022-05-26 08:02:32', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 100.00000000, 0.00000000, 0.00000000, 0.00000000, 500.00000000, 600.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 1, 2, '2022-05-24', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 500.00000000, 100.00000000, 600.00000000, NULL),
(119, 'FA2205-0100', 1, NULL, NULL, NULL, 0, NULL, 30, '2022-05-26 08:05:17', '2022-05-24', '2022-05-26', '2022-05-26 08:06:10', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 263.33000000, 0.00000000, 0.00000000, 0.00000000, 1316.67000000, 1580.00000000, 1, 1, NULL, 1, NULL, NULL, 3, NULL, 2, 2, '2022-06-23', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1316.67000000, 263.33000000, 1580.00000000, NULL),
(120, 'FA2212-0101', 1, NULL, NULL, NULL, 0, NULL, 5, '2022-12-25 19:08:45', '2022-12-26', '2022-12-25', '2022-12-25 20:12:30', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2023-01-02', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(121, 'FA2212-0102', 1, NULL, NULL, NULL, 0, NULL, 31, '2023-01-03 03:12:22', '2023-01-03', '2023-01-03', '2023-01-03 03:26:24', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 550.00000000, 0.00000000, 0.00000000, 0.00000000, 2750.00000000, 3300.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 0, 0, '2023-01-10', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2750.00000000, 550.00000000, 3300.00000000, NULL),
(122, 'FA2301-0103', 1, NULL, NULL, NULL, 0, NULL, 11, '2023-01-03 04:08:59', '2023-01-12', '2023-02-23', '2023-02-23 07:58:53', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2023-01-12', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(123, '(PROV123)', 1, NULL, NULL, NULL, 0, NULL, 23, '2023-05-08 16:53:17', '2023-05-08', NULL, '2023-05-08 16:53:17', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1, 2, '2023-05-08', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000, NULL),
(124, 'FA2305-0104', 1, NULL, NULL, NULL, 0, NULL, 23, '2023-05-08 17:13:45', '2023-05-08', '2023-05-08', '2023-05-08 17:14:48', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 52.80000000, 0.00000000, 0.00000000, 0.00000000, 960.00000000, 1012.80000000, 1, 1, NULL, 1, NULL, NULL, 5, NULL, 1, 2, '2023-05-08', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 960.00000000, 52.80000000, 1012.80000000, NULL),
(127, 'FA2312-0105', 1, NULL, NULL, NULL, 0, NULL, 32, '2023-12-22 20:12:47', '2023-12-22', '2023-12-22', '2023-12-22 20:20:44', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 50.00000000, 0.00000000, 0.00000000, 0.00000000, 250.00000000, 300.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2023-12-22', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 250.00000000, 50.00000000, 300.00000000, NULL),
(128, 'FA2401-0106', 1, NULL, NULL, NULL, 0, NULL, 5, '2024-01-03 03:39:40', '2024-01-03', '2024-01-03', '2024-01-03 03:40:44', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2024-01-03', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(129, 'FA2401-0107', 1, NULL, NULL, NULL, 0, NULL, 11, '2024-01-03 03:43:18', '2024-01-03', '2024-01-03', '2025-01-06 07:34:08', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 0, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2024-01-03', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(130, 'FA2402-0108', 1, NULL, NULL, NULL, 0, NULL, 33, '2024-02-05 18:37:27', '2024-02-05', '2024-02-06', '2024-02-06 14:02:13', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 1154.34000000, 0.00000000, 0.00000000, 0.00000000, 5771.70000000, 6926.04000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2024-02-05', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 5771.70000000, 1154.34000000, 6926.04000000, NULL);
INSERT INTO `pnfq_facture` (`rowid`, `facnumber`, `entity`, `ref_ext`, `ref_int`, `ref_client`, `type`, `increment`, `fk_soc`, `datec`, `datef`, `date_valid`, `tms`, `paye`, `amount`, `remise_percent`, `remise_absolue`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `revenuestamp`, `total`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_currency`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`, `situation_cycle_ref`, `situation_counter`, `situation_final`, `fk_incoterms`, `location_incoterms`, `date_pointoftax`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`, `fk_fac_rec_source`) VALUES
(131, 'FA2405-0109', 1, NULL, NULL, NULL, 0, NULL, 33, '2024-05-30 02:53:25', '2024-05-30', '2024-05-30', '2024-05-30 02:56:17', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 219.24000000, 0.00000000, 0.00000000, 0.00000000, 1096.20000000, 1315.44000000, 1, 1, NULL, 1, NULL, NULL, 2, NULL, 1, 2, '2024-05-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1096.20000000, 219.24000000, 1315.44000000, NULL),
(132, 'FA2406-0110', 1, NULL, NULL, NULL, 0, NULL, 34, '2024-06-11 14:48:35', '2024-06-12', '2024-06-11', '2024-06-11 15:07:42', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 3958.45000000, 3958.45000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2024-06-12', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 3958.45000000, 0.00000000, 3958.45000000, NULL),
(133, 'FA2408-0111', 1, NULL, NULL, NULL, 0, NULL, 34, '2024-08-22 07:34:13', '2024-08-22', '2024-08-22', '2024-08-22 07:34:46', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 2253.25000000, 2253.25000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2024-08-22', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2253.25000000, 0.00000000, 2253.25000000, NULL),
(134, '(PROV134)', 1, NULL, NULL, NULL, 0, NULL, 34, '2024-11-19 19:44:31', '2024-11-19', NULL, '2024-11-19 19:44:31', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 2253.25000000, 2253.25000000, 0, 1, NULL, NULL, NULL, NULL, 6, NULL, 1, 2, '2024-11-19', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2253.25000000, 0.00000000, 2253.25000000, NULL),
(135, 'FA2411-0112', 1, NULL, NULL, NULL, 0, NULL, 34, '2024-11-19 19:46:00', '2024-11-19', '2024-11-22', '2024-11-22 09:24:14', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1250.05000000, 1250.05000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2024-11-19', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1250.05000000, 0.00000000, 1250.05000000, NULL),
(136, 'FA2501-0113', 1, NULL, NULL, NULL, 0, NULL, 5, '2025-01-06 07:27:05', '2025-01-06', '2025-01-06', '2025-01-06 07:31:02', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2025-01-06', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(137, 'FA2501-0114', 1, NULL, NULL, NULL, 0, NULL, 11, '2025-01-06 07:34:15', '2025-01-06', '2025-01-06', '2025-01-06 07:45:28', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2025-01-06', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(138, 'FA2501-0115', 1, NULL, NULL, NULL, 0, NULL, 33, '2025-01-30 22:57:26', '2025-01-30', '2025-01-30', '2025-01-30 23:03:25', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 589.20000000, 0.00000000, 0.00000000, 0.00000000, 2946.00000000, 3535.20000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2025-01-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2946.00000000, 589.20000000, 3535.20000000, NULL),
(139, 'FA2502-0116', 1, NULL, NULL, NULL, 0, NULL, 33, '2025-02-25 18:24:16', '2025-02-25', '2025-02-25', '2025-02-25 18:26:20', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 236.00000000, 0.00000000, 0.00000000, 0.00000000, 1180.00000000, 1416.00000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2025-02-25', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1180.00000000, 236.00000000, 1416.00000000, NULL),
(141, 'FA2506-0117', 1, NULL, NULL, NULL, 0, NULL, 35, '2025-12-12 09:33:58', '2025-06-30', '2025-12-12', '2025-12-12 09:38:44', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 501.00000000, 0.00000000, 0.00000000, 0.00000000, 2505.00000000, 3006.00000000, 1, 1, NULL, 1, NULL, NULL, NULL, NULL, 7, 4, '2025-06-30', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 2505.00000000, 501.00000000, 3006.00000000, NULL),
(142, 'FA2601-0118', 1, NULL, NULL, NULL, 0, NULL, 11, '2026-01-02 05:55:06', '2026-01-02', '2026-01-02', '2026-01-02 06:02:00', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2026-01-02', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL),
(143, 'FA2601-0119', 1, NULL, NULL, NULL, 0, NULL, 5, '2026-01-02 05:58:00', '2026-01-02', '2026-01-02', '2026-01-02 06:00:19', 0, 0.00000000, NULL, NULL, 0, NULL, NULL, 380.00000000, 0.00000000, 0.00000000, 0.00000000, 1900.00000000, 2280.00000000, 1, 1, NULL, 1, NULL, NULL, 6, NULL, 1, 2, '2026-01-02', NULL, NULL, 'crabe', NULL, NULL, NULL, NULL, 0, 0, '', NULL, 1, 'EUR', 1.00000000, 1900.00000000, 380.00000000, 2280.00000000, NULL);

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

--
-- Structure de la table `pnfq_facturedet`
--

CREATE TABLE `pnfq_facturedet` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text 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) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `fk_remise_except` int(11) DEFAULT NULL,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `special_code` int(10) UNSIGNED DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `situation_percent` double DEFAULT NULL,
  `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(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_facturedet`
--

INSERT INTO `pnfq_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `label`, `description`, `tva_tx`, `vat_src_code`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_code_ventilation`, `special_code`, `rang`, `fk_contract_line`, `import_key`, `situation_percent`, `fk_prev_id`, `fk_unit`, `fk_user_modif`, `fk_user_author`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`) VALUES
(1, 1, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1914.00000000, NULL, 1914.00000000, 382.80000000, 0.00000000, 0.00000000, 2296.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 1914.00000000, 1914.00000000, 382.80000000, 2296.80000000),
(2, 1, NULL, 1, NULL, 'Redevance 2% Grossite', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 94.00000000, NULL, 94.00000000, 18.80000000, 0.00000000, 0.00000000, 112.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 94.00000000, 94.00000000, 18.80000000, 112.80000000),
(3, 1, NULL, 2, NULL, 'Redevance 3 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1048.00000000, NULL, 1048.00000000, 209.60000000, 0.00000000, 0.00000000, 1257.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 1048.00000000, 1048.00000000, 209.60000000, 1257.60000000),
(7, 3, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3967.00000000, NULL, 3967.00000000, 793.40000000, 0.00000000, 0.00000000, 4760.40000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 0, 'EUR', 3967.00000000, 3967.00000000, 793.40000000, 4760.40000000),
(8, 4, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 5680.00000000, NULL, 5680.00000000, 1136.00000000, 0.00000000, 0.00000000, 6816.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 5680.00000000, 5680.00000000, 1136.00000000, 6816.00000000),
(9, 5, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2378.00000000, NULL, 2378.00000000, 475.60000000, 0.00000000, 0.00000000, 2853.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2378.00000000, 2378.00000000, 475.60000000, 2853.60000000),
(10, 6, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1490.00000000, NULL, 1490.00000000, 298.00000000, 0.00000000, 0.00000000, 1788.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1490.00000000, 1490.00000000, 298.00000000, 1788.00000000),
(17, 7, NULL, 12, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(18, 7, NULL, 13, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(19, 7, NULL, 14, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(20, 7, NULL, 15, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(21, 7, NULL, 16, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(22, 7, NULL, 17, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2500.00000000, NULL, 2500.00000000, 500.00000000, 0.00000000, 0.00000000, 3000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2500.00000000, 2500.00000000, 500.00000000, 3000.00000000),
(23, 8, NULL, 12, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(24, 8, NULL, 13, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(25, 8, NULL, 14, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(26, 8, NULL, 15, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(27, 8, NULL, 16, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(28, 8, NULL, 17, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2500.00000000, NULL, 2500.00000000, 500.00000000, 0.00000000, 0.00000000, 3000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2500.00000000, 2500.00000000, 500.00000000, 3000.00000000),
(29, 9, NULL, 12, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(30, 9, NULL, 13, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(31, 9, NULL, 14, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(32, 9, NULL, 15, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(33, 9, NULL, 16, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(34, 9, NULL, 17, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2500.00000000, NULL, 2500.00000000, 500.00000000, 0.00000000, 0.00000000, 3000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2500.00000000, 2500.00000000, 500.00000000, 3000.00000000),
(39, 14, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1618.00000000, NULL, 1618.00000000, 323.60000000, 0.00000000, 0.00000000, 1941.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1618.00000000, 1618.00000000, 323.60000000, 1941.60000000),
(40, 15, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2138.00000000, NULL, 2138.00000000, 427.60000000, 0.00000000, 0.00000000, 2565.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2138.00000000, 2138.00000000, 427.60000000, 2565.60000000),
(43, 17, NULL, 19, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 927.00000000, NULL, 927.00000000, 0.00000000, 0.00000000, 0.00000000, 927.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 927.00000000, 927.00000000, 0.00000000, 927.00000000),
(44, 18, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3572.00000000, NULL, 3572.00000000, 714.40000000, 0.00000000, 0.00000000, 4286.40000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3572.00000000, 3572.00000000, 714.40000000, 4286.40000000),
(45, 19, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 4409.00000000, NULL, 4409.00000000, 881.80000000, 0.00000000, 0.00000000, 5290.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 4409.00000000, 4409.00000000, 881.80000000, 5290.80000000),
(46, 20, NULL, 20, NULL, 'prestation 2019', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(47, 21, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2854.00000000, NULL, 2854.00000000, 570.80000000, 0.00000000, 0.00000000, 3424.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2854.00000000, 2854.00000000, 570.80000000, 3424.80000000),
(48, 22, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 577.00000000, NULL, 577.00000000, 115.40000000, 0.00000000, 0.00000000, 692.40000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 577.00000000, 577.00000000, 115.40000000, 692.40000000),
(49, 23, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3896.00000000, NULL, 3896.00000000, 779.20000000, 0.00000000, 0.00000000, 4675.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3896.00000000, 3896.00000000, 779.20000000, 4675.20000000),
(50, 24, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 40000.00000000, NULL, 40000.00000000, 0.00000000, 0.00000000, 0.00000000, 40000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 40000.00000000, 40000.00000000, 0.00000000, 40000.00000000),
(51, 25, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, -40000.00000000, NULL, -40000.00000000, 0.00000000, 0.00000000, 0.00000000, -40000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 40000.00000000, 40000.00000000, 0.00000000, 40000.00000000),
(52, 26, NULL, 19, NULL, 'comission&nbsp;', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 30.00000000, NULL, 30.00000000, 0.00000000, 0.00000000, 0.00000000, 30.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 30.00000000, 30.00000000, 0.00000000, 30.00000000),
(53, 27, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3296.00000000, NULL, 3296.00000000, 659.20000000, 0.00000000, 0.00000000, 3955.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3296.00000000, 3296.00000000, 659.20000000, 3955.20000000),
(54, 28, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 6250.00000000, NULL, 6250.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 6250.00000000, 6250.00000000, 0.00000000, 6250.00000000),
(55, 29, NULL, 23, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 485.00000000, NULL, 485.00000000, 97.00000000, 0.00000000, 0.00000000, 582.00000000, 1, NULL, NULL, 0, 485.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 485.00000000, 485.00000000, 97.00000000, 582.00000000),
(56, 31, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2008.00000000, NULL, 2008.00000000, 401.60000000, 0.00000000, 0.00000000, 2409.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2008.00000000, 2008.00000000, 401.60000000, 2409.60000000),
(57, 32, NULL, 8, NULL, 'selon l accord&nbsp;<br />\r\nen plus avec des poucentage selon les Tarif<br />\r\n<br />\r\nselon les CA HT<br />\r\n​​​​​​​<br />\r\n3 %&nbsp; Tatif gros&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 20 %<br />\r\n6 %&nbsp; Taris 1/2 gros&nbsp; &nbsp;30 %<br />\r\n9 %&nbsp; Tarif detaillant&nbsp; 40 %<br />\r\n<br />\r\n&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(58, 33, NULL, 8, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(60, 34, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2311.00000000, NULL, 2311.00000000, 462.20000000, 0.00000000, 0.00000000, 2773.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2311.00000000, 2311.00000000, 462.20000000, 2773.20000000),
(61, 35, NULL, 8, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(62, 36, NULL, 26, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 30, 0, 0, NULL, 5.00000000, NULL, 150.00000000, 30.00000000, 0.00000000, 0.00000000, 180.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 5.00000000, 150.00000000, 30.00000000, 180.00000000),
(63, 36, NULL, 25, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 70.00000000, NULL, 280.00000000, 56.00000000, 0.00000000, 0.00000000, 336.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 70.00000000, 280.00000000, 56.00000000, 336.00000000),
(64, 36, NULL, 27, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1000, 0, 0, NULL, 0.17000000, NULL, 170.00000000, 34.00000000, 0.00000000, 0.00000000, 204.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.17000000, 170.00000000, 34.00000000, 204.00000000),
(67, 35, NULL, 29, NULL, '3565 EURO HT 30/04/2019', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 320.85000000, NULL, 320.85000000, 64.17000000, 0.00000000, 0.00000000, 385.02000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 320.85000000, 320.85000000, 64.17000000, 385.02000000),
(68, 36, NULL, 28, NULL, '3565 EURO HT 30/04/2019', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 249.55000000, NULL, 249.55000000, 49.91000000, 0.00000000, 0.00000000, 299.46000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 249.55000000, 249.55000000, 49.91000000, 299.46000000),
(69, 37, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 4210.00000000, NULL, 4210.00000000, 842.00000000, 0.00000000, 0.00000000, 5052.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 4210.00000000, 4210.00000000, 842.00000000, 5052.00000000),
(70, 38, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 6250.00000000, NULL, 6250.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 6250.00000000, 6250.00000000, 0.00000000, 6250.00000000),
(71, 39, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 500.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(72, 39, NULL, 29, NULL, 'CA HT 05/2019&nbsp; 4015.43', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 361.39000000, NULL, 361.39000000, 72.28000000, 0.00000000, 0.00000000, 433.67000000, 1, NULL, NULL, 0, 361.39000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 361.39000000, 361.39000000, 72.28000000, 433.67000000),
(73, 40, NULL, 28, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 281.08000000, NULL, 281.08000000, 56.22000000, 0.00000000, 0.00000000, 337.30000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 281.08000000, 281.08000000, 56.22000000, 337.30000000),
(74, 40, NULL, 35, NULL, 'appareil derrouler', 20.000, '', 0.000, '0', 0.000, '0', 2, 0, 0, NULL, 7.90000000, NULL, 15.80000000, 3.16000000, 0.00000000, 0.00000000, 18.96000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 7.90000000, 15.80000000, 3.16000000, 18.96000000),
(76, 40, NULL, 21, NULL, '2 joue de controle avec allez retour sans hebergement&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 540.00000000, NULL, 540.00000000, 108.00000000, 0.00000000, 0.00000000, 648.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 540.00000000, 540.00000000, 108.00000000, 648.00000000),
(77, 41, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2135.00000000, NULL, 2135.00000000, 427.00000000, 0.00000000, 0.00000000, 2562.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2135.00000000, 2135.00000000, 427.00000000, 2562.00000000),
(78, 42, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(79, 42, NULL, 23, NULL, 'hotel depens divers', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 140.00000000, NULL, 140.00000000, 28.00000000, 0.00000000, 0.00000000, 168.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 140.00000000, 140.00000000, 28.00000000, 168.00000000),
(80, 43, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1848.00000000, NULL, 1848.00000000, 369.60000000, 0.00000000, 0.00000000, 2217.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1848.00000000, 1848.00000000, 369.60000000, 2217.60000000),
(81, 44, NULL, 19, NULL, 'comission&nbsp;<br />\r\n12130,29', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 849.12000000, NULL, 849.12000000, 0.00000000, 0.00000000, 0.00000000, 849.12000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 849.12000000, 849.12000000, 0.00000000, 849.12000000),
(82, 46, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 6250.00000000, NULL, 6250.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 6250.00000000, 6250.00000000, 0.00000000, 6250.00000000),
(83, 47, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(85, 47, NULL, 21, NULL, 'affiche', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 130.00000000, NULL, 130.00000000, 26.00000000, 0.00000000, 0.00000000, 156.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 130.00000000, 130.00000000, 26.00000000, 156.00000000),
(86, 47, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 150.00000000, NULL, 150.00000000, 30.00000000, 0.00000000, 0.00000000, 180.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 150.00000000, 150.00000000, 30.00000000, 180.00000000),
(87, 47, NULL, 29, NULL, 'juillet&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 535.00000000, NULL, 535.00000000, 107.00000000, 0.00000000, 0.00000000, 642.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 535.00000000, 535.00000000, 107.00000000, 642.00000000),
(88, 48, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1882.00000000, NULL, 1882.00000000, 376.40000000, 0.00000000, 0.00000000, 2258.40000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1882.00000000, 1882.00000000, 376.40000000, 2258.40000000),
(89, 49, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(90, 49, NULL, 21, NULL, 'affiche', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 130.00000000, NULL, 130.00000000, 26.00000000, 0.00000000, 0.00000000, 156.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 130.00000000, 130.00000000, 26.00000000, 156.00000000),
(91, 49, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 150.00000000, NULL, 150.00000000, 30.00000000, 0.00000000, 0.00000000, 180.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 150.00000000, 150.00000000, 30.00000000, 180.00000000),
(92, 49, NULL, 29, NULL, 'juillet&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 535.00000000, NULL, 535.00000000, 107.00000000, 0.00000000, 0.00000000, 642.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 535.00000000, 535.00000000, 107.00000000, 642.00000000),
(93, 50, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(94, 50, NULL, 21, NULL, 'affiche', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 75.00000000, NULL, 75.00000000, 15.00000000, 0.00000000, 0.00000000, 90.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 75.00000000, 75.00000000, 15.00000000, 90.00000000),
(96, 50, NULL, 29, NULL, 'Aout', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 416.00000000, NULL, 416.00000000, 83.20000000, 0.00000000, 0.00000000, 499.20000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 416.00000000, 416.00000000, 83.20000000, 499.20000000),
(97, 51, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1790.00000000, NULL, 1790.00000000, 358.00000000, 0.00000000, 0.00000000, 2148.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1790.00000000, 1790.00000000, 358.00000000, 2148.00000000),
(102, 54, NULL, 21, NULL, 'congelateur&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 350.00000000, NULL, 3500.00000000, 700.00000000, 0.00000000, 0.00000000, 4200.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 350.00000000, 3500.00000000, 700.00000000, 4200.00000000),
(103, 55, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(104, 55, NULL, 21, NULL, 'affiche baquette et envloppet', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 88.00000000, NULL, 88.00000000, 17.60000000, 0.00000000, 0.00000000, 105.60000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 88.00000000, 88.00000000, 17.60000000, 105.60000000),
(105, 55, NULL, 29, NULL, 'Aout', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 630.00000000, NULL, 630.00000000, 126.00000000, 0.00000000, 0.00000000, 756.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 630.00000000, 630.00000000, 126.00000000, 756.00000000),
(106, 56, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2754.00000000, NULL, 2754.00000000, 550.80000000, 0.00000000, 0.00000000, 3304.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2754.00000000, 2754.00000000, 550.80000000, 3304.80000000),
(107, 57, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 6250.00000000, NULL, 6250.00000000, 0.00000000, 0.00000000, 0.00000000, 6250.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 6250.00000000, 6250.00000000, 0.00000000, 6250.00000000),
(108, 58, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(109, 58, NULL, 21, NULL, 'affiche baquette et envloppet', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 90.00000000, NULL, 90.00000000, 18.00000000, 0.00000000, 0.00000000, 108.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 90.00000000, 90.00000000, 18.00000000, 108.00000000),
(110, 58, NULL, 29, NULL, 'Aout', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1227.00000000, NULL, 1227.00000000, 245.40000000, 0.00000000, 0.00000000, 1472.40000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1227.00000000, 1227.00000000, 245.40000000, 1472.40000000),
(111, 58, NULL, 28, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 954.00000000, NULL, 954.00000000, 190.80000000, 0.00000000, 0.00000000, 1144.80000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 954.00000000, 954.00000000, 190.80000000, 1144.80000000),
(112, 55, NULL, 28, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 490.00000000, NULL, 490.00000000, 98.00000000, 0.00000000, 0.00000000, 588.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 490.00000000, 490.00000000, 98.00000000, 588.00000000),
(113, 59, NULL, 3, NULL, '3169Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3169.00000000, NULL, 3169.00000000, 633.80000000, 0.00000000, 0.00000000, 3802.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3169.00000000, 3169.00000000, 633.80000000, 3802.80000000),
(114, 60, NULL, 3, NULL, '<font style=\"vertical-align:inherit\"><font style=\"vertical-align:inherit\">Fee 2.6%</font></font>', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2520.00000000, NULL, 2520.00000000, 504.00000000, 0.00000000, 0.00000000, 3024.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2520.00000000, 2520.00000000, 504.00000000, 3024.00000000),
(115, 61, NULL, 21, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 4, 0, 0, NULL, 500.00000000, NULL, 2000.00000000, 400.00000000, 0.00000000, 0.00000000, 2400.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 2000.00000000, 400.00000000, 2400.00000000),
(121, 64, NULL, 37, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 0, 0, 0, NULL, 700.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 700.00000000, 0.00000000, 0.00000000, 0.00000000),
(122, 64, NULL, 36, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 0, 0, 0, NULL, 1400.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1400.00000000, 0.00000000, 0.00000000, 0.00000000),
(123, 64, NULL, 39, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 0, 0, 0, NULL, 500.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 0.00000000, 0.00000000, 0.00000000),
(124, 64, NULL, 40, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 0, 0, 0, NULL, 1200.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1200.00000000, 0.00000000, 0.00000000, 0.00000000),
(125, 64, NULL, 41, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 516.00000000, NULL, 516.00000000, 0.00000000, 0.00000000, 0.00000000, 516.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 7, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 516.00000000, 516.00000000, 0.00000000, 516.00000000),
(127, 64, NULL, 38, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 0, 0, 0, NULL, 700.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 8, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 700.00000000, 0.00000000, 0.00000000, 0.00000000),
(128, 66, NULL, 42, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 140, 0, 0, NULL, 17.00000000, NULL, 2380.00000000, 130.90000000, 0.00000000, 0.00000000, 2510.90000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 17.00000000, 2380.00000000, 130.90000000, 2510.90000000),
(129, 66, NULL, 43, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 999.00000000, NULL, 999.00000000, 54.95000000, 0.00000000, 0.00000000, 1053.95000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 999.00000000, 999.00000000, 54.95000000, 1053.95000000),
(130, 67, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 9500.00000000, NULL, 9500.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 9500.00000000, 9500.00000000, 0.00000000, 9500.00000000),
(131, 68, NULL, 20, NULL, 'prestation 2020', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(132, 69, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3129.00000000, NULL, 3129.00000000, 625.80000000, 0.00000000, 0.00000000, 3754.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3129.00000000, 3129.00000000, 625.80000000, 3754.80000000),
(133, 70, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3520.00000000, NULL, 3520.00000000, 704.00000000, 0.00000000, 0.00000000, 4224.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3520.00000000, 3520.00000000, 704.00000000, 4224.00000000),
(134, 71, NULL, 3, NULL, 'Redevance 2,6 %', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, -3129.00000000, NULL, -3129.00000000, -625.80000000, 0.00000000, 0.00000000, -3754.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3129.00000000, 3129.00000000, 625.80000000, 3754.80000000),
(136, 72, NULL, 30, NULL, '4 376,18 fac 95', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 262.57000000, NULL, 262.57000000, 52.51000000, 0.00000000, 0.00000000, 315.08000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 262.57000000, 262.57000000, 52.51000000, 315.08000000),
(137, 72, NULL, 30, NULL, 'FAC 90&nbsp; &nbsp;3 621,37', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 271.28000000, NULL, 271.28000000, 54.26000000, 0.00000000, 0.00000000, 325.54000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 271.28000000, 271.28000000, 54.26000000, 325.54000000),
(138, 73, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3210.00000000, NULL, 3210.00000000, 642.00000000, 0.00000000, 0.00000000, 3852.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3210.00000000, 3210.00000000, 642.00000000, 3852.00000000),
(139, 74, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2988.00000000, NULL, 2988.00000000, 597.60000000, 0.00000000, 0.00000000, 3585.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2988.00000000, 2988.00000000, 597.60000000, 3585.60000000),
(140, 75, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 9500.00000000, NULL, 9500.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 9500.00000000, 9500.00000000, 0.00000000, 9500.00000000),
(141, 76, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 5451.00000000, NULL, 5451.00000000, 1090.20000000, 0.00000000, 0.00000000, 6541.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 5451.00000000, 5451.00000000, 1090.20000000, 6541.20000000),
(142, 77, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 4979.00000000, NULL, 4979.00000000, 995.80000000, 0.00000000, 0.00000000, 5974.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 4979.00000000, 4979.00000000, 995.80000000, 5974.80000000),
(143, 78, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2074.00000000, NULL, 2074.00000000, 414.80000000, 0.00000000, 0.00000000, 2488.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2074.00000000, 2074.00000000, 414.80000000, 2488.80000000),
(144, 79, NULL, 20, NULL, 'prestation annuelle', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(145, 80, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 9500.00000000, NULL, 9500.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 9500.00000000, 9500.00000000, 0.00000000, 9500.00000000),
(146, 81, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1727.00000000, NULL, 1727.00000000, 345.40000000, 0.00000000, 0.00000000, 2072.40000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1727.00000000, 1727.00000000, 345.40000000, 2072.40000000),
(147, 82, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1277.00000000, NULL, 1277.00000000, 255.40000000, 0.00000000, 0.00000000, 1532.40000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1277.00000000, 1277.00000000, 255.40000000, 1532.40000000),
(151, 84, NULL, 46, NULL, 'deplacement hotel&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 350.00000000, NULL, 350.00000000, 70.00000000, 0.00000000, 0.00000000, 420.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 350.00000000, 350.00000000, 70.00000000, 420.00000000),
(152, 83, NULL, 12, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 0.00000000, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.00000000, 0.00000000, 0.00000000, 0.00000000),
(153, 85, NULL, NULL, NULL, 'haccp', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 750.00000000, NULL, 750.00000000, 150.00000000, 0.00000000, 0.00000000, 900.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 750.00000000, 750.00000000, 150.00000000, 900.00000000),
(156, 86, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 232.00000000, NULL, 232.00000000, 46.40000000, 0.00000000, 0.00000000, 278.40000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 232.00000000, 232.00000000, 46.40000000, 278.40000000),
(157, 87, NULL, 22, NULL, '', 0.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 9500.00000000, NULL, 9500.00000000, 0.00000000, 0.00000000, 0.00000000, 9500.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 9500.00000000, 9500.00000000, 0.00000000, 9500.00000000),
(158, 88, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 686.00000000, NULL, 686.00000000, 137.20000000, 0.00000000, 0.00000000, 823.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 686.00000000, 686.00000000, 137.20000000, 823.20000000),
(159, 89, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 6096.00000000, NULL, 6096.00000000, 1219.20000000, 0.00000000, 0.00000000, 7315.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 6096.00000000, 6096.00000000, 1219.20000000, 7315.20000000),
(161, 90, NULL, 52, NULL, 'Num&eacute;ro de dossier de l&#39;Opcommerce : 20AFE08022467<br />\r\nR&eacute;f&eacute;rence facture : FA2011-0076<br />\r\nPour<br />\r\n&bull; Entreprise : N FES DISTRIBUTION LEZZET FRANCE<br />\r\n&bull; Adresse : 4 RUE DES CLOMARTS 77130 MONTEREAU FAULT YONNE<br />\r\n&bull;Intitul&eacute; de la formation : LE SYST&Egrave;ME DE TRA&Ccedil;ABILIT&Eacute; AGROALIMENTAIRE<br />\r\n&bull; Dates de la formation : du 31/08/2020 au 04/09/2020<br />\r\n&bull; Salari&eacute;(es) concern&eacute;(es) : 2 salari&eacute;s&bull; Dur&eacute;e de la formation : 35 heures', 20.000, '', 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 1000.00000000, NULL, 5000.00000000, 1000.00000000, 0.00000000, 0.00000000, 6000.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1000.00000000, 5000.00000000, 1000.00000000, 6000.00000000),
(164, 92, NULL, 51, NULL, 'Num&eacute;ro de dossier de l&#39;Opcommerce : 20AFE08023614<br />\r\nR&eacute;f&eacute;rence facture : FA2011-0076<br />\r\nPour<br />\r\n&bull; Entreprise : N FES DISTRIBUTION LEZZET FRANCE<br />\r\n&bull; Adresse : 4 RUE DES CLOMARTS 77130 MONTEREAU FAULT YONNE<br />\r\n&bull; Intitul&eacute; de la formation : S&Eacute;CURIT&Eacute; ET SANTE AU TRAVAIL<br />\r\n&bull; Dates de la formation : du 18/09/2020 au 22/09/2022<br />\r\n&bull; Salari&eacute;(es) concern&eacute;(es) : 2 salari&eacute;s &bull; Dur&eacute;e de la formation : 21 heures', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1454.00000000, NULL, 1454.00000000, 290.80000000, 0.00000000, 0.00000000, 1744.80000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1454.00000000, 1454.00000000, 290.80000000, 1744.80000000),
(165, 93, NULL, 53, NULL, 'Num&eacute;ro de dossier de l&#39;Opcommerce : 20AFE08024787<br />\r\nR&eacute;f&eacute;rence facture : FA2011-0076<br />\r\nPour<br />\r\n&bull; Entreprise : N FES DISTRIBUTION LEZZET FRANCE<br />\r\n&bull; Adresse : 4 RUE DES CLOMARTS 77130 MONTEREAU FAULT YONNE<br />\r\n&bull; Intitul&eacute; de la formation : LA DEMARCHE HACCP - ANALYSE DES DANGERS ET POINTS CRITIQUES POUR LEUR MA&Icirc;TRISE<br />\r\n&bull; Dates de la formation : du 27/09/2020 au 28/09/2020<br />\r\n&bull; Salari&eacute;(es) concern&eacute;(es) : 2 salari&eacute;s &bull; Dur&eacute;e de la formation : 14 heures', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3000.00000000, NULL, 3000.00000000, 600.00000000, 0.00000000, 0.00000000, 3600.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3000.00000000, 3000.00000000, 600.00000000, 3600.00000000),
(166, 94, NULL, 53, NULL, '<br />\r\nR&eacute;f&eacute;rence&nbsp;<em>Dossier n&deg;1&nbsp;478&nbsp;190 &ndash; HACCP ET TRACABILITE</em><br />\r\nPour<br />\r\n&bull; Entreprise : STAR FOODS<br />\r\n&bull; Adresse :&nbsp;47 RUE JULES FERRY 91390 MORSANG-SUR-ORGE<br />\r\n&bull; Intitul&eacute; de la formation : LA DEMARCHE HACCP - ANALYSE DES DANGERS ET POINTS CRITIQUES POUR LEUR MA&Icirc;TRISE<br />\r\n&bull; Dates de la formation : du 23/11/2020 au 25/11/2020<br />\r\n&bull; Salari&eacute;(es) concern&eacute;(es) : 2 salari&eacute;s &bull; Dur&eacute;e de la formation : 21 heures', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2100.00000000, NULL, 2100.00000000, 420.00000000, 0.00000000, 0.00000000, 2520.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2100.00000000, 2100.00000000, 420.00000000, 2520.00000000),
(167, 95, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 3285.00000000, NULL, 3285.00000000, 657.00000000, 0.00000000, 0.00000000, 3942.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 3285.00000000, 3285.00000000, 657.00000000, 3942.00000000),
(168, 96, NULL, 53, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 583.33000000, NULL, 583.33000000, 116.67000000, 0.00000000, 0.00000000, 700.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 583.33000000, 583.33000000, 116.67000000, 700.00000000),
(169, 97, NULL, 53, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1200.00000000, NULL, 1200.00000000, 240.00000000, 0.00000000, 0.00000000, 1440.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1200.00000000, 1200.00000000, 240.00000000, 1440.00000000),
(170, 98, NULL, 42, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 140, 0, 0, NULL, 22.00000000, NULL, 3080.00000000, 169.40000000, 0.00000000, 0.00000000, 3249.40000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 22.00000000, 3080.00000000, 169.40000000, 3249.40000000),
(171, 98, NULL, 43, NULL, 'cuisse de poulet', 5.500, '', 0.000, '0', 0.000, '0', 250, 0, 0, NULL, 1.00000000, NULL, 250.00000000, 13.75000000, 0.00000000, 0.00000000, 263.75000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1.00000000, 250.00000000, 13.75000000, 263.75000000),
(172, 98, NULL, 43, NULL, 'ailes de poulet', 5.500, '', 0.000, '0', 0.000, '0', 30, 0, 0, NULL, 1.80000000, NULL, 54.00000000, 2.97000000, 0.00000000, 0.00000000, 56.97000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1.80000000, 54.00000000, 2.97000000, 56.97000000),
(173, 98, NULL, 43, NULL, 'pilon de poulet', 5.500, '', 0.000, '0', 0.000, '0', 60, 0, 0, NULL, 2.00000000, NULL, 120.00000000, 6.60000000, 0.00000000, 0.00000000, 126.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2.00000000, 120.00000000, 6.60000000, 126.60000000),
(174, 98, NULL, 43, NULL, 'escalope de poulet&nbsp;', 5.500, '', 0.000, '0', 0.000, '0', 60, 0, 0, NULL, 4.00000000, NULL, 240.00000000, 13.20000000, 0.00000000, 0.00000000, 253.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 4.00000000, 240.00000000, 13.20000000, 253.20000000),
(175, 98, NULL, 43, NULL, 'poulet pac', 5.500, '', 0.000, '0', 0.000, '0', 60, 0, 0, NULL, 2.20000000, NULL, 132.00000000, 7.26000000, 0.00000000, 0.00000000, 139.26000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2.20000000, 132.00000000, 7.26000000, 139.26000000),
(176, 98, NULL, 43, NULL, 'foie&nbsp;', 5.500, '', 0.000, '0', 0.000, '0', 20, 0, 0, NULL, 1.80000000, NULL, 36.00000000, 1.98000000, 0.00000000, 0.00000000, 37.98000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 7, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1.80000000, 36.00000000, 1.98000000, 37.98000000),
(177, 98, NULL, 43, NULL, 'filet de debde&nbsp;', 5.500, '', 0.000, '0', 0.000, '0', 70, 0, 0, NULL, 5.30000000, NULL, 371.00000000, 20.41000000, 0.00000000, 0.00000000, 391.41000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 8, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 5.30000000, 371.00000000, 20.41000000, 391.41000000),
(178, 98, NULL, 43, NULL, 'agneau&nbsp;', 5.500, '', 0.000, '0', 0.000, '0', 90, 0, 0, NULL, 6.95000000, NULL, 625.50000000, 34.40000000, 0.00000000, 0.00000000, 659.90000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 9, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 6.95000000, 625.50000000, 34.40000000, 659.90000000),
(179, 99, NULL, 20, NULL, 'prestation 2020', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(180, 100, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2923.00000000, NULL, 2923.00000000, 584.60000000, 0.00000000, 0.00000000, 3507.60000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2923.00000000, 2923.00000000, 584.60000000, 3507.60000000),
(181, 101, NULL, 53, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 700.00000000, NULL, 700.00000000, 140.00000000, 0.00000000, 0.00000000, 840.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 700.00000000, 700.00000000, 140.00000000, 840.00000000),
(182, 102, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2961.00000000, NULL, 2961.00000000, 592.20000000, 0.00000000, 0.00000000, 3553.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2961.00000000, 2961.00000000, 592.20000000, 3553.20000000),
(183, 103, NULL, 3, NULL, 'Fee 2.6%', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1336.00000000, NULL, 1336.00000000, 267.20000000, 0.00000000, 0.00000000, 1603.20000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1336.00000000, 1336.00000000, 267.20000000, 1603.20000000),
(184, 106, NULL, NULL, NULL, 'barqette&nbsp;', 5.500, '', 0.000, '0', 0.000, '0', 210, 0, 0, NULL, 1.30000000, NULL, 273.00000000, 15.02000000, 0.00000000, 0.00000000, 288.02000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1.30000000, 273.00000000, 15.02000000, 288.02000000),
(185, 107, NULL, 20, NULL, 'prestation annuelle', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(188, 109, NULL, 23, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 250.00000000, NULL, 250.00000000, 50.00000000, 0.00000000, 0.00000000, 300.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 250.00000000, 250.00000000, 50.00000000, 300.00000000);
INSERT INTO `pnfq_facturedet` (`rowid`, `fk_facture`, `fk_parent_line`, `fk_product`, `label`, `description`, `tva_tx`, `vat_src_code`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `qty`, `remise_percent`, `remise`, `fk_remise_except`, `subprice`, `price`, `total_ht`, `total_tva`, `total_localtax1`, `total_localtax2`, `total_ttc`, `product_type`, `date_start`, `date_end`, `info_bits`, `buy_price_ht`, `fk_product_fournisseur_price`, `fk_code_ventilation`, `special_code`, `rang`, `fk_contract_line`, `import_key`, `situation_percent`, `fk_prev_id`, `fk_unit`, `fk_user_modif`, `fk_user_author`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_subprice`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`) VALUES
(189, 109, NULL, 20, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1852.50000000, NULL, 1852.50000000, 370.50000000, 0.00000000, 0.00000000, 2223.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1852.50000000, 1852.50000000, 370.50000000, 2223.00000000),
(190, 110, NULL, 53, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 850.00000000, NULL, 850.00000000, 170.00000000, 0.00000000, 0.00000000, 1020.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 850.00000000, 850.00000000, 170.00000000, 1020.00000000),
(191, 111, NULL, 60, NULL, 'h&eacute;bergement pro annuelle&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 50.00000000, NULL, 150.00000000, 30.00000000, 0.00000000, 0.00000000, 180.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 50.00000000, 150.00000000, 30.00000000, 180.00000000),
(192, 112, NULL, NULL, NULL, 'vetement', 0.000, '', 0.000, '0', 0.000, '0', 30, 0, 0, NULL, 0.05000000, NULL, 1.50000000, 0.00000000, 0.00000000, 0.00000000, 1.50000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.05000000, 1.50000000, 0.00000000, 1.50000000),
(193, 112, NULL, NULL, NULL, 'montre', 0.000, '', 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 0.50000000, NULL, 2.50000000, 0.00000000, 0.00000000, 0.00000000, 2.50000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.50000000, 2.50000000, 0.00000000, 2.50000000),
(194, 113, NULL, 20, NULL, 'prestation 2022', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(195, 114, NULL, 20, NULL, 'prestation annuelle', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(196, 115, NULL, 63, NULL, '', 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, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1000.00000000, 1000.00000000, 200.00000000, 1200.00000000),
(200, 117, NULL, 63, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1658.33000000, NULL, 1658.33000000, 331.67000000, 0.00000000, 0.00000000, 1990.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1658.33000000, 1658.33000000, 331.67000000, 1990.00000000),
(201, 118, NULL, 63, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 500.00000000, NULL, 500.00000000, 100.00000000, 0.00000000, 0.00000000, 600.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 500.00000000, 100.00000000, 600.00000000),
(202, 119, NULL, 63, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1316.67000000, NULL, 1316.67000000, 263.33000000, 0.00000000, 0.00000000, 1580.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1316.67000000, 1316.67000000, 263.33000000, 1580.00000000),
(203, 120, NULL, 20, NULL, 'prestation 2023', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(204, 121, NULL, 53, NULL, '', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2750.00000000, NULL, 2750.00000000, 550.00000000, 0.00000000, 0.00000000, 3300.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2750.00000000, 2750.00000000, 550.00000000, 3300.00000000),
(205, 122, NULL, 20, NULL, '&nbsp;2023', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(206, 124, NULL, 65, NULL, '', 5.500, '', 0.000, '0', 0.000, '0', 960, 0, 0, NULL, 1.00000000, NULL, 960.00000000, 52.80000000, 0.00000000, 0.00000000, 1012.80000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1.00000000, 960.00000000, 52.80000000, 1012.80000000),
(207, 127, NULL, NULL, NULL, 'service united 786<br />\r\ncertificat halal 786<br />\r\nfid786&nbsp;<br />\r\n786eat', 20.000, '', 0.000, '0', 0.000, '0', 10, 0, 0, NULL, 25.00000000, NULL, 250.00000000, 50.00000000, 0.00000000, 0.00000000, 300.00000000, 1, '2023-12-22 00:00:00', '2024-12-21 00:00:00', 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 25.00000000, 250.00000000, 50.00000000, 300.00000000),
(208, 128, NULL, 20, NULL, 'prestation certification 2024', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(209, 129, NULL, 20, NULL, '&nbsp;2024', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(210, 130, NULL, 67, NULL, 'Prestation pour certifier 7600kg viande egren&eacute;&eacute; chez&nbsp;<br />\r\n<br />\r\nZaklad Przemyslu Miesnego BIERNACKI SP. z o.o.<br />\r\n<br />\r\nPrestation pour certifier 2600kg viande Vollaille source polonaise<br />\r\n<br />\r\n&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 5771.70000000, NULL, 5771.70000000, 1154.34000000, 0.00000000, 0.00000000, 6926.04000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 5771.70000000, 5771.70000000, 1154.34000000, 6926.04000000),
(211, 131, NULL, 67, NULL, '<br />\r\n<br />\r\nPrestation pour certifier 5400kg viande Vollaille source polonaise<br />\r\n<br />\r\n&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1096.20000000, NULL, 1096.20000000, 219.24000000, 0.00000000, 0.00000000, 1315.44000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1096.20000000, 1096.20000000, 219.24000000, 1315.44000000),
(212, 132, NULL, 69, NULL, 'prestation certitrace halal 786', 0.000, '', 0.000, '0', 0.000, '0', 79169, 0, 0, NULL, 0.05000000, NULL, 3958.45000000, 0.00000000, 0.00000000, 0.00000000, 3958.45000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.05000000, 3958.45000000, 0.00000000, 3958.45000000),
(213, 133, NULL, 69, NULL, 'prestation certitrace halal 786', 0.000, '', 0.000, '0', 0.000, '0', 45065, 0, 0, NULL, 0.05000000, NULL, 2253.25000000, 0.00000000, 0.00000000, 0.00000000, 2253.25000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.05000000, 2253.25000000, 0.00000000, 2253.25000000),
(214, 134, NULL, 69, NULL, 'prestation certitrace halal 786', 0.000, '', 0.000, '0', 0.000, '0', 45065, 0, 0, NULL, 0.05000000, NULL, 2253.25000000, 0.00000000, 0.00000000, 0.00000000, 2253.25000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.05000000, 2253.25000000, 0.00000000, 2253.25000000),
(215, 135, NULL, 69, NULL, 'prestation certitrace halal 786', 0.000, '', 0.000, '0', 0.000, '0', 25001, 0, 0, NULL, 0.05000000, NULL, 1250.05000000, 0.00000000, 0.00000000, 0.00000000, 1250.05000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 0.05000000, 1250.05000000, 0.00000000, 1250.05000000),
(216, 136, NULL, 20, NULL, 'prestation certification 2025', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(217, 137, NULL, 20, NULL, 'prestation certification 2025', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(218, 138, NULL, NULL, NULL, 'prestation service&nbsp; ( digital marketing ) catalogue', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 2946.00000000, NULL, 2946.00000000, 589.20000000, 0.00000000, 0.00000000, 3535.20000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 2946.00000000, 2946.00000000, 589.20000000, 3535.20000000),
(219, 139, NULL, NULL, NULL, 'prestation service&nbsp; ( digital marketing )&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1180.00000000, NULL, 1180.00000000, 236.00000000, 0.00000000, 0.00000000, 1416.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1180.00000000, 1180.00000000, 236.00000000, 1416.00000000),
(221, 141, NULL, NULL, NULL, 'photocopieuse et table&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 630.00000000, NULL, 630.00000000, 126.00000000, 0.00000000, 0.00000000, 756.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 630.00000000, 630.00000000, 126.00000000, 756.00000000),
(222, 141, NULL, NULL, NULL, 'pc', 20.000, '', 0.000, '0', 0.000, '0', 3, 0, 0, NULL, 300.00000000, NULL, 900.00000000, 180.00000000, 0.00000000, 0.00000000, 1080.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 2, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 300.00000000, 900.00000000, 180.00000000, 1080.00000000),
(223, 141, NULL, NULL, NULL, 'chaise', 20.000, '', 0.000, '0', 0.000, '0', 5, 0, 0, NULL, 25.00000000, NULL, 125.00000000, 25.00000000, 0.00000000, 0.00000000, 150.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 3, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 25.00000000, 125.00000000, 25.00000000, 150.00000000),
(224, 141, NULL, NULL, NULL, 'projecteure', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 500.00000000, NULL, 500.00000000, 100.00000000, 0.00000000, 0.00000000, 600.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 4, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 500.00000000, 500.00000000, 100.00000000, 600.00000000),
(225, 141, NULL, NULL, NULL, 'aremoire&nbsp;', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 200.00000000, NULL, 200.00000000, 40.00000000, 0.00000000, 0.00000000, 240.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 5, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 200.00000000, 200.00000000, 40.00000000, 240.00000000),
(226, 141, NULL, NULL, NULL, 'tablette', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 150.00000000, NULL, 150.00000000, 30.00000000, 0.00000000, 0.00000000, 180.00000000, 0, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 6, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 150.00000000, 150.00000000, 30.00000000, 180.00000000),
(227, 142, NULL, 20, NULL, '&nbsp;2026', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000),
(228, 143, NULL, 20, NULL, 'prestation certification 2026', 20.000, '', 0.000, '0', 0.000, '0', 1, 0, 0, NULL, 1900.00000000, NULL, 1900.00000000, 380.00000000, 0.00000000, 0.00000000, 2280.00000000, 1, NULL, NULL, 0, 0.00000000, NULL, 0, 0, 1, NULL, NULL, 100, NULL, NULL, 1, 1, 1, 'EUR', 1900.00000000, 1900.00000000, 380.00000000, 2280.00000000);

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

--
-- Structure de la table `pnfq_facturedet_extrafields`
--

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

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

--
-- Structure de la table `pnfq_facturedet_rec`
--

CREATE TABLE `pnfq_facturedet_rec` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `label` varchar(255) DEFAULT NULL,
  `description` text 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) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `subprice` double(24,8) DEFAULT NULL,
  `price` double(24,8) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `total_tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `special_code` int(10) UNSIGNED DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_contract_line` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_facture_extrafields`
--

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

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

--
-- Structure de la table `pnfq_facture_fourn`
--

CREATE TABLE `pnfq_facture_fourn` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(255) NOT NULL,
  `ref_supplier` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `type` smallint(6) NOT NULL DEFAULT 0,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `libelle` varchar(255) DEFAULT NULL,
  `paye` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double(24,8) DEFAULT 0.00000000,
  `close_code` varchar(16) DEFAULT NULL,
  `close_note` varchar(128) DEFAULT NULL,
  `tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text 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_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_facture_fourn`
--

INSERT INTO `pnfq_facture_fourn` (`rowid`, `ref`, `ref_supplier`, `entity`, `ref_ext`, `type`, `fk_soc`, `datec`, `datef`, `tms`, `libelle`, `paye`, `amount`, `remise`, `close_code`, `close_note`, `tva`, `localtax1`, `localtax2`, `total`, `total_ht`, `total_tva`, `total_ttc`, `fk_statut`, `fk_user_author`, `fk_user_modif`, `fk_user_valid`, `fk_facture_source`, `fk_projet`, `fk_account`, `fk_cond_reglement`, `fk_mode_reglement`, `date_lim_reglement`, `note_private`, `note_public`, `model_pdf`, `import_key`, `extraparams`, `fk_incoterms`, `location_incoterms`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_tx`, `multicurrency_total_ht`, `multicurrency_total_tva`, `multicurrency_total_ttc`) VALUES
(1, '(PROV1)', '01', 1, NULL, 0, 3, '2018-08-08 09:22:43', '2018-08-08', '2018-08-08 09:22:43', 'dounia', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 1, NULL, NULL, NULL, NULL, 1, 2, 2, '2018-08-08', '', '', NULL, NULL, NULL, 0, '', 1, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000),
(2, '(PROV2)', 'Copie de 01', 1, NULL, 0, 3, '2018-08-08 09:24:40', '2018-08-08', '2018-08-08 09:24:40', 'dounia', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 1, NULL, NULL, 0, NULL, 1, 2, 2, NULL, '', '', NULL, NULL, NULL, 0, '', 1, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000),
(3, '(PROV3)', 'Copie de Copie de 01', 1, NULL, 0, 3, '2018-08-08 09:26:05', '2018-08-08', '2018-08-08 09:26:05', 'dounia', 0, 0.00000000, 0.00000000, NULL, NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 0, 1, NULL, NULL, 0, NULL, 1, 2, 2, NULL, '', '', NULL, NULL, NULL, 0, '', 1, 'EUR', 1.00000000, 0.00000000, 0.00000000, 0.00000000);

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

--
-- Structure de la table `pnfq_facture_fourn_det`
--

CREATE TABLE `pnfq_facture_fourn_det` (
  `rowid` int(11) NOT NULL,
  `fk_facture_fourn` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text 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,
  `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) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `total_ht` double(24,8) DEFAULT NULL,
  `tva` double(24,8) DEFAULT NULL,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT NULL,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `fk_code_ventilation` int(11) NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_facture_fourn_det_extrafields`
--

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

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

--
-- Structure de la table `pnfq_facture_fourn_extrafields`
--

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

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

--
-- Structure de la table `pnfq_facture_rec`
--

CREATE TABLE `pnfq_facture_rec` (
  `rowid` int(11) NOT NULL,
  `titre` varchar(50) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `remise` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT 0,
  `fk_mode_reglement` int(11) DEFAULT 0,
  `date_lim_reglement` date DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `usenewprice` int(11) DEFAULT 0,
  `frequency` int(11) DEFAULT NULL,
  `unit_frequency` varchar(2) DEFAULT 'd',
  `date_when` datetime DEFAULT NULL,
  `date_last_gen` datetime DEFAULT NULL,
  `nb_gen_done` int(11) DEFAULT NULL,
  `nb_gen_max` int(11) DEFAULT NULL,
  `revenuestamp` double(24,8) DEFAULT 0.00000000,
  `auto_validate` int(11) DEFAULT 0,
  `fk_account` int(11) DEFAULT 0,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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 ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_fichinter`
--

CREATE TABLE `pnfq_fichinter` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) DEFAULT 0,
  `fk_contrat` int(11) DEFAULT 0,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `datei` date DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `duree` double DEFAULT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_fichinterdet`
--

CREATE TABLE `pnfq_fichinterdet` (
  `rowid` int(11) NOT NULL,
  `fk_fichinter` int(11) DEFAULT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `description` text DEFAULT NULL,
  `duree` int(11) DEFAULT NULL,
  `rang` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_fichinterdet_extrafields`
--

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

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

--
-- Structure de la table `pnfq_fichinter_extrafields`
--

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

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

--
-- Structure de la table `pnfq_holiday`
--

CREATE TABLE `pnfq_holiday` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `fk_user_create` int(11) DEFAULT NULL,
  `date_create` datetime NOT NULL,
  `description` varchar(255) NOT NULL,
  `date_debut` date NOT NULL,
  `date_fin` date NOT NULL,
  `halfday` int(11) DEFAULT 0,
  `statut` int(11) NOT NULL DEFAULT 1,
  `fk_validator` int(11) NOT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_refuse` datetime DEFAULT NULL,
  `fk_user_refuse` int(11) DEFAULT NULL,
  `date_cancel` datetime DEFAULT NULL,
  `fk_user_cancel` int(11) DEFAULT NULL,
  `detail_refuse` varchar(250) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text 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) DEFAULT 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_holiday_config`
--

CREATE TABLE `pnfq_holiday_config` (
  `rowid` int(11) NOT NULL,
  `name` varchar(128) DEFAULT NULL,
  `value` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_holiday_config`
--

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

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

--
-- Structure de la table `pnfq_holiday_logs`
--

CREATE TABLE `pnfq_holiday_logs` (
  `rowid` int(11) NOT NULL,
  `date_action` datetime NOT NULL,
  `fk_user_action` int(11) NOT NULL,
  `fk_user_update` int(11) NOT NULL,
  `type_action` varchar(255) NOT NULL,
  `prev_solde` varchar(255) NOT NULL,
  `new_solde` varchar(255) NOT NULL,
  `fk_type` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_holiday_users`
--

CREATE TABLE `pnfq_holiday_users` (
  `fk_user` int(11) NOT NULL,
  `nb_holiday` double NOT NULL DEFAULT 0,
  `fk_type` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_import_model`
--

CREATE TABLE `pnfq_import_model` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL DEFAULT 0,
  `label` varchar(50) NOT NULL,
  `type` varchar(50) DEFAULT NULL,
  `field` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_inventory`
--

CREATE TABLE `pnfq_inventory` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT 0,
  `ref` varchar(48) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_warehouse` int(11) DEFAULT 0,
  `status` int(11) DEFAULT 0,
  `title` varchar(255) NOT NULL,
  `date_inventory` datetime DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_inventorydet`
--

CREATE TABLE `pnfq_inventorydet` (
  `rowid` int(11) NOT NULL,
  `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,
  `pmp` double DEFAULT 0,
  `pa` double DEFAULT 0,
  `new_pmp` double DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_links`
--

CREATE TABLE `pnfq_links` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datea` datetime NOT NULL,
  `url` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `objecttype` varchar(255) NOT NULL,
  `objectid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_livraison`
--

CREATE TABLE `pnfq_livraison` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `ref_ext` varchar(30) DEFAULT NULL,
  `ref_int` varchar(30) DEFAULT NULL,
  `ref_customer` varchar(30) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `date_delivery` datetime DEFAULT NULL,
  `fk_address` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `note_private` text 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_livraisondet`
--

CREATE TABLE `pnfq_livraisondet` (
  `rowid` int(11) NOT NULL,
  `fk_livraison` int(11) DEFAULT NULL,
  `fk_origin_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `rang` int(11) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_livraisondet_extrafields`
--

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

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

--
-- Structure de la table `pnfq_livraison_extrafields`
--

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

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

--
-- Structure de la table `pnfq_loan`
--

CREATE TABLE `pnfq_loan` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(80) NOT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `capital` double NOT NULL DEFAULT 0,
  `datestart` date DEFAULT NULL,
  `dateend` date DEFAULT NULL,
  `nbterm` double DEFAULT NULL,
  `rate` double NOT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `capital_position` double DEFAULT 0,
  `date_position` date DEFAULT NULL,
  `paid` smallint(6) NOT NULL DEFAULT 0,
  `accountancy_account_capital` varchar(32) DEFAULT NULL,
  `accountancy_account_insurance` varchar(32) DEFAULT NULL,
  `accountancy_account_interest` varchar(32) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `fk_projet` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_loan_schedule`
--

CREATE TABLE `pnfq_loan_schedule` (
  `rowid` int(11) NOT NULL,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount_capital` double DEFAULT 0,
  `amount_insurance` double DEFAULT 0,
  `amount_interest` double DEFAULT 0,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_localtax`
--

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

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

--
-- Structure de la table `pnfq_mailing`
--

CREATE TABLE `pnfq_mailing` (
  `rowid` int(11) NOT NULL,
  `statut` smallint(6) DEFAULT 0,
  `titre` varchar(60) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `sujet` varchar(60) DEFAULT NULL,
  `body` mediumtext 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,
  `extraparams` varchar(255) DEFAULT NULL,
  `joined_file1` varchar(255) DEFAULT NULL,
  `joined_file2` varchar(255) DEFAULT NULL,
  `joined_file3` varchar(255) DEFAULT NULL,
  `joined_file4` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_mailing_cibles`
--

CREATE TABLE `pnfq_mailing_cibles` (
  `rowid` int(11) NOT NULL,
  `fk_mailing` int(11) NOT NULL,
  `fk_contact` int(11) NOT NULL,
  `lastname` varchar(160) DEFAULT NULL,
  `firstname` varchar(160) DEFAULT NULL,
  `email` varchar(160) NOT NULL,
  `other` varchar(255) DEFAULT NULL,
  `tag` varchar(128) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `source_url` varchar(255) DEFAULT NULL,
  `source_id` int(11) DEFAULT NULL,
  `source_type` varchar(16) DEFAULT NULL,
  `date_envoi` datetime DEFAULT NULL,
  `error_text` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_menu`
--

CREATE TABLE `pnfq_menu` (
  `rowid` int(11) NOT NULL,
  `menu_handler` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `module` varchar(64) DEFAULT NULL,
  `type` varchar(4) NOT NULL,
  `mainmenu` varchar(100) NOT NULL,
  `leftmenu` varchar(100) DEFAULT NULL,
  `fk_menu` int(11) NOT NULL,
  `fk_mainmenu` varchar(24) DEFAULT NULL,
  `fk_leftmenu` varchar(24) DEFAULT NULL,
  `position` int(11) NOT NULL,
  `url` varchar(255) NOT NULL,
  `target` varchar(100) DEFAULT NULL,
  `titre` varchar(255) NOT NULL,
  `langs` varchar(100) DEFAULT NULL,
  `level` smallint(6) DEFAULT NULL,
  `perms` varchar(255) DEFAULT NULL,
  `enabled` varchar(255) DEFAULT '1',
  `usertype` int(11) NOT NULL DEFAULT 0,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_menu`
--

INSERT INTO `pnfq_menu` (`rowid`, `menu_handler`, `entity`, `module`, `type`, `mainmenu`, `leftmenu`, `fk_menu`, `fk_mainmenu`, `fk_leftmenu`, `position`, `url`, `target`, `titre`, `langs`, `level`, `perms`, `enabled`, `usertype`, `tms`) VALUES
(19, 'all', 1, 'agenda', 'top', 'agenda', NULL, 0, NULL, NULL, 15, '/comm/action/index.php', '', 'TMenuAgenda', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(20, 'all', 1, 'agenda', 'left', 'agenda', NULL, 19, NULL, NULL, 100, '/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda', '', 'Actions', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(21, 'all', 1, 'agenda', 'left', 'agenda', NULL, 20, NULL, NULL, 101, '/comm/action/card.php?mainmenu=agenda&amp;leftmenu=agenda&amp;action=create', '', 'NewAction', 'commercial', NULL, '($user->rights->agenda->myactions->create||$user->rights->agenda->allactions->create)', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(22, 'all', 1, 'agenda', 'left', 'agenda', NULL, 20, NULL, NULL, 140, '/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda', '', 'Agenda', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(23, 'all', 1, 'agenda', 'left', 'agenda', NULL, 22, NULL, NULL, 141, '/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine', '', 'MenuToDoMyActions', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(24, 'all', 1, 'agenda', 'left', 'agenda', NULL, 22, NULL, NULL, 142, '/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine', '', 'MenuDoneMyActions', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(25, 'all', 1, 'agenda', 'left', 'agenda', NULL, 22, NULL, NULL, 143, '/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1', '', 'MenuToDoActions', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2018-04-13 20:46:54'),
(26, 'all', 1, 'agenda', 'left', 'agenda', NULL, 22, NULL, NULL, 144, '/comm/action/index.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1', '', 'MenuDoneActions', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2018-04-13 20:46:54'),
(27, 'all', 1, 'agenda', 'left', 'agenda', NULL, 20, NULL, NULL, 110, '/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda', '', 'List', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(28, 'all', 1, 'agenda', 'left', 'agenda', NULL, 27, NULL, NULL, 111, '/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filter=mine', '', 'MenuToDoMyActions', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(29, 'all', 1, 'agenda', 'left', 'agenda', NULL, 27, NULL, NULL, 112, '/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filter=mine', '', 'MenuDoneMyActions', 'agenda', NULL, '$user->rights->agenda->myactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(30, 'all', 1, 'agenda', 'left', 'agenda', NULL, 27, NULL, NULL, 113, '/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=todo&amp;filtert=-1', '', 'MenuToDoActions', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2018-04-13 20:46:54'),
(31, 'all', 1, 'agenda', 'left', 'agenda', NULL, 27, NULL, NULL, 114, '/comm/action/listactions.php?mainmenu=agenda&amp;leftmenu=agenda&amp;status=done&amp;filtert=-1', '', 'MenuDoneActions', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$user->rights->agenda->allactions->read', 2, '2018-04-13 20:46:54'),
(32, 'all', 1, 'agenda', 'left', 'agenda', NULL, 20, NULL, NULL, 160, '/comm/action/rapport/index.php?mainmenu=agenda&amp;leftmenu=agenda', '', 'Reportings', 'agenda', NULL, '$user->rights->agenda->allactions->read', '$conf->agenda->enabled', 2, '2018-04-13 20:46:54'),
(33, 'all', 1, 'ecm', 'top', 'ecm', NULL, 0, NULL, NULL, 100, '/ecm/index.php', '', 'MenuECM', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload || $user->rights->ecm->setup', '$conf->ecm->enabled', 2, '2018-04-13 20:46:54'),
(34, 'all', 1, 'ecm', 'left', 'ecm', 'ecm', -1, 'ecm', NULL, 101, '/ecm/index.php?mainmenu=ecm&leftmenu=ecm', '', 'ECMArea', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload', '$user->rights->ecm->read || $user->rights->ecm->upload', 2, '2018-04-13 20:46:54'),
(35, 'all', 1, 'ecm', 'left', 'ecm', 'ecm_manual', -1, 'ecm', 'ecm', 102, '/ecm/index.php?action=file_manager&mainmenu=ecm&leftmenu=ecm', '', 'ECMSectionsManual', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload', '$user->rights->ecm->read || $user->rights->ecm->upload', 2, '2018-04-13 20:46:54'),
(36, 'all', 1, 'ecm', 'left', 'ecm', NULL, -1, 'ecm', 'ecm', 103, '/ecm/index_auto.php?action=file_manager&mainmenu=ecm&leftmenu=ecm', '', 'ECMSectionsAuto', 'ecm', NULL, '$user->rights->ecm->read || $user->rights->ecm->upload', '($user->rights->ecm->read || $user->rights->ecm->upload) && ! empty($conf->global->ECM_AUTO_TREE_ENABLED)', 2, '2018-04-13 20:46:54'),
(37, 'all', 1, 'supplier_proposal', 'left', 'commercial', 'supplier_proposalsubmenu', -1, 'commercial', NULL, 300, '/supplier_proposal/index.php', '', 'SupplierProposalsShort', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->lire', '$conf->supplier_proposal->enabled', 2, '2018-04-17 09:49:18'),
(38, 'all', 1, 'supplier_proposal', 'left', 'commercial', NULL, -1, 'commercial', 'supplier_proposalsubmenu', 301, '/supplier_proposal/card.php?action=create&amp;leftmenu=supplier_proposals', '', 'SupplierProposalNew', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->creer', '$conf->supplier_proposal->enabled', 2, '2018-04-17 09:49:18'),
(39, 'all', 1, 'supplier_proposal', 'left', 'commercial', NULL, -1, 'commercial', 'supplier_proposalsubmenu', 302, '/supplier_proposal/list.php?leftmenu=supplier_proposals', '', 'List', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->lire', '$conf->supplier_proposal->enabled', 2, '2018-04-17 09:49:18'),
(40, 'all', 1, 'supplier_proposal', 'left', 'commercial', NULL, -1, 'commercial', 'supplier_proposalsubmenu', 303, '/comm/propal/stats/index.php?leftmenu=supplier_proposals&amp;mode=supplier', '', 'Statistics', 'supplier_proposal', NULL, '$user->rights->supplier_proposal->lire', '$conf->supplier_proposal->enabled', 2, '2018-04-17 09:49:18'),
(41, 'all', 1, 'margins', 'left', 'accountancy', 'margins', -1, 'accountancy', NULL, 100, '/margin/index.php', '', 'Margins', 'margins', NULL, '$user->rights->margins->liretous', '$conf->margin->enabled', 2, '2018-04-17 09:49:38'),
(42, 'all', 1, 'resource', 'left', 'tools', 'resource', -1, 'tools', NULL, 100, '/resource/list.php', '', 'MenuResourceIndex', 'resource', NULL, '$user->rights->resource->read', '1', 0, '2018-04-17 09:49:55'),
(43, 'all', 1, 'resource', 'left', 'tools', NULL, -1, 'tools', 'resource', 101, '/resource/add.php', '', 'MenuResourceAdd', 'resource', NULL, '$user->rights->resource->read', '1', 0, '2018-04-17 09:49:55'),
(44, 'all', 1, 'resource', 'left', 'tools', NULL, -1, 'tools', 'resource', 102, '/resource/list.php', '', 'List', 'resource', NULL, '$user->rights->resource->read', '1', 0, '2018-04-17 09:49:55'),
(45, 'all', 1, 'cron', 'left', 'home', NULL, -1, 'home', 'admintools', 200, '/cron/list.php?status=-2&leftmenu=admintools', '', 'CronList', 'cron', NULL, '$user->rights->cron->read', '$conf->cron->enabled && preg_match(\'/^admintools/\', $leftmenu)', 2, '2018-04-17 09:50:15'),
(46, 'all', 1, 'printing', 'left', 'home', NULL, -1, 'home', 'admintools', 300, '/printing/index.php?mainmenu=home&leftmenu=admintools', '', 'MenuDirectPrinting', 'printing', NULL, '$user->rights->printing->read', '$conf->printing->enabled && preg_match(\'/^admintools/\', $leftmenu)', 0, '2018-04-17 09:50:20'),
(47, 'all', 1, 'cashdesk', 'top', 'cashdesk', NULL, 0, NULL, NULL, 900, '/cashdesk/index.php?user=__LOGIN__', 'pointofsale', 'CashDeskMenu', 'cashdesk', NULL, '$user->rights->cashdesk->use', '$conf->cashdesk->enabled', 0, '2018-04-17 09:51:16'),
(48, 'all', 1, 'opensurvey', 'left', 'tools', 'opensurvey', -1, 'tools', NULL, 200, '/opensurvey/index.php?mainmenu=tools&leftmenu=opensurvey', '', 'Survey', 'opensurvey', NULL, '$user->rights->opensurvey->read', '$conf->opensurvey->enabled', 0, '2018-04-17 09:51:20'),
(49, 'all', 1, 'opensurvey', 'left', 'tools', 'opensurvey_new', -1, 'tools', 'opensurvey', 210, '/opensurvey/wizard/index.php', '', 'NewSurvey', 'opensurvey', NULL, '$user->rights->opensurvey->write', '$conf->opensurvey->enabled', 0, '2018-04-17 09:51:20'),
(50, 'all', 1, 'opensurvey', 'left', 'tools', 'opensurvey_list', -1, 'tools', 'opensurvey', 220, '/opensurvey/list.php', '', 'List', 'opensurvey', NULL, '$user->rights->opensurvey->read', '$conf->opensurvey->enabled', 0, '2018-04-17 09:51:20'),
(51, 'all', 1, 'barcode', 'left', 'tools', 'barcodeprint', -1, 'tools', NULL, 200, '/barcode/printsheet.php?mainmenu=tools&leftmenu=barcodeprint', '', 'BarCodePrintsheet', 'products', NULL, '($conf->global->MAIN_USE_ADVANCED_PERMS && $user->rights->barcode->lire_advance) || (! $conf->global->MAIN_USE_ADVANCED_PERMS)', '$conf->barcode->enabled', 2, '2018-04-17 09:51:33'),
(52, 'all', 1, 'barcode', 'left', 'home', NULL, -1, 'home', 'admintools', 300, '/barcode/codeinit.php?mainmenu=home&leftmenu=admintools', '', 'MassBarcodeInit', 'products', NULL, '($conf->global->MAIN_USE_ADVANCED_PERMS && $user->rights->barcode->creer_advance) || (! $conf->global->MAIN_USE_ADVANCED_PERMS)', '$conf->barcode->enabled && ($leftmenu==\"admintools\" || $leftmenu==\"admintools_info\")', 0, '2018-04-17 09:51:33');

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

--
-- Structure de la table `pnfq_multicurrency`
--

CREATE TABLE `pnfq_multicurrency` (
  `rowid` int(11) NOT NULL,
  `date_create` datetime DEFAULT NULL,
  `code` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `fk_user` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Déchargement des données de la table `pnfq_multicurrency`
--

INSERT INTO `pnfq_multicurrency` (`rowid`, `date_create`, `code`, `name`, `entity`, `fk_user`) VALUES
(1, '2018-04-17 09:51:49', 'EUR', 'Euros (€)', 1, 1);

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

--
-- Structure de la table `pnfq_multicurrency_rate`
--

CREATE TABLE `pnfq_multicurrency_rate` (
  `rowid` int(11) NOT NULL,
  `date_sync` datetime DEFAULT NULL,
  `rate` double NOT NULL DEFAULT 0,
  `fk_multicurrency` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Déchargement des données de la table `pnfq_multicurrency_rate`
--

INSERT INTO `pnfq_multicurrency_rate` (`rowid`, `date_sync`, `rate`, `fk_multicurrency`, `entity`) VALUES
(1, '2018-04-17 09:51:49', 1, 1, 1);

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

--
-- Structure de la table `pnfq_notify`
--

CREATE TABLE `pnfq_notify` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `daten` datetime DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email',
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `objet_type` varchar(24) NOT NULL,
  `objet_id` int(11) NOT NULL,
  `email` varchar(255) DEFAULT NULL,
  `type_target` varchar(16) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_notify_def`
--

CREATE TABLE `pnfq_notify_def` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` date DEFAULT NULL,
  `fk_action` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `type` varchar(16) DEFAULT 'email'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_notify_def_object`
--

CREATE TABLE `pnfq_notify_def_object` (
  `id` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `objet_type` varchar(16) DEFAULT NULL,
  `objet_id` int(11) NOT NULL,
  `type_notif` varchar(16) DEFAULT 'browser',
  `date_notif` datetime DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `moreparam` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_oauth_state`
--

CREATE TABLE `pnfq_oauth_state` (
  `rowid` int(11) NOT NULL,
  `service` varchar(36) DEFAULT NULL,
  `state` varchar(128) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_oauth_token`
--

CREATE TABLE `pnfq_oauth_token` (
  `rowid` int(11) NOT NULL,
  `service` varchar(36) DEFAULT NULL,
  `token` text DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `entity` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_opensurvey_comments`
--

CREATE TABLE `pnfq_opensurvey_comments` (
  `id_comment` int(10) UNSIGNED NOT NULL,
  `id_sondage` char(16) NOT NULL,
  `comment` text NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `usercomment` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_opensurvey_formquestions`
--

CREATE TABLE `pnfq_opensurvey_formquestions` (
  `rowid` int(11) NOT NULL,
  `id_sondage` varchar(16) DEFAULT NULL,
  `question` text DEFAULT NULL,
  `available_answers` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_opensurvey_sondage`
--

CREATE TABLE `pnfq_opensurvey_sondage` (
  `id_sondage` varchar(16) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `commentaires` text DEFAULT NULL,
  `mail_admin` varchar(128) DEFAULT NULL,
  `nom_admin` varchar(64) DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `titre` text NOT NULL,
  `date_fin` datetime DEFAULT NULL,
  `status` int(11) DEFAULT 1,
  `format` varchar(2) NOT NULL,
  `mailsonde` tinyint(4) NOT NULL DEFAULT 0,
  `allow_comments` tinyint(4) NOT NULL DEFAULT 1,
  `allow_spy` tinyint(4) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp(),
  `sujet` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_opensurvey_user_formanswers`
--

CREATE TABLE `pnfq_opensurvey_user_formanswers` (
  `fk_user_survey` int(11) NOT NULL,
  `fk_question` int(11) NOT NULL,
  `reponses` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_opensurvey_user_studs`
--

CREATE TABLE `pnfq_opensurvey_user_studs` (
  `id_users` int(11) NOT NULL,
  `nom` varchar(64) NOT NULL,
  `id_sondage` varchar(16) NOT NULL,
  `reponses` varchar(100) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_overwrite_trans`
--

CREATE TABLE `pnfq_overwrite_trans` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `lang` varchar(5) DEFAULT NULL,
  `transkey` varchar(128) DEFAULT NULL,
  `transvalue` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_paiement`
--

CREATE TABLE `pnfq_paiement` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) NOT NULL DEFAULT '',
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_export_compta` int(11) NOT NULL DEFAULT 0,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_paiement`
--

INSERT INTO `pnfq_paiement` (`rowid`, `ref`, `entity`, `datec`, `tms`, `datep`, `amount`, `fk_paiement`, `num_paiement`, `note`, `fk_bank`, `fk_user_creat`, `fk_user_modif`, `statut`, `fk_export_compta`, `multicurrency_amount`) VALUES
(1, 'PAY1806-0001', 1, '2018-06-13 02:05:45', '2018-06-13 02:05:45', '2018-06-10 12:00:00', 8427.60000000, 2, '', '', 2, 1, NULL, 0, 0, 8427.60000000),
(2, 'PAY1806-0002', 1, '2018-06-13 02:48:42', '2018-06-13 02:48:43', '2018-06-12 12:00:00', 6816.00000000, 2, '', '', 3, 1, NULL, 0, 0, 6816.00000000),
(3, 'PAY1807-0003', 1, '2018-07-29 21:20:50', '2018-07-29 21:20:50', '2018-07-14 12:00:00', 2853.60000000, 2, '2 853,60', '', 4, 1, NULL, 0, 0, 2853.60000000),
(6, 'PAY1805-0004', 1, '2018-07-31 08:13:51', '2018-07-31 08:13:51', '2018-05-01 12:00:00', 3000.00000000, 7, '', '', 7, 1, NULL, 0, 0, 3000.00000000),
(7, 'PAY1805-0005', 1, '2018-07-31 08:15:16', '2018-07-31 08:15:17', '2018-05-01 12:00:00', 3000.00000000, 7, '', '', 8, 1, NULL, 0, 0, 3000.00000000),
(8, 'PAY1808-0006', 1, '2018-08-20 09:42:54', '2018-08-20 09:42:54', '2018-08-12 12:00:00', 1788.00000000, 2, '', '', 9, 1, NULL, 0, 0, 1788.00000000),
(9, 'PAY1809-0007', 1, '2018-09-14 15:16:10', '2018-09-14 15:16:10', '2018-09-14 12:00:00', 3000.00000000, 2, '', '', 10, 1, NULL, 0, 0, 3000.00000000),
(10, 'PAY1809-0008', 1, '2018-09-14 15:19:18', '2018-09-14 15:19:18', '2018-09-14 12:00:00', 1941.60000000, 2, '', '', 11, 1, NULL, 0, 0, 1941.60000000),
(11, 'PAY1811-0009', 1, '2018-11-08 16:29:25', '2018-11-08 16:29:25', '2018-11-08 12:00:00', 4286.40000000, 2, '', '', 12, 1, NULL, 0, 0, 4286.40000000),
(12, 'PAY1811-0010', 1, '2018-11-08 16:30:03', '2018-11-08 16:30:03', '2018-11-08 12:00:00', 927.00000000, 2, '', '', 13, 1, NULL, 0, 0, 927.00000000),
(13, 'PAY1811-0011', 1, '2018-11-08 16:30:46', '2018-11-08 16:30:46', '2018-11-08 12:00:00', 2565.60000000, 2, '', '', 14, 1, NULL, 0, 0, 2565.60000000),
(14, 'PAY1901-0012', 1, '2019-01-07 08:57:11', '2019-01-07 08:57:11', '2019-01-07 12:00:00', 577.00000000, 7, '&', '', 15, 1, NULL, 0, 0, 577.00000000),
(15, 'PAY1901-0013', 1, '2019-01-07 08:59:10', '2019-01-07 08:59:10', '2019-01-07 12:00:00', 8715.60000000, 2, '&', '', 16, 1, NULL, 0, 0, 8715.60000000),
(16, 'PAY1901-0014', 1, '2019-01-07 09:00:02', '2019-01-07 09:00:02', '2019-01-07 12:00:00', 2280.00000000, 2, '', '', 17, 1, NULL, 0, 0, 2280.00000000),
(17, 'PAY1901-0015', 1, '2019-01-07 09:00:53', '2019-01-07 09:00:53', '2019-01-07 12:00:00', 115.40000000, 2, '', '', 18, 1, NULL, 0, 0, 115.40000000),
(18, 'PAY1901-0016', 1, '2019-01-21 18:16:59', '2019-01-21 18:17:00', '2019-01-21 12:00:00', 30.00000000, 3, '', '', 19, 1, NULL, 0, 0, 30.00000000),
(19, 'PAY1903-0017', 1, '2019-03-05 18:01:04', '2019-03-05 18:01:04', '2019-03-05 12:00:00', 4675.20000000, 2, '', '', 20, 1, NULL, 0, 0, 4675.20000000),
(20, 'PAY1903-0018', 1, '2019-03-05 18:02:20', '2019-03-05 18:02:20', '2019-03-05 12:00:00', 3955.20000000, 2, '', '', 21, 1, NULL, 0, 0, 3955.20000000),
(21, 'PAY1903-0019', 1, '2019-03-05 18:04:20', '2019-03-05 18:04:20', '2019-03-05 12:00:00', 40000.00000000, 1, '', '', 22, 1, NULL, 0, 0, 40000.00000000),
(22, 'PAY1903-0020', 1, '2019-03-05 18:05:27', '2019-03-05 18:05:27', '2019-03-05 12:00:00', -40000.00000000, 1, '', '', 23, 1, NULL, 0, 0, -40000.00000000),
(23, 'PAY1903-0021', 1, '2019-03-05 18:06:21', '2019-03-05 18:06:21', '2019-03-05 12:00:00', -40000.00000000, 1, '', '', 24, 1, NULL, 0, 0, -40000.00000000),
(24, 'PAY1905-0022', 1, '2019-05-06 11:54:41', '2019-05-06 11:54:41', '2019-05-06 12:00:00', 6250.00000000, 2, '', '', 25, 1, NULL, 0, 0, 6250.00000000),
(25, 'PAY1905-0023', 1, '2019-05-06 11:56:59', '2019-05-06 11:56:59', '2019-05-01 12:00:00', 9186.48000000, 2, '', '', 26, 1, NULL, 0, 0, 9186.48000000),
(26, 'PAY1903-0024', 1, '2019-05-06 11:57:48', '2019-05-06 11:57:48', '2019-03-31 12:00:00', 10234.80000000, 2, '', '', 27, 1, NULL, 0, 0, 10234.80000000),
(27, 'PAY1902-0025', 1, '2019-05-06 11:59:22', '2019-05-06 11:59:23', '2019-02-07 12:00:00', 40000.00000000, 2, '', '', 28, 1, NULL, 0, 0, 40000.00000000),
(28, 'PAY1906-0026', 1, '2019-06-29 15:55:06', '2019-06-29 15:55:06', '2019-06-29 12:00:00', 3837.93000000, 2, '', '', 29, 1, NULL, 0, 0, 3837.93000000),
(29, 'PAY1906-0027', 1, '2019-06-29 15:55:39', '2019-06-29 15:55:39', '2019-06-29 12:00:00', 6250.00000000, 2, '', '', 30, 1, NULL, 0, 0, 6250.00000000),
(30, 'PAY1906-0028', 1, '2019-06-29 15:56:11', '2019-06-29 15:56:11', '2019-06-29 12:00:00', 2562.00000000, 2, '', '', 31, 1, NULL, 0, 0, 2562.00000000),
(31, 'PAY2006-0029', 1, '2020-06-28 22:36:07', '2020-06-28 22:36:08', '2020-06-29 12:00:00', 684.00000000, 2, '', '', 34, 1, NULL, 0, 0, 684.00000000);

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

--
-- Structure de la table `pnfq_paiementcharge`
--

CREATE TABLE `pnfq_paiementcharge` (
  `rowid` int(11) NOT NULL,
  `fk_charge` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double DEFAULT 0,
  `fk_typepaiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_paiementfourn`
--

CREATE TABLE `pnfq_paiementfourn` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) DEFAULT NULL,
  `entity` int(11) DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` datetime DEFAULT NULL,
  `amount` double DEFAULT 0,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_paiement` int(11) NOT NULL,
  `num_paiement` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `statut` smallint(6) NOT NULL DEFAULT 0,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000,
  `model_pdf` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_paiementfourn_facturefourn`
--

CREATE TABLE `pnfq_paiementfourn_facturefourn` (
  `rowid` int(11) NOT NULL,
  `fk_paiementfourn` int(11) DEFAULT NULL,
  `fk_facturefourn` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_paiement_facture`
--

CREATE TABLE `pnfq_paiement_facture` (
  `rowid` int(11) NOT NULL,
  `fk_paiement` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `amount` double(24,8) DEFAULT 0.00000000,
  `multicurrency_amount` double(24,8) DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_paiement_facture`
--

INSERT INTO `pnfq_paiement_facture` (`rowid`, `fk_paiement`, `fk_facture`, `amount`, `multicurrency_amount`) VALUES
(1, 1, 1, 3667.20000000, 3667.20000000),
(2, 1, 3, 4760.40000000, 4760.40000000),
(3, 2, 4, 6816.00000000, 6816.00000000),
(4, 3, 5, 2853.60000000, 2853.60000000),
(7, 6, 7, 3000.00000000, 3000.00000000),
(8, 7, 8, 3000.00000000, 3000.00000000),
(9, 8, 6, 1788.00000000, 1788.00000000),
(10, 9, 9, 3000.00000000, 3000.00000000),
(11, 10, 14, 1941.60000000, 1941.60000000),
(12, 11, 18, 4286.40000000, 4286.40000000),
(13, 12, 17, 927.00000000, 927.00000000),
(14, 13, 15, 2565.60000000, 2565.60000000),
(15, 14, 22, 577.00000000, 577.00000000),
(16, 15, 19, 5290.80000000, 5290.80000000),
(17, 15, 21, 3424.80000000, 3424.80000000),
(18, 16, 20, 2280.00000000, 2280.00000000),
(19, 17, 22, 115.40000000, 115.40000000),
(20, 18, 26, 30.00000000, 30.00000000),
(21, 19, 23, 4675.20000000, 4675.20000000),
(22, 20, 27, 3955.20000000, 3955.20000000),
(23, 21, 25, 40000.00000000, 40000.00000000),
(24, 22, 25, -40000.00000000, -40000.00000000),
(25, 23, 25, -40000.00000000, -40000.00000000),
(26, 24, 28, 6250.00000000, 6250.00000000),
(27, 25, 29, 582.00000000, 582.00000000),
(28, 25, 32, 2400.00000000, 2400.00000000),
(29, 25, 33, 2400.00000000, 2400.00000000),
(30, 25, 36, 1019.46000000, 1019.46000000),
(31, 25, 35, 2785.02000000, 2785.02000000),
(32, 26, 31, 2409.60000000, 2409.60000000),
(33, 26, 34, 2773.20000000, 2773.20000000),
(34, 26, 37, 5052.00000000, 5052.00000000),
(35, 27, 24, 40000.00000000, 40000.00000000),
(36, 28, 39, 2833.67000000, 2833.67000000),
(37, 28, 40, 1004.26000000, 1004.26000000),
(38, 29, 38, 6250.00000000, 6250.00000000),
(39, 30, 41, 2562.00000000, 2562.00000000),
(40, 31, 79, 684.00000000, 684.00000000);

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

--
-- Structure de la table `pnfq_payment_donation`
--

CREATE TABLE `pnfq_payment_donation` (
  `rowid` int(11) NOT NULL,
  `fk_donation` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double DEFAULT 0,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_payment_expensereport`
--

CREATE TABLE `pnfq_payment_expensereport` (
  `rowid` int(11) NOT NULL,
  `fk_expensereport` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount` double DEFAULT 0,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) NOT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_payment_loan`
--

CREATE TABLE `pnfq_payment_loan` (
  `rowid` int(11) NOT NULL,
  `fk_loan` int(11) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datep` datetime DEFAULT NULL,
  `amount_capital` double DEFAULT 0,
  `amount_insurance` double DEFAULT 0,
  `amount_interest` double DEFAULT 0,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `note_private` text 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_payment_salary`
--

CREATE TABLE `pnfq_payment_salary` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user` int(11) NOT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `salary` double DEFAULT NULL,
  `amount` double NOT NULL DEFAULT 0,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `datesp` date DEFAULT NULL,
  `dateep` date DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_payment_various`
--

CREATE TABLE `pnfq_payment_various` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `sens` smallint(6) NOT NULL DEFAULT 0,
  `amount` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fk_typepayment` int(11) NOT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `accountancy_code` varchar(32) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_prelevement_bons`
--

CREATE TABLE `pnfq_prelevement_bons` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(12) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `amount` double DEFAULT 0,
  `statut` smallint(6) DEFAULT 0,
  `credite` smallint(6) DEFAULT 0,
  `note` text DEFAULT NULL,
  `date_trans` datetime DEFAULT NULL,
  `method_trans` smallint(6) DEFAULT NULL,
  `fk_user_trans` int(11) DEFAULT NULL,
  `date_credit` datetime DEFAULT NULL,
  `fk_user_credit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_prelevement_facture`
--

CREATE TABLE `pnfq_prelevement_facture` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `fk_prelevement_lignes` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_prelevement_facture_demande`
--

CREATE TABLE `pnfq_prelevement_facture_demande` (
  `rowid` int(11) NOT NULL,
  `fk_facture` int(11) NOT NULL,
  `amount` double NOT NULL,
  `date_demande` datetime NOT NULL,
  `traite` smallint(6) DEFAULT 0,
  `date_traite` datetime DEFAULT NULL,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_user_demande` int(11) NOT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_prelevement_facture_demande`
--

INSERT INTO `pnfq_prelevement_facture_demande` (`rowid`, `fk_facture`, `amount`, `date_demande`, `traite`, `date_traite`, `fk_prelevement_bons`, `fk_user_demande`, `code_banque`, `code_guichet`, `number`, `cle_rib`) VALUES
(1, 79, 1596, '2020-07-24 07:50:56', 0, NULL, NULL, 1, '', '', '', '');

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

--
-- Structure de la table `pnfq_prelevement_lignes`
--

CREATE TABLE `pnfq_prelevement_lignes` (
  `rowid` int(11) NOT NULL,
  `fk_prelevement_bons` int(11) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `statut` smallint(6) DEFAULT 0,
  `client_nom` varchar(255) DEFAULT NULL,
  `amount` double DEFAULT 0,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `note` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_prelevement_rejet`
--

CREATE TABLE `pnfq_prelevement_rejet` (
  `rowid` int(11) NOT NULL,
  `fk_prelevement_lignes` int(11) DEFAULT NULL,
  `date_rejet` datetime DEFAULT NULL,
  `motif` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `fk_user_creation` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `afacturer` tinyint(4) DEFAULT 0,
  `fk_facture` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_printer_ipp`
--

CREATE TABLE `pnfq_printer_ipp` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_uri` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT 1,
  `module` varchar(16) NOT NULL,
  `login` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_printing`
--

CREATE TABLE `pnfq_printing` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `printer_name` text NOT NULL,
  `printer_location` text NOT NULL,
  `printer_id` varchar(255) NOT NULL,
  `copy` int(11) NOT NULL DEFAULT 1,
  `module` varchar(16) NOT NULL,
  `driver` varchar(16) NOT NULL,
  `userid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_product`
--

CREATE TABLE `pnfq_product` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(128) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(128) DEFAULT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `virtual` tinyint(4) NOT NULL DEFAULT 0,
  `fk_parent` int(11) DEFAULT 0,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `customcode` varchar(32) DEFAULT NULL,
  `fk_country` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) NOT NULL DEFAULT '0',
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) NOT NULL DEFAULT '0',
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT 1,
  `tobuy` tinyint(4) DEFAULT 1,
  `onportal` smallint(6) DEFAULT 0,
  `tobatch` tinyint(4) NOT NULL DEFAULT 0,
  `fk_product_type` int(11) DEFAULT 0,
  `duration` varchar(6) DEFAULT NULL,
  `seuil_stock_alerte` int(11) DEFAULT 0,
  `url` varchar(255) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT NULL,
  `accountancy_code_sell` varchar(32) DEFAULT NULL,
  `accountancy_code_buy` varchar(32) DEFAULT NULL,
  `partnumber` varchar(32) DEFAULT NULL,
  `weight` float DEFAULT NULL,
  `weight_units` tinyint(4) DEFAULT NULL,
  `length` float DEFAULT NULL,
  `length_units` tinyint(4) DEFAULT NULL,
  `surface` float DEFAULT NULL,
  `surface_units` tinyint(4) DEFAULT NULL,
  `volume` float DEFAULT NULL,
  `volume_units` tinyint(4) DEFAULT NULL,
  `stock` double DEFAULT NULL,
  `pmp` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fifo` double(24,8) DEFAULT NULL,
  `lifo` double(24,8) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `finished` tinyint(4) DEFAULT NULL,
  `hidden` tinyint(4) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `desiredstock` int(11) DEFAULT 0,
  `fk_price_expression` int(11) DEFAULT NULL,
  `fk_unit` int(11) DEFAULT NULL,
  `cost_price` double(24,8) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `price_autogen` smallint(6) DEFAULT 0,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT '',
  `width` float DEFAULT NULL,
  `width_units` tinyint(4) DEFAULT NULL,
  `height` float DEFAULT NULL,
  `height_units` tinyint(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_product`
--

INSERT INTO `pnfq_product` (`rowid`, `ref`, `entity`, `ref_ext`, `datec`, `tms`, `virtual`, `fk_parent`, `label`, `description`, `note`, `customcode`, `fk_country`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `recuperableonly`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `fk_user_author`, `fk_user_modif`, `tosell`, `tobuy`, `onportal`, `tobatch`, `fk_product_type`, `duration`, `seuil_stock_alerte`, `url`, `barcode`, `fk_barcode_type`, `accountancy_code_sell`, `accountancy_code_buy`, `partnumber`, `weight`, `weight_units`, `length`, `length_units`, `surface`, `surface_units`, `volume`, `volume_units`, `stock`, `pmp`, `fifo`, `lifo`, `canvas`, `finished`, `hidden`, `import_key`, `desiredstock`, `fk_price_expression`, `fk_unit`, `cost_price`, `default_vat_code`, `price_autogen`, `note_public`, `model_pdf`, `width`, `width_units`, `height`, `height_units`) VALUES
(1, 'AR0002', 1, NULL, '2018-03-13 22:37:44', '2018-03-13 22:37:44', 0, 0, 'Redevance 2% Grossite', 'Redevance 2% Grossite', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(2, 'AR0003', 1, NULL, '2018-03-13 22:38:42', '2018-03-13 22:38:42', 0, 0, 'Redevance 3 %', 'Redevance 3 %', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(3, '0004', 1, NULL, '2018-03-13 22:39:19', '2018-03-13 22:39:19', 0, 0, 'Redevance 2,6 %', 'Redevance 2,6 %', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(4, 'création_packaging', 1, NULL, '2018-07-27 09:56:38', '2018-07-27 09:56:38', 0, 0, 'création packaging', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(5, 'commercialisation', 1, NULL, '2018-07-27 09:57:28', '2018-07-27 09:57:28', 0, 0, 'commercialisation', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(6, 'prospection', 1, NULL, '2018-07-27 09:57:59', '2018-07-27 09:57:59', 0, 0, 'prospection', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(7, 'création_site_internet', 1, NULL, '2018-07-27 09:58:49', '2018-07-27 09:58:49', 0, 0, 'création site internet', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(8, 'service_commercial', 1, NULL, '2018-07-27 10:00:19', '2018-07-27 10:00:19', 0, 0, 'service commercial', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(9, 'service_bureautique', 1, NULL, '2018-07-27 10:01:43', '2018-07-27 10:01:43', 0, 0, 'service bureautique', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(10, 'service_divers', 1, NULL, '2018-07-27 10:13:51', '2018-07-27 10:13:51', 0, 0, 'Plaquettes, dépliants et catalogue  ...', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(11, ' service', 1, NULL, '2018-07-27 10:25:25', '2018-07-27 10:25:25', 0, 0, 'participation /  mois-création packaging-service commercial-service bureautique - création site internet -  Plaquettes, dépliants et catalogue ...', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(12, '0001', 1, NULL, '2018-07-27 11:59:56', '2018-07-27 11:59:56', 0, 0, '- Analyser les besoins et les attentes', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(13, '0002', 1, NULL, '2018-07-27 12:00:42', '2018-07-27 12:00:42', 0, 0, '- Réalisation d\'un pré-diagnostic afin d\'évaluer la faisabilité et l\'opportunité de LHC', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(14, '0003', 1, NULL, '2018-07-27 12:01:17', '2019-01-06 17:02:15', 0, 0, '2 er acompt sur contrat de cession des marques Dounia Halal Du 12 Mars 2019', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 0.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(15, '0005', 1, NULL, '2018-07-27 12:02:03', '2018-07-27 12:02:03', 0, 0, '- Mettre en place des méthodes de travail en organisant un comité de pilotage et des groupes de travail pour développer l\'activité de LHC ainsi que des indicateurs pour le suivi de l\'activité', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(16, '0006', 1, NULL, '2018-07-27 12:02:32', '2018-07-27 12:02:32', 0, 0, '- Définir et mettre en place une démarche commerciale', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(17, '0007', 1, NULL, '2018-07-27 12:06:25', '2018-07-27 12:06:54', 0, 0, 'Participation/mois', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(18, '01dounia', 1, NULL, '2018-08-08 09:10:32', '2018-08-08 09:10:32', 0, 0, 'dounia', '', '', '01', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 1, 0, '', 24, NULL, '123467890', NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', 1, 0, NULL, 36, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(19, 'comm', 1, NULL, '2018-09-14 14:58:33', '2018-09-14 15:06:36', 0, 0, 'comission', 'comission&nbsp;', 'comission', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 0.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(20, 'Prestation_Certification', 1, NULL, '2018-12-10 12:39:17', '2018-12-10 12:39:17', 0, 0, 'Prestation Certification', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(21, 'Prestation_Service', 1, NULL, '2018-12-18 20:47:21', '2018-12-18 20:47:21', 0, 0, 'Prestation Service', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(22, 'a_compte_sur_le_cession_de_marque_Dounia_Halal', 1, NULL, '2019-01-15 12:23:38', '2019-01-15 12:23:38', 0, 0, 'a compte sur le cession de marque Dounia Halal', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'TTC', 0.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(23, 'déplacement', 1, NULL, '2019-03-05 08:52:45', '2019-03-05 08:52:45', 0, 0, 'prestation frais déplacement pour audite', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(24, 'étiquette', 1, NULL, '2019-04-29 10:03:00', '2019-04-29 10:03:00', 0, 0, 'étiquette', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(25, 'carte_visite', 1, NULL, '2019-04-29 10:03:22', '2019-04-29 10:03:22', 0, 0, 'carte visite', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(26, 'catalogue', 1, NULL, '2019-04-29 10:03:41', '2019-04-29 10:03:41', 0, 0, 'catalogue', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(27, 'flyer', 1, NULL, '2019-04-29 10:06:12', '2019-04-29 10:06:12', 0, 0, 'flyer', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(28, 'redevance_7%', 1, NULL, '2019-04-29 10:41:09', '2019-04-29 10:41:09', 0, 0, 'redevance 7%', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(29, 'commission_9%', 1, NULL, '2019-04-29 10:41:40', '2019-04-29 10:41:40', 0, 0, 'commission 9%', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(30, 'commission_6%', 1, NULL, '2019-04-29 10:42:11', '2019-04-29 10:42:11', 0, 0, 'commission 6%', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(31, 'commission_3%', 1, NULL, '2019-04-29 10:42:36', '2019-04-29 10:42:36', 0, 0, 'commission 3%', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(32, 'site_internet', 1, NULL, '2019-04-29 11:00:03', '2019-04-29 11:00:04', 0, 0, 'site internet', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(33, 'vidéo', 1, NULL, '2019-04-29 11:01:19', '2019-04-29 11:01:20', 0, 0, 'vidéo', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(34, 'Référencement', 1, NULL, '2019-04-29 11:01:48', '2019-04-29 11:01:48', 0, 0, 'Référencement', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(35, 'bazar', 1, NULL, '2019-06-01 13:21:58', '2019-06-01 13:21:58', 0, 0, 'bazz', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(36, 'Diagnostic_et_mise_en_place_d’un_plan_d’action.', 1, NULL, '2019-12-26 11:15:23', '2019-12-26 11:17:57', 0, 0, 'cer dmp', '', '', '', NULL, 700.00000000, 840.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(37, 'Audit_de_certification', 1, NULL, '2019-12-26 11:16:22', '2019-12-26 11:18:21', 0, 0, 'cer ac', '', '', '', NULL, 700.00000000, 840.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(38, 'Audit_de_verification', 1, NULL, '2019-12-26 11:17:08', '2019-12-26 11:17:24', 0, 0, 'cer av', '', '', '', NULL, 700.00000000, 840.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(39, 'frais_déplacement', 1, NULL, '2019-12-26 11:19:57', '2019-12-26 11:19:57', 0, 0, 'cer fd', '', '', '', NULL, 500.00000000, 600.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(40, 'Abonnement_annuelle', 1, NULL, '2019-12-26 11:22:40', '2019-12-26 11:22:40', 0, 0, 'cer aa', '', '', '', NULL, 1200.00000000, 1440.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(41, 'Honoraire_Dreamweaver__conception__infographe_et_frais_postaux.', 1, NULL, '2019-12-26 11:46:53', '2019-12-26 11:51:43', 0, 0, 'cer', '', '', '', NULL, 400.00000000, 480.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(42, 'boyaux_22_24_masse_AA_de_90_m_18.00', 1, NULL, '2019-12-31 08:59:01', '2019-12-31 08:59:01', 0, 0, 'boyaux_22_24 masse AA de 90 m 18.00', '', '', '', NULL, 17.00000000, 17.93500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(43, 'viande_diver', 1, NULL, '2019-12-31 11:27:54', '2019-12-31 11:27:54', 0, 0, 'diver', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(44, 'TRANSPORT', 1, NULL, '2020-08-21 15:27:47', '2020-08-21 15:27:47', 0, 0, 'Tran', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(45, 'HOTEL', 1, NULL, '2020-08-21 15:28:24', '2020-08-21 15:28:24', 0, 0, 'hot', '', '', '', NULL, 70.00000000, 84.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(46, 'Prestation_deplacement', 1, NULL, '2020-08-21 15:31:47', '2020-08-21 15:33:15', 0, 0, 'audit', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(47, 'cristaline', 1, NULL, '2020-09-01 13:50:13', '2020-09-01 13:52:48', 0, 0, 'cris', 'kkk', '', '', NULL, 1.00000000, 1.05500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, '3274080005003', 2, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(48, 'demarchehaccp', 1, NULL, '2020-11-06 11:14:14', '2020-11-06 11:14:14', 0, 0, 'demhac', '', '', '', NULL, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(49, 'securiteetsante', 1, NULL, '2020-11-06 11:15:09', '2020-11-06 11:15:09', 0, 0, 'secsan', '', '', '', NULL, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(50, 'tracabilite', 1, NULL, '2020-11-06 11:15:39', '2020-11-06 11:15:39', 0, 0, 'trac', '', '', '', NULL, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(51, 'sécurité_et_santé_au_travaille', 1, NULL, '2020-11-09 09:43:27', '2020-11-09 09:43:27', 0, 0, 'sst', '', '', '', NULL, 800.00000000, 960.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(52, 'le_systemetracabilité_agroalimentaire', 1, NULL, '2020-11-09 09:45:12', '2020-11-09 09:45:12', 0, 0, 'sta', '', '', '', NULL, 800.00000000, 960.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(53, 'le_demarche_HACCP', 1, NULL, '2020-11-09 09:46:48', '2020-11-09 09:46:48', 0, 0, 'ldh', '', '', '', NULL, 800.00000000, 960.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(54, 'blanc_de_poulet_cuits_130', 1, NULL, '2021-06-12 06:59:20', '2021-06-12 06:59:20', 0, 0, '11384', '', '', '', NULL, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(55, 'dind_baco_160', 1, NULL, '2021-06-12 06:59:39', '2021-06-12 07:00:39', 0, 0, '12288', '', '', '', NULL, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 0, 0, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(56, 'blanc_de_poulet_a_la_maroc', 1, NULL, '2021-06-12 07:00:58', '2021-06-12 07:01:26', 0, 0, '16384', '', '', '', NULL, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 0, 0, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(57, 'roulad_aux_olive_160', 1, NULL, '2021-06-12 07:01:31', '2021-06-12 07:01:59', 0, 0, '21484', '', '', '', NULL, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 0, 0, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(58, 'blanc_de_poulet_a_l_algerie', 1, NULL, '2021-06-12 07:02:15', '2021-06-12 07:02:49', 0, 0, '86284', '', '', '', NULL, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 0, 0, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(59, 'lardenette_150', 1, NULL, '2021-06-12 07:02:52', '2021-06-12 07:03:20', 0, 0, '87284', '', '', '', NULL, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 0, 0, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(60, 'Heb', 1, NULL, '2021-10-01 04:22:39', '2021-10-01 04:22:39', 0, 0, 'hébergement pro', 'h&eacute;bergement pro annuelle&nbsp;', '', '', NULL, 50.00000000, 60.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(61, 'vetement', 1, NULL, '2021-12-24 08:39:22', '2021-12-24 08:39:22', 0, 0, 'v', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(62, 'monte', 1, NULL, '2021-12-24 08:39:39', '2021-12-24 08:39:39', 0, 0, 'm', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(63, 'Formation', 1, NULL, '2022-05-19 18:08:25', '2022-05-19 18:10:16', 0, 0, 'for', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(64, 'Formation0', 1, NULL, '2022-05-19 18:39:56', '2022-05-19 18:39:56', 0, 0, 'f', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'TTC', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(65, 'haricot', 1, NULL, '2023-05-08 17:13:04', '2023-05-08 17:13:04', 0, 0, 'harocot blanc', '', '', '', NULL, 1.00000000, 1.05500000, 0.00000000, 0.00000000, 'HT', 5.500, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 0, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, 0, NULL, 0, NULL, 0, NULL, 0, NULL, 0.00000000, NULL, NULL, '', NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(66, 'united_786', 1, NULL, '2023-12-22 20:00:44', '2023-12-22 20:00:44', 0, 0, 'united 786', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(67, 'Certification', 1, NULL, '2024-02-05 18:39:04', '2024-02-05 18:39:04', 0, 0, 'CertiTRACE Halal 786', '', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(68, 'Certification_certitrace_halal', 1, NULL, '2024-06-11 14:34:22', '2024-06-11 14:34:22', 0, 0, '89+', 'prestation compet de certification halal', '', '', NULL, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'TTC', 0.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL),
(69, 'prestation', 1, NULL, '2024-06-11 15:04:09', '2024-06-11 15:04:09', 0, 0, 'halal 786', 'prestation certitrace halal 786', '', '', NULL, 0.05000000, 0.05000000, 0.00000000, 0.00000000, 'TTC', 0.000, 0, 0.000, '0', 0.000, '0', 1, 1, 1, 1, 0, 0, 1, '', NULL, NULL, NULL, NULL, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00000000, NULL, NULL, '', 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '', NULL, NULL, NULL, NULL);

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

--
-- Structure de la table `pnfq_product_association`
--

CREATE TABLE `pnfq_product_association` (
  `rowid` int(11) NOT NULL,
  `fk_product_pere` int(11) NOT NULL DEFAULT 0,
  `fk_product_fils` int(11) NOT NULL DEFAULT 0,
  `qty` double DEFAULT NULL,
  `incdec` int(11) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_attribute`
--

CREATE TABLE `pnfq_product_attribute` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(255) NOT NULL,
  `label` varchar(255) NOT NULL,
  `rang` int(11) NOT NULL DEFAULT 0,
  `entity` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_product_attribute_combination`
--

CREATE TABLE `pnfq_product_attribute_combination` (
  `rowid` int(11) NOT NULL,
  `fk_product_parent` int(11) NOT NULL,
  `fk_product_child` int(11) NOT NULL,
  `variation_price` float NOT NULL,
  `variation_price_percentage` int(11) DEFAULT NULL,
  `variation_weight` float NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_product_attribute_combination2val`
--

CREATE TABLE `pnfq_product_attribute_combination2val` (
  `rowid` int(11) NOT NULL,
  `fk_prod_combination` int(11) NOT NULL,
  `fk_prod_attr` int(11) NOT NULL,
  `fk_prod_attr_val` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_product_attribute_value`
--

CREATE TABLE `pnfq_product_attribute_value` (
  `rowid` int(11) NOT NULL,
  `fk_product_attribute` int(11) NOT NULL,
  `ref` varchar(255) DEFAULT NULL,
  `value` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_product_batch`
--

CREATE TABLE `pnfq_product_batch` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product_stock` int(11) NOT NULL,
  `eatby` datetime DEFAULT NULL,
  `sellby` datetime DEFAULT NULL,
  `batch` varchar(30) NOT NULL,
  `qty` double NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_customer_price`
--

CREATE TABLE `pnfq_product_customer_price` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `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',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_customer_price_log`
--

CREATE TABLE `pnfq_product_customer_price_log` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `price_ttc` double(24,8) DEFAULT 0.00000000,
  `price_min` double(24,8) DEFAULT 0.00000000,
  `price_min_ttc` double(24,8) DEFAULT 0.00000000,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) DEFAULT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `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',
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_extrafields`
--

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

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

--
-- Structure de la table `pnfq_product_fournisseur_price`
--

CREATE TABLE `pnfq_product_fournisseur_price` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `ref_fourn` varchar(30) DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT 0,
  `remise` double NOT NULL DEFAULT 0,
  `unitprice` double(24,8) DEFAULT 0.00000000,
  `charges` double(24,8) DEFAULT 0.00000000,
  `unitcharges` double(24,8) DEFAULT 0.00000000,
  `tva_tx` double(6,3) NOT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `info_bits` int(11) NOT NULL DEFAULT 0,
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_supplier_price_expression` int(11) DEFAULT NULL,
  `delivery_time_days` int(11) DEFAULT NULL,
  `supplier_reputation` varchar(10) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_price` double(24,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_fournisseur_price_log`
--

CREATE TABLE `pnfq_product_fournisseur_price_log` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `fk_product_fournisseur` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_price` double(24,8) DEFAULT NULL,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_lang`
--

CREATE TABLE `pnfq_product_lang` (
  `rowid` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL DEFAULT 0,
  `lang` varchar(5) NOT NULL DEFAULT '0',
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `note` text DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_lot`
--

CREATE TABLE `pnfq_product_lot` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `datec` 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,
  `import_key` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_product_lot_extrafields`
--

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

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

--
-- Structure de la table `pnfq_product_price`
--

CREATE TABLE `pnfq_product_price` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `date_price` datetime DEFAULT NULL,
  `price_level` smallint(6) DEFAULT 1,
  `price` double(24,8) DEFAULT NULL,
  `price_ttc` double(24,8) DEFAULT NULL,
  `price_min` double(24,8) DEFAULT NULL,
  `price_min_ttc` double(24,8) DEFAULT NULL,
  `price_base_type` varchar(3) DEFAULT 'HT',
  `tva_tx` double(6,3) NOT NULL,
  `default_vat_code` varchar(10) DEFAULT NULL,
  `recuperableonly` int(11) NOT NULL DEFAULT 0,
  `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',
  `fk_user_author` int(11) DEFAULT NULL,
  `tosell` tinyint(4) DEFAULT 1,
  `price_by_qty` int(11) NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_price_expression` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `multicurrency_price` double(24,8) DEFAULT 0.00000000,
  `multicurrency_tx` double(24,8) DEFAULT 1.00000000,
  `multicurrency_price_ttc` double(24,8) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_product_price`
--

INSERT INTO `pnfq_product_price` (`rowid`, `entity`, `tms`, `fk_product`, `date_price`, `price_level`, `price`, `price_ttc`, `price_min`, `price_min_ttc`, `price_base_type`, `tva_tx`, `default_vat_code`, `recuperableonly`, `localtax1_tx`, `localtax1_type`, `localtax2_tx`, `localtax2_type`, `fk_user_author`, `tosell`, `price_by_qty`, `import_key`, `fk_price_expression`, `fk_multicurrency`, `multicurrency_code`, `multicurrency_price`, `multicurrency_tx`, `multicurrency_price_ttc`) VALUES
(1, 1, '2018-03-13 22:37:44', 1, '2018-03-13 22:37:44', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(2, 1, '2018-03-13 22:38:42', 2, '2018-03-13 22:38:42', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(3, 1, '2018-03-13 22:39:19', 3, '2018-03-13 22:39:19', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(4, 1, '2018-07-27 09:56:38', 4, '2018-07-27 09:56:38', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(5, 1, '2018-07-27 09:57:28', 5, '2018-07-27 09:57:28', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(6, 1, '2018-07-27 09:57:59', 6, '2018-07-27 09:57:59', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(7, 1, '2018-07-27 09:58:49', 7, '2018-07-27 09:58:49', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(8, 1, '2018-07-27 10:00:19', 8, '2018-07-27 10:00:19', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(9, 1, '2018-07-27 10:01:43', 9, '2018-07-27 10:01:43', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(10, 1, '2018-07-27 10:13:51', 10, '2018-07-27 10:13:51', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(11, 1, '2018-07-27 10:25:25', 11, '2018-07-27 10:25:25', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(12, 1, '2018-07-27 11:59:56', 12, '2018-07-27 11:59:56', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(13, 1, '2018-07-27 12:00:42', 13, '2018-07-27 12:00:42', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(15, 1, '2018-07-27 12:02:03', 15, '2018-07-27 12:02:03', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(16, 1, '2018-07-27 12:02:32', 16, '2018-07-27 12:02:32', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(17, 1, '2018-07-27 12:06:25', 17, '2018-07-27 12:06:25', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(18, 1, '2018-08-08 09:10:32', 18, '2018-08-08 09:10:32', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(19, 1, '2018-09-14 14:58:33', 19, '2018-09-14 14:58:33', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 0.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(20, 1, '2018-12-10 12:39:17', 20, '2018-12-10 12:39:17', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(21, 1, '2018-12-18 20:47:21', 21, '2018-12-18 20:47:21', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(22, 1, '2019-01-06 16:37:07', 14, '2019-01-06 16:37:07', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 0.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(23, 1, '2019-01-15 12:23:38', 22, '2019-01-15 12:23:38', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'TTC', 0.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(24, 1, '2019-03-05 08:52:45', 23, '2019-03-05 08:52:45', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(25, 1, '2019-04-29 10:03:00', 24, '2019-04-29 10:03:00', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(26, 1, '2019-04-29 10:03:22', 25, '2019-04-29 10:03:22', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(27, 1, '2019-04-29 10:03:41', 26, '2019-04-29 10:03:41', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(28, 1, '2019-04-29 10:06:12', 27, '2019-04-29 10:06:12', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(29, 1, '2019-04-29 10:41:09', 28, '2019-04-29 10:41:09', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(30, 1, '2019-04-29 10:41:40', 29, '2019-04-29 10:41:40', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(31, 1, '2019-04-29 10:42:11', 30, '2019-04-29 10:42:11', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(32, 1, '2019-04-29 10:42:36', 31, '2019-04-29 10:42:36', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(33, 1, '2019-04-29 11:00:03', 32, '2019-04-29 11:00:03', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(34, 1, '2019-04-29 11:01:20', 33, '2019-04-29 11:01:19', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(35, 1, '2019-04-29 11:01:48', 34, '2019-04-29 11:01:48', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(36, 1, '2019-06-01 13:21:58', 35, '2019-06-01 13:21:58', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(37, 1, '2019-12-26 11:15:23', 36, '2019-12-26 11:15:23', 1, 700.00000000, 840.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(38, 1, '2019-12-26 11:16:22', 37, '2019-12-26 11:16:22', 1, 700.00000000, 840.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(39, 1, '2019-12-26 11:17:08', 38, '2019-12-26 11:17:08', 1, 700.00000000, 840.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(40, 1, '2019-12-26 11:19:57', 39, '2019-12-26 11:19:57', 1, 500.00000000, 600.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(41, 1, '2019-12-26 11:22:40', 40, '2019-12-26 11:22:40', 1, 1200.00000000, 1440.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(42, 1, '2019-12-26 11:46:53', 41, '2019-12-26 11:46:53', 1, 400.00000000, 480.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(43, 1, '2019-12-31 08:59:01', 42, '2019-12-31 08:59:01', 1, 17.00000000, 17.93500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(44, 1, '2019-12-31 11:27:54', 43, '2019-12-31 11:27:54', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(45, 1, '2020-08-21 15:27:47', 44, '2020-08-21 15:27:47', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(46, 1, '2020-08-21 15:28:24', 45, '2020-08-21 15:28:24', 1, 70.00000000, 84.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(47, 1, '2020-08-21 15:31:47', 46, '2020-08-21 15:31:47', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(48, 1, '2020-09-01 13:50:13', 47, '2020-09-01 13:50:13', 1, 1.00000000, 1.05500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(49, 1, '2020-11-06 11:14:14', 48, '2020-11-06 11:14:14', 1, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(50, 1, '2020-11-06 11:15:09', 49, '2020-11-06 11:15:09', 1, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(51, 1, '2020-11-06 11:15:39', 50, '2020-11-06 11:15:39', 1, 1000.00000000, 1200.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(52, 1, '2020-11-09 09:43:27', 51, '2020-11-09 09:43:27', 1, 800.00000000, 960.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(53, 1, '2020-11-09 09:45:12', 52, '2020-11-09 09:45:12', 1, 800.00000000, 960.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(54, 1, '2020-11-09 09:46:48', 53, '2020-11-09 09:46:48', 1, 800.00000000, 960.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(55, 1, '2021-06-12 06:59:20', 54, '2021-06-12 06:59:20', 1, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(56, 1, '2021-06-12 06:59:39', 55, '2021-06-12 06:59:39', 1, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(57, 1, '2021-06-12 07:00:58', 56, '2021-06-12 07:00:58', 1, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(58, 1, '2021-06-12 07:01:31', 57, '2021-06-12 07:01:31', 1, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(59, 1, '2021-06-12 07:02:15', 58, '2021-06-12 07:02:15', 1, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(60, 1, '2021-06-12 07:02:52', 59, '2021-06-12 07:02:52', 1, 1.30000000, 1.37150000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 0, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(61, 1, '2021-10-01 04:22:39', 60, '2021-10-01 04:22:39', 1, 50.00000000, 60.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(62, 1, '2021-12-24 08:39:22', 61, '2021-12-24 08:39:22', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(63, 1, '2021-12-24 08:39:39', 62, '2021-12-24 08:39:39', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(65, 1, '2022-05-19 18:10:16', 63, '2022-05-19 18:10:16', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(66, 1, '2022-05-19 18:39:56', 64, '2022-05-19 18:39:56', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'TTC', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(67, 1, '2023-05-08 17:13:04', 65, '2023-05-08 17:13:04', 1, 1.00000000, 1.05500000, 0.00000000, 0.00000000, 'HT', 5.500, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(68, 1, '2023-12-22 20:00:44', 66, '2023-12-22 20:00:44', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(69, 1, '2024-02-05 18:39:04', 67, '2024-02-05 18:39:04', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'HT', 20.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(70, 1, '2024-06-11 14:34:22', 68, '2024-06-11 14:34:22', 1, 0.00000000, 0.00000000, 0.00000000, 0.00000000, 'TTC', 0.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL),
(71, 1, '2024-06-11 15:04:09', 69, '2024-06-11 15:04:09', 1, 0.05000000, 0.05000000, 0.00000000, 0.00000000, 'TTC', 0.000, NULL, 0, 0.000, '0', 0.000, '0', 1, 1, 0, NULL, NULL, NULL, NULL, 0.00000000, 1.00000000, NULL);

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

--
-- Structure de la table `pnfq_product_pricerules`
--

CREATE TABLE `pnfq_product_pricerules` (
  `rowid` int(11) NOT NULL,
  `level` int(11) NOT NULL,
  `fk_level` int(11) NOT NULL,
  `var_percent` float NOT NULL,
  `var_min_percent` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_product_price_by_qty`
--

CREATE TABLE `pnfq_product_price_by_qty` (
  `rowid` int(11) NOT NULL,
  `fk_product_price` int(11) NOT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `quantity` double DEFAULT NULL,
  `remise_percent` double NOT NULL DEFAULT 0,
  `remise` double NOT NULL DEFAULT 0,
  `unitprice` double(24,8) DEFAULT 0.00000000,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_stock`
--

CREATE TABLE `pnfq_product_stock` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `reel` double DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_product_warehouse_properties`
--

CREATE TABLE `pnfq_product_warehouse_properties` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `seuil_stock_alerte` int(11) DEFAULT 0,
  `desiredstock` int(11) DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_projet`
--

CREATE TABLE `pnfq_projet` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `datec` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dateo` date DEFAULT NULL,
  `datee` date DEFAULT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `title` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `fk_user_creat` int(11) NOT NULL,
  `public` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `fk_opp_status` int(11) DEFAULT NULL,
  `opp_percent` double(5,2) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `budget_amount` double(24,8) DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `fk_user_close` int(11) DEFAULT NULL,
  `opp_amount` double(24,8) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_projet`
--

INSERT INTO `pnfq_projet` (`rowid`, `fk_soc`, `datec`, `tms`, `dateo`, `datee`, `ref`, `entity`, `title`, `description`, `fk_user_creat`, `public`, `fk_statut`, `fk_opp_status`, `opp_percent`, `note_private`, `note_public`, `model_pdf`, `budget_amount`, `date_close`, `fk_user_close`, `opp_amount`, `fk_user_modif`, `import_key`) VALUES
(1, 3, '2018-08-08', '2018-08-08 09:35:03', '2018-08-08', '2018-08-08', 'PJ1808-0001', 1, 'rrd', '', 1, 0, 0, 6, 100.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- Structure de la table `pnfq_projet_extrafields`
--

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

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

--
-- Structure de la table `pnfq_projet_task`
--

CREATE TABLE `pnfq_projet_task` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(50) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_projet` int(11) NOT NULL,
  `fk_task_parent` int(11) NOT NULL DEFAULT 0,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `dateo` datetime DEFAULT NULL,
  `datee` datetime DEFAULT NULL,
  `datev` datetime DEFAULT NULL,
  `label` varchar(255) NOT NULL,
  `description` text DEFAULT NULL,
  `duration_effective` double DEFAULT 0,
  `planned_workload` double DEFAULT 0,
  `progress` int(11) DEFAULT 0,
  `priority` int(11) DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `rang` int(11) DEFAULT 0,
  `model_pdf` varchar(255) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_projet_task_extrafields`
--

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

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

--
-- Structure de la table `pnfq_projet_task_time`
--

CREATE TABLE `pnfq_projet_task_time` (
  `rowid` int(11) NOT NULL,
  `fk_task` int(11) NOT NULL,
  `task_date` date DEFAULT NULL,
  `task_datehour` datetime DEFAULT NULL,
  `task_date_withhour` int(11) DEFAULT 0,
  `task_duration` double DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `thm` double(24,8) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `invoice_line_id` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `datec` date DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_propal`
--

CREATE TABLE `pnfq_propal` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `ref_client` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `fin_validite` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `price` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total` double(24,8) DEFAULT 0.00000000,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `fk_availability` int(11) DEFAULT NULL,
  `fk_input_reason` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_delivery_address` int(11) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_propaldet`
--

CREATE TABLE `pnfq_propaldet` (
  `rowid` int(11) NOT NULL,
  `fk_propal` int(11) NOT NULL,
  `fk_parent_line` int(11) DEFAULT NULL,
  `fk_product` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `fk_remise_except` int(11) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT 0.000,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `product_type` int(11) DEFAULT 0,
  `date_start` datetime DEFAULT NULL,
  `date_end` datetime DEFAULT NULL,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `fk_unit` int(11) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_propaldet_extrafields`
--

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

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

--
-- Structure de la table `pnfq_propal_extrafields`
--

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

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

--
-- Structure de la table `pnfq_propal_merge_pdf_product`
--

CREATE TABLE `pnfq_propal_merge_pdf_product` (
  `rowid` int(11) NOT NULL,
  `fk_product` int(11) NOT NULL,
  `file_name` varchar(200) NOT NULL,
  `lang` varchar(5) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_mod` int(11) NOT NULL,
  `datec` datetime NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_resource`
--

CREATE TABLE `pnfq_resource` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(255) DEFAULT NULL,
  `asset_number` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `fk_code_type_resource` varchar(32) DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_resource_extrafields`
--

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

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

--
-- Structure de la table `pnfq_rights_def`
--

CREATE TABLE `pnfq_rights_def` (
  `id` int(11) NOT NULL DEFAULT 0,
  `libelle` varchar(255) DEFAULT NULL,
  `module` varchar(64) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `perms` varchar(50) DEFAULT NULL,
  `subperms` varchar(50) DEFAULT NULL,
  `type` varchar(1) DEFAULT NULL,
  `bydefault` tinyint(4) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;



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

--
-- Structure de la table `pnfq_societe`
--

CREATE TABLE `pnfq_societe` (
  `rowid` int(11) NOT NULL,
  `nom` varchar(128) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(128) DEFAULT NULL,
  `ref_int` varchar(60) DEFAULT NULL,
  `statut` tinyint(4) DEFAULT 0,
  `parent` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `status` tinyint(4) DEFAULT 1,
  `code_client` varchar(24) DEFAULT NULL,
  `code_fournisseur` varchar(24) DEFAULT NULL,
  `code_compta` varchar(24) DEFAULT NULL,
  `code_compta_fournisseur` varchar(24) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT 0,
  `fk_pays` int(11) DEFAULT 0,
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `fk_effectif` int(11) DEFAULT 0,
  `fk_typent` int(11) DEFAULT 0,
  `fk_forme_juridique` int(11) DEFAULT 0,
  `fk_currency` varchar(3) DEFAULT NULL,
  `siren` varchar(128) DEFAULT NULL,
  `siret` varchar(128) DEFAULT NULL,
  `ape` varchar(128) DEFAULT NULL,
  `idprof4` varchar(128) DEFAULT NULL,
  `idprof5` varchar(128) DEFAULT NULL,
  `idprof6` varchar(128) DEFAULT NULL,
  `tva_intra` varchar(20) DEFAULT NULL,
  `capital` double DEFAULT NULL,
  `fk_stcomm` int(11) NOT NULL DEFAULT 0,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `prefix_comm` varchar(5) DEFAULT NULL,
  `client` tinyint(4) DEFAULT 0,
  `fournisseur` tinyint(4) DEFAULT 0,
  `supplier_account` varchar(32) DEFAULT NULL,
  `fk_prospectlevel` varchar(12) DEFAULT NULL,
  `customer_bad` tinyint(4) DEFAULT 0,
  `customer_rate` double DEFAULT 0,
  `supplier_rate` double DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `remise_client` double DEFAULT 0,
  `mode_reglement` tinyint(4) DEFAULT NULL,
  `cond_reglement` tinyint(4) DEFAULT NULL,
  `mode_reglement_supplier` tinyint(4) DEFAULT NULL,
  `cond_reglement_supplier` tinyint(4) DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `tva_assuj` tinyint(4) DEFAULT 1,
  `localtax1_assuj` tinyint(4) DEFAULT 0,
  `localtax1_value` double(6,3) DEFAULT NULL,
  `localtax2_assuj` tinyint(4) DEFAULT 0,
  `localtax2_value` double(6,3) DEFAULT NULL,
  `barcode` varchar(255) DEFAULT NULL,
  `fk_barcode_type` int(11) DEFAULT 0,
  `price_level` int(11) DEFAULT NULL,
  `outstanding_limit` double(24,8) DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `logo` varchar(255) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `webservices_url` varchar(255) DEFAULT NULL,
  `webservices_key` varchar(128) DEFAULT NULL,
  `name_alias` varchar(128) DEFAULT NULL,
  `fk_incoterms` int(11) DEFAULT NULL,
  `location_incoterms` varchar(255) DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) DEFAULT NULL,
  `fk_account` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_societe`
--

INSERT INTO `pnfq_societe` (`rowid`, `nom`, `entity`, `ref_ext`, `ref_int`, `statut`, `parent`, `tms`, `datec`, `status`, `code_client`, `code_fournisseur`, `code_compta`, `code_compta_fournisseur`, `address`, `zip`, `town`, `fk_departement`, `fk_pays`, `phone`, `fax`, `url`, `email`, `skype`, `fk_effectif`, `fk_typent`, `fk_forme_juridique`, `fk_currency`, `siren`, `siret`, `ape`, `idprof4`, `idprof5`, `idprof6`, `tva_intra`, `capital`, `fk_stcomm`, `note_private`, `note_public`, `prefix_comm`, `client`, `fournisseur`, `supplier_account`, `fk_prospectlevel`, `customer_bad`, `customer_rate`, `supplier_rate`, `fk_user_creat`, `fk_user_modif`, `remise_client`, `mode_reglement`, `cond_reglement`, `mode_reglement_supplier`, `cond_reglement_supplier`, `fk_shipping_method`, `tva_assuj`, `localtax1_assuj`, `localtax1_value`, `localtax2_assuj`, `localtax2_value`, `barcode`, `fk_barcode_type`, `price_level`, `outstanding_limit`, `default_lang`, `logo`, `canvas`, `import_key`, `webservices_url`, `webservices_key`, `name_alias`, `fk_incoterms`, `location_incoterms`, `model_pdf`, `fk_multicurrency`, `multicurrency_code`, `fk_account`) VALUES
(1, 'Raynal & Roquelaure', 1, NULL, NULL, 0, NULL, '2018-03-14 06:36:10', '2018-03-13 22:36:19', 1, 'CU1803-0001', NULL, NULL, NULL, 'ZI Les Taillades', '12700', 'Capdenac-Gare', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, 2, 2, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 0, '', NULL),
(2, 'LHC', 1, NULL, NULL, 0, NULL, '2019-03-05 17:57:52', '2018-07-27 09:55:01', 1, 'CU1807-0002', NULL, NULL, NULL, '73 rue Gabriel Peri', '92700', 'COLOMBES', 94, 1, NULL, NULL, NULL, 'relais.sav@gmail.com', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL),
(3, 'Raynal & Roquelaure', 1, NULL, NULL, 0, NULL, '2018-10-02 21:02:46', '2018-08-08 09:18:35', 1, 'CU1808-0003', 'SU1808-0001', NULL, NULL, 'ZI Les Taillades', '12700', 'Capdenac-Gare', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 1, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Raynal & Roquelaure', 0, NULL, NULL, 1, 'EUR', NULL),
(4, 'FavoriPrint', 1, NULL, NULL, 0, NULL, '2018-09-14 14:54:02', '2018-09-14 14:54:02', 1, 'CU1809-0004', 'SU1809-0002', NULL, NULL, 'str ecaterina teododoroiu nr 22\r\nvoluntari llfov romania', '22', 'voluntari llfov', 0, 188, NULL, NULL, NULL, 'interprint2@yahoo.com', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 1, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL),
(5, 'INDENA', 1, NULL, NULL, 0, NULL, '2018-12-10 12:43:09', '2018-12-10 12:43:09', 1, 'CU1812-0005', NULL, NULL, NULL, '38 Avenue Gustave Eiffel', '37100', 'Tours', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'INDENA', 0, NULL, NULL, 1, 'EUR', NULL),
(6, 'Financière Cofigeo', 1, NULL, NULL, 0, NULL, '2019-03-03 20:48:03', '2019-03-03 20:38:02', 1, 'CU1903-0006', 'SU1903-0003', NULL, NULL, '2 rue du docteur Lombard', '92441', 'Issy les Moulineaux cedex', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 1, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Financière Cofigeo', 0, NULL, NULL, 1, 'EUR', NULL),
(7, 'Q-Food Ardenne SPRL', 1, NULL, NULL, 0, NULL, '2019-07-16 15:15:10', '2019-07-16 15:02:01', 1, 'CU1907-0007', NULL, NULL, NULL, 'Les Moussières, LGL 40', 'B - 6840', '6840 Neufchâteau', 0, 2, NULL, NULL, NULL, NULL, NULL, NULL, 2, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'QF', 0, NULL, NULL, 1, 'EUR', NULL),
(8, 'Interlots', 1, NULL, NULL, 0, NULL, '2019-07-17 10:59:33', '2019-07-17 10:59:33', 1, 'CU1907-0008', NULL, NULL, NULL, 'rue jean monnet', '60180', '60180 Nogent sur oise', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Interlots', 0, NULL, NULL, 1, 'EUR', NULL),
(9, 'TRAVAUX PHARMA', 1, NULL, NULL, 0, NULL, '2019-09-12 16:39:10', '2019-09-12 16:30:24', 1, 'CU1909-0009', NULL, NULL, NULL, '68 rue artistde de briand', '78130', 'les mureaux', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'travaux pharma', 0, NULL, NULL, 1, 'EUR', NULL),
(10, 'IBERLAMBS SL.  - CIF -  B45805017', 1, NULL, NULL, 0, NULL, '2020-01-03 10:15:36', '2019-12-26 11:31:55', 1, 'CU1912-0010', NULL, NULL, NULL, '42 C.P 45695 ALBERCHE DEL CAUDILLO (DOLE)', '45686', 'TOLEDO', 0, 4, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'B45805017', 0, NULL, NULL, 1, 'EUR', NULL),
(11, 'SAS STERIPURE', 1, NULL, NULL, 0, NULL, '2025-01-06 07:42:57', '2020-06-28 22:13:31', 1, 'CU2006-0011', NULL, NULL, NULL, '128 Avenue de la galerie de la mer', '13120', 'Gardanne', 0, 1, '+33(0)442330411', NULL, NULL, 'm.mermet@steripure.fr', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'SAS STERIPURE', 0, NULL, NULL, 1, 'EUR', NULL),
(12, 'Sacit SAVAS', 1, NULL, NULL, 0, NULL, '2020-08-28 20:27:03', '2020-08-28 20:19:46', 1, 'CU2008-0012', NULL, NULL, NULL, '19 RUE carnot', '92400', 'COURBEVOIE', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ss', 0, NULL, NULL, 1, 'EUR', NULL),
(14, 'teste 1', 1, NULL, NULL, 0, NULL, '2020-09-03 03:34:10', '2020-09-03 03:32:57', 1, 'CU2009-0014', NULL, NULL, NULL, '', NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL),
(15, 'teste 0', 1, NULL, NULL, 0, NULL, '2020-09-03 03:34:45', '2020-09-03 03:34:45', 1, 'CU2009-0015', NULL, NULL, NULL, '', NULL, NULL, 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL),
(16, 'sas n fes distribution', 1, NULL, NULL, 0, NULL, '2020-11-06 11:18:01', '2020-11-06 11:18:01', 1, 'CU2011-0016', NULL, NULL, NULL, '', '77130', 'montereau', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL),
(17, 'lopcommerce', 1, NULL, NULL, 0, NULL, '2020-11-09 09:40:43', '2020-11-09 09:40:43', 1, 'CU2011-0017', NULL, NULL, NULL, '9 rue du 5 septembre', '75002', 'paris', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'opc', 0, NULL, NULL, 1, 'EUR', NULL),
(18, 'AKTO - Réseau Intergros', 1, NULL, NULL, 0, NULL, '2020-12-03 08:09:45', '2020-12-03 08:09:45', 1, 'CU2012-0018', NULL, NULL, NULL, 'Immeuble Le Mercure - Bâtiment C\r\n13 boulevard Mont d\'Est - CS10022', '93192', 'NOISY-LE-GRAND Cedex', 0, 1, '0178371332', NULL, NULL, 'Edna.Antoine@akto.fr', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ari', 0, NULL, NULL, 1, 'EUR', NULL),
(19, 'ABDI ABDELLATIF', 1, NULL, NULL, 0, NULL, '2020-12-22 05:38:58', '2020-12-22 05:38:58', 1, 'CU2012-0019', NULL, NULL, NULL, '4 RUE AUGUSTE RENOIR', '95140', 'GARGES LES GONESSE', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'AA', 0, NULL, NULL, 1, 'EUR', NULL),
(20, 'DEMIR AHMET', 1, NULL, NULL, 0, NULL, '2020-12-22 05:41:44', '2020-12-22 05:41:44', 1, 'CU2012-0020', NULL, NULL, NULL, '51 AV JEAN JAURES', '93350', 'LE BOURGET', 0, 1, NULL, NULL, NULL, 'demirahmet92@gmail.com', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'DA', 0, NULL, NULL, 1, 'EUR', NULL),
(21, 'sarl california trade expresss- saha alam', 1, NULL, NULL, 0, NULL, '2020-12-30 15:04:52', '2020-12-30 14:43:25', 1, 'CU2012-0021', NULL, NULL, NULL, '17 avenue de la résistance', '93100', 'Montreuil', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'saha alam', 0, NULL, NULL, 1, 'EUR', NULL),
(22, 'YAZICI Sait', 1, NULL, NULL, 0, NULL, '2021-02-04 15:30:16', '2021-02-04 15:30:16', 1, 'CU2102-0022', NULL, NULL, NULL, '10 RUE louis joilleuux', NULL, NULL, 0, 1, NULL, '0662397304', NULL, 'sultan.market@hotmail.fr', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ys', 0, NULL, NULL, 1, 'EUR', NULL),
(23, 'CMD', 1, NULL, NULL, 0, NULL, '2021-06-12 06:55:39', '2021-06-12 06:54:25', 1, 'CU2106-0023', NULL, NULL, NULL, '54 avenue henri barbusse', '93700', 'DRANCY', 0, 1, '0660613961', NULL, NULL, 'gafouri@gmail.com', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'cmd', 0, NULL, NULL, 1, 'EUR', NULL),
(24, 'KEBCHI', 1, NULL, NULL, 0, NULL, '2021-07-31 17:27:35', '2021-07-31 17:27:35', 1, 'CU2107-0024', NULL, NULL, NULL, '11 rue ferdinand gambon', NULL, 'Paris 20', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'KEBCHI', 0, NULL, NULL, 1, 'EUR', NULL),
(25, 'BOUKHELOUF Salim', 1, NULL, NULL, 0, NULL, '2021-08-13 04:00:35', '2021-08-13 04:00:35', 1, 'CU2108-0025', NULL, NULL, NULL, '23 RUE Paul bert', '92700', 'COLOMBES', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'bs', 0, NULL, NULL, 1, 'EUR', NULL),
(26, 'MOHAMED ALI Mostafa', 1, NULL, NULL, 0, NULL, '2021-12-24 08:38:34', '2021-12-24 08:38:34', 1, 'CU2112-0026', NULL, NULL, NULL, '19 ST HELENS CRESCENT', 'SA1 4NA', 'SWANSEA', 0, 7, '004407828604011', NULL, NULL, 'mostafa_kalik@yahoo.com', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL),
(27, 'DOUCOURE Yaya', 1, NULL, NULL, 0, NULL, '2022-05-19 17:54:36', '2022-05-19 17:54:36', 1, 'CU2205-0027', NULL, NULL, NULL, '5 avenue lacassagne 5 Avenue Lacassagne', '69003', 'Lyon', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Yaya', 0, NULL, NULL, 1, 'EUR', NULL),
(28, 'BOUHRIM Zohra', 1, NULL, NULL, 0, NULL, '2022-05-19 18:37:25', '2022-05-19 17:56:07', 1, 'CU2205-0028', NULL, NULL, NULL, '151 Rue Louis Lherault', '95100', 'Argenteuil', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Zohra', 0, NULL, NULL, 1, 'EUR', NULL),
(29, 'merzouar nadia', 1, NULL, NULL, 0, NULL, '2022-05-26 07:56:19', '2022-05-26 07:56:19', 1, 'CU2205-0029', NULL, NULL, NULL, '2 allee de chartreux', 'limay', '78520', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'nadia', 0, NULL, NULL, 1, 'EUR', NULL),
(30, 'hamrouni ahmed', 1, NULL, NULL, 0, NULL, '2022-05-26 07:58:04', '2022-05-26 07:58:04', 1, 'CU2205-0030', NULL, NULL, NULL, 'batiment c etage 7   8 alee chaps fleuris', 'vitry s s', '94400', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ahmed', 0, NULL, NULL, 1, 'EUR', NULL),
(31, 'SALMI Sid', 1, NULL, NULL, 0, NULL, '2023-01-03 03:10:49', '2023-01-03 03:10:49', 1, 'CU2301-0031', NULL, NULL, NULL, 'Appart 212 3 Rue Gustave Flaubert', '94190', 'VILLENEUVE ST GEORGE', 0, 1, '0661664421', NULL, NULL, 'sidou81@yahoo.fr', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'SALMI Sid', 0, NULL, NULL, 1, 'EUR', NULL),
(32, 'Anmole', 1, NULL, NULL, 0, NULL, '2023-12-22 19:58:31', '2023-12-22 19:58:31', 1, 'CU2312-0032', NULL, NULL, NULL, '73 bis Rue de Paris', '95400', 'Villiers-le-Bel', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 3, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, 'anmole log.png', NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL),
(33, 'NINAWA', 1, NULL, NULL, 0, NULL, '2024-02-05 18:34:14', '2024-02-05 18:34:14', 1, 'CU2402-0033', NULL, NULL, NULL, '54 Avenue Henri Barbisse', '93700', 'Drancy', 0, 1, NULL, NULL, NULL, 'Contact@nainawa.fr', NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Alsahl  Alakdar', 0, NULL, NULL, 1, 'EUR', NULL),
(34, 'OMA', 1, NULL, NULL, 0, NULL, '2024-06-11 14:40:40', '2024-06-11 14:40:40', 1, 'CU2406-0034', NULL, NULL, NULL, '22-23 Quai des Usines Bruxelles BE 1000', 'BE 1000', 'Bruxelles', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 3, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TRADING', 0, NULL, NULL, 1, 'EUR', NULL),
(35, 'hussein jsim sabah', 1, NULL, NULL, 0, NULL, '2025-12-12 09:24:50', '2025-12-12 09:24:50', 1, 'CU2512-0035', NULL, NULL, NULL, '215 rue grande', '92380', 'garches', 0, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, '', '', '', '', '', '', '', NULL, 0, NULL, NULL, NULL, 1, 0, NULL, '', 0, 0, 0, 1, 1, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, 0.000, NULL, 0.000, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', 0, NULL, NULL, 1, 'EUR', NULL);

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

--
-- Structure de la table `pnfq_societe_address`
--

CREATE TABLE `pnfq_societe_address` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(30) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT 0,
  `name` varchar(60) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(10) DEFAULT NULL,
  `town` varchar(50) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `phone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `note` text DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_societe_commerciaux`
--

CREATE TABLE `pnfq_societe_commerciaux` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_societe_commerciaux`
--

INSERT INTO `pnfq_societe_commerciaux` (`rowid`, `fk_soc`, `fk_user`, `import_key`) VALUES
(1, 1, 1, NULL),
(2, 2, 1, NULL),
(3, 3, 1, NULL),
(4, 4, 1, NULL),
(5, 5, 1, NULL),
(6, 6, 1, NULL),
(7, 7, 1, NULL),
(8, 8, 1, NULL),
(9, 9, 1, NULL),
(10, 10, 1, NULL),
(11, 11, 1, NULL),
(12, 12, 1, NULL),
(13, 14, 1, NULL),
(15, 15, 1, NULL),
(16, 16, 1, NULL),
(17, 17, 1, NULL),
(18, 18, 1, NULL),
(19, 19, 1, NULL),
(20, 20, 1, NULL),
(21, 21, 1, NULL),
(22, 22, 1, NULL),
(23, 23, 1, NULL),
(24, 24, 1, NULL),
(25, 25, 1, NULL),
(26, 26, 1, NULL),
(27, 27, 1, NULL),
(28, 28, 1, NULL),
(29, 29, 1, NULL),
(30, 30, 1, NULL),
(31, 31, 1, NULL),
(32, 32, 1, NULL),
(33, 33, 1, NULL),
(34, 34, 1, NULL),
(35, 35, 1, NULL);

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

--
-- Structure de la table `pnfq_societe_extrafields`
--

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

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

--
-- Structure de la table `pnfq_societe_log`
--

CREATE TABLE `pnfq_societe_log` (
  `id` int(11) NOT NULL,
  `datel` datetime DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_statut` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `author` varchar(30) DEFAULT NULL,
  `label` varchar(128) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_societe_prices`
--

CREATE TABLE `pnfq_societe_prices` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) DEFAULT 0,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `price_level` tinyint(4) DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_societe_remise`
--

CREATE TABLE `pnfq_societe_remise` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `remise_client` double(6,3) NOT NULL DEFAULT 0.000,
  `note` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_societe_remise_except`
--

CREATE TABLE `pnfq_societe_remise_except` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `amount_ht` double(24,8) NOT NULL,
  `amount_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `amount_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `tva_tx` double(6,3) NOT NULL DEFAULT 0.000,
  `fk_user` int(11) NOT NULL,
  `fk_facture_line` int(11) DEFAULT NULL,
  `fk_facture` int(11) DEFAULT NULL,
  `fk_facture_source` int(11) DEFAULT NULL,
  `description` text NOT NULL,
  `multicurrency_amount_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `multicurrency_amount_tva` double(24,8) NOT NULL DEFAULT 0.00000000,
  `multicurrency_amount_ttc` double(24,8) NOT NULL DEFAULT 0.00000000,
  `fk_invoice_supplier_line` int(11) DEFAULT NULL,
  `fk_invoice_supplier` int(11) DEFAULT NULL,
  `fk_invoice_supplier_source` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_societe_rib`
--

CREATE TABLE `pnfq_societe_rib` (
  `rowid` int(11) NOT NULL,
  `fk_soc` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(30) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(20) DEFAULT NULL,
  `iban_prefix` varchar(34) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL,
  `default_rib` smallint(6) NOT NULL DEFAULT 0,
  `rum` varchar(32) DEFAULT NULL,
  `date_rum` date DEFAULT NULL,
  `frstrecur` varchar(16) DEFAULT 'FRST',
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_socpeople`
--

CREATE TABLE `pnfq_socpeople` (
  `rowid` int(11) NOT NULL,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_soc` int(11) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(128) DEFAULT NULL,
  `civility` varchar(6) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `zip` varchar(25) DEFAULT NULL,
  `town` varchar(255) DEFAULT NULL,
  `fk_departement` int(11) DEFAULT NULL,
  `fk_pays` int(11) DEFAULT 0,
  `birthday` date DEFAULT NULL,
  `poste` varchar(80) DEFAULT NULL,
  `phone` varchar(30) DEFAULT NULL,
  `phone_perso` varchar(30) DEFAULT NULL,
  `phone_mobile` varchar(30) DEFAULT NULL,
  `fax` varchar(30) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `jabberid` varchar(255) DEFAULT NULL,
  `skype` varchar(255) DEFAULT NULL,
  `photo` varchar(255) DEFAULT NULL,
  `no_email` smallint(6) NOT NULL DEFAULT 0,
  `priv` smallint(6) NOT NULL DEFAULT 0,
  `fk_user_creat` int(11) DEFAULT 0,
  `fk_user_modif` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `default_lang` varchar(6) DEFAULT NULL,
  `canvas` varchar(32) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `statut` tinyint(4) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_socpeople_extrafields`
--

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

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

--
-- Structure de la table `pnfq_stock_lotserial`
--

CREATE TABLE `pnfq_stock_lotserial` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL,
  `datec` 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,
  `import_key` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_stock_mouvement`
--

CREATE TABLE `pnfq_stock_mouvement` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datem` datetime DEFAULT NULL,
  `fk_product` int(11) NOT NULL,
  `fk_entrepot` int(11) NOT NULL,
  `value` double DEFAULT NULL,
  `price` double(24,8) DEFAULT 0.00000000,
  `type_mouvement` smallint(6) DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `fk_origin` int(11) DEFAULT NULL,
  `origintype` varchar(32) DEFAULT NULL,
  `inventorycode` varchar(128) DEFAULT NULL,
  `batch` varchar(30) DEFAULT NULL,
  `eatby` date DEFAULT NULL,
  `sellby` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_subscription`
--

CREATE TABLE `pnfq_subscription` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `fk_adherent` int(11) DEFAULT NULL,
  `dateadh` datetime DEFAULT NULL,
  `datef` date DEFAULT NULL,
  `subscription` double DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `note` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_supplier_proposal`
--

CREATE TABLE `pnfq_supplier_proposal` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref_ext` varchar(255) DEFAULT NULL,
  `ref_int` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) DEFAULT NULL,
  `fk_projet` int(11) DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` datetime DEFAULT NULL,
  `date_valid` datetime DEFAULT NULL,
  `date_cloture` datetime DEFAULT NULL,
  `fk_user_author` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `fk_user_valid` int(11) DEFAULT NULL,
  `fk_user_cloture` int(11) DEFAULT NULL,
  `fk_statut` smallint(6) NOT NULL DEFAULT 0,
  `price` double DEFAULT 0,
  `remise_percent` double DEFAULT 0,
  `remise_absolue` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `tva` double(24,8) DEFAULT 0.00000000,
  `localtax1` double(24,8) DEFAULT 0.00000000,
  `localtax2` double(24,8) DEFAULT 0.00000000,
  `total` double(24,8) DEFAULT 0.00000000,
  `fk_account` int(11) DEFAULT NULL,
  `fk_currency` varchar(3) DEFAULT NULL,
  `fk_cond_reglement` int(11) DEFAULT NULL,
  `fk_mode_reglement` int(11) DEFAULT NULL,
  `note_private` text DEFAULT NULL,
  `note_public` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL,
  `date_livraison` date DEFAULT NULL,
  `fk_shipping_method` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL,
  `extraparams` varchar(255) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_supplier_proposaldet`
--

CREATE TABLE `pnfq_supplier_proposaldet` (
  `rowid` int(11) NOT NULL,
  `fk_supplier_proposal` 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,
  `fk_remise_except` int(11) DEFAULT NULL,
  `tva_tx` double(6,3) DEFAULT 0.000,
  `vat_src_code` varchar(10) DEFAULT '',
  `localtax1_tx` double(6,3) DEFAULT 0.000,
  `localtax1_type` varchar(10) DEFAULT NULL,
  `localtax2_tx` double(6,3) DEFAULT 0.000,
  `localtax2_type` varchar(10) DEFAULT NULL,
  `qty` double DEFAULT NULL,
  `remise_percent` double DEFAULT 0,
  `remise` double DEFAULT 0,
  `price` double DEFAULT NULL,
  `subprice` double(24,8) DEFAULT 0.00000000,
  `total_ht` double(24,8) DEFAULT 0.00000000,
  `total_tva` double(24,8) DEFAULT 0.00000000,
  `total_localtax1` double(24,8) DEFAULT 0.00000000,
  `total_localtax2` double(24,8) DEFAULT 0.00000000,
  `total_ttc` double(24,8) DEFAULT 0.00000000,
  `product_type` int(11) DEFAULT 0,
  `info_bits` int(11) DEFAULT 0,
  `buy_price_ht` double(24,8) DEFAULT 0.00000000,
  `fk_product_fournisseur_price` int(11) DEFAULT NULL,
  `special_code` int(11) DEFAULT 0,
  `rang` int(11) DEFAULT 0,
  `ref_fourn` varchar(30) DEFAULT NULL,
  `fk_multicurrency` int(11) DEFAULT NULL,
  `multicurrency_code` varchar(255) 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_unit` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_supplier_proposaldet_extrafields`
--

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

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

--
-- Structure de la table `pnfq_supplier_proposal_extrafields`
--

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

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

--
-- Structure de la table `pnfq_tva`
--

CREATE TABLE `pnfq_tva` (
  `rowid` int(11) NOT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `datec` date DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `datev` date DEFAULT NULL,
  `amount` double NOT NULL DEFAULT 0,
  `fk_typepayment` int(11) DEFAULT NULL,
  `num_payment` varchar(50) DEFAULT NULL,
  `label` varchar(255) DEFAULT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_bank` int(11) DEFAULT NULL,
  `fk_user_creat` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL,
  `import_key` varchar(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_usergroup`
--

CREATE TABLE `pnfq_usergroup` (
  `rowid` int(11) NOT NULL,
  `nom` varchar(255) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `note` text DEFAULT NULL,
  `model_pdf` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_usergroup_extrafields`
--

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

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

--
-- Structure de la table `pnfq_usergroup_rights`
--

CREATE TABLE `pnfq_usergroup_rights` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_usergroup` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_usergroup_user`
--

CREATE TABLE `pnfq_usergroup_user` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_user` int(11) NOT NULL,
  `fk_usergroup` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_user_alert`
--

CREATE TABLE `pnfq_user_alert` (
  `rowid` int(11) NOT NULL,
  `type` int(11) DEFAULT NULL,
  `fk_contact` int(11) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_user_clicktodial`
--

CREATE TABLE `pnfq_user_clicktodial` (
  `fk_user` int(11) NOT NULL,
  `url` varchar(255) DEFAULT NULL,
  `login` varchar(32) DEFAULT NULL,
  `pass` varchar(64) DEFAULT NULL,
  `poste` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Structure de la table `pnfq_user_employment`
--

CREATE TABLE `pnfq_user_employment` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `ref` varchar(50) DEFAULT NULL,
  `ref_ext` varchar(50) DEFAULT NULL,
  `fk_user` int(11) DEFAULT NULL,
  `datec` 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,
  `job` varchar(128) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `salary` double(24,8) DEFAULT NULL,
  `salaryextra` double(24,8) DEFAULT NULL,
  `weeklyhours` double(16,8) DEFAULT NULL,
  `dateemployment` date DEFAULT NULL,
  `dateemploymentend` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_user_extrafields`
--

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

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

--
-- Structure de la table `pnfq_user_param`
--

CREATE TABLE `pnfq_user_param` (
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `param` varchar(255) NOT NULL,
  `value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_user_param`
--

INSERT INTO `pnfq_user_param` (`fk_user`, `entity`, `param`, `value`) VALUES
(1, 1, 'MAIN_SELECTEDFIELDS_/product/stock/productlot_list.php', 't.tms,t.datec,t.batch,t.fk_product,t.eatby,t.sellby,'),
(1, 1, 'MAIN_SELECTEDFIELDS_bankaccountlist', 'b.tms,b.ref,accountype,b.label,b.number,b.account_number,b.fk_accountancy_journal,toreconcile,b.datec,b.clos,balance,'),
(1, 1, 'MAIN_SELECTEDFIELDS_invoicetemplatelist', 'f.tms,f.titre,s.nom,f.total,f.tva,f.total_ttc,f.frequency,f.nb_gen_done,f.date_last_gen,f.date_when,f.datec,');

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

--
-- Structure de la table `pnfq_user_rib`
--

CREATE TABLE `pnfq_user_rib` (
  `rowid` int(11) NOT NULL,
  `fk_user` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `datec` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `label` varchar(30) DEFAULT NULL,
  `bank` varchar(255) DEFAULT NULL,
  `code_banque` varchar(128) DEFAULT NULL,
  `code_guichet` varchar(6) DEFAULT NULL,
  `number` varchar(255) DEFAULT NULL,
  `cle_rib` varchar(5) DEFAULT NULL,
  `bic` varchar(11) DEFAULT NULL,
  `iban_prefix` varchar(34) DEFAULT NULL,
  `domiciliation` varchar(255) DEFAULT NULL,
  `proprio` varchar(60) DEFAULT NULL,
  `owner_address` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_user_rights`
--

CREATE TABLE `pnfq_user_rights` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `fk_user` int(11) NOT NULL,
  `fk_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Déchargement des données de la table `pnfq_user_rights`
--

INSERT INTO `pnfq_user_rights` (`rowid`, `entity`, `fk_user`, `fk_id`) VALUES
(266, 1, 1, 11),
(260, 1, 1, 12),
(261, 1, 1, 13),
(262, 1, 1, 14),
(263, 1, 1, 15),
(265, 1, 1, 16),
(267, 1, 1, 19),
(36, 1, 1, 21),
(29, 1, 1, 22),
(30, 1, 1, 24),
(31, 1, 1, 25),
(33, 1, 1, 26),
(35, 1, 1, 27),
(37, 1, 1, 28),
(78, 1, 1, 31),
(75, 1, 1, 32),
(77, 1, 1, 34),
(79, 1, 1, 38),
(458, 1, 1, 41),
(455, 1, 1, 42),
(457, 1, 1, 44),
(459, 1, 1, 45),
(406, 1, 1, 61),
(403, 1, 1, 62),
(405, 1, 1, 64),
(407, 1, 1, 67),
(408, 1, 1, 68),
(409, 1, 1, 69),
(410, 1, 1, 70),
(360, 1, 1, 71),
(355, 1, 1, 72),
(357, 1, 1, 74),
(361, 1, 1, 75),
(359, 1, 1, 76),
(363, 1, 1, 78),
(364, 1, 1, 79),
(250, 1, 1, 81),
(244, 1, 1, 82),
(245, 1, 1, 84),
(246, 1, 1, 86),
(248, 1, 1, 87),
(249, 1, 1, 88),
(251, 1, 1, 89),
(427, 1, 1, 91),
(424, 1, 1, 92),
(426, 1, 1, 93),
(428, 1, 1, 94),
(205, 1, 1, 95),
(345, 1, 1, 101),
(341, 1, 1, 102),
(342, 1, 1, 104),
(343, 1, 1, 105),
(344, 1, 1, 106),
(346, 1, 1, 109),
(155, 1, 1, 111),
(146, 1, 1, 112),
(148, 1, 1, 113),
(150, 1, 1, 114),
(152, 1, 1, 115),
(154, 1, 1, 116),
(156, 1, 1, 117),
(300, 1, 1, 121),
(297, 1, 1, 122),
(299, 1, 1, 125),
(301, 1, 1, 126),
(463, 1, 1, 141),
(462, 1, 1, 142),
(464, 1, 1, 144),
(142, 1, 1, 151),
(139, 1, 1, 152),
(141, 1, 1, 153),
(143, 1, 1, 154),
(203, 1, 1, 161),
(196, 1, 1, 162),
(198, 1, 1, 163),
(200, 1, 1, 164),
(202, 1, 1, 165),
(204, 1, 1, 167),
(496, 1, 1, 221),
(493, 1, 1, 222),
(495, 1, 1, 223),
(497, 1, 1, 229),
(498, 1, 1, 237),
(499, 1, 1, 238),
(500, 1, 1, 239),
(209, 1, 1, 241),
(208, 1, 1, 242),
(210, 1, 1, 243),
(337, 1, 1, 251),
(318, 1, 1, 252),
(320, 1, 1, 253),
(321, 1, 1, 254),
(323, 1, 1, 255),
(325, 1, 1, 256),
(302, 1, 1, 262),
(308, 1, 1, 281),
(305, 1, 1, 282),
(307, 1, 1, 283),
(309, 1, 1, 286),
(484, 1, 1, 300),
(485, 1, 1, 301),
(489, 1, 1, 331),
(488, 1, 1, 332),
(490, 1, 1, 333),
(326, 1, 1, 341),
(327, 1, 1, 342),
(328, 1, 1, 343),
(329, 1, 1, 344),
(335, 1, 1, 351),
(332, 1, 1, 352),
(334, 1, 1, 353),
(336, 1, 1, 354),
(338, 1, 1, 358),
(399, 1, 1, 501),
(393, 1, 1, 502),
(395, 1, 1, 511),
(396, 1, 1, 512),
(398, 1, 1, 514),
(400, 1, 1, 517),
(436, 1, 1, 520),
(431, 1, 1, 522),
(433, 1, 1, 524),
(435, 1, 1, 525),
(437, 1, 1, 527),
(315, 1, 1, 531),
(312, 1, 1, 532),
(314, 1, 1, 534),
(316, 1, 1, 538),
(441, 1, 1, 701),
(440, 1, 1, 702),
(442, 1, 1, 703),
(389, 1, 1, 771),
(378, 1, 1, 772),
(380, 1, 1, 773),
(382, 1, 1, 775),
(384, 1, 1, 776),
(386, 1, 1, 777),
(388, 1, 1, 778),
(390, 1, 1, 779),
(68, 1, 1, 1001),
(67, 1, 1, 1002),
(69, 1, 1, 1003),
(71, 1, 1, 1004),
(72, 1, 1, 1005),
(351, 1, 1, 1101),
(349, 1, 1, 1102),
(350, 1, 1, 1104),
(352, 1, 1, 1109),
(420, 1, 1, 1121),
(413, 1, 1, 1122),
(415, 1, 1, 1123),
(417, 1, 1, 1124),
(419, 1, 1, 1125),
(421, 1, 1, 1126),
(270, 1, 1, 1181),
(293, 1, 1, 1182),
(273, 1, 1, 1183),
(274, 1, 1, 1184),
(276, 1, 1, 1185),
(278, 1, 1, 1186),
(280, 1, 1, 1187),
(283, 1, 1, 1188),
(281, 1, 1, 1189),
(217, 1, 1, 1201),
(218, 1, 1, 1202),
(291, 1, 1, 1231),
(286, 1, 1, 1232),
(287, 1, 1, 1233),
(289, 1, 1, 1234),
(290, 1, 1, 1235),
(292, 1, 1, 1236),
(294, 1, 1, 1237),
(219, 1, 1, 1251),
(268, 1, 1, 1321),
(269, 1, 1, 1322),
(252, 1, 1, 1421),
(234, 1, 1, 2401),
(233, 1, 1, 2402),
(235, 1, 1, 2403),
(239, 1, 1, 2411),
(238, 1, 1, 2412),
(240, 1, 1, 2413),
(241, 1, 1, 2414),
(256, 1, 1, 2501),
(255, 1, 1, 2503),
(257, 1, 1, 2515),
(374, 1, 1, 20001),
(367, 1, 1, 20002),
(369, 1, 1, 20003),
(371, 1, 1, 20004),
(373, 1, 1, 20005),
(375, 1, 1, 20006),
(477, 1, 1, 23001),
(474, 1, 1, 23002),
(476, 1, 1, 23003),
(478, 1, 1, 23004),
(480, 1, 1, 50101),
(447, 1, 1, 50401),
(449, 1, 1, 50411),
(450, 1, 1, 50412),
(451, 1, 1, 50420),
(452, 1, 1, 50430),
(446, 1, 1, 50440),
(482, 1, 1, 55001),
(483, 1, 1, 55002),
(443, 1, 1, 59001),
(444, 1, 1, 59002),
(445, 1, 1, 59003),
(470, 1, 1, 63001),
(467, 1, 1, 63002),
(469, 1, 1, 63003),
(471, 1, 1, 63004),
(479, 1, 1, 64001);

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

--
-- Structure de la table `pnfq_website`
--

CREATE TABLE `pnfq_website` (
  `rowid` int(11) NOT NULL,
  `entity` int(11) DEFAULT 1,
  `ref` varchar(24) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `fk_default_home` int(11) DEFAULT NULL,
  `virtualhost` varchar(255) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `date_modification` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Structure de la table `pnfq_website_page`
--

CREATE TABLE `pnfq_website_page` (
  `rowid` int(11) NOT NULL,
  `fk_website` int(11) DEFAULT NULL,
  `pageurl` varchar(16) NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `content` mediumtext DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `date_creation` datetime DEFAULT NULL,
  `date_modification` datetime DEFAULT NULL,
  `tms` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `fk_user_create` int(11) DEFAULT NULL,
  `fk_user_modif` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Index pour les tables déchargées
--

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

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

--
-- Index pour la table `pnfq_accounting_bookkeeping_tmp`
--
ALTER TABLE `pnfq_accounting_bookkeeping_tmp`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_accounting_bookkeeping_doc_date` (`doc_date`),
  ADD KEY `idx_accounting_bookkeeping_fk_docdet` (`fk_docdet`),
  ADD KEY `idx_accounting_bookkeeping_numero_compte` (`numero_compte`),
  ADD KEY `idx_accounting_bookkeeping_code_journal` (`code_journal`);

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

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

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

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

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

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

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

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

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

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

--
-- Index pour la table `pnfq_advtargetemailing`
--
ALTER TABLE `pnfq_advtargetemailing`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_advtargetemailing_name` (`name`);

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

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

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

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

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

--
-- Index pour la table `pnfq_blockedlog`
--
ALTER TABLE `pnfq_blockedlog`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `signature` (`signature`),
  ADD KEY `fk_object_element` (`fk_object`,`element`),
  ADD KEY `entity` (`entity`),
  ADD KEY `fk_user` (`fk_user`),
  ADD KEY `entity_action` (`entity`,`action`),
  ADD KEY `entity_action_certified` (`entity`,`action`,`certified`);

--
-- Index pour la table `pnfq_blockedlog_authority`
--
ALTER TABLE `pnfq_blockedlog_authority`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `signature` (`signature`);

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

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

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

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

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

--
-- Index pour la table `pnfq_budget_lines`
--
ALTER TABLE `pnfq_budget_lines`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_budget_lines` (`fk_budget`,`fk_project_ids`);

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

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

--
-- Index pour la table `pnfq_categorie_account`
--
ALTER TABLE `pnfq_categorie_account`
  ADD PRIMARY KEY (`fk_categorie`,`fk_account`),
  ADD KEY `idx_categorie_account_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_account_fk_account` (`fk_account`);

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

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

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

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

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

--
-- Index pour la table `pnfq_categorie_project`
--
ALTER TABLE `pnfq_categorie_project`
  ADD PRIMARY KEY (`fk_categorie`,`fk_project`),
  ADD KEY `idx_categorie_project_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_project_fk_project` (`fk_project`);

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

--
-- Index pour la table `pnfq_categorie_user`
--
ALTER TABLE `pnfq_categorie_user`
  ADD PRIMARY KEY (`fk_categorie`,`fk_user`),
  ADD KEY `idx_categorie_user_fk_categorie` (`fk_categorie`),
  ADD KEY `idx_categorie_user_fk_user` (`fk_user`);

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

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

--
-- Index pour la table `pnfq_commandedet`
--
ALTER TABLE `pnfq_commandedet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_commandedet_fk_commande` (`fk_commande`),
  ADD KEY `idx_commandedet_fk_product` (`fk_product`),
  ADD KEY `fk_commandedet_fk_unit` (`fk_unit`);

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

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

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

--
-- Index pour la table `pnfq_commande_fournisseurdet`
--
ALTER TABLE `pnfq_commande_fournisseurdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_commande_fournisseurdet_fk_unit` (`fk_unit`);

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

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

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

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

--
-- Index pour la table `pnfq_const`
--
ALTER TABLE `pnfq_const`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_const` (`name`,`entity`);

--
-- Index pour la table `pnfq_contrat`
--
ALTER TABLE `pnfq_contrat`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_contrat_ref` (`ref`,`entity`),
  ADD KEY `idx_contrat_fk_soc` (`fk_soc`),
  ADD KEY `idx_contrat_fk_user_author` (`fk_user_author`);

--
-- Index pour la table `pnfq_contratdet`
--
ALTER TABLE `pnfq_contratdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_fk_contrat` (`fk_contrat`),
  ADD KEY `idx_contratdet_fk_product` (`fk_product`),
  ADD KEY `idx_contratdet_date_ouverture_prevue` (`date_ouverture_prevue`),
  ADD KEY `idx_contratdet_date_ouverture` (`date_ouverture`),
  ADD KEY `idx_contratdet_date_fin_validite` (`date_fin_validite`),
  ADD KEY `fk_contratdet_fk_unit` (`fk_unit`);

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

--
-- Index pour la table `pnfq_contratdet_log`
--
ALTER TABLE `pnfq_contratdet_log`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_contratdet_log_fk_contratdet` (`fk_contratdet`),
  ADD KEY `idx_contratdet_log_date` (`date`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Index pour la table `pnfq_c_type_resource`
--
ALTER TABLE `pnfq_c_type_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_c_type_resource_id` (`label`,`code`);

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

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

--
-- Index pour la table `pnfq_default_values`
--
ALTER TABLE `pnfq_default_values`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_default_values` (`type`,`entity`,`user_id`,`page`,`param`);

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

--
-- Index pour la table `pnfq_document_model`
--
ALTER TABLE `pnfq_document_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_document_model` (`nom`,`type`,`entity`);

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

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

--
-- Index pour la table `pnfq_ecm_directories`
--
ALTER TABLE `pnfq_ecm_directories`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ecm_directories` (`label`,`fk_parent`,`entity`),
  ADD KEY `idx_ecm_directories_fk_user_c` (`fk_user_c`),
  ADD KEY `idx_ecm_directories_fk_user_m` (`fk_user_m`);

--
-- Index pour la table `pnfq_ecm_files`
--
ALTER TABLE `pnfq_ecm_files`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_ecm_files` (`filepath`,`filename`,`entity`),
  ADD KEY `idx_ecm_files_label` (`label`);

--
-- Index pour la table `pnfq_element_contact`
--
ALTER TABLE `pnfq_element_contact`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_contact_idx1` (`element_id`,`fk_c_type_contact`,`fk_socpeople`),
  ADD KEY `fk_element_contact_fk_c_type_contact` (`fk_c_type_contact`),
  ADD KEY `idx_element_contact_fk_socpeople` (`fk_socpeople`);

--
-- Index pour la table `pnfq_element_element`
--
ALTER TABLE `pnfq_element_element`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_element_idx1` (`fk_source`,`sourcetype`,`fk_target`,`targettype`),
  ADD KEY `idx_element_element_fk_target` (`fk_target`);

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

--
-- Index pour la table `pnfq_element_resources`
--
ALTER TABLE `pnfq_element_resources`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_element_resources_idx1` (`resource_id`,`resource_type`,`element_id`,`element_type`),
  ADD KEY `idx_element_element_element_id` (`element_id`);

--
-- Index pour la table `pnfq_element_tag`
--
ALTER TABLE `pnfq_element_tag`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_element_tag` (`entity`,`lang`,`tag`,`fk_element`,`element`);

--
-- Index pour la table `pnfq_entrepot`
--
ALTER TABLE `pnfq_entrepot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_entrepot_label` (`label`,`entity`);

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

--
-- Index pour la table `pnfq_events`
--
ALTER TABLE `pnfq_events`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_events_dateevent` (`dateevent`);

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

--
-- Index pour la table `pnfq_expedition`
--
ALTER TABLE `pnfq_expedition`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_expedition_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_expedition_fk_soc` (`fk_soc`),
  ADD KEY `idx_expedition_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_expedition_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_expedition_fk_shipping_method` (`fk_shipping_method`);

--
-- Index pour la table `pnfq_expeditiondet`
--
ALTER TABLE `pnfq_expeditiondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_expeditiondet_fk_expedition` (`fk_expedition`);

--
-- Index pour la table `pnfq_expeditiondet_batch`
--
ALTER TABLE `pnfq_expeditiondet_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fk_expeditiondet` (`fk_expeditiondet`);

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

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

--
-- Index pour la table `pnfq_expensereport`
--
ALTER TABLE `pnfq_expensereport`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_expensereport_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_expensereport_date_debut` (`date_debut`),
  ADD KEY `idx_expensereport_date_fin` (`date_fin`),
  ADD KEY `idx_expensereport_fk_statut` (`fk_statut`),
  ADD KEY `idx_expensereport_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_expensereport_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_expensereport_fk_user_approve` (`fk_user_approve`),
  ADD KEY `idx_expensereport_fk_refuse` (`fk_user_approve`);

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

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

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

--
-- Index pour la table `pnfq_export_model`
--
ALTER TABLE `pnfq_export_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_export_model` (`label`,`type`);

--
-- Index pour la table `pnfq_extrafields`
--
ALTER TABLE `pnfq_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_extrafields_name` (`name`,`entity`,`elementtype`);

--
-- Index pour la table `pnfq_facture`
--
ALTER TABLE `pnfq_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_facture_uk_facnumber` (`facnumber`,`entity`),
  ADD KEY `idx_facture_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_facture_fk_facture_source` (`fk_facture_source`),
  ADD KEY `idx_facture_fk_projet` (`fk_projet`),
  ADD KEY `idx_facture_fk_account` (`fk_account`),
  ADD KEY `idx_facture_fk_currency` (`fk_currency`),
  ADD KEY `idx_facture_fk_statut` (`fk_statut`);

--
-- Index pour la table `pnfq_facturedet`
--
ALTER TABLE `pnfq_facturedet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fk_remise_except` (`fk_remise_except`,`fk_facture`),
  ADD KEY `idx_facturedet_fk_facture` (`fk_facture`),
  ADD KEY `idx_facturedet_fk_product` (`fk_product`),
  ADD KEY `fk_facturedet_fk_unit` (`fk_unit`),
  ADD KEY `idx_facturedet_fk_code_ventilation` (`fk_code_ventilation`);

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

--
-- Index pour la table `pnfq_facturedet_rec`
--
ALTER TABLE `pnfq_facturedet_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_facturedet_rec_fk_unit` (`fk_unit`);

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

--
-- Index pour la table `pnfq_facture_fourn`
--
ALTER TABLE `pnfq_facture_fourn`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_facture_fourn_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_facture_fourn_ref_supplier` (`ref_supplier`,`fk_soc`,`entity`),
  ADD KEY `idx_facture_fourn_date_lim_reglement` (`date_lim_reglement`),
  ADD KEY `idx_facture_fourn_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_fourn_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_fourn_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_facture_fourn_fk_projet` (`fk_projet`);

--
-- Index pour la table `pnfq_facture_fourn_det`
--
ALTER TABLE `pnfq_facture_fourn_det`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_facture_fourn_det_fk_facture` (`fk_facture_fourn`),
  ADD KEY `fk_facture_fourn_det_fk_unit` (`fk_unit`),
  ADD KEY `idx_facture_fourn_det_fk_code_ventilation` (`fk_code_ventilation`),
  ADD KEY `idx_facture_fourn_det_fk_product` (`fk_product`);

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

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

--
-- Index pour la table `pnfq_facture_rec`
--
ALTER TABLE `pnfq_facture_rec`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_facture_rec_uk_titre` (`titre`,`entity`),
  ADD KEY `idx_facture_rec_fk_soc` (`fk_soc`),
  ADD KEY `idx_facture_rec_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_facture_rec_fk_projet` (`fk_projet`);

--
-- Index pour la table `pnfq_fichinter`
--
ALTER TABLE `pnfq_fichinter`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_fichinter_ref` (`ref`,`entity`),
  ADD KEY `idx_fichinter_fk_soc` (`fk_soc`);

--
-- Index pour la table `pnfq_fichinterdet`
--
ALTER TABLE `pnfq_fichinterdet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_fichinterdet_fk_fichinter` (`fk_fichinter`);

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

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

--
-- Index pour la table `pnfq_holiday`
--
ALTER TABLE `pnfq_holiday`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_holiday_fk_user` (`fk_user`),
  ADD KEY `idx_holiday_fk_user_create` (`fk_user_create`),
  ADD KEY `idx_holiday_date_create` (`date_create`),
  ADD KEY `idx_holiday_date_debut` (`date_debut`),
  ADD KEY `idx_holiday_date_fin` (`date_fin`),
  ADD KEY `idx_holiday_fk_validator` (`fk_validator`),
  ADD KEY `idx_holiday_entity` (`entity`);

--
-- Index pour la table `pnfq_holiday_config`
--
ALTER TABLE `pnfq_holiday_config`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `name` (`name`);

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

--
-- Index pour la table `pnfq_holiday_users`
--
ALTER TABLE `pnfq_holiday_users`
  ADD PRIMARY KEY (`fk_user`);

--
-- Index pour la table `pnfq_import_model`
--
ALTER TABLE `pnfq_import_model`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_import_model` (`label`,`type`);

--
-- Index pour la table `pnfq_inventory`
--
ALTER TABLE `pnfq_inventory`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_inventory_tms` (`tms`),
  ADD KEY `idx_inventory_datec` (`datec`);

--
-- Index pour la table `pnfq_inventorydet`
--
ALTER TABLE `pnfq_inventorydet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_inventorydet_tms` (`tms`),
  ADD KEY `idx_inventorydet_datec` (`datec`),
  ADD KEY `idx_inventorydet_fk_inventory` (`fk_inventory`);

--
-- Index pour la table `pnfq_links`
--
ALTER TABLE `pnfq_links`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_links` (`objectid`,`label`);

--
-- Index pour la table `pnfq_livraison`
--
ALTER TABLE `pnfq_livraison`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_livraison_uk_ref` (`ref`,`entity`),
  ADD KEY `idx_livraison_fk_soc` (`fk_soc`),
  ADD KEY `idx_livraison_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_livraison_fk_user_valid` (`fk_user_valid`);

--
-- Index pour la table `pnfq_livraisondet`
--
ALTER TABLE `pnfq_livraisondet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_livraisondet_fk_expedition` (`fk_livraison`);

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

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

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

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

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

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

--
-- Index pour la table `pnfq_mailing_cibles`
--
ALTER TABLE `pnfq_mailing_cibles`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_mailing_cibles` (`fk_mailing`,`email`),
  ADD KEY `idx_mailing_cibles_email` (`email`);

--
-- Index pour la table `pnfq_menu`
--
ALTER TABLE `pnfq_menu`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `idx_menu_uk_menu` (`menu_handler`,`fk_menu`,`position`,`url`,`entity`),
  ADD KEY `idx_menu_menuhandler_type` (`menu_handler`,`type`);

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

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

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

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

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

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

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

--
-- Index pour la table `pnfq_opensurvey_comments`
--
ALTER TABLE `pnfq_opensurvey_comments`
  ADD PRIMARY KEY (`id_comment`),
  ADD KEY `idx_id_comment` (`id_comment`),
  ADD KEY `idx_id_sondage` (`id_sondage`);

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

--
-- Index pour la table `pnfq_opensurvey_sondage`
--
ALTER TABLE `pnfq_opensurvey_sondage`
  ADD PRIMARY KEY (`id_sondage`),
  ADD KEY `idx_date_fin` (`date_fin`);

--
-- Index pour la table `pnfq_opensurvey_user_studs`
--
ALTER TABLE `pnfq_opensurvey_user_studs`
  ADD PRIMARY KEY (`id_users`),
  ADD KEY `idx_opensurvey_user_studs_id_users` (`id_users`),
  ADD KEY `idx_opensurvey_user_studs_nom` (`nom`),
  ADD KEY `idx_opensurvey_user_studs_id_sondage` (`id_sondage`);

--
-- Index pour la table `pnfq_overwrite_trans`
--
ALTER TABLE `pnfq_overwrite_trans`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_overwrite_trans` (`lang`,`transkey`);

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

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

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

--
-- Index pour la table `pnfq_paiementfourn_facturefourn`
--
ALTER TABLE `pnfq_paiementfourn_facturefourn`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_paiementfourn_facturefourn` (`fk_paiementfourn`,`fk_facturefourn`),
  ADD KEY `idx_paiementfourn_facturefourn_fk_facture` (`fk_facturefourn`),
  ADD KEY `idx_paiementfourn_facturefourn_fk_paiement` (`fk_paiementfourn`);

--
-- Index pour la table `pnfq_paiement_facture`
--
ALTER TABLE `pnfq_paiement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_paiement_facture` (`fk_paiement`,`fk_facture`),
  ADD KEY `idx_paiement_facture_fk_facture` (`fk_facture`),
  ADD KEY `idx_paiement_facture_fk_paiement` (`fk_paiement`);

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

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

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

--
-- Index pour la table `pnfq_payment_salary`
--
ALTER TABLE `pnfq_payment_salary`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_payment_salary_ref` (`num_payment`),
  ADD KEY `idx_payment_salary_user` (`fk_user`,`entity`),
  ADD KEY `idx_payment_salary_datep` (`datep`),
  ADD KEY `idx_payment_salary_datesp` (`datesp`),
  ADD KEY `idx_payment_salary_dateep` (`dateep`);

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

--
-- Index pour la table `pnfq_prelevement_bons`
--
ALTER TABLE `pnfq_prelevement_bons`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_prelevement_bons_ref` (`ref`,`entity`);

--
-- Index pour la table `pnfq_prelevement_facture`
--
ALTER TABLE `pnfq_prelevement_facture`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_facture_fk_prelevement_lignes` (`fk_prelevement_lignes`);

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

--
-- Index pour la table `pnfq_prelevement_lignes`
--
ALTER TABLE `pnfq_prelevement_lignes`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_prelevement_lignes_fk_prelevement_bons` (`fk_prelevement_bons`);

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

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

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

--
-- Index pour la table `pnfq_product`
--
ALTER TABLE `pnfq_product`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_ref` (`ref`,`entity`),
  ADD UNIQUE KEY `uk_product_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_product_label` (`label`),
  ADD KEY `idx_product_barcode` (`barcode`),
  ADD KEY `idx_product_import_key` (`import_key`),
  ADD KEY `idx_product_seuil_stock_alerte` (`seuil_stock_alerte`),
  ADD KEY `idx_product_fk_country` (`fk_country`),
  ADD KEY `idx_product_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_product_fk_barcode_type` (`fk_barcode_type`),
  ADD KEY `fk_product_fk_unit` (`fk_unit`);

--
-- Index pour la table `pnfq_product_association`
--
ALTER TABLE `pnfq_product_association`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_association` (`fk_product_pere`,`fk_product_fils`),
  ADD KEY `idx_product_association_fils` (`fk_product_fils`);

--
-- Index pour la table `pnfq_product_attribute`
--
ALTER TABLE `pnfq_product_attribute`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `unique_ref` (`ref`);

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

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

--
-- Index pour la table `pnfq_product_attribute_value`
--
ALTER TABLE `pnfq_product_attribute_value`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `unique_ref` (`fk_product_attribute`,`ref`);

--
-- Index pour la table `pnfq_product_batch`
--
ALTER TABLE `pnfq_product_batch`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_batch` (`fk_product_stock`,`batch`),
  ADD KEY `idx_fk_product_stock` (`fk_product_stock`),
  ADD KEY `ix_fk_product_stock` (`fk_product_stock`);

--
-- Index pour la table `pnfq_product_customer_price`
--
ALTER TABLE `pnfq_product_customer_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_customer_price_fk_product_fk_soc` (`fk_product`,`fk_soc`),
  ADD KEY `idx_product_customer_price_fk_user` (`fk_user`),
  ADD KEY `idx_product_customer_price_fk_soc` (`fk_soc`);

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

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

--
-- Index pour la table `pnfq_product_fournisseur_price`
--
ALTER TABLE `pnfq_product_fournisseur_price`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_fournisseur_price_ref` (`ref_fourn`,`fk_soc`,`quantity`,`entity`),
  ADD KEY `idx_product_fournisseur_price_fk_user` (`fk_user`),
  ADD KEY `idx_product_fourn_price_fk_product` (`fk_product`,`entity`),
  ADD KEY `idx_product_fourn_price_fk_soc` (`fk_soc`,`entity`);

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

--
-- Index pour la table `pnfq_product_lang`
--
ALTER TABLE `pnfq_product_lang`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lang` (`fk_product`,`lang`);

--
-- Index pour la table `pnfq_product_lot`
--
ALTER TABLE `pnfq_product_lot`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_lot` (`fk_product`,`batch`);

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

--
-- Index pour la table `pnfq_product_price`
--
ALTER TABLE `pnfq_product_price`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_product_price_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_product_price_fk_product` (`fk_product`);

--
-- Index pour la table `pnfq_product_pricerules`
--
ALTER TABLE `pnfq_product_pricerules`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `unique_level` (`level`);

--
-- Index pour la table `pnfq_product_price_by_qty`
--
ALTER TABLE `pnfq_product_price_by_qty`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_price_by_qty_level` (`fk_product_price`,`quantity`),
  ADD KEY `idx_product_price_by_qty_fk_product_price` (`fk_product_price`);

--
-- Index pour la table `pnfq_product_stock`
--
ALTER TABLE `pnfq_product_stock`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_product_stock` (`fk_product`,`fk_entrepot`),
  ADD KEY `idx_product_stock_fk_product` (`fk_product`),
  ADD KEY `idx_product_stock_fk_entrepot` (`fk_entrepot`);

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

--
-- Index pour la table `pnfq_projet`
--
ALTER TABLE `pnfq_projet`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_fk_soc` (`fk_soc`);

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

--
-- Index pour la table `pnfq_projet_task`
--
ALTER TABLE `pnfq_projet_task`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_projet_task_ref` (`ref`,`entity`),
  ADD KEY `idx_projet_task_fk_projet` (`fk_projet`),
  ADD KEY `idx_projet_task_fk_user_creat` (`fk_user_creat`),
  ADD KEY `idx_projet_task_fk_user_valid` (`fk_user_valid`);

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

--
-- Index pour la table `pnfq_projet_task_time`
--
ALTER TABLE `pnfq_projet_task_time`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_projet_task_time_task` (`fk_task`),
  ADD KEY `idx_projet_task_time_date` (`task_date`),
  ADD KEY `idx_projet_task_time_datehour` (`task_datehour`);

--
-- Index pour la table `pnfq_propal`
--
ALTER TABLE `pnfq_propal`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_propal_ref` (`ref`,`entity`),
  ADD KEY `idx_propal_fk_soc` (`fk_soc`),
  ADD KEY `idx_propal_fk_user_author` (`fk_user_author`),
  ADD KEY `idx_propal_fk_user_valid` (`fk_user_valid`),
  ADD KEY `idx_propal_fk_user_cloture` (`fk_user_cloture`),
  ADD KEY `idx_propal_fk_projet` (`fk_projet`),
  ADD KEY `idx_propal_fk_account` (`fk_account`),
  ADD KEY `idx_propal_fk_currency` (`fk_currency`);

--
-- Index pour la table `pnfq_propaldet`
--
ALTER TABLE `pnfq_propaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_propaldet_fk_propal` (`fk_propal`),
  ADD KEY `idx_propaldet_fk_product` (`fk_product`),
  ADD KEY `fk_propaldet_fk_unit` (`fk_unit`);

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

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

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

--
-- Index pour la table `pnfq_resource`
--
ALTER TABLE `pnfq_resource`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `fk_code_type_resource_idx` (`fk_code_type_resource`);

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

--
-- Index pour la table `pnfq_rights_def`
--
ALTER TABLE `pnfq_rights_def`
  ADD PRIMARY KEY (`id`,`entity`);

--
-- Index pour la table `pnfq_societe`
--
ALTER TABLE `pnfq_societe`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_prefix_comm` (`prefix_comm`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_client` (`code_client`,`entity`),
  ADD UNIQUE KEY `uk_societe_code_fournisseur` (`code_fournisseur`,`entity`),
  ADD UNIQUE KEY `uk_societe_barcode` (`barcode`,`fk_barcode_type`,`entity`),
  ADD KEY `idx_societe_user_creat` (`fk_user_creat`),
  ADD KEY `idx_societe_user_modif` (`fk_user_modif`),
  ADD KEY `idx_societe_barcode` (`barcode`);

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

--
-- Index pour la table `pnfq_societe_commerciaux`
--
ALTER TABLE `pnfq_societe_commerciaux`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_commerciaux` (`fk_soc`,`fk_user`);

--
-- Index pour la table `pnfq_societe_extrafields`
--
ALTER TABLE `pnfq_societe_extrafields`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_societe_extrafields` (`fk_object`);

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

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

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

--
-- Index pour la table `pnfq_societe_remise_except`
--
ALTER TABLE `pnfq_societe_remise_except`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_societe_remise_except_fk_user` (`fk_user`),
  ADD KEY `idx_societe_remise_except_fk_soc` (`fk_soc`),
  ADD KEY `idx_societe_remise_except_fk_facture_line` (`fk_facture_line`),
  ADD KEY `idx_societe_remise_except_fk_facture` (`fk_facture`),
  ADD KEY `idx_societe_remise_except_fk_facture_source` (`fk_facture_source`),
  ADD KEY `fk_soc_remise_fk_invoice_supplier_line` (`fk_invoice_supplier_line`),
  ADD KEY `fk_societe_remise_fk_invoice_supplier_source` (`fk_invoice_supplier`);

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

--
-- Index pour la table `pnfq_socpeople`
--
ALTER TABLE `pnfq_socpeople`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_socpeople_fk_soc` (`fk_soc`),
  ADD KEY `idx_socpeople_fk_user_creat` (`fk_user_creat`);

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

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

--
-- Index pour la table `pnfq_stock_mouvement`
--
ALTER TABLE `pnfq_stock_mouvement`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_stock_mouvement_fk_product` (`fk_product`),
  ADD KEY `idx_stock_mouvement_fk_entrepot` (`fk_entrepot`);

--
-- Index pour la table `pnfq_subscription`
--
ALTER TABLE `pnfq_subscription`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_cotisation` (`fk_adherent`,`dateadh`),
  ADD UNIQUE KEY `uk_subscription` (`fk_adherent`,`dateadh`);

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

--
-- Index pour la table `pnfq_supplier_proposaldet`
--
ALTER TABLE `pnfq_supplier_proposaldet`
  ADD PRIMARY KEY (`rowid`),
  ADD KEY `idx_supplier_proposaldet_fk_supplier_proposal` (`fk_supplier_proposal`),
  ADD KEY `idx_supplier_proposaldet_fk_product` (`fk_product`),
  ADD KEY `fk_supplier_proposaldet_fk_unit` (`fk_unit`);

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

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

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

--
-- Index pour la table `pnfq_usergroup`
--
ALTER TABLE `pnfq_usergroup`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_name` (`nom`,`entity`);

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

--
-- Index pour la table `pnfq_usergroup_rights`
--
ALTER TABLE `pnfq_usergroup_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_rights` (`entity`,`fk_usergroup`,`fk_id`),
  ADD KEY `fk_usergroup_rights_fk_usergroup` (`fk_usergroup`);

--
-- Index pour la table `pnfq_usergroup_user`
--
ALTER TABLE `pnfq_usergroup_user`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_usergroup_user` (`entity`,`fk_user`,`fk_usergroup`),
  ADD KEY `fk_usergroup_user_fk_user` (`fk_user`),
  ADD KEY `fk_usergroup_user_fk_usergroup` (`fk_usergroup`);

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

--
-- Index pour la table `pnfq_user_clicktodial`
--
ALTER TABLE `pnfq_user_clicktodial`
  ADD PRIMARY KEY (`fk_user`);

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

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

--
-- Index pour la table `pnfq_user_param`
--
ALTER TABLE `pnfq_user_param`
  ADD UNIQUE KEY `uk_user_param` (`fk_user`,`param`,`entity`);

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

--
-- Index pour la table `pnfq_user_rights`
--
ALTER TABLE `pnfq_user_rights`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_user_rights` (`entity`,`fk_user`,`fk_id`),
  ADD KEY `fk_user_rights_fk_user_user` (`fk_user`);

--
-- Index pour la table `pnfq_website`
--
ALTER TABLE `pnfq_website`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_ref` (`ref`,`entity`);

--
-- Index pour la table `pnfq_website_page`
--
ALTER TABLE `pnfq_website_page`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `uk_website_page_url` (`fk_website`,`pageurl`);

--
-- AUTO_INCREMENT pour les tables déchargées
--

--
-- AUTO_INCREMENT pour la table `pnfq_accounting_account`
--
ALTER TABLE `pnfq_accounting_account`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4785;

--
-- AUTO_INCREMENT pour la table `pnfq_accounting_bookkeeping`
--
ALTER TABLE `pnfq_accounting_bookkeeping`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_accounting_bookkeeping_tmp`
--
ALTER TABLE `pnfq_accounting_bookkeeping_tmp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_accounting_fiscalyear`
--
ALTER TABLE `pnfq_accounting_fiscalyear`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_accounting_journal`
--
ALTER TABLE `pnfq_accounting_journal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT pour la table `pnfq_accounting_system`
--
ALTER TABLE `pnfq_accounting_system`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `pnfq_actioncomm`
--
ALTER TABLE `pnfq_actioncomm`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=505;

--
-- AUTO_INCREMENT pour la table `pnfq_actioncomm_extrafields`
--
ALTER TABLE `pnfq_actioncomm_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_actioncomm_resources`
--
ALTER TABLE `pnfq_actioncomm_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=505;

--
-- AUTO_INCREMENT pour la table `pnfq_adherent`
--
ALTER TABLE `pnfq_adherent`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_adherent_extrafields`
--
ALTER TABLE `pnfq_adherent_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_adherent_type`
--
ALTER TABLE `pnfq_adherent_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_adherent_type_extrafields`
--
ALTER TABLE `pnfq_adherent_type_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_advtargetemailing`
--
ALTER TABLE `pnfq_advtargetemailing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_bank`
--
ALTER TABLE `pnfq_bank`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT pour la table `pnfq_bank_account_extrafields`
--
ALTER TABLE `pnfq_bank_account_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_bank_categ`
--
ALTER TABLE `pnfq_bank_categ`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_bank_url`
--
ALTER TABLE `pnfq_bank_url`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=65;

--
-- AUTO_INCREMENT pour la table `pnfq_blockedlog`
--
ALTER TABLE `pnfq_blockedlog`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=668;

--
-- AUTO_INCREMENT pour la table `pnfq_blockedlog_authority`
--
ALTER TABLE `pnfq_blockedlog_authority`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_bookmark`
--
ALTER TABLE `pnfq_bookmark`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_bordereau_cheque`
--
ALTER TABLE `pnfq_bordereau_cheque`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_boxes`
--
ALTER TABLE `pnfq_boxes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT pour la table `pnfq_boxes_def`
--
ALTER TABLE `pnfq_boxes_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;

--
-- AUTO_INCREMENT pour la table `pnfq_budget`
--
ALTER TABLE `pnfq_budget`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_budget_lines`
--
ALTER TABLE `pnfq_budget_lines`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_categorie`
--
ALTER TABLE `pnfq_categorie`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_categories_extrafields`
--
ALTER TABLE `pnfq_categories_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_categorie_lang`
--
ALTER TABLE `pnfq_categorie_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_chargesociales`
--
ALTER TABLE `pnfq_chargesociales`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commande`
--
ALTER TABLE `pnfq_commande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commandedet`
--
ALTER TABLE `pnfq_commandedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commandedet_extrafields`
--
ALTER TABLE `pnfq_commandedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commande_extrafields`
--
ALTER TABLE `pnfq_commande_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commande_fournisseur`
--
ALTER TABLE `pnfq_commande_fournisseur`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_commande_fournisseurdet`
--
ALTER TABLE `pnfq_commande_fournisseurdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commande_fournisseurdet_extrafields`
--
ALTER TABLE `pnfq_commande_fournisseurdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commande_fournisseur_dispatch`
--
ALTER TABLE `pnfq_commande_fournisseur_dispatch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commande_fournisseur_extrafields`
--
ALTER TABLE `pnfq_commande_fournisseur_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_commande_fournisseur_log`
--
ALTER TABLE `pnfq_commande_fournisseur_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_const`
--
ALTER TABLE `pnfq_const`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=476;

--
-- AUTO_INCREMENT pour la table `pnfq_contrat`
--
ALTER TABLE `pnfq_contrat`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_contratdet`
--
ALTER TABLE `pnfq_contratdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_contratdet_extrafields`
--
ALTER TABLE `pnfq_contratdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_contratdet_log`
--
ALTER TABLE `pnfq_contratdet_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_contrat_extrafields`
--
ALTER TABLE `pnfq_contrat_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_cronjob`
--
ALTER TABLE `pnfq_cronjob`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `pnfq_c_accounting_category`
--
ALTER TABLE `pnfq_c_accounting_category`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `pnfq_c_action_trigger`
--
ALTER TABLE `pnfq_c_action_trigger`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=107;

--
-- AUTO_INCREMENT pour la table `pnfq_c_availability`
--
ALTER TABLE `pnfq_c_availability`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `pnfq_c_barcode_type`
--
ALTER TABLE `pnfq_c_barcode_type`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT pour la table `pnfq_c_chargesociales`
--
ALTER TABLE `pnfq_c_chargesociales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4110;

--
-- AUTO_INCREMENT pour la table `pnfq_c_departements`
--
ALTER TABLE `pnfq_c_departements`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1142;

--
-- AUTO_INCREMENT pour la table `pnfq_c_ecotaxe`
--
ALTER TABLE `pnfq_c_ecotaxe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;

--
-- AUTO_INCREMENT pour la table `pnfq_c_email_templates`
--
ALTER TABLE `pnfq_c_email_templates`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_c_field_list`
--
ALTER TABLE `pnfq_c_field_list`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_c_format_cards`
--
ALTER TABLE `pnfq_c_format_cards`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT pour la table `pnfq_c_forme_juridique`
--
ALTER TABLE `pnfq_c_forme_juridique`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=213;

--
-- AUTO_INCREMENT pour la table `pnfq_c_holiday_types`
--
ALTER TABLE `pnfq_c_holiday_types`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT pour la table `pnfq_c_incoterms`
--
ALTER TABLE `pnfq_c_incoterms`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT pour la table `pnfq_c_input_method`
--
ALTER TABLE `pnfq_c_input_method`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT pour la table `pnfq_c_input_reason`
--
ALTER TABLE `pnfq_c_input_reason`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT pour la table `pnfq_c_lead_status`
--
ALTER TABLE `pnfq_c_lead_status`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT pour la table `pnfq_c_paper_format`
--
ALTER TABLE `pnfq_c_paper_format`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=226;

--
-- AUTO_INCREMENT pour la table `pnfq_c_price_expression`
--
ALTER TABLE `pnfq_c_price_expression`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_c_price_global_variable`
--
ALTER TABLE `pnfq_c_price_global_variable`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_c_price_global_variable_updater`
--
ALTER TABLE `pnfq_c_price_global_variable_updater`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_c_regions`
--
ALTER TABLE `pnfq_c_regions`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23221;

--
-- AUTO_INCREMENT pour la table `pnfq_c_revenuestamp`
--
ALTER TABLE `pnfq_c_revenuestamp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=102;

--
-- AUTO_INCREMENT pour la table `pnfq_c_shipment_mode`
--
ALTER TABLE `pnfq_c_shipment_mode`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT pour la table `pnfq_c_tva`
--
ALTER TABLE `pnfq_c_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2473;

--
-- AUTO_INCREMENT pour la table `pnfq_c_type_fees`
--
ALTER TABLE `pnfq_c_type_fees`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `pnfq_c_type_resource`
--
ALTER TABLE `pnfq_c_type_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_c_units`
--
ALTER TABLE `pnfq_c_units`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT pour la table `pnfq_c_ziptown`
--
ALTER TABLE `pnfq_c_ziptown`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_default_values`
--
ALTER TABLE `pnfq_default_values`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_deplacement`
--
ALTER TABLE `pnfq_deplacement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_document_model`
--
ALTER TABLE `pnfq_document_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT pour la table `pnfq_don`
--
ALTER TABLE `pnfq_don`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_don_extrafields`
--
ALTER TABLE `pnfq_don_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_ecm_directories`
--
ALTER TABLE `pnfq_ecm_directories`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_ecm_files`
--
ALTER TABLE `pnfq_ecm_files`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_element_contact`
--
ALTER TABLE `pnfq_element_contact`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_element_element`
--
ALTER TABLE `pnfq_element_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_element_lock`
--
ALTER TABLE `pnfq_element_lock`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_element_resources`
--
ALTER TABLE `pnfq_element_resources`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_element_tag`
--
ALTER TABLE `pnfq_element_tag`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_entrepot`
--
ALTER TABLE `pnfq_entrepot`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_establishment`
--
ALTER TABLE `pnfq_establishment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_events`
--
ALTER TABLE `pnfq_events`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_event_element`
--
ALTER TABLE `pnfq_event_element`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expedition`
--
ALTER TABLE `pnfq_expedition`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expeditiondet`
--
ALTER TABLE `pnfq_expeditiondet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expeditiondet_batch`
--
ALTER TABLE `pnfq_expeditiondet_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expeditiondet_extrafields`
--
ALTER TABLE `pnfq_expeditiondet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expedition_extrafields`
--
ALTER TABLE `pnfq_expedition_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expensereport`
--
ALTER TABLE `pnfq_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expensereport_det`
--
ALTER TABLE `pnfq_expensereport_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_expensereport_extrafields`
--
ALTER TABLE `pnfq_expensereport_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_export_compta`
--
ALTER TABLE `pnfq_export_compta`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_export_model`
--
ALTER TABLE `pnfq_export_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_extrafields`
--
ALTER TABLE `pnfq_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_facture`
--
ALTER TABLE `pnfq_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=144;

--
-- AUTO_INCREMENT pour la table `pnfq_facturedet`
--
ALTER TABLE `pnfq_facturedet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=229;

--
-- AUTO_INCREMENT pour la table `pnfq_facturedet_extrafields`
--
ALTER TABLE `pnfq_facturedet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_facturedet_rec`
--
ALTER TABLE `pnfq_facturedet_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_facture_extrafields`
--
ALTER TABLE `pnfq_facture_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_facture_fourn`
--
ALTER TABLE `pnfq_facture_fourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT pour la table `pnfq_facture_fourn_det`
--
ALTER TABLE `pnfq_facture_fourn_det`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_facture_fourn_det_extrafields`
--
ALTER TABLE `pnfq_facture_fourn_det_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_facture_fourn_extrafields`
--
ALTER TABLE `pnfq_facture_fourn_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_facture_rec`
--
ALTER TABLE `pnfq_facture_rec`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_fichinter`
--
ALTER TABLE `pnfq_fichinter`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_fichinterdet`
--
ALTER TABLE `pnfq_fichinterdet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_fichinterdet_extrafields`
--
ALTER TABLE `pnfq_fichinterdet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_fichinter_extrafields`
--
ALTER TABLE `pnfq_fichinter_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_holiday`
--
ALTER TABLE `pnfq_holiday`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_holiday_config`
--
ALTER TABLE `pnfq_holiday_config`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT pour la table `pnfq_holiday_logs`
--
ALTER TABLE `pnfq_holiday_logs`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_import_model`
--
ALTER TABLE `pnfq_import_model`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_inventory`
--
ALTER TABLE `pnfq_inventory`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_inventorydet`
--
ALTER TABLE `pnfq_inventorydet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_links`
--
ALTER TABLE `pnfq_links`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_livraison`
--
ALTER TABLE `pnfq_livraison`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_livraisondet`
--
ALTER TABLE `pnfq_livraisondet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_livraisondet_extrafields`
--
ALTER TABLE `pnfq_livraisondet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_livraison_extrafields`
--
ALTER TABLE `pnfq_livraison_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_loan`
--
ALTER TABLE `pnfq_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_loan_schedule`
--
ALTER TABLE `pnfq_loan_schedule`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_localtax`
--
ALTER TABLE `pnfq_localtax`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_mailing`
--
ALTER TABLE `pnfq_mailing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_mailing_cibles`
--
ALTER TABLE `pnfq_mailing_cibles`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_menu`
--
ALTER TABLE `pnfq_menu`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;

--
-- AUTO_INCREMENT pour la table `pnfq_multicurrency`
--
ALTER TABLE `pnfq_multicurrency`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_multicurrency_rate`
--
ALTER TABLE `pnfq_multicurrency_rate`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_notify`
--
ALTER TABLE `pnfq_notify`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_notify_def`
--
ALTER TABLE `pnfq_notify_def`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_notify_def_object`
--
ALTER TABLE `pnfq_notify_def_object`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_oauth_state`
--
ALTER TABLE `pnfq_oauth_state`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_oauth_token`
--
ALTER TABLE `pnfq_oauth_token`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_opensurvey_comments`
--
ALTER TABLE `pnfq_opensurvey_comments`
  MODIFY `id_comment` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_opensurvey_formquestions`
--
ALTER TABLE `pnfq_opensurvey_formquestions`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_opensurvey_user_studs`
--
ALTER TABLE `pnfq_opensurvey_user_studs`
  MODIFY `id_users` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_overwrite_trans`
--
ALTER TABLE `pnfq_overwrite_trans`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_paiement`
--
ALTER TABLE `pnfq_paiement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT pour la table `pnfq_paiementcharge`
--
ALTER TABLE `pnfq_paiementcharge`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_paiementfourn`
--
ALTER TABLE `pnfq_paiementfourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_paiementfourn_facturefourn`
--
ALTER TABLE `pnfq_paiementfourn_facturefourn`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_paiement_facture`
--
ALTER TABLE `pnfq_paiement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;

--
-- AUTO_INCREMENT pour la table `pnfq_payment_donation`
--
ALTER TABLE `pnfq_payment_donation`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_payment_expensereport`
--
ALTER TABLE `pnfq_payment_expensereport`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_payment_loan`
--
ALTER TABLE `pnfq_payment_loan`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_payment_salary`
--
ALTER TABLE `pnfq_payment_salary`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_payment_various`
--
ALTER TABLE `pnfq_payment_various`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_prelevement_bons`
--
ALTER TABLE `pnfq_prelevement_bons`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_prelevement_facture`
--
ALTER TABLE `pnfq_prelevement_facture`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_prelevement_facture_demande`
--
ALTER TABLE `pnfq_prelevement_facture_demande`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_prelevement_lignes`
--
ALTER TABLE `pnfq_prelevement_lignes`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_prelevement_rejet`
--
ALTER TABLE `pnfq_prelevement_rejet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_printer_ipp`
--
ALTER TABLE `pnfq_printer_ipp`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_printing`
--
ALTER TABLE `pnfq_printing`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product`
--
ALTER TABLE `pnfq_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;

--
-- AUTO_INCREMENT pour la table `pnfq_product_association`
--
ALTER TABLE `pnfq_product_association`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_attribute`
--
ALTER TABLE `pnfq_product_attribute`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_attribute_combination`
--
ALTER TABLE `pnfq_product_attribute_combination`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_attribute_combination2val`
--
ALTER TABLE `pnfq_product_attribute_combination2val`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_attribute_value`
--
ALTER TABLE `pnfq_product_attribute_value`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_batch`
--
ALTER TABLE `pnfq_product_batch`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_customer_price`
--
ALTER TABLE `pnfq_product_customer_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_customer_price_log`
--
ALTER TABLE `pnfq_product_customer_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_extrafields`
--
ALTER TABLE `pnfq_product_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_fournisseur_price`
--
ALTER TABLE `pnfq_product_fournisseur_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_fournisseur_price_log`
--
ALTER TABLE `pnfq_product_fournisseur_price_log`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_lang`
--
ALTER TABLE `pnfq_product_lang`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_lot`
--
ALTER TABLE `pnfq_product_lot`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_lot_extrafields`
--
ALTER TABLE `pnfq_product_lot_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_price`
--
ALTER TABLE `pnfq_product_price`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72;

--
-- AUTO_INCREMENT pour la table `pnfq_product_pricerules`
--
ALTER TABLE `pnfq_product_pricerules`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_price_by_qty`
--
ALTER TABLE `pnfq_product_price_by_qty`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_stock`
--
ALTER TABLE `pnfq_product_stock`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_product_warehouse_properties`
--
ALTER TABLE `pnfq_product_warehouse_properties`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_projet`
--
ALTER TABLE `pnfq_projet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT pour la table `pnfq_projet_extrafields`
--
ALTER TABLE `pnfq_projet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_projet_task`
--
ALTER TABLE `pnfq_projet_task`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_projet_task_extrafields`
--
ALTER TABLE `pnfq_projet_task_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_projet_task_time`
--
ALTER TABLE `pnfq_projet_task_time`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_propal`
--
ALTER TABLE `pnfq_propal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_propaldet`
--
ALTER TABLE `pnfq_propaldet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_propaldet_extrafields`
--
ALTER TABLE `pnfq_propaldet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_propal_extrafields`
--
ALTER TABLE `pnfq_propal_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_propal_merge_pdf_product`
--
ALTER TABLE `pnfq_propal_merge_pdf_product`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_resource`
--
ALTER TABLE `pnfq_resource`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_resource_extrafields`
--
ALTER TABLE `pnfq_resource_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_societe`
--
ALTER TABLE `pnfq_societe`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_address`
--
ALTER TABLE `pnfq_societe_address`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_commerciaux`
--
ALTER TABLE `pnfq_societe_commerciaux`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_extrafields`
--
ALTER TABLE `pnfq_societe_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_log`
--
ALTER TABLE `pnfq_societe_log`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_prices`
--
ALTER TABLE `pnfq_societe_prices`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_remise`
--
ALTER TABLE `pnfq_societe_remise`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_remise_except`
--
ALTER TABLE `pnfq_societe_remise_except`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_societe_rib`
--
ALTER TABLE `pnfq_societe_rib`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_socpeople`
--
ALTER TABLE `pnfq_socpeople`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_socpeople_extrafields`
--
ALTER TABLE `pnfq_socpeople_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_stock_lotserial`
--
ALTER TABLE `pnfq_stock_lotserial`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_stock_mouvement`
--
ALTER TABLE `pnfq_stock_mouvement`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_subscription`
--
ALTER TABLE `pnfq_subscription`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_supplier_proposal`
--
ALTER TABLE `pnfq_supplier_proposal`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_supplier_proposaldet`
--
ALTER TABLE `pnfq_supplier_proposaldet`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_supplier_proposaldet_extrafields`
--
ALTER TABLE `pnfq_supplier_proposaldet_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_supplier_proposal_extrafields`
--
ALTER TABLE `pnfq_supplier_proposal_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_tva`
--
ALTER TABLE `pnfq_tva`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_usergroup`
--
ALTER TABLE `pnfq_usergroup`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_usergroup_extrafields`
--
ALTER TABLE `pnfq_usergroup_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_usergroup_rights`
--
ALTER TABLE `pnfq_usergroup_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_usergroup_user`
--
ALTER TABLE `pnfq_usergroup_user`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_user_alert`
--
ALTER TABLE `pnfq_user_alert`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_user_employment`
--
ALTER TABLE `pnfq_user_employment`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_user_extrafields`
--
ALTER TABLE `pnfq_user_extrafields`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_user_rib`
--
ALTER TABLE `pnfq_user_rib`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_user_rights`
--
ALTER TABLE `pnfq_user_rights`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=501;

--
-- AUTO_INCREMENT pour la table `pnfq_website`
--
ALTER TABLE `pnfq_website`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT pour la table `pnfq_website_page`
--
ALTER TABLE `pnfq_website_page`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT;

--
-- Contraintes pour les tables déchargées
--

--
-- Contraintes pour la table `pnfq_accounting_account`
--
ALTER TABLE `pnfq_accounting_account`
  ADD CONSTRAINT `fk_accountingaccount_fk_pcg_version` FOREIGN KEY (`fk_pcg_version`) REFERENCES `pnfq_accounting_system` (`pcg_version`);

--
-- Contraintes pour la table `pnfq_adherent`
--
ALTER TABLE `pnfq_adherent`
  ADD CONSTRAINT `adherent_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_adherent_adherent_type` FOREIGN KEY (`fk_adherent_type`) REFERENCES `pnfq_adherent_type` (`rowid`);

--
-- Contraintes pour la table `pnfq_boxes`
--
ALTER TABLE `pnfq_boxes`
  ADD CONSTRAINT `fk_boxes_box_id` FOREIGN KEY (`box_id`) REFERENCES `pnfq_boxes_def` (`rowid`);

--
-- Contraintes pour la table `pnfq_budget_lines`
--
ALTER TABLE `pnfq_budget_lines`
  ADD CONSTRAINT `fk_budget_lines_budget` FOREIGN KEY (`fk_budget`) REFERENCES `pnfq_budget` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_account`
--
ALTER TABLE `pnfq_categorie_account`
  ADD CONSTRAINT `fk_categorie_account_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_account_fk_account` FOREIGN KEY (`fk_account`) REFERENCES `pnfq_bank_account` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_contact`
--
ALTER TABLE `pnfq_categorie_contact`
  ADD CONSTRAINT `fk_categorie_contact_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_contact_fk_socpeople` FOREIGN KEY (`fk_socpeople`) REFERENCES `pnfq_socpeople` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_fournisseur`
--
ALTER TABLE `pnfq_categorie_fournisseur`
  ADD CONSTRAINT `fk_categorie_fournisseur_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_lang`
--
ALTER TABLE `pnfq_categorie_lang`
  ADD CONSTRAINT `fk_category_lang_fk_category` FOREIGN KEY (`fk_category`) REFERENCES `pnfq_categorie` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_member`
--
ALTER TABLE `pnfq_categorie_member`
  ADD CONSTRAINT `fk_categorie_member_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_member_member_rowid` FOREIGN KEY (`fk_member`) REFERENCES `pnfq_adherent` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_product`
--
ALTER TABLE `pnfq_categorie_product`
  ADD CONSTRAINT `fk_categorie_product_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_product_product_rowid` FOREIGN KEY (`fk_product`) REFERENCES `pnfq_product` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_project`
--
ALTER TABLE `pnfq_categorie_project`
  ADD CONSTRAINT `fk_categorie_project_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_project_fk_project` FOREIGN KEY (`fk_project`) REFERENCES `pnfq_projet` (`rowid`),
  ADD CONSTRAINT `fk_categorie_project_fk_project_rowid` FOREIGN KEY (`fk_project`) REFERENCES `pnfq_projet` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_societe`
--
ALTER TABLE `pnfq_categorie_societe`
  ADD CONSTRAINT `fk_categorie_societe_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_societe_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`);

--
-- Contraintes pour la table `pnfq_categorie_user`
--
ALTER TABLE `pnfq_categorie_user`
  ADD CONSTRAINT `fk_categorie_user_categorie_rowid` FOREIGN KEY (`fk_categorie`) REFERENCES `pnfq_categorie` (`rowid`),
  ADD CONSTRAINT `fk_categorie_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_commande`
--
ALTER TABLE `pnfq_commande`
  ADD CONSTRAINT `fk_commande_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `pnfq_projet` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_commande_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_commandedet`
--
ALTER TABLE `pnfq_commandedet`
  ADD CONSTRAINT `fk_commandedet_fk_commande` FOREIGN KEY (`fk_commande`) REFERENCES `pnfq_commande` (`rowid`),
  ADD CONSTRAINT `fk_commandedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_commande_fournisseur`
--
ALTER TABLE `pnfq_commande_fournisseur`
  ADD CONSTRAINT `fk_commande_fournisseur_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`);

--
-- Contraintes pour la table `pnfq_commande_fournisseurdet`
--
ALTER TABLE `pnfq_commande_fournisseurdet`
  ADD CONSTRAINT `fk_commande_fournisseurdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_contrat`
--
ALTER TABLE `pnfq_contrat`
  ADD CONSTRAINT `fk_contrat_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_contrat_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_contratdet`
--
ALTER TABLE `pnfq_contratdet`
  ADD CONSTRAINT `fk_contratdet_fk_contrat` FOREIGN KEY (`fk_contrat`) REFERENCES `pnfq_contrat` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `pnfq_product` (`rowid`),
  ADD CONSTRAINT `fk_contratdet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_contratdet_log`
--
ALTER TABLE `pnfq_contratdet_log`
  ADD CONSTRAINT `fk_contratdet_log_fk_contratdet` FOREIGN KEY (`fk_contratdet`) REFERENCES `pnfq_contratdet` (`rowid`);

--
-- Contraintes pour la table `pnfq_c_departements`
--
ALTER TABLE `pnfq_c_departements`
  ADD CONSTRAINT `fk_departements_code_region` FOREIGN KEY (`fk_region`) REFERENCES `pnfq_c_regions` (`code_region`);

--
-- Contraintes pour la table `pnfq_c_regions`
--
ALTER TABLE `pnfq_c_regions`
  ADD CONSTRAINT `fk_c_regions_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `pnfq_c_country` (`rowid`);

--
-- Contraintes pour la table `pnfq_c_ziptown`
--
ALTER TABLE `pnfq_c_ziptown`
  ADD CONSTRAINT `fk_c_ziptown_fk_county` FOREIGN KEY (`fk_county`) REFERENCES `pnfq_c_departements` (`rowid`),
  ADD CONSTRAINT `fk_c_ziptown_fk_pays` FOREIGN KEY (`fk_pays`) REFERENCES `pnfq_c_country` (`rowid`);

--
-- Contraintes pour la table `pnfq_ecm_directories`
--
ALTER TABLE `pnfq_ecm_directories`
  ADD CONSTRAINT `fk_ecm_directories_fk_user_c` FOREIGN KEY (`fk_user_c`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_ecm_directories_fk_user_m` FOREIGN KEY (`fk_user_m`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_element_contact`
--
ALTER TABLE `pnfq_element_contact`
  ADD CONSTRAINT `fk_element_contact_fk_c_type_contact` FOREIGN KEY (`fk_c_type_contact`) REFERENCES `pnfq_c_type_contact` (`rowid`);

--
-- Contraintes pour la table `pnfq_expedition`
--
ALTER TABLE `pnfq_expedition`
  ADD CONSTRAINT `fk_expedition_fk_shipping_method` FOREIGN KEY (`fk_shipping_method`) REFERENCES `pnfq_c_shipment_mode` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_expedition_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_expeditiondet`
--
ALTER TABLE `pnfq_expeditiondet`
  ADD CONSTRAINT `fk_expeditiondet_fk_expedition` FOREIGN KEY (`fk_expedition`) REFERENCES `pnfq_expedition` (`rowid`);

--
-- Contraintes pour la table `pnfq_expeditiondet_batch`
--
ALTER TABLE `pnfq_expeditiondet_batch`
  ADD CONSTRAINT `fk_expeditiondet_batch_fk_expeditiondet` FOREIGN KEY (`fk_expeditiondet`) REFERENCES `pnfq_expeditiondet` (`rowid`);

--
-- Contraintes pour la table `pnfq_facture`
--
ALTER TABLE `pnfq_facture`
  ADD CONSTRAINT `fk_facture_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `pnfq_facture` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `pnfq_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_facturedet`
--
ALTER TABLE `pnfq_facturedet`
  ADD CONSTRAINT `fk_facturedet_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `pnfq_facture` (`rowid`),
  ADD CONSTRAINT `fk_facturedet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_facturedet_rec`
--
ALTER TABLE `pnfq_facturedet_rec`
  ADD CONSTRAINT `fk_facturedet_rec_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_facture_fourn`
--
ALTER TABLE `pnfq_facture_fourn`
  ADD CONSTRAINT `fk_facture_fourn_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `pnfq_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_facture_fourn_det`
--
ALTER TABLE `pnfq_facture_fourn_det`
  ADD CONSTRAINT `fk_facture_fourn_det_fk_facture` FOREIGN KEY (`fk_facture_fourn`) REFERENCES `pnfq_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_facture_fourn_det_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_facture_rec`
--
ALTER TABLE `pnfq_facture_rec`
  ADD CONSTRAINT `fk_facture_rec_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `pnfq_projet` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_facture_rec_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_fichinter`
--
ALTER TABLE `pnfq_fichinter`
  ADD CONSTRAINT `fk_fichinter_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`);

--
-- Contraintes pour la table `pnfq_fichinterdet`
--
ALTER TABLE `pnfq_fichinterdet`
  ADD CONSTRAINT `fk_fichinterdet_fk_fichinter` FOREIGN KEY (`fk_fichinter`) REFERENCES `pnfq_fichinter` (`rowid`);

--
-- Contraintes pour la table `pnfq_livraison`
--
ALTER TABLE `pnfq_livraison`
  ADD CONSTRAINT `fk_livraison_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_livraison_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_livraisondet`
--
ALTER TABLE `pnfq_livraisondet`
  ADD CONSTRAINT `fk_livraisondet_fk_livraison` FOREIGN KEY (`fk_livraison`) REFERENCES `pnfq_livraison` (`rowid`);

--
-- Contraintes pour la table `pnfq_paiement_facture`
--
ALTER TABLE `pnfq_paiement_facture`
  ADD CONSTRAINT `fk_paiement_facture_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `pnfq_facture` (`rowid`),
  ADD CONSTRAINT `fk_paiement_facture_fk_paiement` FOREIGN KEY (`fk_paiement`) REFERENCES `pnfq_paiement` (`rowid`);

--
-- Contraintes pour la table `pnfq_payment_salary`
--
ALTER TABLE `pnfq_payment_salary`
  ADD CONSTRAINT `fk_payment_salary_user` FOREIGN KEY (`fk_user`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_prelevement_facture`
--
ALTER TABLE `pnfq_prelevement_facture`
  ADD CONSTRAINT `fk_prelevement_facture_fk_prelevement_lignes` FOREIGN KEY (`fk_prelevement_lignes`) REFERENCES `pnfq_prelevement_lignes` (`rowid`);

--
-- Contraintes pour la table `pnfq_prelevement_lignes`
--
ALTER TABLE `pnfq_prelevement_lignes`
  ADD CONSTRAINT `fk_prelevement_lignes_fk_prelevement_bons` FOREIGN KEY (`fk_prelevement_bons`) REFERENCES `pnfq_prelevement_bons` (`rowid`);

--
-- Contraintes pour la table `pnfq_product`
--
ALTER TABLE `pnfq_product`
  ADD CONSTRAINT `fk_product_barcode_type` FOREIGN KEY (`fk_barcode_type`) REFERENCES `pnfq_c_barcode_type` (`rowid`),
  ADD CONSTRAINT `fk_product_fk_country` FOREIGN KEY (`fk_country`) REFERENCES `pnfq_c_country` (`rowid`),
  ADD CONSTRAINT `fk_product_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_product_batch`
--
ALTER TABLE `pnfq_product_batch`
  ADD CONSTRAINT `fk_product_batch_fk_product_stock` FOREIGN KEY (`fk_product_stock`) REFERENCES `pnfq_product_stock` (`rowid`);

--
-- Contraintes pour la table `pnfq_product_customer_price`
--
ALTER TABLE `pnfq_product_customer_price`
  ADD CONSTRAINT `fk_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `pnfq_product` (`rowid`),
  ADD CONSTRAINT `fk_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `pnfq_product` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_product_customer_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_product_fournisseur_price`
--
ALTER TABLE `pnfq_product_fournisseur_price`
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `pnfq_product` (`rowid`),
  ADD CONSTRAINT `fk_product_fournisseur_price_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_product_lang`
--
ALTER TABLE `pnfq_product_lang`
  ADD CONSTRAINT `fk_product_lang_fk_product` FOREIGN KEY (`fk_product`) REFERENCES `pnfq_product` (`rowid`);

--
-- Contraintes pour la table `pnfq_product_price`
--
ALTER TABLE `pnfq_product_price`
  ADD CONSTRAINT `fk_product_price_product` FOREIGN KEY (`fk_product`) REFERENCES `pnfq_product` (`rowid`),
  ADD CONSTRAINT `fk_product_price_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_product_price_by_qty`
--
ALTER TABLE `pnfq_product_price_by_qty`
  ADD CONSTRAINT `fk_product_price_by_qty_fk_product_price` FOREIGN KEY (`fk_product_price`) REFERENCES `pnfq_product_price` (`rowid`);

--
-- Contraintes pour la table `pnfq_projet`
--
ALTER TABLE `pnfq_projet`
  ADD CONSTRAINT `fk_projet_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`);

--
-- Contraintes pour la table `pnfq_projet_task`
--
ALTER TABLE `pnfq_projet_task`
  ADD CONSTRAINT `fk_projet_task_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `pnfq_projet` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_creat` FOREIGN KEY (`fk_user_creat`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_projet_task_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_propal`
--
ALTER TABLE `pnfq_propal`
  ADD CONSTRAINT `fk_propal_fk_projet` FOREIGN KEY (`fk_projet`) REFERENCES `pnfq_projet` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_author` FOREIGN KEY (`fk_user_author`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_cloture` FOREIGN KEY (`fk_user_cloture`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_propal_fk_user_valid` FOREIGN KEY (`fk_user_valid`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_propaldet`
--
ALTER TABLE `pnfq_propaldet`
  ADD CONSTRAINT `fk_propaldet_fk_propal` FOREIGN KEY (`fk_propal`) REFERENCES `pnfq_propal` (`rowid`),
  ADD CONSTRAINT `fk_propaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_societe_remise_except`
--
ALTER TABLE `pnfq_societe_remise_except`
  ADD CONSTRAINT `fk_soc_remise_fk_invoice_supplier_line` FOREIGN KEY (`fk_invoice_supplier_line`) REFERENCES `pnfq_facture_fourn_det` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture` FOREIGN KEY (`fk_facture`) REFERENCES `pnfq_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_line` FOREIGN KEY (`fk_facture_line`) REFERENCES `pnfq_facturedet` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_facture_source` FOREIGN KEY (`fk_facture_source`) REFERENCES `pnfq_facture` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_invoice_supplier` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `pnfq_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_invoice_supplier_source` FOREIGN KEY (`fk_invoice_supplier`) REFERENCES `pnfq_facture_fourn` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_societe_remise_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_socpeople`
--
ALTER TABLE `pnfq_socpeople`
  ADD CONSTRAINT `fk_socpeople_fk_soc` FOREIGN KEY (`fk_soc`) REFERENCES `pnfq_societe` (`rowid`),
  ADD CONSTRAINT `fk_socpeople_user_creat_user_rowid` FOREIGN KEY (`fk_user_creat`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_supplier_proposaldet`
--
ALTER TABLE `pnfq_supplier_proposaldet`
  ADD CONSTRAINT `fk_supplier_proposaldet_fk_supplier_proposal` FOREIGN KEY (`fk_supplier_proposal`) REFERENCES `pnfq_supplier_proposal` (`rowid`),
  ADD CONSTRAINT `fk_supplier_proposaldet_fk_unit` FOREIGN KEY (`fk_unit`) REFERENCES `pnfq_c_units` (`rowid`);

--
-- Contraintes pour la table `pnfq_usergroup_rights`
--
ALTER TABLE `pnfq_usergroup_rights`
  ADD CONSTRAINT `fk_usergroup_rights_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `pnfq_usergroup` (`rowid`);

--
-- Contraintes pour la table `pnfq_usergroup_user`
--
ALTER TABLE `pnfq_usergroup_user`
  ADD CONSTRAINT `fk_usergroup_user_fk_user` FOREIGN KEY (`fk_user`) REFERENCES `pnfq_user` (`rowid`),
  ADD CONSTRAINT `fk_usergroup_user_fk_usergroup` FOREIGN KEY (`fk_usergroup`) REFERENCES `pnfq_usergroup` (`rowid`);

--
-- Contraintes pour la table `pnfq_user_rights`
--
ALTER TABLE `pnfq_user_rights`
  ADD CONSTRAINT `fk_user_rights_fk_user_user` FOREIGN KEY (`fk_user`) REFERENCES `pnfq_user` (`rowid`);

--
-- Contraintes pour la table `pnfq_website_page`
--
ALTER TABLE `pnfq_website_page`
  ADD CONSTRAINT `fk_website_page_website` FOREIGN KEY (`fk_website`) REFERENCES `pnfq_website` (`rowid`);
COMMIT;

