--
-- Host: localhost    Database: FACT_MaBoutic
-- ------------------------------------------------------


--
-- Table structure for table `ABONNEMENT`
--

CREATE TABLE `ABONNEMENT` (
  `Abonnement_Id` int(10) unsigned NOT NULL auto_increment,
  `NumeroMoisPrefixe` int(10) unsigned default '0',
  `Num_Entier` char(14) default NULL,
  `PrefixeNumContrat` varchar(6) default NULL,
  `Modele_Id` int(10) unsigned NOT NULL,
  `Reference_modele` char(10) NOT NULL,
  `Libelle` varchar(40) NOT NULL,
  `Periodicite` tinyint(3) unsigned default NULL,
  `Type_periodicite` tinyint(3) unsigned default NULL,
  `Duree_contrat` int(10) unsigned default NULL,
  `Type_duree_contrat` tinyint(3) unsigned default NULL,
  `Duree_recon_contrat` int(10) unsigned default NULL,
  `Type_duree_recon_contrat` tinyint(3) unsigned default NULL,
  `Type_contrat` tinyint(3) unsigned default NULL,
  `OptionRachat` tinyint(3) unsigned default NULL,
  `ValeurRachat` decimal(14,2) default NULL,
  `PourcentageRachat` decimal(5,2) unsigned default NULL,
  `Delai_preavis` tinyint(3) unsigned default NULL,
  `Date_du_preavis` bigint(20) unsigned default NULL,
  `Delai_gen_facture` tinyint(3) unsigned default NULL,
  `nbPeriodeOfferte` tinyint(3) unsigned default NULL,
  `Delais_reglement` tinyint(3) unsigned default NULL,
  `Type_reglement` tinyint(3) unsigned default NULL,
  `Val_type_reglement` tinyint(3) unsigned default '0',
  `Commentaires` text,
  `Date_debut_contrat` bigint(20) unsigned default NULL,
  `Date_debut_abonnement` bigint(20) unsigned default NULL,
  `Date_fin_abonnement` bigint(20) unsigned default NULL,
  `Login_resp` varchar(15) default '',
  `Code_tarif` tinyint(3) unsigned default '1',
  `Mode_reglement` varchar(25) default NULL,
  `Remise` decimal(5,2) unsigned default NULL,
  `Escompte` decimal(5,2) unsigned default NULL,
  `Frais_Port` decimal(10,2) unsigned default NULL,
  `Etat` char(1) default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Adresse` varchar(80) default NULL,
  `Comp_Adresse` varchar(50) default NULL,
  `Code_Postal` varchar(10) default NULL,
  `Ville` varchar(50) default NULL,
  `Pays` varchar(30) default NULL,
  `Client_Id` varchar(10) default NULL,
  `Num_Inter` int(10) unsigned default NULL,
  `Type_facturation` tinyint(3) unsigned default NULL,
  `Type_Vente` char(1) default 'N',
  `Edition_TTC` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Abonnement_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ABONNEMENT`
--


--
-- Table structure for table `ADRESSE_COMMANDE`
--

CREATE TABLE `ADRESSE_COMMANDE` (
  `Num_Adresse` int(10) unsigned NOT NULL auto_increment,
  `Fournisseur_Id` char(10) NOT NULL,
  `Raison_Sociale` varchar(50) default '',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Defaut` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Num_Adresse`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ADRESSE_COMMANDE`
--

INSERT INTO `ADRESSE_COMMANDE` VALUES (1,'F440000','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','',1),(2,'F81030000','CONTIGRAPH 81','ZI Melou','','','81100','CASTRES','FRANCE',1),(3,'frn001','CONFITURES EN GROS','789, allée de L\'abre en boule','','','81100','CASTRES','France',1),(4,'frn_004','LES MAGASINS REUNIS','Rue des torticollis','','','81000','ALBI','France',1),(5,'frn_007','CITROEN','Avenue des champs Elysées','','','75001','PARIS','France',1),(6,'frn_008','PEUGEOT','route du pont','','','75002','PARIS','France',1),(7,'frn_009','TOUTPOURLAUTO','parc d\'activité des sudres','','','81100','CASTRES','France',1),(8,'frn_003','LE FLEURON','ici','','','81100','CASTRES','France',1);

--
-- Table structure for table `ADRESSE_FACTURATION`
--

CREATE TABLE `ADRESSE_FACTURATION` (
  `Num_Adresse` int(10) unsigned NOT NULL auto_increment,
  `Client_Id` char(10) NOT NULL,
  `Raison_Sociale` varchar(50) default '',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Defaut` tinyint(3) unsigned default '0',
  `Telephone` varchar(20) default '',
  `Email` varchar(60) default '',
  PRIMARY KEY  (`Num_Adresse`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ADRESSE_FACTURATION`
--

INSERT INTO `ADRESSE_FACTURATION` VALUES (1,'C810001','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1,'',''),(2,'C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1,'',''),(3,'C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1,'',''),(4,'C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1,'',''),(5,'C810000','AEL','6, Ave Lucien Coudert','','','81100','CASTRES','France',1,'',''),(6,'C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1,'',''),(7,'C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1,'',''),(8,'C810003','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',1,'',''),(9,'C110000','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',1,'',''),(10,'C-CAISSE','M. Caisse','Rue','','','81100','CASTRES','',1,'',''),(11,'P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1,'',''),(12,'P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1,'',''),(13,'P8100001','EFCS SARL','chemin des Mésanges','','','81600','GAILLAC','France',1,'',''),(14,'P3100002','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France',1,'',''),(15,'C450000','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',1,'',''),(16,'C810006','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',1,'',''),(17,'C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1,'','');

--
-- Table structure for table `ADRESSE_LIVRAISON`
--

CREATE TABLE `ADRESSE_LIVRAISON` (
  `Num_Adresse` int(10) unsigned NOT NULL auto_increment,
  `Client_Id` char(10) NOT NULL,
  `Raison_Sociale` varchar(50) default '',
  `Nom` varchar(50) default '',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Defaut` tinyint(3) unsigned default '0',
  `Telephone` varchar(20) default '',
  `Email` varchar(60) default '',
  PRIMARY KEY  (`Num_Adresse`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ADRESSE_LIVRAISON`
--

INSERT INTO `ADRESSE_LIVRAISON` VALUES (1,'C810001','AFFAIRES EN LIGNE','','L\'Espinasse','','','81240','LACABAREDE','France',1,'',''),(2,'C810002','BIOTERROIR','','28, rue du chêne clair','','','81000','ALBI','France',1,'',''),(3,'C310000','Librairie Coulier','','56, place du Capitole','','','31000','TOULOUSE','France',1,'',''),(4,'C310001','CHARLY-HEBDDO','','45, route de Narbonne','','','31000','TOULOUSE','',1,'',''),(5,'C810000','AEL','','6, Ave Lucien Coudert','','','81100','CASTRES','France',1,'',''),(6,'C810004','A MAMES','','1, impasse barral','','','81100','CASTRES','FRANCE',1,'',''),(7,'C810005','CLIC CLIC','','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1,'',''),(8,'C810003','MADY TIFF','','153 avenue du Sidobre','','','81100','CASTRES','France',1,'',''),(9,'C110000','M. DUCHARBON Noir','','RN99','','','11000','Carcassonne','France',1,'',''),(10,'C-CAISSE','M. Caisse','','Rue','','','81100','CASTRES','',1,'',''),(11,'P8100000','PUEL PHILIPPE','PUEL','Le bourg','','','81350','ST JEAN DE MARCEL','France',1,'',''),(12,'P8100000','PUEL PHILIPPE','PUEL','Le bourg','','','81350','ST JEAN DE MARCEL','France',0,'',''),(13,'P8100001','EFCS SARL','BRISSET','chemin des Mésanges','','','81600','GAILLAC','France',1,'',''),(14,'P3100002','SA SNEF','DREAU','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France',1,'',''),(15,'C450000','M. LAFLEUR Julie','','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',1,'',''),(16,'C810006','Les OUBLIES DE NAVARRES','','Chemin des pas perdus','','','81250','MAZAMET','France',1,'',''),(17,'C310002','M. HYDRAVION Jules','','Ici et là','','','31540','LARDENNE','France',1,'','');

--
-- Table structure for table `AFFAIRE`
--

CREATE TABLE `AFFAIRE` (
  `Affaire_Id` int(10) unsigned NOT NULL auto_increment,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` char(10) default NULL,
  `Client_Id` char(10) NOT NULL,
  `Nom_Affaire` varchar(20) default NULL,
  `Num_Inter` int(10) unsigned default NULL,
  `Login_Resp` varchar(15) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Adresse_Fact` varchar(80) default NULL,
  `Comp_Adresse_Fact` varchar(50) default NULL,
  `Adresse_3_Fact` varchar(50) default '',
  `CP_Fact` varchar(10) default NULL,
  `Ville_Fact` varchar(50) default NULL,
  `Pays_Fact` varchar(30) default NULL,
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Etat` char(1) default NULL,
  `Date_Cloture` bigint(20) unsigned default NULL,
  `Type_Fact` char(1) default NULL,
  `Nom_Liv` varchar(50) default NULL,
  `Adresse_Liv` varchar(80) default NULL,
  `Comp_Adresse_Liv` varchar(50) default NULL,
  `Adresse_3_Liv` varchar(50) default '',
  `CP_Liv` varchar(10) default NULL,
  `Ville_Liv` varchar(50) default NULL,
  `Pays_Liv` varchar(30) default NULL,
  `Receptionnaire` varchar(50) default '',
  PRIMARY KEY  (`Affaire_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `AFFAIRE`
--

INSERT INTO `AFFAIRE` VALUES (1,1,'AC08010001','C810001','PLV',0,'jj31','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','',0,'VM','VM',1200306865368,1200306865368,'V',0,'B','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',''),(2,2,'AC08010002','C810002','',0,'gfremery','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','',0,'VM','VM',1200306959880,1200306959880,'V',0,'C','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',''),(3,3,'AC08010003','C810002','',0,'gfremery','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','',0,'VM','VM',1200307188900,1200307220297,'V',0,'C','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',''),(4,4,'AC08010004','C810002','',0,'gfremery','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','',0,'VM','VM',1200307309425,1200307619380,'N',0,'G','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',''),(5,5,'AC08010005','C310000','',0,'gfremery','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',0,'gfremery','gfremery',1200327819813,1200327819813,'N',0,'C','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',''),(6,6,'AC08010006','C110000','',5,'demo','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',0,'demo','demo',1200583230687,1200583258099,'V',0,'G','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',''),(7,1,'AC08090001','C810005','La belle affaire',0,'gfremery','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',0,'gfremery','gfremery',1222262942676,1222531458133,'V',0,'C','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',''),(8,2,'AC08090002','C810005','',0,'VM','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',0,'gfremery','gfremery',1222282025200,1222282025200,'C',1223892274629,'C','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',''),(9,3,'AC08090003','P8100000','UneAutreBelleAffaire',7,'gfremery','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','Ceci est une nouvelle affaire',1,'gfremery','gfremery',1222697570398,1222697586597,'C',1223892274909,'C','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','$(SqlEncode)Pays','PUEL'),(10,1,'AC08100001','C310000','çacestdelaballe',2,'gfremery','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',0,'gfremery','gfremery',1222854406596,1222854406596,'C',1222854745770,'C','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','DuChemin'),(11,2,'AC08100002','C310000','l\'affaire du siècle',2,'gfremery','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',0,'gfremery','gfremery',1223284849457,1223284849457,'C',1223297398947,'C','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',''),(12,3,'AC08100003','C310001','affaire  09/10',0,'gfremery','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',0,'gfremery','gfremery',1223891772356,1223891772356,'C',1223892224687,'C','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',''),(13,4,'AC08100004','C810004','affaire_01',0,'VM','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','affaire mode de facturation par regroupement',1,'gfremery','gfremery',1223892359290,1223892359291,'C',1223892780357,'G','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',''),(14,5,'AC08100005','C810003','aff_03',0,'IM','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','re-test par regroupement',1,'gfremery','gfremery',1223892989510,1223892989510,'C',1223905081447,'G','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',''),(15,6,'AC08100006','P8100000','Aff_04',7,'gfremery','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','',0,'gfremery','gfremery',1223894938960,1223894938960,'C',1223905054655,'G','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','PUEL'),(16,7,'AC08100007','C810005','Aff_05',0,'VM','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',0,'gfremery','gfremery',1223903536596,1223903677873,'C',1223905023865,'G','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',''),(17,8,'AC08100008','C310002','Aff_06',0,'gfremery','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','Affaire avec CDE en TTC pour vérifier les calculs lors du transfert en Cpta',1,'gfremery','gfremery',1224058200999,1224058574844,'C',1224058721432,'C','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','Moi'),(18,9,'AC08100009','C310002','Aff_10',0,'gfremery','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','Affaires par regroupement',1,'gfremery','gfremery',1224078442161,1224078926627,'C',1224151746613,'G','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',''),(19,10,'AC08100010','C310000','Aff_11',2,'gfremery','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',0,'gfremery','gfremery',1224143787352,1224144225853,'V',0,'G','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',''),(20,11,'AC08100011','C450000','Aff_20',0,'gfremery','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',1,'gfremery','gfremery',1224339193248,1224339193248,'V',0,'G','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',''),(21,12,'AC08100012','C310002','',0,'gfremery','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',0,'gfremery','gfremery',1224590720259,1224590720259,'V',0,'C','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',''),(22,13,'AC08100013','C110000','Aff_famillialle',5,'demo','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',0,'gfremery','gfremery',1225028679681,1225028679681,'V',0,'G','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',''),(23,14,'AC08100014','C310001','A la belle affaire',0,'gfremery','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',0,'gfremery','gfremery',1225438834608,1225438834608,'V',0,'G','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',''),(24,15,'AC08100015','C810004','Seconde AFF',0,'VM','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',0,'gfremery','gfremery',1225439478012,1225439821441,'C',1225439855548,'B','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',''),(25,16,'AC08100016','C450000','',0,'gfremery','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',0,'gfremery','gfremery',1225476230861,1225476230861,'V',0,'C','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',''),(26,1,'AC08110001','C810006','',0,'gfremery','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',0,'gfremery','gfremery',1226569857144,1226569857144,'V',0,'C','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',''),(27,2,'AC08110002','C110000','UneAutreAffaire',5,'demo','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',0,'gfremery','gfremery',1226572726725,1226572822963,'V',0,'B','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',''),(28,3,'AC08110003','C310002','lhydravion',0,'gfremery','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',0,'gfremery','gfremery',1226581428082,1226581428082,'V',0,'B','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',''),(29,4,'AC08110004','P3100002','reaffaire',9,'gfremery','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','',0,'gfremery','gfremery',1226594691391,1226594691391,'V',0,'B','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','DREAU'),(30,5,'AC08110005','C310001','aff-1',0,'gfremery','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',0,'gfremery','gfremery',1226597546678,1226597546678,'C',1226598048347,'B','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',''),(31,6,'AC08110006','C810006','aff-96',0,'gfremery','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',0,'gfremery','gfremery',1226598076711,1226598076711,'C',1226598373281,'C','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',''),(32,7,'AC08110007','C810003','aff-99',0,'IM','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',0,'gfremery','gfremery',1226598396548,1226598396548,'C',1226598688692,'G','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',''),(33,8,'AC08110008','C310001','aff-mensuelle',0,'gfremery','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',0,'gfremery','gfremery',1226682019672,1226682019672,'V',0,'C','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',''),(34,1,'AC08120001','C310001','AFF_stock',0,'gfremery','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',0,'gfremery','gfremery',1228326866499,1228326866499,'V',0,'C','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',''),(35,2,'AC08120002','C810003','AFF_OF',0,'gfremery','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',0,'gfremery','gfremery',1228382224205,1228382224205,'V',0,'G','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',''),(36,3,'AC08120003','C110000','AFF_OF',5,'gfremery','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',0,'gfremery','gfremery',1228383195893,1228386960920,'V',0,'G','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','');

--
-- Table structure for table `AFFAIRE_FACTURE`
--

CREATE TABLE `AFFAIRE_FACTURE` (
  `Affaire_Id` int(10) unsigned NOT NULL,
  `Facture_Id` int(10) unsigned NOT NULL,
  PRIMARY KEY  (`Affaire_Id`,`Facture_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `AFFAIRE_FACTURE`
--

INSERT INTO `AFFAIRE_FACTURE` VALUES (2,13),(7,49),(7,73),(8,48),(9,33),(9,34),(9,35),(9,36),(9,37),(9,38),(9,39),(9,50),(10,41),(10,42),(11,43),(11,44),(12,45),(12,46),(12,47),(13,51),(13,52),(14,57),(15,58),(16,59),(17,67),(17,68),(17,69),(18,74),(18,75),(19,76),(19,77),(19,81),(20,82),(20,83),(21,88),(21,89),(21,92),(21,93),(22,94),(22,95),(23,96),(24,97),(24,98),(24,99),(24,100),(24,101),(25,107),(25,109),(26,110),(26,111),(27,111),(28,111),(28,112),(29,113),(29,114),(29,115),(29,116),(29,117),(30,118),(30,119),(30,120),(30,121),(30,122),(31,123),(31,124),(31,125),(32,126),(32,127),(33,128),(33,129),(34,133),(35,134),(36,137);

--
-- Table structure for table `AJUSTEMENT_COMMISSION`
--

CREATE TABLE `AJUSTEMENT_COMMISSION` (
  `Ajustement_Id` int(10) unsigned NOT NULL auto_increment,
  `Code_Commercial` varchar(15) NOT NULL,
  `Ajusteur` varchar(15) default '',
  `Date_Ajustement` bigint(20) unsigned default '0',
  `Valeur` decimal(14,2) unsigned default '0.00',
  `Signe` char(1) default '',
  `Commentaire` text,
  PRIMARY KEY  (`Ajustement_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `AJUSTEMENT_COMMISSION`
--


--
-- Table structure for table `ARTICLE_ABONNEMENT`
--

CREATE TABLE `ARTICLE_ABONNEMENT` (
  `Abonnement_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Taux_TVA` decimal(4,2) unsigned default NULL,
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  PRIMARY KEY  (`Abonnement_Id`,`Rank`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_abonnement_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_ABONNEMENT`
--


--
-- Table structure for table `ARTICLE_ABONNEMENT_TEMP`
--

CREATE TABLE `ARTICLE_ABONNEMENT_TEMP` (
  `Abonnement_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  PRIMARY KEY  (`Abonnement_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_ABONNEMENT_TEMP`
--


--
-- Table structure for table `ARTICLE_AVOIR`
--

CREATE TABLE `ARTICLE_AVOIR` (
  `Avoir_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Taux_TVA` decimal(4,2) unsigned default NULL,
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Code_Stats` varchar(10) default '',
  `Ristourne` decimal(5,2) unsigned default '0.00',
  PRIMARY KEY  (`Avoir_Id`,`Rank`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_avoir_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_AVOIR`
--

INSERT INTO `ARTICLE_AVOIR` VALUES (1,0,1,'Prest001A','S','Première Prestation','1.00','110.0000',4,'19.60','','','','','0.00'),(2,0,13,'AP003','S','Bouteille de gaz 13 kg','10.00','100.0000',4,'19.60','','','','','0.00'),(3,0,5,'MaRef0002','S','Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600',4,'19.60','','','','','0.00');

--
-- Table structure for table `ARTICLE_AVOIR_FOURNISSEUR`
--

CREATE TABLE `ARTICLE_AVOIR_FOURNISSEUR` (
  `Avoir_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Ref_Fournisseur` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Taux_TVA` decimal(4,2) unsigned default NULL,
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  PRIMARY KEY  (`Avoir_Id`,`Rank`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_avoir_fournisseur_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_AVOIR_FOURNISSEUR`
--


--
-- Table structure for table `ARTICLE_AVOIR_FOURNISSEUR_TEMP`
--

CREATE TABLE `ARTICLE_AVOIR_FOURNISSEUR_TEMP` (
  `Avoir_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Ref_Fournisseur` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  PRIMARY KEY  (`Avoir_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_AVOIR_FOURNISSEUR_TEMP`
--


--
-- Table structure for table `ARTICLE_AVOIR_TEMP`
--

CREATE TABLE `ARTICLE_AVOIR_TEMP` (
  `Avoir_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Code_Stats` varchar(10) default '',
  `Ristourne` decimal(5,2) unsigned default '0.00',
  PRIMARY KEY  (`Avoir_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_AVOIR_TEMP`
--

INSERT INTO `ARTICLE_AVOIR_TEMP` VALUES (2,0,13,'AP003','S','Bouteille de gaz 13 kg','10.00','100.0000',4,'','','','','0.00'),(3,0,5,'MaRef0002','S','Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600',4,'','','','','0.00');

--
-- Table structure for table `ARTICLE_BON_LIVRAISON`
--

CREATE TABLE `ARTICLE_BON_LIVRAISON` (
  `Bon_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Quantite` decimal(10,2) unsigned NOT NULL,
  `Ref_Ligne_Web` int(10) unsigned default '0',
  PRIMARY KEY  (`Bon_Id`,`Rank`),
  KEY `index_ref_ligne` (`Ref_Ligne`),
  KEY `index_ref_ligne_web` (`Ref_Ligne_Web`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_BON_LIVRAISON`
--

INSERT INTO `ARTICLE_BON_LIVRAISON` VALUES (1,0,1,'1.00',4),(1,0,2,'1.00',5),(2,0,1,'1.00',1),(3,0,1,'1.00',2),(3,0,2,'1.00',3),(4,1,1,'53.00',0),(5,0,1,'1.00',11),(6,0,1,'10.00',18),(7,0,1,'40.00',13),(8,0,1,'2.00',13),(9,0,1,'3.00',13),(10,0,1,'1.00',24),(11,0,1,'1.00',25),(12,0,1,'2.00',27),(13,0,1,'3.00',28),(13,0,2,'2.00',29),(14,0,1,'5.00',30),(14,0,2,'8.00',27),(14,0,3,'2.00',28),(14,0,4,'8.00',29),(15,0,1,'2.00',32),(15,0,2,'3.00',33),(16,0,1,'2.00',32),(16,0,2,'1.00',33),(17,0,1,'4.00',34),(17,0,2,'10.00',35),(18,0,1,'1.00',36),(18,0,2,'1.00',37),(18,0,3,'1.00',38),(18,0,4,'1.00',39),(19,0,1,'5.00',43),(20,0,1,'20.00',43),(21,0,1,'5.00',43),(22,9,1,'1.00',0),(23,8,1,'1.00',0),(24,10,1,'5.00',0),(25,11,1,'5.00',0),(25,12,2,'1.00',0),(26,10,1,'10.00',0),(27,10,1,'3.00',0),(28,10,1,'7.00',0),(29,11,1,'5.00',0),(30,12,1,'1.00',0),(30,11,2,'2.00',0),(31,11,1,'3.00',0),(32,0,1,'2.00',45),(33,17,1,'2.00',0),(34,14,1,'1.00',0),(34,15,2,'1.00',0),(35,17,1,'3.00',0),(36,14,1,'5.00',0),(36,15,2,'1.00',0),(37,18,1,'5.00',0),(38,18,1,'2.00',0),(39,18,1,'3.00',0),(40,26,1,'5.00',0),(40,27,2,'1.00',0),(41,20,1,'2.00',0),(41,21,2,'1.00',0),(42,22,1,'1.00',0),(42,23,2,'5.00',0),(43,20,1,'3.00',0),(43,21,2,'5.00',0),(44,23,1,'5.00',0),(45,26,1,'5.00',0),(46,21,1,'4.00',0),(47,26,1,'5.00',0),(48,32,1,'3.00',0),(49,28,1,'3.00',0),(49,29,2,'1.00',0),(50,31,1,'3.00',0),(51,32,1,'2.00',0),(52,31,1,'2.00',0),(53,28,1,'7.00',0),(53,29,2,'1.00',0),(54,33,1,'1.00',0),(54,34,2,'1.00',0),(55,37,1,'2.00',0),(56,35,1,'1.00',0),(56,36,2,'1.00',0),(57,34,1,'1.00',0),(58,35,1,'1.00',0),(58,36,2,'1.00',0),(59,37,1,'3.00',0),(60,38,1,'10.00',0),(61,39,1,'2.00',0),(62,39,1,'3.00',0),(63,43,1,'1.00',0),(63,45,2,'1.00',0),(64,46,1,'1.00',0),(64,47,2,'4.00',0),(65,45,1,'2.00',0),(66,44,1,'1.00',0),(67,47,1,'4.00',0),(68,49,1,'1.00',0),(69,50,1,'5.00',0),(70,50,1,'5.00',0),(71,51,1,'5.00',0),(72,52,1,'3.00',0),(72,53,2,'1.00',0),(72,54,3,'1.00',0),(72,55,4,'1.00',0),(73,59,1,'1.00',0),(73,58,2,'3.00',0),(73,60,3,'1.00',0),(74,62,1,'1.00',0),(74,63,2,'1.00',0),(74,61,3,'5.00',0),(75,64,1,'1.00',0),(75,65,2,'1.00',0),(75,66,3,'5.00',0),(76,67,1,'1.00',0),(76,68,2,'1.00',0),(76,69,3,'1.00',0),(77,70,1,'2.00',0),(77,71,2,'10.00',0),(78,73,1,'1.00',0),(78,72,2,'2.00',0),(78,74,3,'1.00',0),(78,75,4,'1.00',0),(78,76,5,'1.00',0),(78,77,6,'1.00',0),(79,79,1,'1.00',0),(79,80,2,'1.00',0),(79,78,3,'1.00',0),(80,82,1,'1.00',0),(80,83,2,'1.00',0),(81,73,1,'2.00',0),(81,72,2,'3.00',0),(82,81,1,'1.00',0),(82,84,2,'1.00',0),(83,86,1,'1.00',0),(83,87,2,'1.00',0),(83,88,3,'2.00',0),(83,85,4,'1.00',0),(84,87,1,'1.00',0),(84,88,2,'3.00',0),(85,90,1,'2.00',0),(85,89,2,'2.00',0),(85,91,3,'1.00',0),(86,94,1,'3.00',0),(86,92,2,'5.00',0),(86,93,3,'15.00',0),(87,107,1,'1.00',0),(87,108,2,'1.00',0),(87,109,3,'2.00',0),(87,104,4,'3.00',0),(87,110,5,'3.00',0),(87,105,6,'1.00',0),(87,106,7,'1.00',0),(88,101,1,'2.00',0),(88,102,2,'3.00',0),(89,89,1,'3.00',0),(90,93,1,'16.00',0),(91,108,1,'2.00',0),(91,105,2,'2.00',0),(91,109,3,'1.00',0),(91,106,4,'1.00',0),(92,103,1,'1.00',0),(93,91,1,'2.00',0),(94,109,1,'2.00',0),(94,104,2,'2.00',0),(94,106,3,'1.00',0),(95,120,1,'1.00',0),(95,121,2,'2.00',0),(95,117,3,'2.00',0),(95,122,4,'1.00',0),(96,124,1,'1.00',0),(96,125,2,'1.00',0),(97,120,1,'2.00',0),(97,121,2,'1.00',0),(97,117,3,'3.00',0),(97,118,4,'1.00',0),(97,119,5,'1.00',0),(98,123,1,'1.00',0),(98,126,2,'1.00',0),(99,128,1,'2.00',0),(99,129,2,'1.00',0),(100,130,1,'1.00',0),(100,131,2,'1.00',0),(101,128,1,'1.00',0),(101,129,2,'1.00',0),(102,130,1,'2.00',0),(102,131,2,'2.00',0),(103,133,1,'1.00',0),(103,132,2,'3.00',0),(103,134,3,'1.00',0),(104,135,1,'2.00',0),(104,136,2,'1.00',0),(105,133,1,'1.00',0),(106,135,1,'1.00',0),(106,136,2,'1.00',0),(107,133,1,'1.00',0),(107,134,2,'2.00',0),(108,136,1,'1.00',0),(109,140,1,'1.00',0),(109,141,2,'1.00',0),(110,137,1,'2.00',0),(110,138,2,'2.00',0),(110,139,3,'1.00',0),(111,140,1,'2.00',0),(112,141,1,'4.00',0),(113,137,1,'1.00',0),(113,139,2,'2.00',0),(113,138,3,'3.00',0),(114,142,1,'1.00',0),(114,143,2,'1.00',0),(115,145,1,'1.00',0),(115,144,2,'1.00',0),(116,148,1,'1.00',0),(117,144,1,'2.00',0),(118,147,1,'1.00',0),(119,150,1,'1.00',0),(120,151,1,'1.00',0),(121,151,1,'2.00',0),(122,153,1,'1.00',0),(123,154,1,'2.00',0),(124,155,1,'3.00',0),(125,156,1,'2.00',0),(125,157,2,'2.00',0),(126,157,1,'18.00',0),(127,158,1,'1.00',0),(128,159,1,'1.00',0),(129,160,1,'10.00',0),(130,160,1,'140.00',0),(131,161,1,'5.00',0),(132,161,1,'5.00',0),(133,162,1,'10.00',0),(134,162,1,'25.00',0),(135,162,1,'15.00',0),(136,163,1,'2.00',0),(137,163,1,'8.00',0),(138,164,1,'2.00',0),(139,165,1,'3.00',0),(140,164,1,'3.00',0),(140,165,2,'2.00',0),(141,166,1,'1.00',0),(141,167,2,'1.00',0),(142,168,1,'10.00',0),(143,169,1,'1.00',0),(143,170,2,'1.00',0),(144,173,1,'10.00',0),(144,174,2,'50.00',0),(145,175,1,'1.00',0),(145,176,2,'5.00',0),(146,177,1,'5.00',0),(147,179,1,'25.00',0),(148,180,1,'50.00',0),(148,181,2,'80.00',0),(149,179,1,'25.00',0),(150,180,1,'100.00',0),(150,181,2,'120.00',0),(151,0,1,'1.00',47),(152,182,1,'1.00',0),(153,183,1,'5.00',0),(153,184,2,'3.00',0),(154,185,1,'1.00',0),(154,186,2,'5.00',0),(155,187,1,'5.00',0),(155,188,2,'2.00',0),(156,189,1,'3.00',0),(156,190,2,'2.00',0),(157,187,1,'5.00',0);

--
-- Table structure for table `ARTICLE_BON_LIVRAISON_TEMP`
--

CREATE TABLE `ARTICLE_BON_LIVRAISON_TEMP` (
  `Bon_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Quantite` decimal(10,2) unsigned NOT NULL,
  `Ref_Ligne_Web` int(10) unsigned default '0',
  PRIMARY KEY  (`Bon_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_BON_LIVRAISON_TEMP`
--

INSERT INTO `ARTICLE_BON_LIVRAISON_TEMP` VALUES (4,1,1,'53.00',0),(22,9,1,'1.00',0),(23,8,1,'1.00',0),(24,10,1,'5.00',0),(25,11,1,'5.00',0),(25,12,2,'1.00',0),(26,10,1,'10.00',0),(27,10,1,'3.00',0),(28,10,1,'7.00',0),(29,11,1,'5.00',0),(30,12,1,'1.00',0),(30,11,2,'2.00',0),(31,11,1,'3.00',0),(33,17,1,'2.00',0),(34,14,1,'1.00',0),(34,15,2,'1.00',0),(35,17,1,'3.00',0),(36,14,1,'5.00',0),(36,15,2,'1.00',0),(37,18,1,'5.00',0),(38,18,1,'2.00',0),(39,18,1,'3.00',0),(40,26,1,'5.00',0),(40,27,2,'1.00',0),(41,20,1,'2.00',0),(41,21,2,'1.00',0),(42,22,1,'1.00',0),(42,23,2,'5.00',0),(43,20,1,'3.00',0),(43,21,2,'5.00',0),(44,23,1,'5.00',0),(45,26,1,'5.00',0),(46,21,1,'4.00',0),(47,26,1,'5.00',0),(48,32,1,'3.00',0),(49,28,1,'3.00',0),(49,29,2,'1.00',0),(50,31,1,'3.00',0),(51,32,1,'2.00',0),(52,31,1,'2.00',0),(53,28,1,'7.00',0),(53,29,2,'1.00',0),(54,33,1,'1.00',0),(54,34,2,'1.00',0),(55,37,1,'2.00',0),(56,35,1,'1.00',0),(56,36,2,'1.00',0),(57,34,1,'1.00',0),(58,35,1,'1.00',0),(58,36,2,'1.00',0),(59,37,1,'3.00',0),(60,38,1,'10.00',0),(61,39,1,'2.00',0),(62,39,1,'3.00',0),(63,43,1,'1.00',0),(63,45,2,'1.00',0),(64,46,1,'1.00',0),(64,47,2,'4.00',0),(65,48,1,'2.00',0),(66,44,1,'1.00',0),(67,47,1,'4.00',0),(68,49,1,'1.00',0),(69,50,1,'5.00',0),(70,50,1,'5.00',0),(71,51,1,'5.00',0),(72,52,1,'3.00',0),(72,53,2,'1.00',0),(72,54,3,'1.00',0),(72,55,4,'1.00',0),(73,59,1,'1.00',0),(73,58,2,'3.00',0),(73,60,3,'1.00',0),(74,62,1,'1.00',0),(74,63,2,'1.00',0),(74,61,3,'5.00',0),(75,64,1,'1.00',0),(75,65,2,'1.00',0),(75,66,3,'5.00',0),(76,67,1,'1.00',0),(76,68,2,'1.00',0),(76,69,3,'1.00',0),(77,70,1,'2.00',0),(77,71,2,'10.00',0),(78,73,1,'1.00',0),(78,72,2,'2.00',0),(78,74,3,'1.00',0),(78,75,4,'1.00',0),(78,76,5,'1.00',0),(78,77,6,'1.00',0),(79,79,1,'1.00',0),(79,80,2,'1.00',0),(79,78,3,'1.00',0),(80,82,1,'1.00',0),(80,83,2,'1.00',0),(81,73,1,'2.00',0),(81,72,2,'3.00',0),(82,81,1,'1.00',0),(82,84,2,'1.00',0),(83,86,1,'1.00',0),(83,87,2,'1.00',0),(83,88,3,'2.00',0),(83,85,4,'1.00',0),(84,87,1,'1.00',0),(84,88,2,'3.00',0),(85,90,1,'2.00',0),(85,89,2,'2.00',0),(85,91,3,'1.00',0),(86,94,1,'3.00',0),(86,92,2,'5.00',0),(86,93,3,'15.00',0),(87,107,1,'1.00',0),(87,108,2,'1.00',0),(87,109,3,'2.00',0),(87,104,4,'3.00',0),(87,110,5,'3.00',0),(87,105,6,'1.00',0),(87,106,7,'1.00',0),(88,101,1,'2.00',0),(88,102,2,'3.00',0),(89,89,1,'3.00',0),(90,93,1,'16.00',0),(91,108,1,'2.00',0),(91,105,2,'2.00',0),(91,109,3,'1.00',0),(91,106,4,'1.00',0),(92,103,1,'1.00',0),(93,91,1,'2.00',0),(94,109,1,'2.00',0),(94,104,2,'2.00',0),(94,106,3,'1.00',0),(95,120,1,'1.00',0),(95,121,2,'2.00',0),(95,117,3,'2.00',0),(95,122,4,'1.00',0),(96,124,1,'1.00',0),(96,125,2,'1.00',0),(97,120,1,'2.00',0),(97,121,2,'1.00',0),(97,117,3,'3.00',0),(97,118,4,'1.00',0),(97,119,5,'1.00',0),(98,123,1,'1.00',0),(98,126,2,'1.00',0),(99,128,1,'2.00',0),(99,129,2,'1.00',0),(100,130,1,'1.00',0),(100,131,2,'1.00',0),(101,128,1,'1.00',0),(101,129,2,'1.00',0),(102,130,1,'2.00',0),(102,131,2,'2.00',0),(103,133,1,'1.00',0),(103,132,2,'3.00',0),(103,134,3,'1.00',0),(104,135,1,'2.00',0),(104,136,2,'1.00',0),(105,133,1,'1.00',0),(106,135,1,'1.00',0),(106,136,2,'1.00',0),(107,133,1,'1.00',0),(107,134,2,'2.00',0),(108,136,1,'1.00',0),(109,140,1,'1.00',0),(109,141,2,'1.00',0),(110,137,1,'2.00',0),(110,138,2,'2.00',0),(110,139,3,'1.00',0),(111,140,1,'2.00',0),(112,141,1,'4.00',0),(113,137,1,'1.00',0),(113,139,2,'2.00',0),(113,138,3,'3.00',0),(114,142,1,'1.00',0),(114,143,2,'1.00',0),(115,145,1,'1.00',0),(115,144,2,'1.00',0),(116,148,1,'1.00',0),(117,144,1,'2.00',0),(118,147,1,'1.00',0),(119,150,1,'1.00',0),(120,151,1,'1.00',0),(121,151,1,'2.00',0),(122,153,1,'1.00',0),(123,154,1,'2.00',0),(124,155,1,'3.00',0),(125,156,1,'2.00',0),(125,157,2,'2.00',0),(126,157,1,'18.00',0),(127,158,1,'1.00',0),(128,159,1,'1.00',0),(129,160,1,'10.00',0),(130,160,1,'140.00',0),(131,161,1,'5.00',0),(132,161,1,'5.00',0),(133,162,1,'10.00',0),(134,162,1,'25.00',0),(135,162,1,'15.00',0),(136,163,1,'2.00',0),(137,163,1,'8.00',0),(138,164,1,'2.00',0),(139,165,1,'3.00',0),(140,164,1,'3.00',0),(140,165,2,'2.00',0),(141,166,1,'1.00',0),(141,167,2,'1.00',0),(142,168,1,'10.00',0),(143,169,1,'1.00',0),(143,170,2,'1.00',0),(144,173,1,'10.00',0),(144,174,2,'50.00',0),(145,175,1,'1.00',0),(145,176,2,'5.00',0),(146,177,1,'5.00',0),(147,179,1,'25.00',0),(148,180,1,'50.00',0),(148,181,2,'80.00',0),(149,179,1,'25.00',0),(150,180,1,'100.00',0),(150,181,2,'120.00',0),(152,182,1,'1.00',0),(153,183,1,'5.00',0),(153,184,2,'3.00',0),(154,185,1,'1.00',0),(154,186,2,'5.00',0),(155,187,1,'5.00',0),(155,188,2,'2.00',0),(156,189,1,'3.00',0),(156,190,2,'2.00',0),(157,187,1,'5.00',0);

--
-- Table structure for table `ARTICLE_BON_RECEPTION`
--

CREATE TABLE `ARTICLE_BON_RECEPTION` (
  `BR_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned default NULL,
  `Quantite` decimal(10,2) unsigned NOT NULL,
  `Facture` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Ref_Ligne`,`BR_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_BON_RECEPTION`
--

INSERT INTO `ARTICLE_BON_RECEPTION` VALUES (1,1,1,'1.00',1),(2,2,1,'5.00',1),(3,2,1,'5.00',1),(4,3,1,'5.00',1),(5,4,1,'339.00',1),(6,5,1,'12.00',1),(7,8,1,'500.00',1),(7,9,2,'400.00',1),(8,10,1,'1000.00',1),(9,11,1,'500.00',1),(10,12,1,'500.00',0),(11,13,1,'359.00',0),(11,14,2,'568.00',0),(12,15,1,'50.00',0),(12,16,2,'150.00',0),(13,17,1,'55.00',0),(14,18,1,'50.00',0),(14,19,2,'50.00',0);

--
-- Table structure for table `ARTICLE_BON_RECEPTION_TEMP`
--

CREATE TABLE `ARTICLE_BON_RECEPTION_TEMP` (
  `BR_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned default NULL,
  `Quantite` decimal(10,2) unsigned NOT NULL,
  PRIMARY KEY  (`Ref_Ligne`,`BR_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_BON_RECEPTION_TEMP`
--

INSERT INTO `ARTICLE_BON_RECEPTION_TEMP` VALUES (1,1,1,'1.00'),(2,2,1,'5.00'),(3,2,1,'5.00'),(4,3,1,'5.00'),(5,4,1,'339.00'),(6,5,1,'12.00'),(7,8,1,'500.00'),(7,9,2,'400.00'),(8,10,1,'1000.00'),(9,11,1,'500.00'),(10,12,1,'500.00'),(11,13,1,'359.00'),(11,14,2,'568.00'),(12,15,1,'50.00'),(12,16,2,'150.00'),(13,17,1,'55.00'),(14,18,1,'50.00'),(14,19,2,'50.00');

--
-- Table structure for table `ARTICLE_COMMANDE`
--

CREATE TABLE `ARTICLE_COMMANDE` (
  `Commande_Id` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Ref_Fournisseur` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Taux_TVA` decimal(4,2) default NULL,
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Ligne_Id` int(10) unsigned NOT NULL auto_increment,
  PRIMARY KEY  (`Commande_Id`,`Rank`),
  UNIQUE KEY `Ligne_Id` (`Ligne_Id`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_commande_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_COMMANDE`
--

INSERT INTO `ARTICLE_COMMANDE` VALUES (1,1,'AP003','ref001','S','Bouteille de gaz 13 kg','1.00','20.0000','0.00',4,'19.60','','',1),(2,1,'AP003','ref001','S','Bouteille de gaz 13 kg','10.00','20.0000','0.00',4,'19.60','','',2),(3,1,'AP003','ref001','S','Bouteille de gaz 13 kg','5.00','20.0000','0.00',4,'19.60','','',3),(4,1,'AP003','ref001','S','Bouteille de gaz 13 kg','339.00','20.0000','0.00',4,'19.60','','',4),(5,1,'AP003','ref001','S','Bouteille de gaz 13 kg','50.00','20.0000','0.00',4,'19.60','','',5),(6,1,'apha-102','gfr','S','Foret dian 250','500.00','12.5600','0.00',4,'19.60','','',8),(6,2,'ALP1051020','ref-02','S','Trépan bi-métal diam 102','400.00','11.7000','0.00',4,'19.60','','',9),(7,1,'SOUP001','SP-001','S','Soupe de poisson','1000.00','21.3600','0.00',3,'5.50','','',10),(8,1,'AP003','ref001','S','Bouteille de gaz 13 kg','500.00','20.0000','0.00',4,'19.60','','',11),(9,1,'CONF-001','ref-003','S','Confiture de Mirabelles d\'espagne','500.00','3.5600','0.00',3,'5.50','','',12),(10,1,'SUC-001','ref_004','S','Surcre roux en morceaux','359.00','5.3980','0.00',3,'5.50','','',13),(10,2,'SUC_002','ref_005','S','Sucre en poudre blanc','568.00','4.2130','0.00',3,'5.50','','',14),(11,1,'GAR_002','BMC4','S','Bloc Moteur diesel C4 break','50.00','2856.3420','0.00',4,'19.60','','',15),(11,2,'GAR_004','FAVD_001','S','Clignotant avant droit C5','150.00','78.2300','0.00',4,'19.60','','',16),(12,1,'GAR_003','CARD-000','S','Cardan gauche 104ZS','55.00','238.1300','0.00',4,'19.60','','',17),(13,1,'GAR_006','CLIM_000','S','Compresseur','50.00','989.6500','0.00',4,'19.60','','',18),(13,2,'GAR_007','FAA_000','S','Groupe Flitre à air','50.00','26.0000','0.00',4,'19.60','','',19),(14,1,'C001','C001','S','Conserve 1L haricots porc','100.00','1.9000','0.00',4,'19.60','','',20);

--
-- Table structure for table `ARTICLE_COMMANDE_TEMP`
--

CREATE TABLE `ARTICLE_COMMANDE_TEMP` (
  `Commande_Id` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Ref_Fournisseur` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  PRIMARY KEY  (`Commande_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_COMMANDE_TEMP`
--

INSERT INTO `ARTICLE_COMMANDE_TEMP` VALUES (1,1,'AP003','ref001','S','Bouteille de gaz 13 kg','1.00','20.0000','0.00',4,'',''),(2,1,'AP003','ref001','S','Bouteille de gaz 13 kg','10.00','20.0000','0.00',4,'',''),(3,1,'AP003','ref001','S','Bouteille de gaz 13 kg','5.00','20.0000','0.00',4,'',''),(4,1,'AP003','ref001','S','Bouteille de gaz 13 kg','339.00','20.0000','0.00',4,'',''),(5,1,'AP003','ref001','S','Bouteille de gaz 13 kg','50.00','20.0000','0.00',4,'',''),(6,1,'apha-102','gfr','S','Foret dian 250','500.00','12.5600','0.00',4,'',''),(6,2,'ALP1051020','ref-02','S','Trépan bi-métal diam 102','400.00','11.7000','0.00',4,'',''),(7,1,'SOUP001','SP-001','S','Soupe de poisson','1000.00','21.3600','0.00',3,'',''),(8,1,'AP003','ref001','S','Bouteille de gaz 13 kg','500.00','20.0000','0.00',4,'',''),(9,1,'CONF-001','ref-003','S','Confiture de Mirabelles d\'espagne','500.00','3.5600','0.00',3,'',''),(10,1,'SUC-001','ref_004','S','Surcre roux en morceaux','359.00','5.3980','0.00',3,'',''),(10,2,'SUC_002','ref_005','S','Sucre en poudre blanc','568.00','4.2130','0.00',3,'',''),(11,1,'GAR_002','BMC4','S','Bloc Moteur diesel C4 break','50.00','2856.3420','0.00',4,'',''),(11,2,'GAR_004','FAVD_001','S','Clignotant avant droit C5','150.00','78.2300','0.00',4,'',''),(12,1,'GAR_003','CARD-000','S','Cardan gauche 104ZS','55.00','238.1300','0.00',4,'',''),(13,1,'GAR_006','CLIM_000','S','Compresseur','50.00','989.6500','0.00',4,'',''),(13,2,'GAR_007','FAA_000','S','Groupe Flitre à air','50.00','26.0000','0.00',4,'',''),(14,1,'C001','C001','S','Conserve 1L haricots porc','100.00','1.9000','0.00',4,'','');

--
-- Table structure for table `ARTICLE_COMMANDE_WEB`
--

CREATE TABLE `ARTICLE_COMMANDE_WEB` (
  `Detail_Id` int(10) unsigned NOT NULL auto_increment,
  `Com_Web_Id` int(10) unsigned NOT NULL,
  `Article_Id` varchar(40) default NULL,
  `Article_Web_Id` int(10) unsigned default '0',
  `Designation` varchar(100) default '',
  `Quantite` decimal(10,2) unsigned default '1.00',
  `Prix` decimal(14,4) default NULL,
  `Taux_TVA` decimal(4,2) default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Ristourne` decimal(5,2) unsigned default '0.00',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Type_Ligne` char(1) default NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Libelle` varchar(20) default '',
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Com_Web_Id`,`Rank`),
  UNIQUE KEY `Detail_Id` (`Detail_Id`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_commande_web_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_COMMANDE_WEB`
--

INSERT INTO `ARTICLE_COMMANDE_WEB` VALUES (1,1,'',0,'Mise en forme d\'une plaquette publicitaire','1.00','1875.6900','19.60',4,'0.00','Le délais sera le plus court possible','Devis pour la conception et la publication de plaquettes publicitaire.\nLe tout sera réalisé en quadri brillant.','I',1,'',''),(2,2,'MaRef0001',0,'Conception d\'un logo','1.00','850.0000','19.60',4,'0.00','','Devis important\nA réaliser pour hier','I',1,'',''),(3,2,'MaRef0002',0,'Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600','19.60',4,'0.00','ceci est un commentaire','','I',2,'',''),(4,3,'MaRef0001',0,'Conception d\'un logo','1.00','850.0000','19.60',4,'0.00','','Devis important\nA réaliser pour hier','I',1,'',''),(5,3,'MaRef0002',0,'Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600','19.60',4,'0.00','ceci est un commentaire','','I',2,'',''),(6,4,'',0,'Matériel informatique','1.00','500.0000','19.60',4,'0.00','Ecran tactile, Imprimante tickets de caisse','','I',1,'',''),(7,4,'',0,'Logiciel gestion compta','1.00','250.0000','19.60',4,'0.00','Paramétrage et installation','','I',2,'',''),(8,4,'',0,'Loyer mensuel','1.00','60.0000','19.60',4,'0.00','Avec le 1er compte utilisateur du logiciel','','I',3,'',''),(9,4,'',0,'Maintenance informatique','1.00','504.0000','19.60',4,'0.00','2 interventions dans l\'année','','I',5,'',''),(10,4,'',0,'Développement du logiciel gestion compta','1.00','630.0000','19.60',4,'0.00','Forfait à la journée','','I',6,'',''),(11,5,'Prest001A',0,'Première Prestation','1.00','110.0000','19.60',4,'0.00','','','S',1,'',''),(13,6,'AP003',0,'Bouteille de gaz 13 kg','50.00','100.0000','19.60',4,'0.00','','','S',1,'',''),(14,7,'AP002',0,'Prestation location de site','10.00','5000.0000','19.60',4,'0.00','','','S',1,'',''),(18,8,'AP003',0,'Bouteille de gaz 13 kg','50.00','100.0000','19.60',4,'0.00','','','S',1,'',''),(19,8,'AP003',0,'Bouteille de gaz 13 kg','1.00','100.0000','19.60',4,'0.00','N/S 582-dr23-azvn289','','S',2,'',''),(20,8,'svael001',0,'serveur virtuel','1.00','350.0000','19.60',4,'0.00','','','S',3,'',''),(21,8,'AP002',0,'Prestation location de site','1.00','5000.0000','19.60',4,'0.00','','','S',4,'',''),(22,9,'Prest001A',0,'Première Prestation','15.00','110.0000','19.60',4,'10.00','','','S',1,'',''),(24,10,'svael001',0,'serveur virtuel','1.00','350.0000','19.60',4,'0.00','','','S',1,'',''),(25,10,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000','19.60',4,'0.00','','','S',2,'',''),(27,11,'AP003',0,'Bouteille de gaz 13 kg','10.00','40.0000','19.60',4,'0.00','','','S',1,'',''),(28,11,'AP002',0,'Prestation location de site','5.00','5000.0000','19.60',4,'0.00','','','S',2,'',''),(29,11,'Prest001A',0,'Première Prestation','10.00','110.0000','19.60',4,'0.00','','','S',3,'',''),(30,11,'svael001',0,'serveur virtuel','5.00','350.0000','19.60',4,'0.00','','','S',4,'',''),(36,12,'AP002',0,'Prestation location de site','1.00','5000.0000','19.60',4,'0.00','','','S',1,'',''),(37,12,'Prest001A',0,'Première Prestation','1.00','110.0000','19.60',4,'0.00','','','S',2,'',''),(38,12,'svael001',0,'serveur virtuel','1.00','350.0000','19.60',4,'0.00','','','S',3,'',''),(39,12,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000','19.60',4,'0.00','','','S',4,'',''),(34,13,'Prest001A',0,'Première Prestation','4.00','110.0000','19.60',4,'0.00','','','S',1,'',''),(35,13,'AP003',0,'Bouteille de gaz 13 kg','10.00','40.0000','19.60',4,'0.00','','','S',2,'',''),(32,14,'AP003',0,'Bouteille de gaz 13 kg','4.00','40.0000','19.60',4,'0.00','','','S',1,'',''),(33,14,'svael001',0,'serveur virtuel','4.00','15.0000','19.60',4,'0.00','','','S',2,'',''),(41,15,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000','19.60',4,'0.00','','','S',1,'',''),(43,17,'ALP1051020',0,'Trépan bi-métal diam 102','30.00','33.0000','19.60',4,'0.00','','','S',1,'',''),(44,18,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000','19.60',4,'0.00','','','S',1,'',''),(45,19,'apha-102',0,'Foret dian 250','2.00','32.4800','19.60',4,'0.00','','','S',1,'',''),(47,20,'V001',0,'Voiture a bras','1.00','5500.0000','19.60',4,'0.00','','','S',1,'','');

--
-- Table structure for table `ARTICLE_COMMANDE_WEB_TEMP`
--

CREATE TABLE `ARTICLE_COMMANDE_WEB_TEMP` (
  `Com_Web_Id` int(10) unsigned NOT NULL,
  `Article_Id` varchar(40) default NULL,
  `Article_Web_Id` int(10) unsigned default '0',
  `Designation` varchar(100) default '',
  `Quantite` decimal(10,2) unsigned default '1.00',
  `Prix` decimal(14,4) default NULL,
  `Taux_TVA` decimal(4,2) default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Ristourne` decimal(5,2) unsigned default '0.00',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Type_Ligne` char(1) default NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Libelle` varchar(20) default '',
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Com_Web_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_COMMANDE_WEB_TEMP`
--

INSERT INTO `ARTICLE_COMMANDE_WEB_TEMP` VALUES (1,'',0,'Mise en forme d\'une plaquette publicitaire','1.00','1875.6900',NULL,4,'0.00','Le délais sera le plus court possible','Devis pour la conception et la publication de plaquettes publicitaire.\nLe tout sera réalisé en quadri brillant.','I',1,'',''),(2,'MaRef0001',0,'Conception d\'un logo','1.00','850.0000',NULL,4,'0.00','','Devis important\nA réaliser pour hier','I',1,'',''),(2,'MaRef0002',0,'Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600',NULL,4,'0.00','ceci est un commentaire','','I',2,'',''),(3,'MaRef0001',0,'Conception d\'un logo','1.00','850.0000',NULL,4,'0.00','','Devis important\nA réaliser pour hier','I',1,'',''),(3,'MaRef0002',0,'Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600',NULL,4,'0.00','ceci est un commentaire','','I',2,'',''),(5,'Prest001A',0,'Première Prestation','1.00','110.0000',NULL,4,'0.00','','','S',1,'',''),(6,'AP003',0,'Bouteille de gaz 13 kg','50.00','100.0000',NULL,4,'0.00','','','S',1,'',''),(7,'AP002',0,'Prestation location de site','10.00','5000.0000',NULL,4,'0.00','','','S',1,'',''),(8,'AP003',0,'Bouteille de gaz 13 kg','50.00','100.0000',NULL,4,'0.00','','','S',1,'',''),(8,'AP003',0,'Bouteille de gaz 13 kg','1.00','100.0000',NULL,4,'0.00','N/S 582-dr23-azvn289','','S',2,'',''),(8,'svael001',0,'serveur virtuel','1.00','350.0000',NULL,4,'0.00','','','S',3,'',''),(8,'AP002',0,'Prestation location de site','1.00','5000.0000',NULL,4,'0.00','','','S',4,'',''),(9,'Prest001A',0,'Première Prestation','15.00','110.0000',NULL,4,'10.00','','','S',1,'',''),(10,'svael001',0,'serveur virtuel','1.00','350.0000',NULL,4,'0.00','','','S',1,'',''),(10,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000',NULL,4,'0.00','','','S',2,'',''),(11,'AP003',0,'Bouteille de gaz 13 kg','10.00','40.0000',NULL,4,'0.00','','','S',1,'',''),(11,'AP002',0,'Prestation location de site','5.00','5000.0000',NULL,4,'0.00','','','S',2,'',''),(11,'Prest001A',0,'Première Prestation','10.00','110.0000',NULL,4,'0.00','','','S',3,'',''),(11,'svael001',0,'serveur virtuel','5.00','350.0000',NULL,4,'0.00','','','S',4,'',''),(12,'AP002',0,'Prestation location de site','1.00','5000.0000',NULL,4,'0.00','','','S',1,'',''),(12,'Prest001A',0,'Première Prestation','1.00','110.0000',NULL,4,'0.00','','','S',2,'',''),(12,'svael001',0,'serveur virtuel','1.00','350.0000',NULL,4,'0.00','','','S',3,'',''),(12,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000',NULL,4,'0.00','','','S',4,'',''),(13,'Prest001A',0,'Première Prestation','4.00','110.0000',NULL,4,'0.00','','','S',1,'',''),(13,'AP003',0,'Bouteille de gaz 13 kg','10.00','40.0000',NULL,4,'0.00','','','S',2,'',''),(14,'AP003',0,'Bouteille de gaz 13 kg','4.00','40.0000',NULL,4,'0.00','','','S',1,'',''),(14,'svael001',0,'serveur virtuel','4.00','15.0000',NULL,4,'0.00','','','S',2,'',''),(15,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000',NULL,4,'0.00','','','S',1,'',''),(17,'ALP1051020',0,'Trépan bi-métal diam 102','30.00','33.0000',NULL,4,'0.00','','','S',1,'',''),(18,'AP003',0,'Bouteille de gaz 13 kg','1.00','40.0000',NULL,4,'0.00','','','S',1,'',''),(19,'apha-102',0,'Foret dian 250','2.00','32.4800',NULL,4,'0.00','','','S',1,'',''),(20,'V001',0,'Voiture a bras','1.00','5500.0000',NULL,4,'0.00','','','S',1,'','');

--
-- Table structure for table `ARTICLE_COM_CLIENT`
--

CREATE TABLE `ARTICLE_COM_CLIENT` (
  `Com_Id` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Taux_TVA` decimal(4,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Ligne_Id` int(10) unsigned NOT NULL auto_increment,
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Com_Id`,`Rank`),
  UNIQUE KEY `Ligne_Id` (`Ligne_Id`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_com_client_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_COM_CLIENT`
--

INSERT INTO `ARTICLE_COM_CLIENT` VALUES (1,1,'Prest001A','S','Première Prestation','53.00','110.0000','0.00','19.60',4,1,'','','',''),(2,1,'','I','PLV','1.00','14089.9000','0.00','19.60',4,2,'','','',''),(3,1,'','I','PLV EXT','1.00','9000.8900','0.00','19.60',4,3,'','','',''),(4,1,'','I','plv ext','1.00','6798.0000','0.00','19.60',4,4,'','','',''),(4,2,'','I','PLV INT','1.00','155679.0000','0.00','19.60',4,5,'','','',''),(5,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00','19.60',4,6,'','','',''),(6,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00','19.60',4,7,'','','',''),(7,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','19.2300','0.00','19.60',4,8,'','','',''),(8,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','19.2300','0.00','19.60',4,9,'','','',''),(9,1,'ALP1051020','S','Trépan bi-métal diam 102','25.00','19.2300','0.00','19.60',4,10,'','','',''),(10,1,'AP003','S','Bouteille de gaz 13 kg','15.00','40.0000','0.00','19.60',4,11,'','','',''),(10,2,'svael001','S','serveur virtuel','2.00','680.0000','0.00','19.60',4,12,'','','',''),(11,1,'AP003','S','Bouteille de gaz 13 kg','6.00','40.0000','0.00','19.60',4,14,'','','',''),(11,2,'apha-102','S','Foret dian 250','2.00','20.8600','0.00','19.60',4,15,'','','',''),(12,1,'ALP1051020','S','Trépan bi-métal diam 102','5.00','33.0000','0.00','19.60',4,17,'Commentaire après la ligne article','Commentaire avant la ligne article','',''),(13,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00','19.60',4,18,'','','',''),(14,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00','19.60',4,20,'','','',''),(14,2,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00','19.60',4,21,'','','',''),(15,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','19.60',4,22,'','','',''),(15,2,'apha-102','S','Foret dian 250','10.00','20.8600','0.00','19.60',4,23,'','','',''),(16,1,'ALP1051020','S','Trépan bi-métal diam 102','15.00','33.0000','0.00','19.60',4,26,'','','',''),(16,2,'svael001','S','serveur virtuel','1.00','350.0000','0.00','19.60',4,27,'','','',''),(17,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00','19.60',4,28,'','','',''),(17,2,'AP002','S','Prestation location de site','2.00','5000.0000','0.00','19.60',4,29,'','','',''),(18,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00','19.60',4,31,'','','',''),(19,1,'apha-102','S','Foret dian 250','5.00','20.8600','0.00','19.60',4,32,'','','',''),(20,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','19.60',4,33,'','','',''),(20,2,'svael001','S','serveur virtuel','2.00','350.0000','0.00','19.60',4,34,'','','',''),(21,1,'ALP1051020','S','Trépan bi-métal diam 102','2.00','33.0000','0.00','19.60',4,35,'','','',''),(21,2,'apha-102','S','Foret dian 250','2.00','20.8600','0.00','19.60',4,36,'','','',''),(22,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00','19.60',4,37,'','','',''),(23,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00','19.60',4,38,'','','',''),(24,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00','19.60',4,39,'','','',''),(25,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00','19.60',4,43,'','','',''),(25,2,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','19.60',4,44,'','','',''),(25,3,'svael001','S','serveur virtuel','1.00','350.0000','0.00','19.60',4,45,'','','',''),(26,1,'apha-102','S','Foret dian 250','1.00','20.8600','0.00','19.60',4,46,'','','',''),(26,2,'ALP1051020','S','Trépan bi-métal diam 102','8.00','33.0000','0.00','19.60',4,47,'','','',''),(27,1,'svael001','S','serveur virtuel','2.00','350.0000','0.00','19.60',4,48,'','','',''),(28,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','19.2300','0.00','19.60',4,49,'','','',''),(29,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','19.2300','5.00','19.60',4,50,'','','',''),(30,1,'ALP1051020','S','Trépan bi-métal diam 102','5.00','19.2300','0.00','19.60',4,51,'','','',''),(31,1,'SOUP001','S','Soupe de poisson','3.00','23.5000','0.00','5.50',3,52,'','','',''),(31,2,'Prest001A','S','Première Prestation','1.00','131.5600','0.00','19.60',4,53,'','','',''),(31,3,'apha-102','S','Foret dian 250','1.00','24.9400','0.00','19.60',4,54,'','','',''),(31,4,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00','19.60',4,55,'','','',''),(32,1,'svael001','S','serveur virtuel','1.00','418.6000','0.00','19.60',4,59,'','','',''),(32,2,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00','5.50',3,58,'','','',''),(32,3,'ALP1051020','S','Trépan bi-métal diam 102','1.00','39.4700','0.00','19.60',4,60,'','','',''),(33,1,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00','19.60',4,62,'','','',''),(33,2,'svael001','S','serveur virtuel','1.00','418.6000','0.00','19.60',4,63,'','','',''),(33,3,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00','5.50',3,61,'','','',''),(34,1,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00','19.60',4,64,'','','',''),(34,2,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','0.00','19.60',4,65,'','','',''),(34,3,'GAR_005','S','Pneumatique Neige','5.00','58.3000','0.00','19.60',4,66,'','','',''),(35,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,67,'','','',''),(35,2,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00','19.60',4,68,'','','',''),(35,3,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,69,'','','',''),(36,1,'GAR_003','S','Cardan gauche 104ZS','2.00','261.9400','0.00','19.60',4,70,'','','',''),(36,2,'SUC-001','S','Surcre roux en morceaux','10.00','5.9400','0.00','5.50',3,71,'','','',''),(37,1,'ALP1051020','S','Trépan bi-métal diam 102','3.00','33.0000','0.00','19.60',4,73,'','','',''),(37,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00','5.50',3,72,'','','',''),(37,3,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00','19.60',4,74,'','','',''),(37,4,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00','19.60',4,75,'','','',''),(37,5,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00','19.60',4,76,'','','',''),(37,6,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,77,'','','',''),(38,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00','19.60',4,79,'','','',''),(38,2,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00','19.60',4,80,'','','',''),(38,3,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00','5.50',3,78,'','','',''),(39,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00','5.50',3,81,'','','',''),(39,2,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00','19.60',4,82,'','','',''),(39,3,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00','19.60',4,83,'','','',''),(39,4,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00','19.60',4,84,'','','',''),(40,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,86,'','','',''),(40,2,'GAR_007','S','Groupe Flitre à air','2.00','28.6000','0.00','19.60',4,87,'','','',''),(40,3,'GAR_005','S','Pneumatique Neige','5.00','58.3000','0.00','19.60',4,88,'','','',''),(40,4,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00','5.50',3,85,'','','',''),(41,1,'GAR_002','S','Bloc Moteur diesel C4 break','2.00','3141.9800','0.00','19.60',4,90,'','','',''),(41,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00','5.50',3,89,'','','',''),(41,3,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,91,'','','',''),(42,1,'apha-102','S','Foret dian 250','3.00','20.8600','0.00','19.60',4,94,'','','',''),(42,2,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00','5.50',3,92,'','','',''),(42,3,'SOUP001','S','Soupe de poisson','31.00','23.5000','0.00','5.50',3,93,'Commentaire inférieur pour soupe de poisson cde_61','Commentaire supérieur pour soupe cde_61','',''),(43,1,'svael001','S','serveur virtuel','1.00','350.0000','0.00','19.60',4,107,'','','',''),(43,2,'AP003','S','Bouteille de gaz 13 kg','3.00','40.0000','3.00','19.60',4,108,'','','',''),(43,3,'GAR_004','S','Clignotant avant droit C5','5.00','86.0500','0.00','19.60',4,109,'','','',''),(43,4,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00','5.50',3,104,'','','',''),(43,5,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,110,'','','',''),(43,6,'SUC_002','S','Sucre en poudre blanc','3.00','4.6300','2.50','5.50',3,105,'','','',''),(43,7,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00','5.50',3,106,'','','',''),(44,1,'GAR_006','S','Compresseur','2.00','1088.6200','0.00','19.60',4,101,'','','',''),(44,2,'GAR_003','S','Cardan gauche 104ZS','3.00','261.9400','0.00','19.60',4,102,'','','',''),(44,3,'AP002','S','Prestation location de site','1.00','5000.0000','35.89','19.60',4,103,'','','',''),(45,1,'GAR_003','S','Cardan gauche 104ZS','3.00','261.9400','0.00','19.60',4,120,'','','',''),(45,2,'ALP1051020','S','Trépan bi-métal diam 102','3.00','33.0000','0.00','19.60',4,121,'','','',''),(45,3,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00','5.50',3,117,'','','',''),(45,4,'SUC_002','S','Sucre en poudre blanc','1.00','4.6300','0.00','5.50',3,118,'','','',''),(45,5,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00','19.60',4,122,'','','',''),(45,6,'SOUP001','S','Soupe de poisson','1.00','23.5000','0.00','5.50',3,119,'','','',''),(46,1,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,123,'','','',''),(46,2,'GAR_001','S','Dépanage hors site','1.00','54.3000','0.00','19.60',4,124,'','','',''),(46,3,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00','19.60',4,125,'','','',''),(46,4,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,126,'','','',''),(47,1,'gar_000','S','Main d\'oeuvre','3.50','50.2600','0.00','19.60',4,127,'','','',''),(48,1,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,128,'','','',''),(48,2,'GAR_002','S','Bloc Moteur diesel C4 break','2.00','3141.9800','0.00','19.60',4,129,'','','',''),(49,1,'SUC-001','S','Surcre roux en morceaux','3.00','5.9400','0.00','5.50',3,130,'','','',''),(49,2,'SOUP001','S','Soupe de poisson','3.00','23.5000','0.00','5.50',3,131,'','','',''),(50,1,'apha-102','S','Foret dian 250','3.00','20.8600','0.00','19.60',4,133,'','','',''),(50,2,'SUC-001','S','Surcre roux en morceaux','3.00','5.9400','0.00','5.50',3,132,'','','',''),(50,3,'GAR_004','S','Clignotant avant droit C5','3.00','86.0500','0.00','19.60',4,134,'','','',''),(51,1,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,135,'','','',''),(51,2,'GAR_006','S','Compresseur','3.00','1088.6200','0.00','19.60',4,136,'','','',''),(52,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00','5.50',3,137,'','','',''),(52,2,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,139,'','','',''),(52,3,'SOUP001','S','Soupe de poisson','5.00','23.5000','0.00','5.50',3,138,'','','',''),(53,1,'AP003','S','Bouteille de gaz 13 kg','3.00','40.0000','0.00','19.60',4,140,'','','',''),(53,2,'GAR_004','S','Clignotant avant droit C5','5.00','86.0500','0.00','19.60',4,141,'','','',''),(54,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00','19.60',4,142,'','','',''),(54,2,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,143,'','','',''),(55,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00','5.50',3,144,'','','',''),(55,2,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00','19.60',4,145,'','','',''),(55,3,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,146,'','','',''),(56,1,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00','19.60',4,147,'','','',''),(56,2,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','0.00','19.60',4,148,'','','',''),(57,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00','5.50',3,150,'','','',''),(58,1,'apha-102','S','Foret dian 250','3.00','24.9400','0.00','19.60',4,151,'','','',''),(59,1,'C001','S','Conserve 1L haricots porc','1.00','2.0900','0.00','19.60',4,153,'','','',''),(60,1,'C001','S','Conserve 1L haricots porc','2.00','2.0900','0.00','19.60',4,154,'','','',''),(61,1,'C001','S','Conserve 1L haricots porc','3.00','2.0900','0.00','19.60',4,155,'','','',''),(62,1,'apha-102','S','Foret dian 250','2.00','20.8600','0.00','19.60',4,156,'','','',''),(62,2,'G001','S','Tranche de gras','20.00','0.2800','0.00','19.60',4,157,'','','',''),(63,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00','5.50',3,158,'','','',''),(63,2,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,159,'','','',''),(64,1,'H001','S','Haricots blanc','150.00','0.0000','0.00','19.60',4,160,'','','',''),(65,1,'SUC-001','S','Surcre roux en morceaux','10.00','5.9400','0.00','5.50',3,161,'','','',''),(66,1,'B001','S','Boîte de conserve 1L','50.00','0.6100','0.00','19.60',4,162,'','','',''),(67,1,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00','19.60',4,163,'','','',''),(68,1,'SOUP001','S','Soupe de poisson','5.00','23.5000','0.00','5.50',3,164,'','','',''),(68,2,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00','5.50',3,165,'','','',''),(69,1,'apha-102','S','Foret dian 250','1.00','20.8600','0.00','19.60',4,166,'','','',''),(69,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00','5.50',3,167,'','','',''),(70,1,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00','19.60',4,168,'','','',''),(71,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,169,'','','',''),(71,2,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00','19.60',4,170,'','','',''),(72,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','10.00','3.9200','0.00','5.50',3,173,'','','',''),(72,2,'H001','S','Haricots blanc','50.00','0.0000','0.00','19.60',4,174,'','','',''),(73,1,'svael001','S','serveur virtuel','1.00','350.0000','0.00','19.60',4,175,'','','',''),(73,2,'GAR_003','S','Cardan gauche 104ZS','5.00','261.9400','0.00','19.60',4,176,'','','',''),(74,1,'GAR_002','S','Bloc Moteur diesel C4 break','5.00','3141.9800','0.00','19.60',4,177,'','','',''),(75,1,'B001','S','Boîte de conserve 1L','50.00','0.6100','0.00','19.60',4,179,'','','',''),(76,1,'G001','S','Tranche de gras','150.00','0.2800','0.00','19.60',4,180,'','','',''),(76,2,'H001','S','Haricots blanc','200.00','0.0000','0.00','19.60',4,181,'','','',''),(77,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00','19.60',4,182,'','','',''),(78,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','10.00','3.9200','0.00','5.50',3,183,'','','',''),(78,2,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00','5.50',3,184,'','','',''),(79,1,'GAR_004','S','Clignotant avant droit C5','2.00','86.0500','0.00','19.60',4,185,'','','',''),(79,2,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00','19.60',4,186,'','','',''),(80,1,'H001','S','Haricots blanc','15.00','0.3600','0.00','19.60',4,187,'','','',''),(80,2,'B001','S','Boîte de conserve 1L','5.00','0.6100','0.00','19.60',4,188,'','','',''),(81,1,'VP001','S','Viande de porc','5.00','1.0800','0.00','19.60',4,189,'','','',''),(81,2,'B001','S','Boîte de conserve 1L','5.00','0.6100','0.00','19.60',4,190,'','','','');

--
-- Table structure for table `ARTICLE_COM_CLIENT_TEMP`
--

CREATE TABLE `ARTICLE_COM_CLIENT_TEMP` (
  `Com_Id` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Com_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_COM_CLIENT_TEMP`
--

INSERT INTO `ARTICLE_COM_CLIENT_TEMP` VALUES (7,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','19.2300','0.00',4,'','','',''),(8,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','19.2300','0.00',4,'','','',''),(9,1,'ALP1051020','S','Trépan bi-métal diam 102','25.00','19.2300','0.00',4,'','','',''),(10,1,'AP003','S','Bouteille de gaz 13 kg','15.00','40.0000','0.00',4,'','','',''),(10,2,'svael001','S','serveur virtuel','2.00','680.0000','0.00',4,'','','',''),(11,1,'AP003','S','Bouteille de gaz 13 kg','6.00','40.0000','0.00',4,'','','',''),(11,2,'apha-102','S','Foret dian 250','2.00','20.8600','0.00',4,'','','',''),(12,1,'ALP1051020','S','Trépan bi-métal diam 102','5.00','33.0000','0.00',4,'Commentaire après la ligne article','Commentaire avant la ligne article','',''),(13,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00',4,'','','',''),(14,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00',4,'','','',''),(14,2,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00',4,'','','',''),(15,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',4,'','','',''),(15,2,'apha-102','S','Foret dian 250','10.00','20.8600','0.00',4,'','','',''),(16,1,'ALP1051020','S','Trépan bi-métal diam 102','15.00','33.0000','0.00',4,'','','',''),(16,2,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,'','','',''),(17,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00',4,'','','',''),(17,2,'AP002','S','Prestation location de site','2.00','5000.0000','0.00',4,'','','',''),(18,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00',4,'','','',''),(19,1,'apha-102','S','Foret dian 250','5.00','20.8600','0.00',4,'','','',''),(20,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',4,'','','',''),(20,2,'svael001','S','serveur virtuel','2.00','350.0000','0.00',4,'','','',''),(21,1,'ALP1051020','S','Trépan bi-métal diam 102','2.00','33.0000','0.00',4,'','','',''),(21,2,'apha-102','S','Foret dian 250','2.00','20.8600','0.00',4,'','','',''),(22,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00',4,'','','',''),(23,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00',4,'','','',''),(24,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00',4,'','','',''),(25,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00',4,'','','',''),(25,2,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',4,'','','',''),(25,3,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,'','','',''),(26,1,'apha-102','S','Foret dian 250','1.00','20.8600','0.00',4,'','','',''),(26,2,'ALP1051020','S','Trépan bi-métal diam 102','8.00','33.0000','0.00',4,'','','',''),(27,1,'svael001','S','serveur virtuel','2.00','350.0000','0.00',4,'','','',''),(28,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','19.2300','0.00',4,'','','',''),(29,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','19.2300','5.00',4,'','','',''),(30,1,'ALP1051020','S','Trépan bi-métal diam 102','5.00','19.2300','0.00',4,'','','',''),(31,1,'SOUP001','S','Soupe de poisson','3.00','23.5000','0.00',3,'','','',''),(31,2,'Prest001A','S','Première Prestation','1.00','131.5600','0.00',4,'','','',''),(31,3,'apha-102','S','Foret dian 250','1.00','24.9400','0.00',4,'','','',''),(31,4,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00',4,'','','',''),(32,1,'svael001','S','serveur virtuel','1.00','418.6000','0.00',4,'','','',''),(32,2,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00',3,'','','',''),(32,3,'ALP1051020','S','Trépan bi-métal diam 102','1.00','39.4700','0.00',4,'','','',''),(33,1,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00',4,'','','',''),(33,2,'svael001','S','serveur virtuel','1.00','418.6000','0.00',4,'','','',''),(33,3,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00',3,'','','',''),(34,1,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00',4,'','','',''),(34,2,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','0.00',4,'','','',''),(34,3,'GAR_005','S','Pneumatique Neige','5.00','58.3000','0.00',4,'','','',''),(35,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00',4,'','','',''),(35,2,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00',4,'','','',''),(35,3,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00',4,'','','',''),(36,1,'GAR_003','S','Cardan gauche 104ZS','2.00','261.9400','0.00',4,'','','',''),(36,2,'SUC-001','S','Surcre roux en morceaux','10.00','5.9400','0.00',3,'','','',''),(37,1,'ALP1051020','S','Trépan bi-métal diam 102','3.00','33.0000','0.00',4,'','','',''),(37,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00',3,'','','',''),(37,3,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00',4,'','','',''),(37,4,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00',4,'','','',''),(37,5,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00',4,'','','',''),(37,6,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00',4,'','','',''),(38,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00',4,'','','',''),(38,2,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00',4,'','','',''),(38,3,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,'','','',''),(39,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00',3,'','','',''),(39,2,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00',4,'','','',''),(39,3,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00',4,'','','',''),(39,4,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00',4,'','','',''),(40,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00',4,'','','',''),(40,2,'GAR_007','S','Groupe Flitre à air','2.00','28.6000','0.00',4,'','','',''),(40,3,'GAR_005','S','Pneumatique Neige','5.00','58.3000','0.00',4,'','','',''),(40,4,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,'','','',''),(41,1,'GAR_002','S','Bloc Moteur diesel C4 break','2.00','3141.9800','0.00',4,'','','',''),(41,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00',3,'','','',''),(41,3,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00',4,'','','',''),(42,1,'apha-102','S','Foret dian 250','3.00','20.8600','0.00',4,'','','',''),(42,2,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00',3,'','','',''),(42,3,'SOUP001','S','Soupe de poisson','31.00','23.5000','0.00',3,'Commentaire inférieur pour soupe de poisson cde_61','Commentaire supérieur pour soupe cde_61','',''),(43,1,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,'','','',''),(43,2,'AP003','S','Bouteille de gaz 13 kg','3.00','40.0000','3.00',4,'','','',''),(43,3,'GAR_004','S','Clignotant avant droit C5','5.00','86.0500','0.00',4,'','','',''),(43,4,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00',3,'','','',''),(43,5,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00',4,'','','',''),(43,6,'SUC_002','S','Sucre en poudre blanc','3.00','4.6300','2.50',3,'','','',''),(43,7,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00',3,'','','',''),(44,1,'GAR_006','S','Compresseur','2.00','1088.6200','0.00',4,'','','',''),(44,2,'GAR_003','S','Cardan gauche 104ZS','3.00','261.9400','0.00',4,'','','',''),(44,3,'AP002','S','Prestation location de site','1.00','5000.0000','35.89',4,'','','',''),(45,1,'GAR_003','S','Cardan gauche 104ZS','3.00','261.9400','0.00',4,'','','',''),(45,2,'ALP1051020','S','Trépan bi-métal diam 102','3.00','33.0000','0.00',4,'','','',''),(45,3,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','3.9200','0.00',3,'','','',''),(45,4,'SUC_002','S','Sucre en poudre blanc','1.00','4.6300','0.00',3,'','','',''),(45,5,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00',4,'','','',''),(45,6,'SOUP001','S','Soupe de poisson','1.00','23.5000','0.00',3,'','','',''),(46,1,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00',4,'','','',''),(46,2,'GAR_001','S','Dépanage hors site','1.00','54.3000','0.00',4,'','','',''),(46,3,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00',4,'','','',''),(46,4,'GAR_006','S','Compresseur','1.00','1088.6200','0.00',4,'','','',''),(47,1,'gar_000','S','Main d\'oeuvre','3.50','50.2600','0.00',4,'','','',''),(48,1,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00',4,'','','',''),(48,2,'GAR_002','S','Bloc Moteur diesel C4 break','2.00','3141.9800','0.00',4,'','','',''),(49,1,'SUC-001','S','Surcre roux en morceaux','3.00','5.9400','0.00',3,'','','',''),(49,2,'SOUP001','S','Soupe de poisson','3.00','23.5000','0.00',3,'','','',''),(50,1,'apha-102','S','Foret dian 250','3.00','20.8600','0.00',4,'','','',''),(50,2,'SUC-001','S','Surcre roux en morceaux','3.00','5.9400','0.00',3,'','','',''),(50,3,'GAR_004','S','Clignotant avant droit C5','3.00','86.0500','0.00',4,'','','',''),(51,1,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00',4,'','','',''),(51,2,'GAR_006','S','Compresseur','3.00','1088.6200','0.00',4,'','','',''),(52,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00',3,'','','',''),(52,2,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00',4,'','','',''),(52,3,'SOUP001','S','Soupe de poisson','5.00','23.5000','0.00',3,'','','',''),(53,1,'AP003','S','Bouteille de gaz 13 kg','3.00','40.0000','0.00',4,'','','',''),(53,2,'GAR_004','S','Clignotant avant droit C5','5.00','86.0500','0.00',4,'','','',''),(54,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00',4,'','','',''),(54,2,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00',4,'','','',''),(55,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00',3,'','','',''),(55,2,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00',4,'','','',''),(55,3,'GAR_006','S','Compresseur','1.00','1088.6200','0.00',4,'','','',''),(56,1,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00',4,'','','',''),(56,2,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','0.00',4,'','','',''),(57,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,'','','',''),(58,1,'apha-102','S','Foret dian 250','3.00','24.9400','0.00',4,'','','',''),(59,1,'C001','S','Conserve 1L haricots porc','1.00','2.0900','0.00',4,'','','',''),(60,1,'C001','S','Conserve 1L haricots porc','2.00','2.0900','0.00',4,'','','',''),(61,1,'C001','S','Conserve 1L haricots porc','3.00','2.0900','0.00',4,'','','',''),(62,1,'apha-102','S','Foret dian 250','2.00','20.8600','0.00',4,'','','',''),(62,2,'G001','S','Tranche de gras','20.00','0.2800','0.00',4,'','','',''),(63,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00',3,'','','',''),(63,2,'GAR_006','S','Compresseur','1.00','1088.6200','0.00',4,'','','',''),(64,1,'H001','S','Haricots blanc','150.00','0.0000','0.00',4,'','','',''),(65,1,'SUC-001','S','Surcre roux en morceaux','10.00','5.9400','0.00',3,'','','',''),(66,1,'B001','S','Boîte de conserve 1L','50.00','0.6100','0.00',4,'','','',''),(67,1,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00',4,'','','',''),(68,1,'SOUP001','S','Soupe de poisson','5.00','23.5000','0.00',3,'','','',''),(68,2,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00',3,'','','',''),(69,1,'apha-102','S','Foret dian 250','1.00','20.8600','0.00',4,'','','',''),(69,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00',3,'','','',''),(70,1,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00',4,'','','',''),(71,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00',4,'','','',''),(71,2,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00',4,'','','',''),(72,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','10.00','3.9200','0.00',3,'','','',''),(72,2,'H001','S','Haricots blanc','50.00','0.0000','0.00',4,'','','',''),(73,1,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,'','','',''),(73,2,'GAR_003','S','Cardan gauche 104ZS','5.00','261.9400','0.00',4,'','','',''),(74,1,'GAR_002','S','Bloc Moteur diesel C4 break','5.00','3141.9800','0.00',4,'','','',''),(75,1,'B001','S','Boîte de conserve 1L','50.00','0.6100','0.00',4,'','','',''),(76,1,'G001','S','Tranche de gras','150.00','0.2800','0.00',4,'','','',''),(76,2,'H001','S','Haricots blanc','200.00','0.0000','0.00',4,'','','',''),(77,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00',4,'','','',''),(78,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','10.00','3.9200','0.00',3,'','','',''),(78,2,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00',3,'','','',''),(79,1,'GAR_004','S','Clignotant avant droit C5','2.00','86.0500','0.00',4,'','','',''),(79,2,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00',4,'','','',''),(80,1,'H001','S','Haricots blanc','15.00','0.3600','0.00',4,'','','',''),(80,2,'B001','S','Boîte de conserve 1L','5.00','0.6100','0.00',4,'','','',''),(81,1,'VP001','S','Viande de porc','5.00','1.0800','0.00',4,'','','',''),(81,2,'B001','S','Boîte de conserve 1L','5.00','0.6100','0.00',4,'','','','');

--
-- Table structure for table `ARTICLE_DEVIS`
--

CREATE TABLE `ARTICLE_DEVIS` (
  `Devis_Id` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Ligne_Id` int(10) unsigned NOT NULL auto_increment,
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Taux_TVA` decimal(4,2) default NULL,
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Devis_Id`,`Rank`),
  UNIQUE KEY `Ligne_Id` (`Ligne_Id`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_devis_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_DEVIS`
--

INSERT INTO `ARTICLE_DEVIS` VALUES (1,1,'','I','Développement d\'un logiciel de facturation','1.00','8256.2400','0.00',4,1,'','Devis pour concevoir et mettre en place un logiciel de facturation spécifique à l\'élevage de chèvres','','19.60',''),(2,1,'','I','Mise en forme d\'une plaquette publicitaire','1.00','1875.6900','0.00',4,4,'Le délais sera le plus court possible','Devis pour la conception et la publication de plaquettes publicitaire.\nLe tout sera réalisé en quadri brillant.','','19.60',''),(3,1,'','I','Mise en forme d\'une plaquette publicitaire','1.00','1875.6900','0.00',4,3,'Le délais sera le plus court possible','Devis pour la conception et la publication de plaquettes publicitaire.\nLe tout sera réalisé en quadri brillant.','','19.60',''),(4,1,'MaRef0001','I','Conception d\'un logo','1.00','850.0000','0.00',4,9,'','Devis important\nA réaliser pour hier','','19.60',''),(4,2,'MaRef0002','I','Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600','0.00',4,10,'ceci est un commentaire','','','19.60',''),(5,1,'Prest001A','S','Première Prestation','4.00','125.3600','0.00',4,11,'Commentaire de fin ligne article','Commentaire de début','','19.60',''),(6,1,'MaRef0001','I','Conception d\'un logo','1.00','850.0000','0.00',4,12,'','Devis important\nA réaliser pour hier','','19.60',''),(6,2,'MaRef0002','I','Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600','0.00',4,13,'ceci est un commentaire','','','19.60',''),(7,1,'Prest001A','S','Première Prestation','15.00','110.0000','0.00',4,14,'','','','19.60',''),(8,1,'Prest001A','S','Première Prestation','12.00','110.0000','0.00',4,15,'','','','19.60',''),(9,1,'Prest001A','S','Première Prestation','53.00','110.0000','0.00',4,16,'','','','19.60',''),(10,1,'Prest001A','S','Première Prestation','23.00','110.0000','0.00',4,17,'','','','19.60',''),(10,2,'AP002','S','Prestation location de site','5.00','5000.0000','0.00',4,18,'','','','19.60',''),(11,1,'AP003','S','Bouteille de gaz 13 kg','200.00','100.0000','0.00',4,20,'','','','19.60',''),(12,1,'AP003','S','Bouteille de gaz 13 kg','50.00','100.0000','0.00',4,21,'','','','19.60',''),(13,1,'AP002','S','Prestation location de site','10.00','5000.0000','0.00',4,22,'','','','19.60',''),(14,1,'Prest001A','S','Première Prestation','5.00','110.0000','0.00',4,31,'Commentaires particuliers pour ce devis et sur cet article','Ceci est mon premier devis','','19.60',''),(14,2,'AP003','S','Bouteille de gaz 13 kg','4.00','100.0000','100.00',4,32,'Offre spéciale janvier','','','19.60',''),(15,1,'Prest001A','S','Première Prestation','53.00','110.0000','0.00',4,35,'','','','19.60',''),(16,1,'','I','PLV','1.00','14089.9000','0.00',4,36,'','','','19.60',''),(17,1,'','I','PLV EXT','1.00','9000.8900','0.00',4,37,'','','','19.60',''),(18,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00',4,38,'','','','19.60',''),(19,1,'','I','clip video','1.00','209.3300','0.00',4,39,'','','','19.60',''),(19,2,'','I','BOULANGERIE ET SALLE DE SPORT','1.00','100.0000','0.00',4,40,'OFFERT','','','19.60',''),(19,3,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',4,41,'','','','19.60',''),(20,1,'AP002','S','Prestation location de site','1.00','5000.0000','50.00',4,42,'','','','19.60',''),(20,2,'','I','boulangerie clip','1.00','500.0000','100.00',4,43,'offert pour le mois de janvier\n','','','19.60',''),(21,1,'','I','Matériel informatique','1.00','500.0000','0.00',4,59,'Ecran tactile, Imprimante tickets de caisse','','','19.60',''),(21,2,'','I','Logiciel gestion compta','1.00','250.0000','0.00',4,60,'Paramétrage et installation','','','19.60',''),(21,3,'','I','Loyer mensuel','1.00','60.0000','0.00',4,61,'Avec le 1er compte utilisateur du logiciel','','','19.60',''),(21,5,'','I','Maintenance informatique','1.00','504.0000','0.00',4,62,'2 interventions dans l\'année','','','19.60',''),(21,6,'','I','Développement du logiciel gestion compta','1.00','630.0000','0.00',4,63,'Forfait à la journée','','','19.60',''),(22,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00',4,58,'','','','19.60',''),(24,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',4,64,'','','','19.60',''),(25,1,'AP003','S','Bouteille de gaz 13 kg','50.00','100.0000','0.00',4,65,'','','','19.60',''),(26,1,'AP002','S','Prestation location de site','10.00','5000.0000','0.00',4,66,'','','','19.60',''),(27,1,'AP003','S','Bouteille de gaz 13 kg','50.00','100.0000','0.00',4,68,'','','','19.60',''),(27,2,'AP003','S','Bouteille de gaz 13 kg','1.00','100.0000','0.00',4,69,'','','','19.60',''),(27,3,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,70,'','','','19.60',''),(28,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',3,74,'','','','5.50',''),(29,1,'AP003','S','Bouteille de gaz 13 kg','1.00','100.0000','0.00',4,72,'','','','19.60',''),(30,1,'svael001','S','serveur virtuel','1.00','1000.0000','0.00',4,73,'','','','19.60',''),(31,1,'Prest001A','S','Première Prestation','15.00','110.0000','10.00',4,75,'','','','19.60',''),(32,1,'Prest001A','S','Première Prestation','15.00','110.0000','10.00',4,76,'','','','19.60',''),(33,1,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,77,'','','','19.60',''),(34,1,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00',4,78,'','','','19.60',''),(35,1,'ALP1051020','S','Trépan bi-métal diam 102','30.00','33.0000','0.00',4,79,'','','','19.60',''),(36,1,'apha-102','S','Foret dian 250','2.00','32.4800','0.00',4,81,'','','','19.60',''),(38,1,'ALP1051020','S','Trépan bi-métal diam 102','3.00','45.0000','0.00',4,82,'','','','19.60',''),(38,2,'apha-102','S','Foret dian 250','3.00','49.5000','0.00',4,83,'','','','19.60',''),(39,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00',3,84,'','','','5.50',''),(39,2,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00',4,85,'','','','19.60',''),(39,3,'svael001','S','serveur virtuel','1.00','418.6000','0.00',4,86,'','','','19.60',''),(40,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00',3,87,'','','','5.50',''),(40,2,'apha-102','S','Foret dian 250','3.00','24.9400','0.00',4,88,'','','','19.60',''),(40,3,'svael001','S','serveur virtuel','2.00','418.6000','0.00',4,89,'','','','19.60',''),(41,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00',4,99,'Il a 50 000 KM','','','19.60',''),(41,2,'GAR_005','S','Pneumatique Neige','4.00','58.3000','0.00',4,100,'','','','19.60',''),(41,3,'','I','mon produit','5.00','125.2360','0.00',4,101,'','','','19.60',''),(42,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00',4,102,'Il a 50 000 KM','','','19.60',''),(42,2,'GAR_005','S','Pneumatique Neige','4.00','58.3000','0.00',4,103,'','','','19.60',''),(42,3,'','I','mon produit','5.00','125.2360','0.00',4,104,'','','','19.60',''),(43,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,105,'','','','5.50',''),(44,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,106,'','','','5.50',''),(44,2,'GAR_004','S','Clignotant avant droit C5','1.00','102.9200','0.00',4,108,'','','','19.60',''),(44,3,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00',3,107,'','','','5.50',''),(45,1,'C001','S','Conserve 1L haricots porc','1.00','2.0900','0.00',4,109,'','','','19.60',''),(46,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00',4,110,'','','','19.60',''),(47,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00',4,111,'','','','19.60','');

--
-- Table structure for table `ARTICLE_DEVIS_TEMP`
--

CREATE TABLE `ARTICLE_DEVIS_TEMP` (
  `Devis_Id` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Devis_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_DEVIS_TEMP`
--

INSERT INTO `ARTICLE_DEVIS_TEMP` VALUES (17,1,'','I','PLV EXT','1.00','9000.8900','0.00',4,'','','',''),(19,1,'','I','clip video','1.00','209.3300','0.00',4,'','','',''),(19,2,'','I','BOULANGERIE ET SALLE DE SPORT','1.00','100.0000','0.00',4,'OFFERT','','',''),(19,3,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',4,'','','',''),(20,1,'AP002','S','Prestation location de site','1.00','5000.0000','50.00',4,'','','',''),(20,2,'','I','boulangerie clip','1.00','500.0000','100.00',4,'offert pour le mois de janvier\n','','',''),(21,1,'','I','Matériel informatique','1.00','500.0000','0.00',4,'Ecran tactile, Imprimante tickets de caisse','','',''),(21,2,'','I','Logiciel gestion compta','1.00','250.0000','0.00',4,'Paramétrage et installation','','',''),(21,3,'','I','Loyer mensuel','1.00','60.0000','0.00',4,'Avec le 1er compte utilisateur du logiciel','','',''),(21,5,'','I','Maintenance informatique','1.00','504.0000','0.00',4,'2 interventions dans l\'année','','',''),(21,6,'','I','Développement du logiciel gestion compta','1.00','630.0000','0.00',4,'Forfait à la journée','','',''),(22,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00',4,'','','',''),(24,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',4,'','','',''),(25,1,'AP003','S','Bouteille de gaz 13 kg','50.00','100.0000','0.00',4,'','','',''),(26,1,'AP002','S','Prestation location de site','10.00','5000.0000','0.00',4,'','','',''),(27,1,'AP003','S','Bouteille de gaz 13 kg','50.00','100.0000','0.00',4,'','','',''),(27,2,'AP003','S','Bouteille de gaz 13 kg','1.00','100.0000','0.00',4,'','','',''),(27,3,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,'','','',''),(28,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',3,'','','',''),(29,1,'AP003','S','Bouteille de gaz 13 kg','1.00','100.0000','0.00',4,'','','',''),(30,1,'svael001','S','serveur virtuel','1.00','1000.0000','0.00',4,'','','',''),(32,1,'Prest001A','S','Première Prestation','15.00','110.0000','10.00',4,'','','',''),(33,1,'svael001','S','serveur virtuel','1.00','350.0000','0.00',4,'','','',''),(34,1,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00',4,'','','',''),(35,1,'ALP1051020','S','Trépan bi-métal diam 102','30.00','33.0000','0.00',4,'','','',''),(36,1,'apha-102','S','Foret dian 250','2.00','32.4800','0.00',4,'','','',''),(38,1,'ALP1051020','S','Trépan bi-métal diam 102','3.00','45.0000','0.00',4,'','','',''),(38,2,'apha-102','S','Foret dian 250','3.00','49.5000','0.00',4,'','','',''),(39,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00',3,'','','',''),(39,2,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00',4,'','','',''),(39,3,'svael001','S','serveur virtuel','1.00','418.6000','0.00',4,'','','',''),(40,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00',3,'','','',''),(40,2,'apha-102','S','Foret dian 250','3.00','24.9400','0.00',4,'','','',''),(40,3,'svael001','S','serveur virtuel','2.00','418.6000','0.00',4,'','','',''),(42,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00',4,'Il a 50 000 KM','','',''),(42,2,'GAR_005','S','Pneumatique Neige','4.00','58.3000','0.00',4,'','','',''),(42,3,'','I','mon produit','5.00','125.2360','0.00',4,'','','',''),(43,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,'','','',''),(44,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,'','','',''),(44,2,'GAR_004','S','Clignotant avant droit C5','1.00','102.9200','0.00',4,'','','',''),(44,3,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00',3,'','','',''),(45,1,'C001','S','Conserve 1L haricots porc','1.00','2.0900','0.00',4,'','','',''),(46,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00',4,'','','',''),(47,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00',4,'','','','');

--
-- Table structure for table `ARTICLE_FACTURE`
--

CREATE TABLE `ARTICLE_FACTURE` (
  `Facture_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned default '0',
  `Ref_Ligne_Web` int(10) unsigned default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Taux_TVA` decimal(4,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Facture_Id`,`Rank`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_facture_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_FACTURE`
--

INSERT INTO `ARTICLE_FACTURE` VALUES (1,0,0,1,'','I','Développement d\'un logiciel de facturation','1.00','8256.2400','0.00','19.60',4,'','Devis pour concevoir et mettre en place un logiciel de facturation spécifique à l\'élevage de chèvres','',''),(2,0,0,1,'','I','Mise en forme d\'une plaquette publicitaire','1.00','1875.6900','0.00','19.60',4,'Le délais sera le plus court possible','Devis pour la conception et la publication de plaquettes publicitaire.\nLe tout sera réalisé en quadri brillant.','',''),(3,0,0,1,'Prest001A','S','Première Prestation','4.00','125.3600','0.00','19.60',4,'Commentaire de fin ligne article','Commentaire de début','',''),(4,0,0,1,'Prest001A','S','Première Prestation','15.00','110.0000','0.00','19.60',4,'','','',''),(5,0,0,1,'Prest001A','S','Première Prestation','12.00','110.0000','0.00','19.60',4,'','','',''),(6,0,0,1,'Prest001A','S','Première Prestation','53.00','110.0000','0.00','19.60',4,'','','',''),(7,0,0,1,'Prest001A','S','Première Prestation','23.00','110.0000','0.00','19.60',4,'','','',''),(7,0,0,2,'AP002','S','Prestation location de site','5.00','5000.0000','0.00','19.60',4,'','','',''),(8,0,0,1,'AP003','S','Bouteille de gaz 13 kg','200.00','100.0000','0.00','19.60',4,'','','',''),(9,0,0,1,'AP003','S','Bouteille de gaz 13 kg','50.00','100.0000','0.00','19.60',4,'','','',''),(10,0,0,1,'AP002','S','Prestation location de site','10.00','5000.0000','0.00','19.60',4,'','','',''),(11,0,0,1,'Prest001A','S','Première Prestation','5.00','110.0000','0.00','19.60',4,'Commentaires particuliers pour ce devis et sur cet article','Ceci est mon premier devis','',''),(11,0,0,2,'AP003','S','Bouteille de gaz 13 kg','4.00','100.0000','100.00','19.60',4,'Offre spéciale janvier','','',''),(11,0,0,3,'','I','Service sup','1.00','3456.8900','0.00','19.60',4,'','','',''),(12,0,0,1,'','I','Maquette Totem','1.00','2345.6700','0.00','19.60',4,'','','',''),(13,1,0,1,'Prest001A','S','Première Prestation','53.00','110.0000','0.00','19.60',4,'','','',''),(14,0,0,1,'','I','clip video','1.00','209.3300','0.00','19.60',4,'','','',''),(14,0,0,2,'','I','BOULANGERIE ET SALLE DE SPORT','1.00','100.0000','0.00','19.60',4,'OFFERT','','',''),(14,0,0,3,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','19.60',4,'','','',''),(15,0,0,1,'AP002','S','Prestation location de site','1.00','5000.0000','50.00','19.60',4,'','','',''),(15,0,0,2,'','I','boulangerie clip','1.00','500.0000','100.00','19.60',4,'offert pour le mois de janvier\n','','',''),(16,0,11,11,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','19.60',4,'','','',''),(17,0,2,2,'MaRef0001','S','Conception d\'un logo','1.00','850.0000','0.00','19.60',4,'','','',''),(17,0,3,3,'MaRef0002','S','Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600','0.00','19.60',4,'','','',''),(18,0,1,1,'','S','Mise en forme d\'une plaquette publicitaire','1.00','1875.6900','0.00','19.60',4,'','','',''),(19,0,4,4,'MaRef0001','S','Conception d\'un logo','1.00','850.0000','0.00','19.60',4,'','','',''),(19,0,5,5,'MaRef0002','S','Conception de 5 000 Cartes de visites sur papier glacé','1.00','452.3600','0.00','19.60',4,'','','',''),(20,0,13,13,'AP003','S','Bouteille de gaz 13 kg','50.00','100.0000','0.00','19.60',4,'','','',''),(21,0,0,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00','19.60',4,'','','',''),(22,0,0,1,'svael001','S','serveur virtuel','5.00','350.0000','0.00','19.60',4,'','','',''),(23,0,0,1,'AP002','S','Prestation location de site','10.00','5000.0000','0.00','19.60',4,'','','',''),(24,0,0,1,'123','I','test','1.00','200.0000','0.00','19.60',4,'','','',''),(25,0,0,1,'AP003','S','Bouteille de gaz 13 kg','1.00','100.0000','0.00','19.60',4,'','','',''),(26,0,0,1,'svael001','S','serveur virtuel','1.00','1000.0000','0.00','19.60',4,'','','',''),(27,0,0,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','5.50',3,'','','',''),(28,0,0,1,'Prest001A','S','Première Prestation','15.00','110.0000','10.00','19.60',4,'','','',''),(29,0,24,24,'svael001','S','serveur virtuel','1.00','350.0000','0.00','19.60',4,'','','',''),(29,0,25,25,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00','19.60',4,'','','',''),(30,0,34,34,'Prest001A','S','Première Prestation','4.00','110.0000','0.00','19.60',4,'','','',''),(30,0,35,35,'AP003','S','Bouteille de gaz 13 kg','10.00','40.0000','0.00','19.60',4,'','','',''),(31,0,43,43,'ALP1051020','S','Trépan bi-métal diam 102','30.00','33.0000','0.00','19.60',4,'','','',''),(32,0,45,45,'apha-102','S','Foret dian 250','2.00','32.4800','0.00','19.60',4,'','','',''),(41,18,0,1,'ALP1051020','S','Trépan bi-métal diam 102','5.00','33.0000','0.00','19.60',4,'','','',''),(42,18,0,1,'ALP1051020','S','Trépan bi-métal diam 102','5.00','33.0000','0.00','19.60',4,'','','',''),(43,20,0,1,'AP003','S','Bouteille de gaz 13 kg','2.00','40.0000','0.00','19.60',4,'','','',''),(43,21,0,2,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00','19.60',4,'','','',''),(44,26,0,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00','19.60',4,'\n','\n','',''),(45,28,0,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00','19.60',4,'\n','\n','',''),(45,29,0,2,'AP002','S','Prestation location de site','2.00','5000.0000','0.00','19.60',4,'\n','\n','',''),(46,31,0,1,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00','19.60',4,'\n','\n','',''),(47,32,0,1,'apha-102','S','Foret dian 250','5.00','20.8600','0.00','19.60',4,'\n','\n','',''),(48,9,0,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','19.2300','0.00','19.60',4,'','','',''),(51,33,0,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','19.60',4,'','','',''),(51,34,0,2,'svael001','S','serveur virtuel','2.00','350.0000','0.00','19.60',4,'\n','\n','',''),(52,35,0,1,'ALP1051020','S','Trépan bi-métal diam 102','2.00','33.0000','0.00','19.60',4,'','','',''),(52,36,0,2,'apha-102','S','Foret dian 250','2.00','20.8600','0.00','19.60',4,'','','',''),(52,37,0,3,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00','19.60',4,'','','',''),(57,38,0,1,'ALP1051020','S','Trépan bi-métal diam 102','10.00','33.0000','0.00','19.60',4,'','','',''),(57,39,0,2,'AP003','S','Bouteille de gaz 13 kg','5.00','40.0000','0.00','19.60',4,'\n','\n','',''),(58,43,0,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00','19.60',4,'','','',''),(58,44,0,2,'Prest001A','S','Première Prestation','1.00','110.0000','0.00','19.60',4,'','','',''),(58,45,0,3,'svael001','S','serveur virtuel','3.00','350.0000','0.00','19.60',4,'\n','\n','',''),(58,46,0,4,'apha-102','S','Foret dian 250','1.00','20.8600','0.00','19.60',4,'','','',''),(58,47,0,5,'ALP1051020','S','Trépan bi-métal diam 102','8.00','33.0000','0.00','19.60',4,'\n','\n','',''),(59,49,0,1,'ALP1051020','S','Trépan bi-métal diam 102','6.00','19.2300','0.00','19.60',4,'\n','\n','',''),(59,50,0,2,'ALP1051020','S','Trépan bi-métal diam 102','10.00','19.2300','5.00','19.60',4,'\n','\n','',''),(61,0,0,1,'ALP1051020','S','Trépan bi-métal diam 102','3.00','45.0000','0.00','19.60',4,'','','',''),(61,0,0,2,'apha-102','S','Foret dian 250','3.00','49.5000','0.00','19.60',4,'','','',''),(62,0,0,1,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00','19.60',4,'','','',''),(62,0,0,2,'apha-102','S','Foret dian 250','3.00','24.9400','0.00','19.60',4,'','','',''),(63,0,0,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00','5.50',3,'','','',''),(63,0,0,2,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00','19.60',4,'','','',''),(63,0,0,3,'svael001','S','serveur virtuel','1.00','418.6000','0.00','19.60',4,'','','',''),(64,0,0,1,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00','5.50',3,'','','',''),(64,0,0,2,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00','19.60',4,'','','',''),(65,0,0,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00','5.50',3,'','','',''),(65,0,0,2,'apha-102','S','Foret dian 250','3.00','24.9400','0.00','19.60',4,'','','',''),(65,0,0,3,'svael001','S','serveur virtuel','2.00','418.6000','0.00','19.60',4,'','','',''),(66,0,0,1,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00','19.60',4,'','','',''),(66,0,0,2,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00','5.50',3,'','','',''),(66,0,0,3,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00','19.60',4,'','','',''),(67,52,0,1,'SOUP001','S','Soupe de poisson','3.00','23.5000','0.00','5.50',3,'','','',''),(67,53,0,2,'Prest001A','S','Première Prestation','1.00','131.5600','0.00','19.60',4,'','','',''),(67,54,0,3,'apha-102','S','Foret dian 250','1.00','24.9400','0.00','19.60',4,'','','',''),(67,55,0,4,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00','19.60',4,'','','',''),(68,59,0,1,'svael001','S','serveur virtuel','1.00','418.6000','0.00','19.60',4,'','','',''),(68,58,0,2,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00','5.50',3,'','','',''),(68,60,0,3,'ALP1051020','S','Trépan bi-métal diam 102','1.00','39.4700','0.00','19.60',4,'','','',''),(69,62,0,1,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00','19.60',4,'','','',''),(69,63,0,2,'svael001','S','serveur virtuel','1.00','418.6000','0.00','19.60',4,'','','',''),(69,61,0,3,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00','5.50',3,'','','',''),(70,0,0,1,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00','5.50',3,'','','',''),(70,0,0,2,'ALP1051020','S','Trépan bi-métal diam 102','5.00','39.4700','0.00','19.60',4,'','','',''),(70,0,0,3,'CONF-001','S','Confiture de Mirabelles d\'espagne','13.00','4.1300','0.00','5.50',3,'','','',''),(70,0,0,4,'svael001','S','serveur virtuel','1.00','418.6000','0.00','19.60',4,'','','',''),(70,0,0,5,'apha-102','S','Foret dian 250','5.00','24.9400','0.00','19.60',4,'','','',''),(70,0,0,6,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00','19.60',4,'','','',''),(71,0,0,1,'Prest001A','S','Première Prestation','3.00','131.5600','0.00','19.60',4,'','','',''),(71,0,0,2,'svael001','S','serveur virtuel','2.00','418.6000','0.00','19.60',4,'','','',''),(71,0,0,3,'ALP1051020','S','Trépan bi-métal diam 102','5.00','39.4700','0.00','19.60',4,'','','',''),(71,0,0,4,'apha-102','S','Foret dian 250','3.00','24.9400','0.00','19.60',4,'','','',''),(71,0,0,5,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','4.1300','0.00','5.50',3,'','','',''),(71,0,0,6,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00','19.60',4,'','','',''),(71,0,0,7,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00','5.50',3,'','','',''),(71,0,0,8,'AP002','S','Prestation location de site','3.00','58.9100','0.00','19.60',4,'','','',''),(72,0,0,1,'SUC-001','S','Surcre roux en morceaux','5.00','6.2600','0.00','5.50',3,'','','',''),(72,0,0,2,'SUC_002','S','Sucre en poudre blanc','3.00','4.8900','0.00','5.50',3,'','','',''),(72,0,0,3,'svael001','S','serveur virtuel','1.00','418.6000','0.00','19.60',4,'','','',''),(72,0,0,4,'Prest001A','S','Première Prestation','3.00','131.5600','0.00','19.60',4,'','','',''),(72,0,0,5,'AP002','S','Prestation location de site','1.00','59.8460','0.00','19.60',4,'','','',''),(72,0,0,6,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00','19.60',4,'','','',''),(72,0,0,7,'apha-102','S','Foret dian 250','3.00','24.9400','0.00','19.60',4,'','','',''),(72,0,0,8,'CONF-001','S','Confiture de Mirabelles d\'espagne','8.00','4.1300','0.00','5.50',3,'','','',''),(72,0,0,9,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00','19.60',4,'','','',''),(72,0,0,10,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00','5.50',3,'','','',''),(74,64,0,1,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00','19.60',4,'','','',''),(74,65,0,2,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','0.00','19.60',4,'','','',''),(74,66,0,3,'GAR_005','S','Pneumatique Neige','5.00','58.3000','0.00','19.60',4,'','','',''),(74,70,0,4,'GAR_003','S','Cardan gauche 104ZS','2.00','261.9400','0.00','19.60',4,'','','',''),(74,71,0,5,'SUC-001','S','Surcre roux en morceaux','10.00','5.9400','0.00','5.50',3,'','','',''),(75,67,0,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,'','','',''),(75,68,0,2,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00','19.60',4,'','','',''),(75,69,0,3,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,'','','',''),(76,73,0,1,'ALP1051020','S','Trépan bi-métal diam 102','4.00','33.0000','0.00','19.60',4,'\n\n','\n\n','',''),(76,72,0,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','6.00','3.9200','0.00','5.50',3,'\n\n','\n\n','',''),(76,74,0,3,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00','19.60',4,'','','',''),(76,75,0,4,'AP003','S','Bouteille de gaz 13 kg','2.00','40.0000','0.00','19.60',4,'\n','\n','',''),(76,76,0,5,'GAR_005','S','Pneumatique Neige','2.00','58.3000','0.00','19.60',4,'\n','\n','',''),(76,77,0,6,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,'','','',''),(77,86,0,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,'','','',''),(77,87,0,2,'GAR_007','S','Groupe Flitre à air','2.00','28.6000','0.00','19.60',4,'\n','\n','',''),(77,88,0,3,'GAR_005','S','Pneumatique Neige','5.00','58.3000','0.00','19.60',4,'\n','\n','',''),(77,85,0,4,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00','5.50',3,'','','',''),(81,79,0,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00','19.60',4,'','','',''),(81,80,0,2,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00','19.60',4,'','','',''),(81,78,0,3,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00','5.50',3,'','','',''),(82,90,0,1,'GAR_002','S','Bloc Moteur diesel C4 break','2.00','3141.9800','0.00','19.60',4,'','','',''),(82,89,0,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','13.00','3.9200','0.00','5.50',3,'\n\n\n\n\n\n','\n\n\n\n\n\n','',''),(82,91,0,3,'GAR_005','S','Pneumatique Neige','6.00','58.3000','0.00','19.60',4,'\n\n','\n\n','',''),(82,107,0,4,'svael001','S','serveur virtuel','1.00','350.0000','0.00','19.60',4,'','','',''),(82,108,0,5,'AP003','S','Bouteille de gaz 13 kg','3.00','40.0000','3.00','19.60',4,'\n','\n','',''),(82,109,0,6,'GAR_004','S','Clignotant avant droit C5','5.00','86.0500','0.00','19.60',4,'\n\n','\n\n','',''),(82,105,0,7,'SUC_002','S','Sucre en poudre blanc','3.00','4.6300','2.50','5.50',3,'\n','\n','',''),(83,94,0,1,'apha-102','S','Foret dian 250','3.00','20.8600','0.00','19.60',4,'','','',''),(83,92,0,2,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00','5.50',3,'','','',''),(83,93,0,3,'SOUP001','S','Soupe de poisson','31.00','23.5000','0.00','5.50',3,'Commentaire inférieur pour soupe de poisson cde_61\nCommentaire inférieur pour soupe de poisson cde_61','Commentaire supérieur pour soupe cde_61\nCommentaire supérieur pour soupe cde_61','',''),(83,101,0,4,'GAR_006','S','Compresseur','2.00','1088.6200','0.00','19.60',4,'','','',''),(83,102,0,5,'GAR_003','S','Cardan gauche 104ZS','3.00','261.9400','0.00','19.60',4,'','','',''),(83,103,0,6,'AP002','S','Prestation location de site','1.00','5000.0000','35.89','19.60',4,'','','',''),(87,0,0,1,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,'','','',''),(88,120,0,1,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,'','','',''),(88,120,0,2,'GAR_003','S','Cardan gauche 104ZS','2.00','261.9400','0.00','19.60',4,'','','',''),(88,121,0,3,'ALP1051020','S','Trépan bi-métal diam 102','2.00','33.0000','0.00','19.60',4,'','','',''),(88,121,0,4,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00','19.60',4,'','','',''),(88,117,0,5,'CONF-001','S','Confiture de Mirabelles d\'espagne','2.00','3.9200','0.00','5.50',3,'','','',''),(88,117,0,6,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00','5.50',3,'','','',''),(88,118,0,7,'SUC_002','S','Sucre en poudre blanc','1.00','4.6300','0.00','5.50',3,'','','',''),(88,122,0,8,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00','19.60',4,'','','',''),(88,119,0,9,'SOUP001','S','Soupe de poisson','1.00','23.5000','0.00','5.50',3,'','','',''),(89,123,0,1,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,'','','',''),(89,124,0,2,'GAR_001','S','Dépanage hors site','1.00','54.3000','0.00','19.60',4,'','','',''),(89,125,0,3,'GAR_005','S','Pneumatique Neige','1.00','58.3000','0.00','19.60',4,'','','',''),(89,126,0,4,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,'','','',''),(90,0,0,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00','19.60',4,'Il a 50 000 KM','','',''),(90,0,0,2,'GAR_005','S','Pneumatique Neige','4.00','58.3000','0.00','19.60',4,'','','',''),(90,0,0,3,'','I','mon produit','5.00','125.2360','0.00','19.60',4,'','','',''),(91,0,0,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00','19.60',4,'Il a 50 000 KM','','',''),(91,0,0,2,'GAR_005','S','Pneumatique Neige','4.00','58.3000','0.00','19.60',4,'','','',''),(91,0,0,3,'','I','mon produit','5.00','125.2360','0.00','19.60',4,'','','',''),(92,128,0,1,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,'','','',''),(92,129,0,2,'GAR_002','S','Bloc Moteur diesel C4 break','2.00','3141.9800','0.00','19.60',4,'','','',''),(93,130,0,1,'SUC-001','S','Surcre roux en morceaux','3.00','5.9400','0.00','5.50',3,'','','',''),(93,131,0,2,'SOUP001','S','Soupe de poisson','3.00','23.5000','0.00','5.50',3,'','','',''),(94,133,0,1,'apha-102','S','Foret dian 250','3.00','20.8600','0.00','19.60',4,'','','',''),(94,132,0,2,'SUC-001','S','Surcre roux en morceaux','3.00','5.9400','0.00','5.50',3,'','','',''),(94,134,0,3,'GAR_004','S','Clignotant avant droit C5','3.00','86.0500','0.00','19.60',4,'','','',''),(95,135,0,1,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,'','','',''),(95,136,0,2,'GAR_006','S','Compresseur','3.00','1088.6200','0.00','19.60',4,'','','',''),(96,137,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','3.00','3.9200','0.00','5.50',3,'','','',''),(96,139,0,2,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,'','','',''),(96,138,0,3,'SOUP001','S','Soupe de poisson','5.00','23.5000','0.00','5.50',3,'','','',''),(96,140,0,4,'AP003','S','Bouteille de gaz 13 kg','3.00','40.0000','0.00','19.60',4,'','','',''),(96,141,0,5,'GAR_004','S','Clignotant avant droit C5','5.00','86.0500','0.00','19.60',4,'','','',''),(97,142,0,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','33.0000','0.00','19.60',4,'','','',''),(97,143,0,2,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00','19.60',4,'','','',''),(98,144,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00','5.50',3,'','','',''),(98,145,0,2,'AP003','S','Bouteille de gaz 13 kg','1.00','40.0000','0.00','19.60',4,'','','',''),(99,148,0,2,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','0.00','19.60',4,'','','',''),(100,144,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','2.00','3.9200','0.00','5.50',3,'','','',''),(101,147,0,1,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00','19.60',4,'','','',''),(102,0,0,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00','5.50',3,'','','',''),(102,0,0,2,'GAR_004','S','Clignotant avant droit C5','1.00','102.9200','0.00','19.60',4,'','','',''),(102,0,0,3,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00','5.50',3,'','','',''),(103,0,0,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','39.4700','0.00','19.60',4,'','','',''),(103,0,0,2,'SUC-001','S','Surcre roux en morceaux','1.00','6.2600','0.00','5.50',3,'','','',''),(103,0,0,3,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00','5.50',3,'','','',''),(103,0,0,4,'GAR_003','S','Cardan gauche 104ZS','1.00','313.2800','0.00','19.60',4,'','','',''),(103,0,0,5,'GAR_003','S','Cardan gauche 104ZS','1.00','313.2800','0.00','19.60',4,'','','',''),(103,0,0,6,'SUC_002','S','Sucre en poudre blanc','1.00','4.8900','0.00','5.50',3,'','','',''),(104,0,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','5.00','5.50',3,'','','',''),(105,0,0,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','39.4700','0.00','19.60',4,'','','',''),(105,0,0,2,'GAR_006','S','Compresseur','1.00','1301.9800','5.00','19.60',4,'','','',''),(105,0,0,3,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3757.8000','13.50','19.60',4,'','','',''),(105,0,0,4,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00','5.50',3,'','','',''),(105,0,0,5,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','4.1300','0.00','5.50',3,'','','',''),(106,0,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','1.23','5.50',3,'','','',''),(106,0,0,2,'GAR_003','S','Cardan gauche 104ZS','1.00','313.2800','0.00','19.60',4,'','','',''),(106,0,0,3,'GAR_001','S','Dépanage hors site','1.00','64.9400','0.00','19.60',4,'','','',''),(106,0,0,4,'SOUP001','S','Soupe de poisson','1.00','24.7900','3.46','5.50',3,'','','',''),(106,0,0,5,'SUC_002','S','Sucre en poudre blanc','1.00','4.8900','0.00','5.50',3,'','','',''),(106,0,0,6,'GAR_004','S','Clignotant avant droit C5','1.00','102.9200','0.00','19.60',4,'','','',''),(106,0,0,7,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00','19.60',4,'','','',''),(107,150,0,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00','5.50',3,'','','',''),(109,151,0,1,'apha-102','S','Foret dian 250','3.00','24.9400','0.00','19.60',4,'','','',''),(110,153,0,1,'C001','S','Conserve 1L haricots porc','1.00','2.0900','0.00','19.60',4,'','','',''),(111,154,0,1,'C001','S','Conserve 1L haricots porc','2.00','2.0900','0.00','19.60',4,'','','',''),(111,157,0,2,'G001','S','Tranche de gras','18.00','0.2800','0.00','19.60',4,'','','',''),(112,160,0,1,'H001','S','Haricots blanc','140.00','0.0000','0.00','19.60',4,'','','',''),(113,161,0,1,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00','5.50',3,'','','',''),(114,161,0,1,'SUC-001','S','Surcre roux en morceaux','5.00','5.9400','0.00','5.50',3,'','','',''),(115,162,0,1,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00','19.60',4,'','','',''),(116,162,0,1,'B001','S','Boîte de conserve 1L','25.00','0.6100','0.00','19.60',4,'','','',''),(117,162,0,1,'B001','S','Boîte de conserve 1L','15.00','0.6100','0.00','19.60',4,'','','',''),(118,163,0,1,'B001','S','Boîte de conserve 1L','2.00','0.6100','0.00','19.60',4,'','','',''),(119,163,0,1,'B001','S','Boîte de conserve 1L','8.00','0.6100','0.00','19.60',4,'','','',''),(120,164,0,1,'SOUP001','S','Soupe de poisson','3.00','23.5000','0.00','5.50',3,'','','',''),(120,165,0,2,'SUC-001','S','Surcre roux en morceaux','2.00','5.9400','0.00','5.50',3,'','','',''),(121,164,0,1,'SOUP001','S','Soupe de poisson','2.00','23.5000','0.00','5.50',3,'','','',''),(122,165,0,2,'SUC-001','S','Surcre roux en morceaux','3.00','5.9400','0.00','5.50',3,'','','',''),(123,166,0,1,'apha-102','S','Foret dian 250','1.00','20.8600','0.00','19.60',4,'','','',''),(123,167,0,2,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','0.00','5.50',3,'','','',''),(124,169,0,1,'GAR_006','S','Compresseur','1.00','1088.6200','0.00','19.60',4,'','','',''),(124,170,0,2,'GAR_007','S','Groupe Flitre à air','1.00','28.6000','0.00','19.60',4,'','','',''),(125,168,0,1,'B001','S','Boîte de conserve 1L','10.00','0.6100','0.00','19.60',4,'','','',''),(126,173,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','10.00','3.9200','0.00','5.50',3,'','','',''),(126,174,0,2,'H001','S','Haricots blanc','50.00','0.0000','0.00','19.60',4,'','','',''),(127,175,0,1,'svael001','S','serveur virtuel','1.00','350.0000','0.00','19.60',4,'','','',''),(127,176,0,2,'GAR_003','S','Cardan gauche 104ZS','5.00','261.9400','0.00','19.60',4,'','','',''),(127,177,0,3,'GAR_002','S','Bloc Moteur diesel C4 break','5.00','3141.9800','0.00','19.60',4,'','','',''),(128,179,0,1,'B001','S','Boîte de conserve 1L','50.00','0.6100','0.00','19.60',4,'','','',''),(129,180,0,1,'G001','S','Tranche de gras','150.00','0.2800','0.00','19.60',4,'','','',''),(129,181,0,2,'H001','S','Haricots blanc','200.00','0.0000','0.00','19.60',4,'','','',''),(130,0,0,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00','19.60',4,'','','',''),(131,0,0,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00','19.60',4,'','','',''),(132,0,47,47,'V001','S','Voiture a bras','1.00','5500.0000','0.00','19.60',4,'','','',''),(133,182,0,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00','19.60',4,'','','',''),(134,185,0,1,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00','19.60',4,'','','',''),(134,186,0,2,'B001','S','Boîte de conserve 1L','5.00','0.6100','0.00','19.60',4,'','','',''),(137,187,0,1,'H001','S','Haricots blanc','10.00','0.3600','0.00','19.60',4,'','','',''),(137,188,0,2,'B001','S','Boîte de conserve 1L','2.00','0.6100','0.00','19.60',4,'','','',''),(137,189,0,3,'VP001','S','Viande de porc','3.00','1.0800','0.00','19.60',4,'','','',''),(137,190,0,4,'B001','S','Boîte de conserve 1L','2.00','0.6100','0.00','19.60',4,'','','','');

--
-- Table structure for table `ARTICLE_FACTURE_FOURNISSEUR`
--

CREATE TABLE `ARTICLE_FACTURE_FOURNISSEUR` (
  `Facture_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Ref_Fournisseur` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Taux_TVA` decimal(4,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text NOT NULL,
  `Commentaire_Avant` text NOT NULL,
  `BR_Id` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`Facture_Id`,`Rank`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_facture_fournisseur_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_FACTURE_FOURNISSEUR`
--

INSERT INTO `ARTICLE_FACTURE_FOURNISSEUR` VALUES (1,0,1,'AP003','ref001','S','Bouteille de gaz 13 kg','1.00','20.0000','0.00','19.60',4,'','',1),(3,0,1,'AP003','ref001','S','Bouteille de gaz 13 kg','5.00','20.0000','0.00','19.60',4,'','',4),(4,0,1,'AP003','ref001','S','Bouteille de gaz 13 kg','339.00','20.0000','0.00','19.60',4,'','',5),(5,0,1,'AP003','ref001','S','Bouteille de gaz 13 kg','12.00','20.0000','0.00','19.60',4,'','',6),(5,0,2,'AP003','ref001','S','Bouteille de gaz 13 kg','5.00','20.0000','0.00','19.60',4,'','',3),(5,0,3,'AP003','ref001','S','Bouteille de gaz 13 kg','5.00','20.0000','0.00','19.60',4,'','',2),(6,0,1,'apha-102','gfr','S','Foret dian 250','500.00','12.5600','0.00','19.60',4,'','',7),(6,0,2,'ALP1051020','ref-02','S','Trépan bi-métal diam 102','400.00','11.7000','0.00','19.60',4,'','',7),(6,0,3,'SOUP001','SP-001','S','Soupe de poisson','1000.00','21.3600','0.00','5.50',3,'','',8),(6,0,4,'AP003','ref001','S','Bouteille de gaz 13 kg','500.00','20.0000','0.00','19.60',4,'','',9);

--
-- Table structure for table `ARTICLE_FACTURE_FOURNISSEUR_TEMP`
--

CREATE TABLE `ARTICLE_FACTURE_FOURNISSEUR_TEMP` (
  `Facture_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Ref_Fournisseur` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text NOT NULL,
  `Commentaire_Avant` text NOT NULL,
  `BR_Id` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`Facture_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_FACTURE_FOURNISSEUR_TEMP`
--

INSERT INTO `ARTICLE_FACTURE_FOURNISSEUR_TEMP` VALUES (1,0,1,'AP003',NULL,'S','Bouteille de gaz 13 kg','1.00','20.0000','0.00',4,'','',0),(2,0,1,'AP003','ref001','S','Bouteille de gaz 13 kg','5.00','20.0000','0.00',4,'','',3),(3,0,1,'AP003',NULL,'S','Bouteille de gaz 13 kg','5.00','20.0000','0.00',4,'','',0),(4,0,1,'AP003',NULL,'S','Bouteille de gaz 13 kg','339.00','20.0000','0.00',4,'','',0),(5,0,1,'AP003',NULL,'S','Bouteille de gaz 13 kg','12.00','20.0000','0.00',4,'','',0),(5,0,2,'AP003',NULL,'S','Bouteille de gaz 13 kg','5.00','20.0000','0.00',4,'','',0),(5,0,3,'AP003',NULL,'S','Bouteille de gaz 13 kg','5.00','20.0000','0.00',4,'','',0),(6,0,1,'apha-102','gfr','S','Foret dian 250','500.00','12.5600','0.00',4,'','',7),(6,0,2,'ALP1051020','ref-02','S','Trépan bi-métal diam 102','400.00','11.7000','0.00',4,'','',7),(6,0,3,'SOUP001','SP-001','S','Soupe de poisson','1000.00','21.3600','0.00',3,'','',8),(6,0,4,'AP003','ref001','S','Bouteille de gaz 13 kg','500.00','20.0000','0.00',4,'','',9);

--
-- Table structure for table `ARTICLE_FACTURE_TEMP`
--

CREATE TABLE `ARTICLE_FACTURE_TEMP` (
  `Facture_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned default '0',
  `Ref_Ligne_Web` int(10) unsigned default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Facture_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_FACTURE_TEMP`
--

INSERT INTO `ARTICLE_FACTURE_TEMP` VALUES (6,0,0,1,'Prest001A','S','Première Prestation','53.00','110.0000','0.00',4,'','','',''),(10,0,0,1,'AP002','S','Prestation location de site','10.00','5000.0000','0.00',4,'','','',''),(21,0,0,1,'AP002','S','Prestation location de site','1.00','5000.0000','0.00',4,'','','',''),(22,0,0,1,'svael001','S','serveur virtuel','5.00','350.0000','0.00',4,'','','',''),(23,0,0,1,'AP002','S','Prestation location de site','10.00','5000.0000','0.00',4,'','','',''),(24,0,0,1,'123','I','test','1.00','200.0000','0.00',4,'','','',''),(25,0,0,1,'AP003','S','Bouteille de gaz 13 kg','1.00','100.0000','0.00',4,'','','',''),(26,0,0,1,'svael001','S','serveur virtuel','1.00','1000.0000','0.00',4,'','','',''),(27,0,0,1,'Prest001A','S','Première Prestation','1.00','110.0000','0.00',3,'','','',''),(28,0,0,1,'Prest001A','S','Première Prestation','15.00','110.0000','10.00',4,'','','',''),(61,0,0,1,'ALP1051020','S','Trépan bi-métal diam 102','3.00','45.0000','0.00',4,'','','',''),(61,0,0,2,'apha-102','S','Foret dian 250','3.00','49.5000','0.00',4,'','','',''),(62,0,0,1,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00',4,'','','',''),(62,0,0,2,'apha-102','S','Foret dian 250','3.00','24.9400','0.00',4,'','','',''),(63,0,0,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00',3,'','','',''),(63,0,0,2,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00',4,'','','',''),(63,0,0,3,'svael001','S','serveur virtuel','1.00','418.6000','0.00',4,'','','',''),(64,0,0,1,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00',3,'','','',''),(64,0,0,2,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00',4,'','','',''),(65,0,0,1,'SOUP001','S','Soupe de poisson','5.00','24.7900','0.00',3,'','','',''),(65,0,0,2,'apha-102','S','Foret dian 250','3.00','24.9400','0.00',4,'','','',''),(65,0,0,3,'svael001','S','serveur virtuel','2.00','418.6000','0.00',4,'','','',''),(66,0,0,1,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00',4,'','','',''),(66,0,0,2,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00',3,'','','',''),(66,0,0,3,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00',4,'','','',''),(70,0,0,1,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00',3,'','','',''),(70,0,0,2,'ALP1051020','S','Trépan bi-métal diam 102','5.00','39.4700','0.00',4,'','','',''),(70,0,0,3,'CONF-001','S','Confiture de Mirabelles d\'espagne','13.00','4.1300','0.00',3,'','','',''),(70,0,0,4,'svael001','S','serveur virtuel','1.00','418.6000','0.00',4,'','','',''),(70,0,0,5,'apha-102','S','Foret dian 250','5.00','24.9400','0.00',4,'','','',''),(70,0,0,6,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00',4,'','','',''),(71,0,0,1,'Prest001A','S','Première Prestation','3.00','131.5600','0.00',4,'','','',''),(71,0,0,2,'svael001','S','serveur virtuel','2.00','418.6000','0.00',4,'','','',''),(71,0,0,3,'ALP1051020','S','Trépan bi-métal diam 102','5.00','39.4700','0.00',4,'','','',''),(71,0,0,4,'apha-102','S','Foret dian 250','3.00','24.9400','0.00',4,'','','',''),(71,0,0,5,'CONF-001','S','Confiture de Mirabelles d\'espagne','5.00','4.1300','0.00',3,'','','',''),(71,0,0,6,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00',4,'','','',''),(71,0,0,7,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00',3,'','','',''),(71,0,0,8,'AP002','S','Prestation location de site','3.00','58.9100','0.00',4,'','','',''),(72,0,0,1,'SUC-001','S','Surcre roux en morceaux','5.00','6.2600','0.00',3,'','','',''),(72,0,0,2,'SUC_002','S','Sucre en poudre blanc','3.00','4.8900','0.00',3,'','','',''),(72,0,0,3,'svael001','S','serveur virtuel','1.00','418.6000','0.00',4,'','','',''),(72,0,0,4,'Prest001A','S','Première Prestation','3.00','131.5600','0.00',4,'','','',''),(72,0,0,5,'AP002','S','Prestation location de site','1.00','59.8460','0.00',4,'','','',''),(72,0,0,6,'ALP1051020','S','Trépan bi-métal diam 102','3.00','39.4700','0.00',4,'','','',''),(72,0,0,7,'apha-102','S','Foret dian 250','3.00','24.9400','0.00',4,'','','',''),(72,0,0,8,'CONF-001','S','Confiture de Mirabelles d\'espagne','8.00','4.1300','0.00',3,'','','',''),(72,0,0,9,'AP003','S','Bouteille de gaz 13 kg','3.00','47.8400','0.00',4,'','','',''),(72,0,0,10,'SOUP001','S','Soupe de poisson','3.00','24.7900','0.00',3,'','','',''),(74,0,0,1,'GAR_004','S','Clignotant avant droit C5','1.00','86.0500','0.00',4,'','','',''),(74,0,0,2,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','0.00',4,'','','',''),(74,0,0,3,'GAR_005','S','Pneumatique Neige','5.00','58.3000','0.00',4,'','','',''),(74,0,0,4,'GAR_003','S','Cardan gauche 104ZS','2.00','261.9400','0.00',4,'','','',''),(74,0,0,5,'SUC-001','S','Surcre roux en morceaux','10.00','5.9400','0.00',3,'','','',''),(87,0,0,1,'GAR_003','S','Cardan gauche 104ZS','1.00','261.9400','0.00',4,'','','',''),(90,0,0,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00',4,'Il a 50 000 KM','','',''),(90,0,0,2,'GAR_005','S','Pneumatique Neige','4.00','58.3000','0.00',4,'','','',''),(90,0,0,3,'','I','mon produit','5.00','125.2360','0.00',4,'','','',''),(91,0,0,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00',4,'Il a 50 000 KM','','',''),(91,0,0,2,'GAR_005','S','Pneumatique Neige','4.00','58.3000','0.00',4,'','','',''),(91,0,0,3,'','I','mon produit','5.00','125.2360','0.00',4,'','','',''),(102,0,0,1,'SUC-001','S','Surcre roux en morceaux','1.00','5.9400','0.00',3,'','','',''),(102,0,0,2,'GAR_004','S','Clignotant avant droit C5','1.00','102.9200','0.00',4,'','','',''),(102,0,0,3,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00',3,'','','',''),(103,0,0,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','39.4700','0.00',4,'','','',''),(103,0,0,2,'SUC-001','S','Surcre roux en morceaux','1.00','6.2600','0.00',3,'','','',''),(103,0,0,3,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00',3,'','','',''),(103,0,0,4,'GAR_003','S','Cardan gauche 104ZS','1.00','313.2800','0.00',4,'','','',''),(103,0,0,5,'GAR_003','S','Cardan gauche 104ZS','1.00','313.2800','0.00',4,'','','',''),(103,0,0,6,'SUC_002','S','Sucre en poudre blanc','1.00','4.8900','0.00',3,'','','',''),(104,0,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','5.00',3,'','','',''),(105,0,0,1,'ALP1051020','S','Trépan bi-métal diam 102','1.00','39.4700','0.00',4,'','','',''),(105,0,0,2,'GAR_006','S','Compresseur','1.00','1301.9800','5.00',4,'','','',''),(105,0,0,3,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3757.8000','13.50',4,'','','',''),(105,0,0,4,'SOUP001','S','Soupe de poisson','1.00','24.7900','0.00',3,'','','',''),(105,0,0,5,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','4.1300','0.00',3,'','','',''),(106,0,0,1,'CONF-001','S','Confiture de Mirabelles d\'espagne','1.00','3.9200','1.23',3,'','','',''),(106,0,0,2,'GAR_003','S','Cardan gauche 104ZS','1.00','313.2800','0.00',4,'','','',''),(106,0,0,3,'GAR_001','S','Dépanage hors site','1.00','64.9400','0.00',4,'','','',''),(106,0,0,4,'SOUP001','S','Soupe de poisson','1.00','24.7900','3.46',3,'','','',''),(106,0,0,5,'SUC_002','S','Sucre en poudre blanc','1.00','4.8900','0.00',3,'','','',''),(106,0,0,6,'GAR_004','S','Clignotant avant droit C5','1.00','102.9200','0.00',4,'','','',''),(106,0,0,7,'AP003','S','Bouteille de gaz 13 kg','1.00','47.8400','0.00',4,'','','',''),(130,0,0,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00',4,'','','',''),(131,0,0,1,'V001','S','Voiture a bras','1.00','5500.0000','0.00',4,'','','','');

--
-- Table structure for table `ARTICLE_INVENTAIRE`
--

CREATE TABLE `ARTICLE_INVENTAIRE` (
  `Ligne_Id` int(10) unsigned NOT NULL auto_increment,
  `Article_Id` varchar(40) NOT NULL,
  `Inventaire_Id` int(10) unsigned NOT NULL,
  `Qte_Theorique` decimal(12,2) default '0.00',
  `Qte_Inventaire` decimal(12,2) default '0.00',
  `Valide` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Ligne_Id`),
  UNIQUE KEY `Inventaire_Id` (`Inventaire_Id`,`Article_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_INVENTAIRE`
--

INSERT INTO `ARTICLE_INVENTAIRE` VALUES (1,'AP002',2,'0.00','0.00',0),(2,'AP003',2,'0.00','0.00',0),(3,'Prest001A',2,'0.00','0.00',0);

--
-- Table structure for table `ARTICLE_MODELE`
--

CREATE TABLE `ARTICLE_MODELE` (
  `Modele_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Taux_TVA` decimal(4,2) unsigned default NULL,
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  PRIMARY KEY  (`Modele_Id`,`Rank`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_modele_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_MODELE`
--


--
-- Table structure for table `ARTICLE_MODELE_TEMP`
--

CREATE TABLE `ARTICLE_MODELE_TEMP` (
  `Modele_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL default '0',
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default NULL,
  `Type_Ligne` char(1) default NULL,
  `Designation` varchar(100) default NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  `Prix` decimal(14,4) default NULL,
  `Ristourne` decimal(5,2) unsigned default NULL,
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default NULL,
  PRIMARY KEY  (`Modele_Id`,`Rank`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_MODELE_TEMP`
--


--
-- Table structure for table `ARTICLE_PREP_BON_RECEPTION`
--

CREATE TABLE `ARTICLE_PREP_BON_RECEPTION` (
  `Article_Id` varchar(40) NOT NULL,
  `Commande_Id` int(10) unsigned NOT NULL,
  `Prep_Id` int(10) unsigned NOT NULL,
  `Qte` decimal(10,2) default '0.00',
  `Etat` tinyint(1) default '0',
  PRIMARY KEY  (`Article_Id`,`Commande_Id`,`Prep_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_PREP_BON_RECEPTION`
--


--
-- Table structure for table `ARTICLE_PREP_COMMANDE`
--

CREATE TABLE `ARTICLE_PREP_COMMANDE` (
  `Ligne_Prep_Id` int(10) unsigned NOT NULL auto_increment,
  `Article_Id` varchar(40) NOT NULL,
  `Prep_Id` int(10) unsigned NOT NULL,
  `Qte_Theorique` decimal(10,2) default '0.00',
  PRIMARY KEY  (`Ligne_Prep_Id`),
  UNIQUE KEY `Article_Id` (`Article_Id`,`Prep_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_PREP_COMMANDE`
--

INSERT INTO `ARTICLE_PREP_COMMANDE` VALUES (1,'AP003',1,'339.00');

--
-- Table structure for table `ARTICLE_PROFORMA`
--

CREATE TABLE `ARTICLE_PROFORMA` (
  `Proforma_Id` int(10) unsigned NOT NULL,
  `Rank` int(10) unsigned NOT NULL,
  `Reference` varchar(40) default '',
  `Type_Ligne` char(1) default 'I',
  `Designation` varchar(100) default '',
  `Quantite` decimal(10,2) unsigned default '0.00',
  `Prix` decimal(14,4) unsigned default '0.0000',
  `Ristourne` decimal(5,2) unsigned default '0.00',
  `Taux_TVA` decimal(4,2) unsigned default '0.00',
  `Code_TVA` tinyint(3) unsigned default '4',
  `Commentaire` text,
  `Commentaire_Avant` text,
  `Libelle` varchar(20) default '',
  PRIMARY KEY  (`Proforma_Id`,`Rank`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_article_proforma_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ARTICLE_PROFORMA`
--

INSERT INTO `ARTICLE_PROFORMA` VALUES (1,1,'GAR_002','S','Bloc Moteur diesel C4 break','1.00','3141.9800','5.00','19.60',4,'Il a 50 000 KM','',''),(1,2,'GAR_005','S','Pneumatique Neige','3.00','58.3000','0.00','19.60',4,'','',''),(1,3,'','I','mon produit','5.00','125.2360','0.00','19.60',4,'','','');

--
-- Table structure for table `AVOIR`
--

CREATE TABLE `AVOIR` (
  `Avoir_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Avoir` bigint(20) unsigned default NULL,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` varchar(11) default '',
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Login_Resp` varchar(15) default NULL,
  `Nom_Resp` varchar(30) default NULL,
  `Prenom_Resp` varchar(20) default NULL,
  `Num_Inter` int(10) unsigned default '0',
  `Civ_Inter` tinyint(3) unsigned default NULL,
  `Nom_Inter` varchar(30) default NULL,
  `Prenom_Inter` varchar(20) default NULL,
  `Client_Id` varchar(10) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Adresse_Fact` varchar(80) default NULL,
  `Comp_Adresse_Fact` varchar(50) default NULL,
  `Adresse_3_Fact` varchar(50) default '',
  `CP_Fact` varchar(10) default NULL,
  `Ville_Fact` varchar(50) default NULL,
  `Pays_Fact` varchar(30) default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Total_HT` decimal(14,2) default NULL,
  `Montant_TTC` decimal(14,2) default NULL,
  `Direct` tinyint(3) unsigned default '0',
  `Code_Tarif` tinyint(3) unsigned default '1',
  `Com_Web_Id` int(10) unsigned default '0',
  `Transfere` tinyint(3) unsigned default '0',
  `Type_Vente` char(1) default 'N',
  `Etat` char(1) default 'N',
  `Montant_Restant` decimal(14,2) default '0.00',
  `Rembourser` decimal(14,2) default '0.00',
  `Edition_TTC` tinyint(3) unsigned default '0',
  `Facture_Id` int(10) unsigned default '0',
  `Remise` decimal(9,6) unsigned default '0.000000',
  `Montant_Remise` decimal(9,2) unsigned default '0.00',
  `Escompte` decimal(6,3) unsigned default '0.000',
  `Frais_Port` decimal(10,2) unsigned default '0.00',
  `Taux_TVA_Port` decimal(4,2) unsigned default '0.00',
  PRIMARY KEY  (`Avoir_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `AVOIR`
--

INSERT INTO `AVOIR` VALUES (1,1200265200000,14,'A08010014','',0,'VM','','',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1200329455046,1200329458765,'VM','VM','110.00','131.56',0,1,0,1,'N','R','0.00','0.00',0,0,'0.000000','0.00','0.000','0.00','19.60'),(2,1206914400000,5,'A08030005','F08030004',1,'gfremery','','',0,0,'','','','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1207046855470,1207046876064,'gfremery','gfremery','1000.00','1196.00',0,1,6,1,'N','R','0.00','0.00',0,20,'0.000000','0.00','0.000','0.00','19.60'),(3,1221084000000,3,'A08090003','F08030003',1,'gfremery','','',0,0,'','','','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1221157626981,1221157633955,'gfremery','gfremery','452.36','541.02',0,1,3,1,'N','R','0.00','0.00',0,19,'0.000000','0.00','0.000','0.00','19.60');

--
-- Table structure for table `AVOIR_FOURNISSEUR`
--

CREATE TABLE `AVOIR_FOURNISSEUR` (
  `Avoir_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Avoir` bigint(20) unsigned default NULL,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` char(10) default NULL,
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Login_Resp` varchar(15) default NULL,
  `Nom_Resp` varchar(30) default NULL,
  `Prenom_Resp` varchar(20) default NULL,
  `Num_Inter` int(10) unsigned default '0',
  `Civ_Inter` tinyint(3) unsigned default NULL,
  `Nom_Inter` varchar(30) default NULL,
  `Prenom_Inter` varchar(20) default NULL,
  `Fournisseur_Id` varchar(10) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Adresse_Fact` varchar(80) default NULL,
  `Comp_Adresse_Fact` varchar(50) default NULL,
  `Adresse_3_Fact` varchar(50) default '',
  `CP_Fact` varchar(10) default NULL,
  `Ville_Fact` varchar(50) default NULL,
  `Pays_Fact` varchar(30) default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Total_HT` decimal(14,2) default NULL,
  `Montant_TTC` decimal(14,2) default NULL,
  `Code_Tarif` tinyint(3) unsigned default '1',
  `Transfere` tinyint(3) unsigned default '0',
  `Type_Achat` char(1) default 'N',
  `Montant_Restant` decimal(14,2) default '0.00',
  `Rembourser` decimal(14,2) default '0.00',
  `Etat` char(1) default 'N',
  PRIMARY KEY  (`Avoir_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `AVOIR_FOURNISSEUR`
--


--
-- Table structure for table `BON_LIVRAISON`
--

CREATE TABLE `BON_LIVRAISON` (
  `Bon_Id` int(10) unsigned NOT NULL auto_increment,
  `Affaire_Id` int(10) unsigned default '0',
  `Com_Web_Id` int(10) unsigned default '0',
  `Date_Liv` bigint(20) unsigned default NULL,
  `Nom_Liv` varchar(100) default NULL,
  `Adresse_Liv` varchar(80) default NULL,
  `Comp_Adresse_Liv` varchar(50) default NULL,
  `Adresse_3_Liv` varchar(50) default '',
  `CP_Liv` varchar(10) default NULL,
  `Ville_Liv` varchar(50) default NULL,
  `Pays_Liv` varchar(30) default NULL,
  `Commentaires` text,
  `Commentaires_2` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` char(10) default NULL,
  `Receptionnaire` varchar(50) default '',
  `Facture_Id` int(10) unsigned default NULL,
  `Nb_Colis` int(10) unsigned default NULL,
  `Frais_Sup` decimal(12,2) unsigned default '0.00',
  `Etat` char(1) default 'N',
  `Fournisseur_Id` varchar(10) default '',
  `Commande_Id` int(10) unsigned default '0',
  PRIMARY KEY  (`Bon_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `BON_LIVRAISON`
--

INSERT INTO `BON_LIVRAISON` VALUES (1,0,3,1199790294045,'AFFAIRES EN LIGNE - 0','L\'Espinasse','','','81240','LACABAREDE','France','','',1,1199790284123,1199790284123,'gfremery','gfremery',1,'BL08010001','',19,0,'0.00','V','',0),(2,0,1,1199790538230,'BIOTERROIR - 0','28, rue du chêne clair','','','81000','ALBI','France','','',1,1199790531233,1199790531233,'gfremery','gfremery',2,'BL08010002','',18,0,'0.00','V','',0),(3,0,2,1199790828768,'Librairie Coulier - 0','56, place du Capitole','','','31000','TOULOUSE','France','','',1,1199790811095,1199790811095,'gfremery','gfremery',3,'BL08010003','',0,0,'0.00','V','',0),(4,2,0,1200307021549,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','',NULL,0,1200307000372,1200307015733,'VM','VM',4,'BL08010004','',13,0,'0.00','V','',0),(5,0,5,1205743918434,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','','',1,1205743901652,1205743901652,'gfremery','gfremery',1,'BL08030001','',16,0,'0.00','V','',0),(6,0,8,1207044587288,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','','',1,1207043951951,1207043951951,'gfremery','gfremery',1,'BL08040001','',0,0,'0.00','V','',0),(7,0,6,1207046591688,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','','',1,1207046573332,1207046573332,'gfremery','gfremery',2,'BL08040002','',20,0,'0.00','V','',0),(8,0,6,1207046650141,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','','',1,1207046639362,1207046639362,'gfremery','gfremery',3,'BL08040003','',20,0,'0.00','V','',0),(9,0,6,1207046699878,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','','',1,1207046690579,1207046690579,'gfremery','gfremery',4,'BL08040004','',20,0,'0.00','V','',0),(10,0,10,1221155949767,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','','',1,1221155936086,1221155936086,'gfremery','gfremery',1,'BL08090001','',29,0,'0.00','V','',0),(11,0,10,1221155974579,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','','',1,1221155966182,1221155966182,'gfremery','gfremery',2,'BL08090002','',29,0,'0.00','V','',0),(12,0,11,1221156225844,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','','',1,1221156220933,1221156220933,'gfremery','gfremery',3,'BL08090003','',0,0,'0.00','V','',0),(13,0,11,1221156336290,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','','',1,1221156304397,1221156304397,'gfremery','gfremery',4,'BL08090004','',0,0,'0.00','V','',0),(14,0,11,1221156352935,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','','',1,1221156345503,1221156345503,'gfremery','gfremery',5,'BL08090005','',0,0,'0.00','V','',0),(15,0,14,1221157254711,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','ceci est un commentaire externe','ici nous avons un commentaire interne',1,1221157131499,1221157131499,'gfremery','gfremery',6,'BL08090006','',0,2,'0.00','V','',0),(16,0,14,1221157319218,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','ceci est un commentaire externe','ici nous avons un commentaire interne',1,1221157314207,1221157314207,'gfremery','gfremery',7,'BL08090007','',0,4,'0.00','V','',0),(17,0,13,1221157539590,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','','',1,1221157534579,1221157534579,'gfremery','gfremery',8,'BL08090008','',30,0,'0.00','V','',0),(18,0,12,1221157549074,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','','',1,1221157547073,1221157547073,'gfremery','gfremery',9,'BL08090009','',0,0,'0.00','V','',0),(19,0,17,1221666010812,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','','',1,1221665937509,1221665937509,'gfremery','gfremery',10,'BL08090010','',31,0,'0.00','V','',0),(20,0,17,1221666152156,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','','',1,1221666119777,1221666119777,'gfremery','gfremery',11,'BL08090011','',31,0,'0.00','V','',0),(21,0,17,1221666200469,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','','',1,1221666195441,1221666195441,'gfremery','gfremery',12,'BL08090012','',31,0,'0.00','V','',0),(22,8,0,1222282380519,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1222282355612,1222282367428,'gfremery','gfremery',13,'BL08090013','',48,1,'15.00','V','',0),(23,7,0,1222689339275,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','Ceci est le premier BL de l\'affaire AC08090001 - j\'ai ajouté le nombre de colis et les frais de port',NULL,1,1222595540525,1222596412733,'gfremery','gfremery',14,'BL08090014','M BIDULE Jean',49,1,'10.00','V','',0),(24,7,0,1222689829294,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','Premier BL pour cette commande',NULL,1,1222689778982,1222689819044,'gfremery','gfremery',15,'BL08090015','',49,2,'15.00','V','',9),(25,7,0,1222690240238,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','Je ne stipule pas le nombre de colis ni les frais de port',NULL,1,1222690180070,1222690232339,'gfremery','gfremery',16,'BL08090016','',49,0,'0.00','V','',10),(26,7,0,1222690274353,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1222690259069,1222690267762,'gfremery','gfremery',17,'BL08090017','',49,0,'0.00','V','',9),(27,7,0,1222693158414,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1222693147801,1222693152184,'gfremery','gfremery',18,'BL08090018','',49,0,'0.00','V','',9),(28,7,0,1222693183878,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1222693178553,1222693181056,'gfremery','gfremery',19,'BL08090019','',49,0,'0.00','V','',9),(29,7,0,1222693209930,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1222693204186,1222693205983,'gfremery','gfremery',20,'BL08090020','',49,0,'0.00','V','',10),(30,7,0,1222693244490,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1222693221866,1222693241575,'gfremery','gfremery',21,'BL08090021','',49,0,'0.00','V','',10),(31,7,0,1222693266094,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1222693261204,1222693263253,'gfremery','gfremery',22,'BL08090022','',49,0,'0.00','V','',10),(32,0,19,1222694507357,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','','',1,1222694503347,1222694503347,'gfremery','gfremery',23,'BL08090023','',32,0,'0.00','V','',0),(33,9,0,1222697892017,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','$(SqlEncode)Pays','',NULL,0,1222697883815,1222697886845,'gfremery','gfremery',24,'BL08090024','PUEL',50,0,'0.00','V','',12),(34,9,0,1222699019460,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','$(SqlEncode)Pays','Deuxième commande premier BL pour cette CDE',NULL,1,1222698982060,1222699016233,'gfremery','gfremery',25,'BL08090025','PUEL',50,0,'0.00','V','',11),(35,9,0,1222699268377,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','$(SqlEncode)Pays','',NULL,0,1222699261823,1222699263697,'gfremery','gfremery',26,'BL08090026','PUEL',50,0,'0.00','V','',12),(36,9,0,1222699385752,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','$(SqlEncode)Pays','',NULL,0,1222699373345,1222699380800,'gfremery','gfremery',27,'BL08090027','PUEL',50,0,'0.00','V','',11),(37,10,0,1222854497724,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1222854488703,1222854491980,'gfremery','gfremery',1,'BL08100001','DuChemin',41,0,'0.00','V','',13),(38,10,0,1222854678619,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1222854662290,1222854675900,'gfremery','gfremery',2,'BL08100002','DuChemin',42,0,'0.00','V','',13),(39,10,0,1222854712511,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1222854706776,1222854708633,'gfremery','gfremery',3,'BL08100003','DuChemin',42,0,'0.00','V','',13),(40,11,0,1223285290700,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','on ne peut pas changer le mode règlement.\nPas pratique',NULL,1,1223285222703,1223285286581,'gfremery','gfremery',4,'BL08100004','',43,0,'0.00','V','',16),(41,11,0,1223285390716,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','Second BL fait à partir de la commande cde_001',NULL,1,1223285335670,1223285376746,'gfremery','gfremery',5,'BL08100005','',43,0,'0.00','V','',14),(42,11,0,1223285442933,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1223285418177,1223285438358,'gfremery','gfremery',6,'BL08100006','',43,0,'0.00','V','',15),(43,11,0,1223297171196,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','CCDE_001',NULL,1,1223297098468,1223297166468,'gfremery','gfremery',7,'BL08100007','',44,0,'0.00','V','',14),(44,11,0,1223297207404,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','CDE_002',NULL,1,1223297193944,1223297204026,'gfremery','gfremery',8,'BL08100008','',44,0,'0.00','V','',15),(45,11,0,1223297241471,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','CD_003',NULL,1,1223297227962,1223297239391,'gfremery','gfremery',9,'BL08100009','',44,0,'0.00','V','',16),(46,11,0,1223297280080,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','CDE_001',NULL,1,1223297264711,1223297275222,'gfremery','gfremery',10,'BL08100010','',44,0,'0.00','V','',14),(47,11,0,1223297310565,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','CD_003',NULL,1,1223297298308,1223297306270,'gfremery','gfremery',11,'BL08100011','',44,0,'0.00','V','',16),(48,12,0,1223891953806,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1223891941076,1223891945557,'gfremery','gfremery',12,'BL08100012','',47,0,'0.00','V','',19),(49,12,0,1223891982634,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1223891972762,1223891979623,'gfremery','gfremery',13,'BL08100013','',45,0,'0.00','V','',17),(50,12,0,1223892002635,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1223891998351,1223892000392,'gfremery','gfremery',14,'BL08100014','',46,0,'0.00','V','',18),(51,12,0,1223892026740,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1223892020626,1223892023703,'gfremery','gfremery',15,'BL08100015','',47,0,'0.00','V','',19),(52,12,0,1223892042997,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1223892037952,1223892040391,'gfremery','gfremery',16,'BL08100016','',46,0,'0.00','V','',18),(53,12,0,1223892061364,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1223892055801,1223892058958,'gfremery','gfremery',17,'BL08100017','',45,0,'0.00','V','',17),(54,13,0,1223892557248,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1223892545405,1223892552898,'gfremery','gfremery',18,'BL08100018','',51,0,'0.00','V','',20),(55,13,0,1223892584313,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1223892580459,1223892582112,'gfremery','gfremery',19,'BL08100019','',52,0,'0.00','V','',22),(56,13,0,1223892605633,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1223892597362,1223892603269,'gfremery','gfremery',20,'BL08100020','',52,0,'0.00','V','',21),(57,13,0,1223892623968,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1223892619377,1223892621480,'gfremery','gfremery',21,'BL08100021','',51,0,'0.00','V','',20),(58,13,0,1223892642576,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1223892634894,1223892639658,'gfremery','gfremery',22,'BL08100022','',52,0,'0.00','V','',21),(59,13,0,1223892659252,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1223892653970,1223892656940,'gfremery','gfremery',23,'BL08100023','',52,0,'0.00','V','',22),(60,14,0,1223893089961,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1223893083627,1223893086419,'gfremery','gfremery',24,'BL08100024','',57,0,'0.00','V','',23),(61,14,0,1223893106794,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1223893102882,1223893104564,'gfremery','gfremery',25,'BL08100025','',57,0,'0.00','V','',24),(62,14,0,1223893119470,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1223893114199,1223893116687,'gfremery','gfremery',26,'BL08100026','',57,0,'0.00','V','',24),(63,15,0,1223901836632,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','',NULL,0,1223901821908,1223901830338,'gfremery','gfremery',27,'BL08100027','PUEL',58,0,'0.00','V','',25),(64,15,0,1223901895810,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','',NULL,0,1223901860245,1223901889767,'gfremery','gfremery',28,'BL08100028','PUEL',58,0,'0.00','V','',26),(65,15,0,1223901923139,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','',NULL,0,1223901914914,1223901918763,'gfremery','gfremery',29,'BL08100029','PUEL',58,0,'0.00','V','',27),(66,15,0,1223901967523,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','',NULL,0,1223901957661,1223901962743,'gfremery','gfremery',30,'BL08100030','PUEL',58,0,'0.00','V','',25),(67,15,0,1223901988965,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','',NULL,0,1223901982346,1223901986013,'gfremery','gfremery',31,'BL08100031','PUEL',58,0,'0.00','V','',26),(68,16,0,1223903691872,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1223903684493,1223903688233,'gfremery','gfremery',32,'BL08100032','',59,0,'0.00','V','',28),(69,16,0,1223903755712,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1223903711015,1223903714488,'gfremery','gfremery',33,'BL08100033','',59,0,'0.00','V','',29),(70,16,0,1223903776686,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1223903768404,1223903773925,'gfremery','gfremery',34,'BL08100034','',59,0,'0.00','V','',29),(71,16,0,1223903845485,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','',NULL,0,1223903837392,1223903839922,'gfremery','gfremery',35,'BL08100035','',59,0,'0.00','V','',30),(72,17,0,1224058513057,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224058506741,1224058510558,'gfremery','gfremery',36,'BL08100036','Moi',67,0,'0.00','V','',31),(73,17,0,1224058533764,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224058525365,1224058528237,'gfremery','gfremery',37,'BL08100037','Moi',68,0,'0.00','V','',32),(74,17,0,1224058551169,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224058543913,1224058546537,'gfremery','gfremery',38,'BL08100038','Moi',69,0,'0.00','V','',33),(75,18,0,1224078880828,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224078873559,1224078875525,'gfremery','gfremery',39,'BL08100039','',74,0,'0.00','V','',34),(76,18,0,1224078896287,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224078889970,1224078892830,'gfremery','gfremery',40,'BL08100040','',75,0,'0.00','V','',35),(77,18,0,1224078911723,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224078905059,1224078907234,'gfremery','gfremery',41,'BL08100041','',74,0,'0.00','V','',36),(78,19,0,1224144136525,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1224144116202,1224144133789,'gfremery','gfremery',42,'BL08100042','',76,0,'0.00','V','',37),(79,19,0,1224144164509,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1224144156513,1224144160300,'gfremery','gfremery',43,'BL08100043','',81,0,'0.00','V','',38),(80,19,0,1224144184186,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1224144175821,1224144181620,'gfremery','gfremery',44,'BL08100044','',76,0,'0.00','V','',39),(81,19,0,1224144202549,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1224144196442,1224144199976,'gfremery','gfremery',45,'BL08100045','',76,0,'0.00','V','',37),(82,19,0,1224144217130,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1224144211608,1224144214507,'gfremery','gfremery',46,'BL08100046','',76,0,'0.00','V','',39),(83,19,0,1224144348632,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1224144332566,1224144345760,'gfremery','gfremery',47,'BL08100047','',77,0,'0.00','V','',40),(84,19,0,1224144364955,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','',NULL,0,1224144359143,1224144361875,'gfremery','gfremery',48,'BL08100048','',77,0,'0.00','V','',40),(85,20,0,1224339828525,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224339812356,1224339822773,'gfremery','gfremery',49,'BL08100049','',82,0,'0.00','V','',41),(86,20,0,1224339859568,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224339847978,1224339856899,'gfremery','gfremery',50,'BL08100050','',83,0,'0.00','V','',42),(87,20,0,1224339911712,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224339871800,1224339908589,'gfremery','gfremery',51,'BL08100051','',82,0,'0.00','V','',43),(88,20,0,1224339932735,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224339924395,1224339928146,'gfremery','gfremery',52,'BL08100052','',83,0,'0.00','V','',44),(89,20,0,1224339951781,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224339944474,1224339946137,'gfremery','gfremery',53,'BL08100053','',82,0,'0.00','V','',41),(90,20,0,1224339968956,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224339963300,1224339966150,'gfremery','gfremery',54,'BL08100054','',83,0,'0.00','V','',42),(91,20,0,1224339997877,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224339979733,1224339995830,'gfremery','gfremery',55,'BL08100055','',82,0,'0.00','V','',43),(92,20,0,1224340013029,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224340007880,1224340011409,'gfremery','gfremery',56,'BL08100056','',83,0,'0.00','V','',44),(93,20,0,1224340027282,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224340022837,1224340025274,'gfremery','gfremery',57,'BL08100057','',82,0,'0.00','V','',41),(94,20,0,1224340042754,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1224340038132,1224340040758,'gfremery','gfremery',58,'BL08100058','',82,0,'0.00','V','',43),(95,21,0,1224590962572,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224590945706,1224590958525,'gfremery','gfremery',59,'BL08100059','',88,0,'0.00','V','',45),(96,21,0,1224591063165,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224591057232,1224591060855,'gfremery','gfremery',60,'BL08100060','',89,0,'0.00','V','',46),(97,21,0,1224591147838,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224591141285,1224591145123,'gfremery','gfremery',61,'BL08100061','',88,0,'0.00','V','',45),(98,21,0,1224591198589,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1224591193489,1224591196275,'gfremery','gfremery',62,'BL08100062','',89,0,'0.00','V','',46),(99,21,0,1225028935557,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1225028926471,1225028932266,'gfremery','gfremery',63,'BL08100063','',92,0,'0.00','V','',48),(100,21,0,1225028971492,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1225028963229,1225028968763,'gfremery','gfremery',64,'BL08100064','',93,0,'0.00','V','',49),(101,21,0,1225028993017,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1225028983396,1225028990375,'gfremery','gfremery',65,'BL08100065','',92,0,'0.00','V','',48),(102,21,0,1225029011141,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1225029004952,1225029007945,'gfremery','gfremery',66,'BL08100066','',93,0,'0.00','V','',49),(103,22,0,1225029168983,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1225029130140,1225029165582,'gfremery','gfremery',67,'BL08100067','M BIDULE',94,0,'0.00','V','',50),(104,22,0,1225029203608,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1225029194349,1225029200965,'gfremery','gfremery',68,'BL08100068','',95,0,'0.00','V','',51),(105,22,0,1225029226699,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1225029222664,1225029224242,'gfremery','gfremery',69,'BL08100069','',94,0,'0.00','V','',50),(106,22,0,1225029244570,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1225029236567,1225029241884,'gfremery','gfremery',70,'BL08100070','',95,0,'0.00','V','',51),(107,22,0,1225029261649,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1225029255099,1225029259317,'gfremery','gfremery',71,'BL08100071','',94,0,'0.00','V','',50),(108,22,0,1225029280488,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1225029277064,1225029278243,'gfremery','gfremery',72,'BL08100072','',95,0,'0.00','V','',51),(109,23,0,1225438973759,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1225438964032,1225438971087,'gfremery','gfremery',73,'BL08100073','',96,0,'0.00','V','',53),(110,23,0,1225439037828,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1225439017637,1225439034710,'gfremery','gfremery',74,'BL08100074','',96,0,'0.00','V','',52),(111,23,0,1225439067872,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1225439059133,1225439062848,'gfremery','gfremery',75,'BL08100075','',96,0,'0.00','V','',53),(112,23,0,1225439098699,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1225439093652,1225439095762,'gfremery','gfremery',76,'BL08100076','',96,0,'0.00','V','',53),(113,23,0,1225439297109,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1225439291023,1225439294418,'gfremery','gfremery',77,'BL08100077','',96,0,'0.00','V','',52),(114,24,0,1225439641593,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1225439634475,1225439637086,'gfremery','gfremery',78,'BL08100078','',97,0,'0.00','V','',54),(115,24,0,1225439673283,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1225439665688,1225439671273,'gfremery','gfremery',79,'BL08100079','',98,0,'0.00','V','',55),(116,24,0,1225439698726,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1225439693922,1225439695726,'gfremery','gfremery',80,'BL08100080','',99,0,'0.00','V','',56),(117,24,0,1225439725688,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1225439722076,1225439723805,'gfremery','gfremery',81,'BL08100081','',100,0,'0.00','V','',55),(118,24,0,1225439786603,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','',NULL,0,1225439781972,1225439784532,'gfremery','gfremery',82,'BL08100082','',101,0,'0.00','V','',56),(119,25,0,1225870298809,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1225870293397,1225870295954,'gfremery','gfremery',1,'BL08110001','',107,0,'0.00','V','',57),(120,25,0,1225870400288,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1225870396722,1225870398042,'gfremery','gfremery',2,'BL08110002','',109,0,'0.00','V','',58),(121,25,0,1225871904185,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','',NULL,0,1225871896090,1225871900303,'gfremery','gfremery',3,'BL08110003','',109,0,'0.00','V','',58),(122,26,0,1226569950745,'Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',NULL,0,1226569908658,1226569947192,'gfremery','gfremery',4,'BL08110004','',110,0,'0.00','V','',59),(123,26,0,1226570909660,'Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',NULL,0,1226570902320,1226570906592,'gfremery','gfremery',5,'BL08110005','',111,0,'0.00','V','',60),(124,26,0,1226571134976,'Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',NULL,0,1226571128561,1226571132354,'gfremery','gfremery',6,'BL08110006','',0,0,'0.00','V','',61),(125,27,0,1226572848867,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1226572827942,1226572844186,'gfremery','gfremery',7,'BL08110007','',111,0,'0.00','V','',62),(126,27,0,1226572871055,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1226572865148,1226572866993,'gfremery','gfremery',8,'BL08110008','',111,0,'0.00','V','',62),(127,27,0,1226580609439,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1226580603383,1226580606679,'gfremery','gfremery',9,'BL08110009','',111,0,'0.00','V','',63),(128,27,0,1226580635907,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1226580628005,1226580631600,'gfremery','gfremery',10,'BL08110010','',111,0,'0.00','V','',63),(129,28,0,1226581576663,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1226581569015,1226581571955,'gfremery','gfremery',11,'BL08110011','',111,0,'0.00','V','',64),(130,28,0,1226581670227,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','',NULL,0,1226581662709,1226581665986,'gfremery','gfremery',12,'BL08110012','',112,0,'0.00','V','',64),(131,29,0,1226594745086,'SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','',NULL,0,1226594739815,1226594742752,'gfremery','gfremery',13,'BL08110013','DREAU',113,0,'0.00','V','',65),(132,29,0,1226594765446,'SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','',NULL,0,1226594759805,1226594762777,'gfremery','gfremery',14,'BL08110014','DREAU',114,0,'0.00','V','',65),(133,29,0,1226594917751,'SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','',NULL,0,1226594910566,1226594915182,'gfremery','gfremery',15,'BL08110015','DREAU',115,0,'0.00','V','',66),(134,29,0,1226594948166,'SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','',NULL,0,1226594943001,1226594945668,'gfremery','gfremery',16,'BL08110016','DREAU',116,0,'0.00','V','',66),(135,29,0,1226594971422,'SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','',NULL,0,1226594964272,1226594967602,'gfremery','gfremery',17,'BL08110017','DREAU',117,0,'0.00','V','',66),(136,30,0,1226597692353,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226597688109,1226597690204,'gfremery','gfremery',18,'BL08110018','',118,0,'0.00','V','',67),(137,30,0,1226597706323,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226597702252,1226597704068,'gfremery','gfremery',19,'BL08110019','',119,0,'0.00','V','',67),(138,30,0,1226597862151,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226597856273,1226597859499,'gfremery','gfremery',20,'BL08110020','',121,0,'0.00','V','',68),(139,30,0,1226597891579,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226597885333,1226597888447,'gfremery','gfremery',21,'BL08110021','',122,0,'0.00','V','',68),(140,30,0,1226597907151,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226597901580,1226597904542,'gfremery','gfremery',22,'BL08110022','',120,0,'0.00','V','',68),(141,31,0,1226598235335,'Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',NULL,0,1226598230277,1226598232811,'gfremery','gfremery',23,'BL08110023','',123,0,'0.00','V','',69),(142,31,0,1226598259622,'Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',NULL,0,1226598254522,1226598257167,'gfremery','gfremery',24,'BL08110024','',125,0,'0.00','V','',70),(143,31,0,1226598274955,'Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','',NULL,0,1226598269142,1226598272559,'gfremery','gfremery',25,'BL08110025','',124,0,'0.00','V','',71),(144,32,0,1226598575172,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1226598570173,1226598572753,'gfremery','gfremery',26,'BL08110026','',126,0,'0.00','V','',72),(145,32,0,1226598591372,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1226598586255,1226598588904,'gfremery','gfremery',27,'BL08110027','',127,0,'0.00','V','',73),(146,32,0,1226598604486,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1226598599892,1226598601625,'gfremery','gfremery',28,'BL08110028','',127,0,'0.00','V','',74),(147,33,0,1226682169628,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226682163794,1226682166888,'gfremery','gfremery',29,'BL08110029','',128,0,'0.00','V','',75),(148,33,0,1226682202857,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226682189856,1226682199312,'gfremery','gfremery',30,'BL08110030','',129,0,'0.00','V','',76),(149,33,0,1226682217627,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226682213012,1226682215277,'gfremery','gfremery',31,'BL08110031','',128,0,'0.00','V','',75),(150,33,0,1226682231621,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1226682227732,1226682229522,'gfremery','gfremery',32,'BL08110032','',129,0,'0.00','V','',76),(151,0,20,1228326639192,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','','',1,1228326629116,1228326629116,'gfremery','gfremery',1,'BL08120001','',132,0,'0.00','V','',0),(152,34,0,1228326922716,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','',NULL,0,1228326917868,1228326919668,'gfremery','gfremery',2,'BL08120002','',133,0,'0.00','V','',77),(153,35,0,1228382350056,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1228382339799,1228382345755,'gfremery','gfremery',3,'BL08120003','',0,0,'0.00','V','',78),(154,35,0,1228382373859,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','',NULL,0,1228382364570,1228382371508,'gfremery','gfremery',4,'BL08120004','',134,0,'0.00','V','',79),(155,36,0,1228383456607,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1228383446459,1228383453706,'gfremery','gfremery',5,'BL08120005','',137,0,'0.00','V','',80),(156,36,0,1228383482998,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1228383469828,1228383477011,'gfremery','gfremery',6,'BL08120006','',137,0,'0.00','V','',81),(157,36,0,1228383501849,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','',NULL,0,1228383497745,1228383499960,'gfremery','gfremery',7,'BL08120007','',137,0,'0.00','V','',80);

--
-- Table structure for table `BON_RECEPTION`
--

CREATE TABLE `BON_RECEPTION` (
  `BR_Id` int(10) unsigned NOT NULL auto_increment,
  `Commande_Id` int(10) unsigned NOT NULL,
  `Date_BR` bigint(20) unsigned default NULL,
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` char(10) default NULL,
  `Num_Facture` varchar(20) default '',
  `Num_BL` varchar(20) default '',
  `Etat` char(1) default 'N',
  `Transfere` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`BR_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `BON_RECEPTION`
--

INSERT INTO `BON_RECEPTION` VALUES (1,1,1210863519014,'',0,1210863502232,1210863512038,'gfremery','gfremery',1,'BR08050001','','','V',0),(2,2,1211192129715,'',0,1211192114888,1211192121294,'gfremery','gfremery',2,'BR08050002','','','V',0),(3,2,1211192182791,'',0,1211192174515,1211192177019,'gfremery','gfremery',3,'BR08050003','','','V',0),(4,3,1211272775341,'',0,1211272747995,1211272770375,'gfremery','gfremery',4,'BR08050004','','BL000258A','V',0),(5,4,1211273490833,'',0,1211273472079,1211273487131,'gfremery','gfremery',5,'BR08050005','','BL3698741','V',0),(6,5,1211274045640,'',0,1211274005447,1211274035624,'gfremery','gfremery',6,'BR08050006','','BL85213','V',0),(7,6,1224060969870,'',0,1224060941392,1224060962064,'gfremery','gfremery',1,'BR08100001','','BL0810-002','V',0),(8,7,1224061040363,'',0,1224061033709,1224061036984,'gfremery','gfremery',2,'BR08100002','','','V',0),(9,8,1224061192136,'',0,1224061186958,1224061189533,'gfremery','gfremery',3,'BR08100003','','','V',0),(10,9,1224072059738,'',0,1224072050642,1224072055730,'gfremery','gfremery',4,'BR08100004','','','V',0),(11,10,1224074283047,'',0,1224074278154,1224074280466,'gfremery','gfremery',5,'BR08100005','','','V',0),(12,11,1224077831741,'',0,1224077818812,1224077826949,'gfremery','gfremery',6,'BR08100006','','','V',0),(13,12,1224077900836,'',0,1224077893768,1224077898116,'gfremery','gfremery',7,'BR08100007','','','V',0),(14,13,1224077964137,'',0,1224077958589,1224077960969,'gfremery','gfremery',8,'BR08100008','','','V',0);

--
-- Table structure for table `BUDGET`
--

CREATE TABLE `BUDGET` (
  `Id_Budget` int(11) NOT NULL,
  `Mois_Debut` int(11) NOT NULL,
  `Annee_Debut` int(11) NOT NULL,
  `Mois_Fin` int(11) NOT NULL,
  `Annee_Fin` int(11) NOT NULL,
  `Mois_Debut_Ref` int(11) NOT NULL,
  `Annee_Debut_Ref` int(11) NOT NULL,
  `Mois_Fin_Ref` int(11) NOT NULL,
  `Annee_Fin_Ref` int(11) NOT NULL,
  PRIMARY KEY  (`Id_Budget`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `BUDGET`
--

INSERT INTO `BUDGET` VALUES (1,1,2008,12,2008,1,2007,12,2007);

--
-- Table structure for table `CHAMP_PERSO`
--

CREATE TABLE `CHAMP_PERSO` (
  `Champ_Perso_Id` int(10) unsigned NOT NULL auto_increment,
  `Libelle` varchar(50) default '',
  `Type` char(2) default 'CC',
  `Famille` varchar(40) default '',
  `Sous_Famille` varchar(40) default '',
  PRIMARY KEY  (`Champ_Perso_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `CHAMP_PERSO`
--


--
-- Table structure for table `CHAMP_PERSO_ARTICLE`
--

CREATE TABLE `CHAMP_PERSO_ARTICLE` (
  `Champ_Perso_Id` int(10) unsigned NOT NULL,
  `Article_Id` char(40) NOT NULL,
  `Valeur` varchar(20) default '',
  PRIMARY KEY  (`Champ_Perso_Id`,`Article_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `CHAMP_PERSO_ARTICLE`
--


--
-- Table structure for table `CLIENT_ARTICLE`
--

CREATE TABLE `CLIENT_ARTICLE` (
  `Article_Id` char(40) NOT NULL,
  `Client_Id` char(10) NOT NULL,
  `Prix` decimal(14,4) default '0.0000',
  `Prix_TTC` decimal(14,4) default '0.0000',
  `Coeff` decimal(8,6) default '1.000000',
  PRIMARY KEY  (`Article_Id`,`Client_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `CLIENT_ARTICLE`
--

INSERT INTO `CLIENT_ARTICLE` VALUES ('ALP1051020','C810005','37.6254','45.0000','1.140200'),('apha-102','C810005','41.3880','49.5000','1.984100');

--
-- Table structure for table `COEF_SAISONS`
--

CREATE TABLE `COEF_SAISONS` (
  `Mois` int(11) NOT NULL,
  `Coefficient` int(11) NOT NULL,
  PRIMARY KEY  (`Mois`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COEF_SAISONS`
--


--
-- Table structure for table `COLIS`
--

CREATE TABLE `COLIS` (
  `Colis_Id` int(10) unsigned NOT NULL auto_increment,
  `Bon_Id` int(10) unsigned NOT NULL,
  `Ident_Suivi` varchar(20) default '',
  `Numero` int(10) unsigned default NULL,
  `Poids` decimal(10,2) default NULL,
  `Lien` varchar(200) default '',
  PRIMARY KEY  (`Colis_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COLIS`
--

INSERT INTO `COLIS` VALUES (2,23,'',NULL,'0.25',''),(16,26,'',NULL,'0.25',''),(17,28,'',NULL,'0.25',''),(18,28,'',NULL,'0.25',''),(19,28,'',NULL,'0.25',''),(20,28,'',NULL,'0.25',''),(23,33,'',NULL,'0.50',''),(24,35,'',NULL,'0.25',''),(28,37,'',NULL,'0.25',''),(29,37,'',NULL,'0.25',''),(30,39,'',NULL,'0.25',''),(31,40,'',NULL,'0.25',''),(32,40,'',NULL,'0.25',''),(33,40,'',NULL,'0.25',''),(34,40,'',NULL,'0.25',''),(35,40,'',NULL,'0.25',''),(37,43,'',NULL,'0.25',''),(38,43,'',NULL,'0.25',''),(39,43,'',NULL,'0.25',''),(40,43,'',NULL,'0.25',''),(41,49,'',NULL,'0.25',''),(42,49,'',NULL,'0.25',''),(43,49,'',NULL,'0.25',''),(44,53,'',NULL,'0.25',''),(45,53,'',NULL,'0.25',''),(46,53,'',NULL,'0.25',''),(47,53,'',NULL,'0.25',''),(48,56,'',NULL,'0.25',''),(49,60,'',NULL,'0.25',''),(50,60,'',NULL,'0.25',''),(51,60,'',NULL,'0.25',''),(52,60,'',NULL,'0.25',''),(53,60,'',NULL,'0.25',''),(54,60,'',NULL,'0.25',''),(55,60,'',NULL,'0.25',''),(56,60,'',NULL,'0.25',''),(57,60,'',NULL,'0.25',''),(58,60,'',NULL,'0.25',''),(59,64,'',NULL,'0.25',''),(60,64,'',NULL,'0.25',''),(61,64,'',NULL,'0.25',''),(62,64,'',NULL,'0.25',''),(63,68,'',NULL,'0.25',''),(64,69,'',NULL,'0.25',''),(65,69,'',NULL,'0.25',''),(66,69,'',NULL,'0.25',''),(67,69,'',NULL,'0.25',''),(68,69,'',NULL,'0.25',''),(69,71,'',NULL,'0.25',''),(70,71,'',NULL,'0.25',''),(71,71,'',NULL,'0.25',''),(72,71,'',NULL,'0.25',''),(73,71,'',NULL,'0.25',''),(74,73,'',NULL,'0.25',''),(75,78,'',NULL,'0.25',''),(76,78,'',NULL,'0.00',''),(77,79,'',NULL,'0.25',''),(78,80,'',NULL,'0.25',''),(79,81,'',NULL,'0.25',''),(80,82,'',NULL,'0.00',''),(81,85,'',NULL,'0.00',''),(82,87,'',NULL,'0.00',''),(83,87,'',NULL,'0.00',''),(85,95,'',NULL,'0.25',''),(86,95,'',NULL,'0.00',''),(87,110,'',NULL,'0.00',''),(88,114,'',NULL,'0.25',''),(89,115,'',NULL,'0.00',''),(90,127,'',NULL,'0.00',''),(91,141,'',NULL,'0.00',''),(92,144,'',NULL,'0.00',''),(93,153,'',NULL,'0.00','');

--
-- Table structure for table `COLLECTION_ARTICLE`
--

CREATE TABLE `COLLECTION_ARTICLE` (
  `Collection` varchar(40) NOT NULL default '',
  PRIMARY KEY  (`Collection`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COLLECTION_ARTICLE`
--


--
-- Table structure for table `COMMANDE`
--

CREATE TABLE `COMMANDE` (
  `Commande_Id` int(10) unsigned NOT NULL auto_increment,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` char(10) default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Login_Resp` varchar(15) default '',
  `Date_Commande` bigint(20) unsigned default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Fournisseur_Id` char(10) NOT NULL,
  `Total_HT` decimal(14,2) default '0.00',
  `Montant_TTC` decimal(14,2) default NULL,
  `Remise` decimal(5,2) unsigned default '0.00',
  `Escompte` decimal(5,2) unsigned default '0.00',
  `Frais_Port` decimal(10,2) unsigned default '0.00',
  `Acompte` decimal(14,2) unsigned default '0.00',
  `Num_Inter` int(10) unsigned default '0',
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default '0',
  `Etat` char(1) default 'N',
  `Soldee` tinyint(3) unsigned default '0',
  `Intitule` varchar(20) default '',
  `Type_Achat` char(1) default 'N',
  `Nom_Liv` varchar(100) default '',
  `Adresse_Liv` varchar(80) default '',
  `Comp_Adresse_Liv` varchar(50) default '',
  `Adresse_3_Liv` varchar(50) default '',
  `CP_Liv` varchar(10) default '',
  `Ville_Liv` varchar(50) default '',
  `Pays_Liv` varchar(30) default '',
  `Raison_Sociale` varchar(50) default '',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  PRIMARY KEY  (`Commande_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COMMANDE`
--

INSERT INTO `COMMANDE` VALUES (1,1,'C08050001','gfremery','gfremery','',1210802400000,1210863476907,1210863485368,'F440000','20.00','23.92','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','DUMOULIN','65, allée des Peupliers','','','44000','Nantes',''),(2,2,'C08050002','gfremery','gfremery','',1211148000000,1211192089798,1211192095232,'F440000','200.00','239.20','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','DUMOULIN','65, allée des Peupliers','','','44000','Nantes',''),(3,3,'C08050003','gfremery','gfremery','',1211234400000,1211272726956,1211272733538,'F440000','100.00','119.60','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','DUMOULIN','65, allée des Peupliers','','','44000','Nantes',''),(4,4,'C08050004','gfremery','gfremery','',1211234400000,1211273440083,1211273440083,'F440000','6780.00','8108.88','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','','','','','','',''),(5,5,'C08050005','gfremery','gfremery','',1211234400000,1211273885057,1211273941855,'F440000','1163.00','1390.95','5.00','3.00','213.00','0.00',0,'',0,'V',0,'MA CDE URGENTE','N','','','','','','','','DUMOULIN','65, allée des Peupliers','','','44000','Nantes',''),(6,1,'C08100001','gfremery','gfremery','',1223503200000,1223541706578,1224060921592,'F440000','10960.00','13108.16','0.00','0.00','0.00','0.00',0,'',0,'F',1,'commande matos','N','','','','','','','','DUMOULIN','65, allée des Peupliers','','','44000','Nantes',''),(7,2,'C08100002','gfremery','gfremery','',1224021600000,1224061021020,1224061026488,'F440000','21360.00','22534.80','0.00','0.00','0.00','0.00',0,'',0,'F',1,'autre_cde','N','','','','','','','','DUMOULIN','65, allée des Peupliers','','','44000','Nantes',''),(8,3,'C08100003','gfremery','gfremery','',1224021600000,1224061162507,1224061178347,'F440000','9750.00','11661.00','5.00','0.00','250.00','0.00',0,'',0,'F',1,'','N','','','','','','','','DUMOULIN','65, allée des Peupliers','','','44000','Nantes',''),(9,4,'C08100004','gfremery','gfremery','',1224021600000,1224072037699,1224072042229,'frn001','1780.00','1877.90','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','CONFITURES EN GROS','789, allée de L\'abre en boule','','','81100','CASTRES','France'),(10,5,'C08100005','gfremery','gfremery','',1224021600000,1224074252057,1224074269449,'frn_004','4330.86','4569.06','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','LES MAGASINS REUNIS','Rue des torticollis','','','81000','ALBI','France'),(11,6,'C08100006','gfremery','gfremery','',1224021600000,1224077792959,1224077810469,'frn_007','154551.60','184843.71','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','CITROEN','Avenue des champs Elysées','','','75001','PARIS','France'),(12,7,'C08100007','gfremery','gfremery','',1224021600000,1224077859223,1224077885836,'frn_008','13097.15','15664.19','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','PEUGEOT','route du pont','','','75002','PARIS','France'),(13,8,'C08100008','gfremery','gfremery','',1224021600000,1224077926030,1224077948291,'frn_009','50782.50','60735.87','0.00','0.00','0.00','0.00',0,'',0,'F',1,'','N','','','','','','','','TOUTPOURLAUTO','parc d\'activité des sudres','','','81100','CASTRES','France'),(14,1,'C08110001','gfremery','gfremery','',1226530800000,1226569701788,1226569723134,'frn_003','190.00','227.24','0.00','0.00','0.00','0.00',0,'',0,'V',0,'','N','','','','','','','','LE FLEURON','ici','','','81100','CASTRES','France');

--
-- Table structure for table `COMMANDE_WEB`
--

CREATE TABLE `COMMANDE_WEB` (
  `Com_Web_Id` int(10) unsigned NOT NULL auto_increment,
  `Site_Id` int(10) unsigned NOT NULL,
  `Com_Site_Id` varchar(20) NOT NULL,
  `Client_Web_Id` char(10) default NULL,
  `Total_HT` decimal(12,2) default NULL,
  `Total_TTC` decimal(12,2) default NULL,
  `Remise` decimal(12,2) default NULL,
  `Montant_Remise` decimal(9,2) default '0.00',
  `Frais_Port` decimal(12,2) default NULL,
  `Civ_Inter` tinyint(3) unsigned default '0',
  `Nom_Inter` varchar(30) default '',
  `Prenom_Inter` varchar(30) default '',
  `Societe_Client` varchar(50) default NULL,
  `Adresse_Client_1` varchar(80) default '',
  `Adresse_Client_2` varchar(50) default '',
  `Adresse_Client_3` varchar(50) default '',
  `Adresse_Client` varchar(200) default NULL,
  `Pays_Client` varchar(30) default NULL,
  `Ville_Client` varchar(50) default NULL,
  `CP_Client` varchar(10) default NULL,
  `Civ_Inter_Liv` tinyint(3) unsigned default '0',
  `Nom_Inter_Liv` varchar(30) default '',
  `Prenom_Inter_Liv` varchar(30) default '',
  `Societe_Liv` varchar(50) default NULL,
  `Adresse_Liv_1` varchar(80) default '',
  `Adresse_Liv_2` varchar(50) default '',
  `Adresse_Liv_3` varchar(50) default '',
  `Pays_Liv` varchar(30) default NULL,
  `Ville_Liv` varchar(50) default NULL,
  `CP_Liv` varchar(10) default NULL,
  `Tel_Liv` varchar(20) default NULL,
  `Mode_Paiement` varchar(20) default NULL,
  `Statut_Paiement` tinyint(4) default NULL,
  `Statut_Commande` char(1) default NULL,
  `Statut_Modifie` tinyint(4) default '0',
  `Date_Commande` bigint(20) default NULL,
  `Commentaire` text,
  `Commentaire_2` text,
  `Imp_Com` tinyint(3) unsigned default '0',
  `Escompte` decimal(12,2) default '0.00',
  `Acompte` decimal(12,2) default '0.00',
  `Validee` tinyint(4) default '0',
  `Date_Creation` bigint(20) unsigned default '0',
  `Date_Maj` bigint(20) default NULL,
  `Email_Inter` varchar(64) default '',
  `Mail_Manager` varchar(64) default '',
  `Mode_Expedition` varchar(60) NOT NULL,
  `Journal_Banque` char(3) default '',
  `Num_Piece` varchar(20) default '',
  `Banque_Client` varchar(20) default '',
  `Date_Reglement` bigint(20) default '0',
  `Type_Vente` char(1) default 'N',
  `Edition_TTC` tinyint(3) unsigned default '0',
  `Date_Validation` bigint(20) unsigned default '0',
  `Date_Annulation` bigint(20) unsigned default '0',
  `Date_Reservation` bigint(20) unsigned default '0',
  `Reservation` tinyint(3) unsigned default '0',
  `Soldee` tinyint(3) unsigned default '0',
  `Code_Tarif` tinyint(3) unsigned default '1',
  `Login_Resp` varchar(15) default '',
  `Nom_Resp` varchar(30) default '',
  `Prenom_Resp` varchar(30) default '',
  `Num_Inter` int(10) unsigned default '0',
  `Tel_Inter` varchar(20) default '',
  `Fax_Inter` varchar(20) default '',
  `Num_Inter_Liv` int(10) unsigned default '0',
  `Email_Inter_Liv` varchar(64) default '',
  `Tel_Inter_Liv` varchar(20) default '',
  `Fax_Inter_Liv` varchar(20) default '',
  `Code_Porte` varchar(30) default '',
  `Num_Transaction` varchar(20) default '',
  `Origine` varchar(30) default '',
  `Infos_Commande` varchar(100) default '',
  `Code_Pays_Liv` char(3) default '',
  PRIMARY KEY  (`Com_Web_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COMMANDE_WEB`
--

INSERT INTO `COMMANDE_WEB` VALUES (1,0,'1199722948408','','1875.69','2243.33','0.00','0.00','0.00',0,'','','BIOTERROIR','28, rue du chêne clair','','',NULL,'France','ALBI','81000',0,'','','BIOTERROIR','28, rue du chêne clair','','','France','ALBI','81000',NULL,'Chèque',1,'E',1,1199722948411,'','',1,'0.00','0.00',0,0,1207042606344,'','','Normal','BQ','1199722948408','BPO',1199746800000,'N',0,1199790498052,0,1199790498052,1,1,1,'','','',0,'','',0,'','','','','','','',''),(2,0,'1199782857953','','1300.00','1554.80','0.18','2.36','0.00',0,'','','Librairie Coulier','56, place du Capitole','','',NULL,'France','TOULOUSE','31000',0,'','','Librairie Coulier','56, place du Capitole','','','France','TOULOUSE','31000',NULL,'Chèque',1,'E',1,1199782857953,'','',1,'0.00','0.00',0,0,1207042375783,'','','Normal','BQ','1199782857953','COURTOIS',1199746800000,'N',0,1199790792859,0,1199790792859,1,0,1,'gfremery','','',0,'','',0,'','','','','','','',''),(3,0,'1199790226545','','1302.36','1557.62','0.00','0.00','0.00',0,'','','AFFAIRES EN LIGNE','L\'Espinasse','','',NULL,'France','LACABAREDE','81240',0,'','','AFFAIRES EN LIGNE','L\'Espinasse','','','France','LACABAREDE','81240',NULL,'Chèque',0,'L',1,1199790226545,'','',1,'0.00','0.00',0,0,1221157620189,'','','Normal','','','',0,'N',0,0,0,0,0,1,1,'gfremery','','',0,'','',0,'','','','','','','',''),(4,0,'1200585016275','0','1944.00','2325.02','0.00','0.00','0.00',0,'','','MADY TIFF','153 avenue du Sidobre','','',NULL,'France','CASTRES','81100',0,'','','MADY TIFF','153 avenue du Sidobre','','','France','CASTRES','81100',NULL,'Chèque',0,'N',0,1200585016276,'','',0,'0.00','0.00',0,0,1200585016276,'','','Normal','','','',0,'N',0,0,0,0,0,0,1,'','','',0,'','',0,'','','','','','','',''),(5,0,'1205743832196','0','110.00','131.56','0.00','0.00','0.00',0,'','','CLIC CLIC','1 RUE BARRAL','','',NULL,'FRANCE','CASTRES','81100',0,'','','CLIC CLIC','1 RUE BARRAL','','','FRANCE','CASTRES','81100',NULL,'Chèque',0,'L',1,1205743832196,'','',0,'0.00','0.00',0,0,1205743832196,'','','Normal','','','',0,'N',0,1205743881066,0,1205743881066,1,0,1,'','','',0,'','',0,'','','','','','','',''),(6,0,'1207041933602','','5000.00','5980.00','0.00','0.00','0.00',0,'','','CHARLY-HEBDDO','45, route de Narbonne','','',NULL,'','TOULOUSE','31000',0,'','','CHARLY-HEBDDO','45, route de Narbonne','','','','TOULOUSE','31000',NULL,'Chèque',0,'C',1,1207041933603,'','',1,'0.00','0.00',0,0,1207042083923,'','','Normal','','','',0,'N',0,1207046566063,0,1207046566063,1,0,1,'','','',0,'','',0,'','','','','','','',''),(7,0,'1207042301550','0','50000.00','59800.00','0.00','0.00','0.00',0,'','','M. DUCHARBON Noir','RN99','','',NULL,'France','Carcassonne','11000',0,'','','M. DUCHARBON Noir','RN99','','','France','Carcassonne','11000',NULL,'Chèque',0,'N',0,1207042301550,'','',0,'0.00','0.00',0,0,1207042301550,'','','Normal','','','',0,'N',0,0,0,0,0,0,1,'','','',0,'','',0,'','','','','','','',''),(8,0,'1207043298551','','10450.00','12498.20','0.00','0.00','0.00',0,'','','AFFAIRES EN LIGNE','L\'Espinasse','','',NULL,'France','LACABAREDE','81240',0,'','','AFFAIRES EN LIGNE','L\'Espinasse','','','France','LACABAREDE','81240',NULL,'Chèque',0,'C',1,1207043298554,'','',1,'0.00','0.00',0,0,1207043620401,'','','Normal','','','',0,'N',0,1207043614559,0,1207043614559,1,0,1,'','','',0,'','',0,'','','','','','','',''),(9,0,'1220979164900','','1985.00','2374.06','0.00','0.00','500.00',0,'','','PUEL PHILIPPE','Le bourg','','',NULL,'France','ST JEAN DE MARCEL','81350',0,'','','PUEL PHILIPPE','Le bourg','','','France','ST JEAN DE MARCEL','81350',NULL,'Chèque',0,'C',1,1220979164901,'','',1,'3.00','1000.00',0,0,1221158138977,'','','Normal','','','',0,'N',0,1221156397343,0,1221156397343,1,0,1,'gfremery','FREMERY','Gérald',0,'','',0,'','','','','','','',''),(10,0,'1221155909618','','390.00','466.44','0.00','0.00','0.00',0,'','','AFFAIRES EN LIGNE','L\'Espinasse','','',NULL,'France','LACABAREDE','81240',0,'','','AFFAIRES EN LIGNE','L\'Espinasse','','','France','LACABAREDE','81240',NULL,'Chèque',0,'E',1,1221155909618,'','',1,'0.00','0.00',0,0,1221155924124,'','','Normal','','','',0,'N',0,1221155928799,0,1221155928799,1,0,1,'jj31','','',0,'','',0,'','','','','','','',''),(11,0,'1221156184180','','28250.00','33787.00','0.00','0.00','0.00',0,'','','PUEL PHILIPPE','Le bourg','','',NULL,'France','ST JEAN DE MARCEL','81350',0,'','','PUEL PHILIPPE','Le bourg','','','France','ST JEAN DE MARCEL','81350',NULL,'Chèque',0,'L',1,1221156184180,'','',1,'0.00','0.00',0,0,1221156211124,'','','Normal','','','',0,'N',0,1221156209587,0,1221156209587,1,0,1,'gfremery','FREMERY','Gérald',0,'','',0,'','','','','','','',''),(12,0,'','C310000','5450.00','6518.20','0.91','50.00','0.00',0,'','','Librairie Coulier','56, place du Capitole','','',NULL,'France','TOULOUSE','31000',0,'','','Librairie Coulier','56, place du Capitole','','','France','TOULOUSE','31000',NULL,'',0,'L',1,1221156454000,'','',1,'1.00','1500.00',0,1221156454000,1221157525297,'','','','','','',0,'N',0,1221157527195,0,1221157527195,1,0,1,'gfremery','','',0,'','',0,'','','','','','','',''),(13,0,'ref-du-client_14/08','','1096.00','1310.82','0.00','0.00','256.00',0,'','','Librairie Coulier','56, place du Capitole','','',NULL,'France','TOULOUSE','31000',0,'','','Librairie Coulier','56, place du Capitole','','','France','TOULOUSE','31000',NULL,'',1,'L',1,1221156898426,'','',1,'0.00','0.00',0,1221156898427,1221157493773,'','','','BQ','F','CCL',1221256800000,'N',0,1221157495389,0,1221157495389,1,0,1,'','','',0,'','',0,'','','','','','','',''),(14,0,'ref-client_12/2008','','476.00','569.30','0.00','0.00','256.00',0,'','','M. DUCHARBON Noir','RN99','','',NULL,'France','Carcassonne','11000',0,'','','M. DUCHARBON Noir','RN99','','','France','Carcassonne','11000',NULL,'',0,'L',1,1221156937499,'ceci est un commentaire externe','ici nous avons un commentaire interne',1,'0.00','0.00',0,1221156937500,1221157034493,'','','','','','',0,'N',0,1221157033111,0,1221157033111,1,0,5,'gfremery','','',0,'','',0,'','','','','','','',''),(15,0,'','','40.00','47.84','0.00','0.00','0.00',0,'','','M. DUCHARBON Noir','RN99','','',NULL,'France','Carcassonne','11000',0,'','','M. DUCHARBON Noir','RN99','','','France','Carcassonne','11000',NULL,'',0,'N',0,1221158148223,'','',1,'0.00','0.00',0,1221158148224,1221158192273,'','','','','','',0,'N',0,0,0,0,0,0,1,'','','',0,'','',0,'','','','','','','',''),(16,0,'','P8100000','0.00','0.00','0.00','0.00','0.00',0,'','','PUEL PHILIPPE','Le bourg','','',NULL,'France','ST JEAN DE MARCEL','81350',0,'','','PUEL PHILIPPE','Le bourg','','','$(SqlEncode)Pays','ST JEAN DE MARCEL','81350',NULL,'',0,'A',1,1221665358143,'','',1,'0.00','0.00',0,1221665358143,1221665358143,'','','','','','',0,'N',0,0,1221666390067,0,0,0,1,'','','',0,'','',0,'','','','','','','',''),(17,0,'1221665819620','','990.00','1184.04','0.00','0.00','0.00',0,'','','PUEL PHILIPPE','Le bourg','','',NULL,'France','ST JEAN DE MARCEL','81350',0,'','','PUEL PHILIPPE','Le bourg','','','France','ST JEAN DE MARCEL','81350',NULL,'Chèque',0,'L',1,1221665819620,'','',1,'0.00','0.00',0,0,1221665885261,'','','Normal','','','',0,'N',0,1221665915052,0,1221665915052,1,0,1,'gfremery','FREMERY','Gérald',0,'','',0,'','','','','','','',''),(18,0,'','','40.00','47.84','0.00','0.00','0.00',0,'','','MADY TIFF','153 avenue du Sidobre','','',NULL,'France','CASTRES','81100',0,'','','MADY TIFF','153 avenue du Sidobre','','','France','CASTRES','81100',NULL,'',0,'C',1,1222693986165,'','',1,'0.00','0.00',0,1222693986165,1222693992497,'','','','','','',0,'N',0,1222693996600,0,1222693996600,1,0,1,'IM','','',0,'','',0,'','','','','','','',''),(19,0,'1222694465240','','64.96','77.69','0.00','0.00','0.00',0,'','','CLIC CLIC','1 RUE BARRAL','','',NULL,'FRANCE','CASTRES','81100',0,'','','CLIC CLIC','1 RUE BARRAL','','','FRANCE','CASTRES','81100',NULL,'Chèque',0,'E',1,1222694465240,'','',1,'0.00','0.00',0,0,1222694482838,'','','Normal','','','',0,'N',0,1222694479930,0,1222694479930,1,0,1,'VM','MARIE','Virginie',0,'','',0,'','','','','','','',''),(20,0,'1228326586018','','5500.00','6578.00','0.00','0.00','0.00',0,'','','M. HYDRAVION Jules','Ici et là','','',NULL,'France','LARDENNE','31540',0,'','','M. HYDRAVION Jules','Ici et là','','','France','LARDENNE','31540',NULL,'Chèque',0,'L',1,1228326586019,'','',1,'0.00','0.00',0,0,1228326612577,'','','Normal','','','',0,'N',0,1228326618720,0,1228326618720,1,0,1,'gfremery','FREMERY','Gérald',0,'','',0,'','','','','','','','');

--
-- Table structure for table `COMPOSANT_ARTICLE`
--

CREATE TABLE `COMPOSANT_ARTICLE` (
  `Article_Id` char(40) NOT NULL,
  `ArticleComp_Id` char(40) NOT NULL,
  `Quantite` decimal(10,2) unsigned default NULL,
  PRIMARY KEY  (`Article_Id`,`ArticleComp_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COMPOSANT_ARTICLE`
--

INSERT INTO `COMPOSANT_ARTICLE` VALUES ('C001','B001','1.00'),('C001','G001','0.25'),('C001','H001','0.65'),('C001','VP001','0.15'),('gar_000','gar_000','1.00'),('V001','GAR_002','1.00'),('V001','GAR_003','1.00'),('V001','GAR_004','2.00'),('V001','GAR_006','1.00'),('V001','GAR_007','1.00');

--
-- Table structure for table `COMPTE_ARTICLE`
--

CREATE TABLE `COMPTE_ARTICLE` (
  `Article_Id` varchar(40) NOT NULL,
  `Code_TVA` tinyint(3) unsigned NOT NULL,
  `Compte_Vente` varchar(8) default '',
  `Compte_Achat` varchar(8) default '',
  PRIMARY KEY  (`Article_Id`,`Code_TVA`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_compte_article_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COMPTE_ARTICLE`
--

INSERT INTO `COMPTE_ARTICLE` VALUES ('ALP1051020',4,'70700000','60700000'),('AP002',4,'70610100','60700000'),('AP003',4,'70700000','60700000'),('apha-102',4,'70610100','60700000'),('CONF-001',3,'70710000','60700000'),('G001',3,'70703000','60703000'),('gar_000',4,'70610101',''),('GAR_001',4,'70610102',''),('GAR_002',4,'70701000','60701000'),('GAR_003',4,'70701000','60701000'),('GAR_004',4,'70701000','60701000'),('GAR_005',4,'70701000','60701000'),('GAR_006',4,'70701001','60701000'),('GAR_007',4,'70701000','60701000'),('H001',3,'70703000','60703000'),('Prest001A',1,'70610100',''),('Prest001A',2,'70610100',''),('Prest001A',3,'70610100',''),('Prest001A',4,'70610100',''),('SOUP001',3,'70700000','60700000'),('SUC-001',3,'70710000','60700000'),('SUC_002',3,'70710000','60700000'),('svael001',4,'70610100',''),('V001',4,'70700000','60701000'),('VP001',3,'70703000','60703000');

--
-- Table structure for table `COMPTE_FAMILLE_ARTICLE`
--

CREATE TABLE `COMPTE_FAMILLE_ARTICLE` (
  `Famille` varchar(40) NOT NULL,
  `Code_TVA` tinyint(3) unsigned NOT NULL,
  `Compte_Vente` varchar(8) default '',
  `Compte_Achat` varchar(8) default '',
  PRIMARY KEY  (`Famille`,`Code_TVA`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_compte_famille_article_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COMPTE_FAMILLE_ARTICLE`
--

INSERT INTO `COMPTE_FAMILLE_ARTICLE` VALUES ('FORETS',4,'70701002','60702000'),('Pièces déttachées',4,'70701000','60701000');

--
-- Table structure for table `COMPTE_SOUS_FAMILLE_ARTICLE`
--

CREATE TABLE `COMPTE_SOUS_FAMILLE_ARTICLE` (
  `Famille` varchar(40) NOT NULL,
  `Sous_Famille` varchar(40) NOT NULL,
  `Code_TVA` tinyint(3) unsigned NOT NULL,
  `Compte_Vente` varchar(8) default '',
  `Compte_Achat` varchar(8) default '',
  PRIMARY KEY  (`Famille`,`Sous_Famille`,`Code_TVA`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_compte_sous_famille_article_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COMPTE_SOUS_FAMILLE_ARTICLE`
--

INSERT INTO `COMPTE_SOUS_FAMILLE_ARTICLE` VALUES ('Gaz','Bouteille',4,'70700000','60700000');

--
-- Table structure for table `COM_CLIENT`
--

CREATE TABLE `COM_CLIENT` (
  `Com_Id` int(10) unsigned NOT NULL auto_increment,
  `Affaire_Id` int(10) unsigned NOT NULL,
  `Date_Com` bigint(20) unsigned default NULL,
  `Remise` decimal(9,6) unsigned default '0.000000',
  `Montant_Remise` decimal(9,2) unsigned default '0.00',
  `Escompte` decimal(5,2) unsigned default NULL,
  `Frais_Port` decimal(10,2) unsigned default NULL,
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Ref_Com` varchar(20) default NULL,
  `Etat` char(1) default NULL,
  `Total_HT` decimal(14,2) default NULL,
  `Montant_TTC` decimal(14,2) default NULL,
  `Code_Tarif` tinyint(3) unsigned default '1',
  `Delai` bigint(20) unsigned default NULL,
  `Soldee` tinyint(3) unsigned default '0',
  `Acompte` decimal(14,2) default '0.00',
  `Type_Vente` char(1) default 'N',
  `Edition_TTC` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Com_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COM_CLIENT`
--

INSERT INTO `COM_CLIENT` VALUES (1,2,1200265200000,'0.000000','0.00','0.00','0.00','',0,1200306959904,1200306959904,'VM','VM','D08010015','V','5830.00','6972.68',1,0,1,'0.00','N',0),(2,3,1200265200000,'3.548641','500.00','0.00','0.00','',0,1200307188920,1200307188920,'VM','VM','D08010016','V','13589.90','16253.52',1,0,0,'0.00','N',0),(3,4,0,'0.000000','0.00','0.00','0.00','',0,1200307309448,1200307309448,'VM','VM','D08010017','N','9000.89','10765.06',1,0,0,'0.00','N',0),(4,1,1200265200000,'0.000615','1.00','0.00','0.00','',0,1200307377437,1200307404888,'VM','VM','CDEààç','V','162476.00','194321.30',1,0,0,'0.00','N',0),(5,5,0,'0.000000','0.00','0.00','0.00','',0,1200327819837,1200327819837,'gfremery','gfremery','D08010018','N','5000.00','5980.00',1,0,0,'0.00','N',0),(6,6,1200524400000,'10.080000','504.00','0.00','0.00','',0,1200583230710,1200583230710,'demo','demo','D08010022','V','4496.00','5377.22',1,0,0,'0.00','N',0),(7,7,1222466400000,'0.000000','0.00','0.00','0.00','',0,1222263025665,1222263032489,'gfremery','gfremery','1','V','19.23','23.00',1,1222639200000,0,'0.00','N',0),(8,8,1222207200000,'0.000000','0.00','0.00','15.00','',0,1222282132588,1222282159061,'gfremery','gfremery','245','V','19.23','23.00',1,1222725600000,1,'0.00','N',0),(9,7,1222530686823,'0.000000','0.00','0.00','15.00','',0,1222530672261,1222530678973,'gfremery','gfremery','2','V','480.75','574.98',1,1222725600000,1,'0.00','N',0),(10,7,1222466400000,'0.000000','0.00','0.00','0.00','',0,1222530761777,1222530931972,'gfremery','gfremery','2-1','V','1960.00','2344.16',1,1222898400000,1,'0.00','N',0),(11,9,1222639200000,'0.000000','0.00','3.00','56.32','Ceci est le commentaire de la commande num 1 de l\'affaire num AC08090003',1,1222697643383,1222697734002,'gfremery','gfremery','1-1','V','338.04','404.30',1,1224021600000,1,'200.00','N',0),(12,9,1222639200000,'0.000000','0.00','0.00','0.00','Ceci est la 2ième commande de l\'affaire num AC08090003',1,1222697784727,1222697863932,'gfremery','gfremery','1-2','V','165.00','197.34',1,1223935200000,1,'0.00','N',0),(13,10,1222812000000,'0.000000','0.00','0.00','0.00','',0,1222854449126,1222854463169,'gfremery','gfremery','2-1','V','330.00','394.68',1,1224021600000,1,'0.00','N',0),(14,11,1223244000000,'0.000000','0.00','0.00','0.00','',0,1223284895283,1223284925762,'gfremery','gfremery','cde_001','V','530.00','633.88',1,1224021600000,1,'0.00','N',0),(15,11,1223244000000,'0.000000','0.00','0.00','0.00','',0,1223284973876,1223284988256,'gfremery','gfremery','cde_002','V','318.60','381.05',1,1224280800000,1,'0.00','N',0),(16,11,1223244000000,'0.000000','0.00','0.00','0.00','Règlements :\n1/3 LCR à 30 j net\n1/3 LCR à 60 j net \n1/3 LCR à 90 j net',1,1223285064906,1223285190814,'gfremery','gfremery','cd_003','V','845.00','1010.62',1,1224453600000,1,'0.00','N',0),(17,12,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223891819742,1223891838283,'gfremery','gfremery','C01/10/2008','V','10330.00','12354.68',1,1225321200000,1,'0.00','N',0),(18,12,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223891877450,1223891887631,'gfremery','gfremery','C02/10/2008','V','200.00','239.20',1,1225321200000,1,'0.00','N',0),(19,12,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223891922432,1223891926965,'gfremery','gfremery','C03/10/2008','V','104.30','124.74',1,1225321200000,1,'0.00','N',0),(20,13,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223892389843,1223892405139,'gfremery','gfremery','cde_10','V','810.00','968.76',1,1225321200000,1,'0.00','N',0),(21,13,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223892438601,1223892453385,'gfremery','gfremery','CDE_11','V','107.72','128.83',1,1225321200000,1,'0.00','N',0),(22,13,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223892486693,1223892488753,'gfremery','gfremery','CDE_12','V','200.00','239.20',1,1225321200000,1,'0.00','N',0),(23,14,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223893026546,1223893030994,'gfremery','gfremery','CDE_13','V','330.00','394.68',1,1225321200000,1,'0.00','N',0),(24,14,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223893063574,1223893065518,'gfremery','gfremery','CDE_14','V','200.00','239.20',1,1225321200000,1,'0.00','N',0),(25,15,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223894983548,1223895011612,'gfremery','gfremery','CDE_15','V','5460.00','6530.16',1,1225321200000,1,'0.00','N',0),(26,15,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223895039211,1223895066834,'gfremery','gfremery','CDE_16','V','284.86','340.69',1,1225321200000,1,'0.00','N',0),(27,15,1223848800000,'4.285714','30.00','0.00','15.00','',0,1223901767329,1223901804081,'gfremery','gfremery','CDE_17','V','685.00','819.26',1,1225321200000,1,'0.00','N',0),(28,16,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223903566522,1223903585798,'gfremery','gfremery','CDE_18','V','19.23','23.00',1,1227999600000,1,'0.00','N',0),(29,16,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223903647526,1223903654404,'gfremery','gfremery','CDE_19','V','182.68','218.49',1,1225321200000,1,'0.00','N',0),(30,16,1223848800000,'0.000000','0.00','0.00','0.00','',0,1223903817106,1223903820400,'gfremery','gfremery','CDE_20','V','96.15','115.00',1,1230678000000,1,'0.00','N',0),(31,17,1224021600000,'0.305632','0.84','0.00','0.00','',0,1224058250594,1224058303588,'gfremery','gfremery','CDE_001','V','236.95','274.00',1,1224280800000,1,'0.00','N',1),(32,17,1224021600000,'0.458268','2.44','0.00','0.00','',0,1224058339237,1224058428563,'gfremery','gfremery','CDE_002','V','451.42','530.00',1,1224540000000,1,'0.00','N',1),(33,17,1224021600000,'0.000000','0.00','0.00','0.00','',0,1224058459627,1224058494310,'gfremery','gfremery','CDE_003','V','507.49','590.39',1,1224885600000,1,'0.00','N',1),(34,18,1224021600000,'0.010229','0.36','0.00','150.00','',0,1224078482487,1224078541847,'gfremery','gfremery','CDE_050','V','3669.17','4388.33',1,1224367200000,1,'0.00','N',0),(35,18,1224021600000,'0.034804','0.48','0.00','0.00','',0,1224078578223,1224078639816,'gfremery','gfremery','CDE_051','V','1378.68','1648.90',1,1224885600000,1,'0.00','N',0),(36,18,1224021600000,'0.000000','0.00','0.00','0.00','',0,1224078676637,1224078857418,'gfremery','gfremery','CDE_052','V','583.28','689.23',1,1225321200000,1,'0.00','N',0),(37,19,1224108000000,'0.157553','0.89','0.00','156.00','',0,1224143824171,1224143922237,'gfremery','gfremery','CDE_053','V','720.00','858.36',1,1224280800000,1,'0.00','N',0),(38,19,1224108000000,'0.000000','0.00','0.00','0.00','',0,1224143965888,1224144004863,'gfremery','gfremery','CDE_054','V','97.24','115.46',1,1224540000000,1,'0.00','N',0),(39,19,1224108000000,'0.000000','0.00','0.00','0.00','',0,1224144049541,1224144092483,'gfremery','gfremery','CDE_055','V','135.22','161.17',1,1224885600000,1,'0.00','N',0),(40,19,1224108000000,'0.000000','0.00','0.00','0.00','',0,1224144268781,1224144315291,'gfremery','gfremery','CDE_056','V','1443.26','1725.30',1,1225148400000,1,'0.00','N',0),(41,20,1224280800000,'0.007100','0.46','0.00','50.63','',0,1224339235553,1224339280474,'gfremery','gfremery','CDE_060','V','6528.63','7805.48',1,1224540000000,1,'0.00','N',0),(42,20,1224280800000,'3.500000','28.73','0.00','12.34','Commentaire en fin de commande CDE_61',1,1224339322483,1224339432753,'gfremery','gfremery','CDE_61','V','804.39','858.89',1,1224626400000,1,'0.00','N',0),(43,20,1224339579895,'2.078015','23.20','0.00','14.86','',0,1224339473556,1224339786409,'gfremery','gfremery','CDE_62','V','1108.11','1319.10',1,1224712800000,1,'0.00','N',0),(44,20,1224280800000,'0.000000','0.00','0.00','0.00','',0,1224339712902,1224339746054,'gfremery','gfremery','CDE-63','V','6168.56','7377.60',1,1224799200000,1,'0.00','N',0),(45,21,1224590818345,'0.000000','0.00','0.00','0.00','',0,1224590753056,1224590850817,'gfremery','gfremery','CDE_1001','V','972.55','1156.44',1,1224885600000,1,'0.00','N',0),(46,21,1224540000000,'0.000000','0.00','0.00','0.00','',0,1224590902047,1224590929981,'gfremery','gfremery','CDE_1002','V','1463.16','1749.94',1,1225234800000,1,'0.00','N',0),(47,21,1224540000000,'0.000000','0.00','0.00','0.00','',0,1224604823466,1224605127695,'gfremery','gfremery','cde_10003','V','175.91','210.39',1,1225234800000,0,'0.00','N',0),(48,21,1224885600000,'0.000000','0.00','0.00','0.00','',0,1224923071871,1224923091455,'gfremery','gfremery','CDE_004','V','6458.86','7724.80',1,1225148400000,1,'0.00','N',0),(49,21,1224885600000,'0.000000','0.00','0.00','0.00','',0,1224923124558,1224923138347,'gfremery','gfremery','CDE_005','V','88.32','93.18',1,1225321200000,1,'0.00','N',0),(50,22,1224972000000,'0.000000','0.00','0.00','0.00','',0,1225028724022,1225028750099,'gfremery','gfremery','CDE_10-00','V','338.55','402.39',1,1225321200000,1,'0.00','N',0),(51,22,1224972000000,'0.000000','0.00','0.00','0.00','',0,1225028802879,1225028818693,'gfremery','gfremery','CDE_10-01','V','3440.76','4115.15',1,1225321200000,1,'0.00','N',0),(52,23,1225407600000,'0.000000','0.00','0.00','0.00','',0,1225438867999,1225438893784,'gfremery','gfremery','CDE_1000','V','304.16','345.55',1,1225407600000,1,'0.00','N',0),(53,23,1225407600000,'0.000000','0.00','0.00','0.00','',0,1225438932595,1225438947234,'gfremery','gfremery','CDE_1001','V','550.25','658.10',1,1225407600000,1,'0.00','N',0),(54,24,1225407600000,'0.000000','0.00','0.00','0.00','',0,1225439507121,1225439520666,'gfremery','gfremery','CDE_1002','V','294.94','352.75',1,1225407600000,1,'0.00','N',0),(55,24,1225407600000,'0.000000','0.00','0.00','0.00','',0,1225439546644,1225439575897,'gfremery','gfremery','CDE_1003','V','1140.38','1362.24',1,1225407600000,0,'0.00','N',0),(56,24,1225407600000,'0.000000','0.00','0.00','0.00','',0,1225439605110,1225439620021,'gfremery','gfremery','CDE_1003','V','3170.58','3792.01',1,1225407600000,1,'0.00','N',0),(57,25,1225407600000,'0.000000','0.00','0.00','0.00','',0,1225476230918,1225476246486,'gfremery','gfremery','D08100006','V','5.94','6.27',1,0,1,'0.00','N',0),(58,25,1225839600000,'1.095964','0.82','0.00','0.00','',0,1225870370975,1225870381580,'gfremery','gfremery','CDE_1100','V','61.87','74.00',1,1227999600000,1,'0.00','N',1),(59,26,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226569857286,1226569876315,'gfremery','gfremery','D08110002','V','2.09','2.50',1,0,1,'0.00','N',0),(60,26,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226570065203,1226570068035,'gfremery','gfremery','x89','V','4.18','5.00',1,1226703600000,1,'0.00','N',0),(61,26,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226571022678,1226571024441,'gfremery','gfremery','X90','V','6.27','7.50',1,1226703600000,1,'0.00','N',0),(62,27,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226572769328,1226572785773,'gfremery','gfremery','CDE-01','V','47.32','56.59',1,1226703600000,1,'0.00','N',0),(63,27,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226580574883,1226580587994,'gfremery','gfremery','CDE-02','V','1092.54','1306.13',1,1226703600000,1,'0.00','N',0),(64,28,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226581478894,1226581494468,'gfremery','gfremery','CDE-03','V','0.00','0.00',1,1226703600000,1,'0.00','N',0),(65,29,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226594721978,1226594724481,'gfremery','gfremery','cde-03','V','59.40','62.67',1,1226703600000,1,'0.00','N',0),(66,29,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226594893050,1226594895241,'gfremery','gfremery','cde-04','V','30.50','36.48',1,1226703600000,1,'0.00','N',0),(67,30,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226597663272,1226597666409,'gfremery','gfremery','cde-05','V','6.10','7.30',1,1226703600000,1,'0.00','N',0),(68,30,1226530800000,'3.600543','5.30','0.00','0.00','',0,1226597802454,1226597835174,'gfremery','gfremery','cde-06','V','141.90','149.70',1,1226703600000,1,'0.00','N',0),(69,31,1226530800000,'3.000000','0.74','1.50','15.00','',0,1226598100890,1226598124225,'gfremery','gfremery','cde-07','V','39.04','46.15',1,1226703600000,1,'0.00','N',0),(70,31,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226598157128,1226598159600,'gfremery','gfremery','cde-08','V','6.10','7.30',1,1226703600000,1,'0.00','N',0),(71,31,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226598193699,1226598217779,'gfremery','gfremery','cde-09','V','1117.22','1336.20',1,1226703600000,1,'0.00','N',0),(72,32,1226530800000,'0.000000','0.00','0.00','18.32','',0,1226598423668,1226598446712,'gfremery','gfremery','cde-10','V','57.52','63.27',1,1226703600000,1,'0.00','N',0),(73,32,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226598501888,1226598514025,'gfremery','gfremery','cde-11','V','1659.70','1985.00',1,1226703600000,1,'0.00','N',0),(74,32,1226530800000,'0.000000','0.00','0.00','0.00','',0,1226598557353,1226598560234,'gfremery','gfremery','cde-12','V','15709.90','18789.04',1,1226703600000,1,'0.00','N',0),(75,33,1226617200000,'0.000000','0.00','3.00','156.36','',0,1226682053768,1226682069941,'gfremery','gfremery','cde-1120','V','186.86','223.48',1,1226703600000,1,'0.00','N',0),(76,33,1226617200000,'2.360000','0.99','0.00','124.30','',0,1226682109014,1226682145345,'gfremery','gfremery','cde-1121','V','165.31','197.71',1,1226703600000,1,'0.00','N',0),(77,34,1228258800000,'0.000000','0.00','0.00','0.00','',0,1228326900558,1228326902385,'gfremery','gfremery','CDE-1201','V','5500.00','6578.00',1,1230678000000,1,'0.00','N',0),(78,35,1228345200000,'0.000000','0.00','0.00','0.00','',0,1228382255961,1228382269935,'gfremery','gfremery','CDE_120801','V','68.90','72.69',1,1230678000000,0,'0.00','N',0),(79,35,1228345200000,'0.000000','0.00','0.00','0.00','',0,1228382307402,1228382326611,'gfremery','gfremery','CDE_120802','V','178.20','213.13',1,1230678000000,0,'0.00','N',0),(80,36,1228345200000,'0.000000','0.00','0.00','0.00','',0,1228383222141,1228383265959,'gfremery','gfremery','CDE_120803','V','8.45','10.11',1,1230678000000,0,'0.00','N',0),(81,36,1228345200000,'0.000000','0.00','0.00','0.00','',0,1228383412877,1228383426394,'gfremery','gfremery','CDE_120804','V','8.45','10.11',1,1230678000000,0,'0.00','N',0);

--
-- Table structure for table `CONTENU_COLIS`
--

CREATE TABLE `CONTENU_COLIS` (
  `Colis_Id` int(10) unsigned NOT NULL,
  `Ref_Ligne` int(10) unsigned NOT NULL,
  `Quantite` decimal(10,2) default NULL,
  `Poids` decimal(10,2) default NULL,
  PRIMARY KEY  (`Ref_Ligne`,`Colis_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `CONTENU_COLIS`
--

INSERT INTO `CONTENU_COLIS` VALUES (2,8,'1.00','0.25'),(16,10,'3.00','0.25'),(17,10,'1.00','0.25'),(18,10,'1.00','0.25'),(19,10,'1.00','0.25'),(20,10,'1.00','0.25'),(23,17,'2.00','0.25'),(24,17,'1.00','0.25'),(28,18,'1.00','0.25'),(29,18,'1.00','0.25'),(30,18,'1.00','0.25'),(37,21,'1.00','0.25'),(38,21,'1.00','0.25'),(39,21,'1.00','0.25'),(40,21,'1.00','0.25'),(31,26,'1.00','0.25'),(32,26,'1.00','0.25'),(33,26,'1.00','0.25'),(34,26,'1.00','0.25'),(35,26,'1.00','0.25'),(41,28,'1.00','0.25'),(42,28,'1.00','0.25'),(43,28,'1.00','0.25'),(44,28,'1.00','0.25'),(45,28,'1.00','0.25'),(46,28,'1.00','0.25'),(47,28,'1.00','0.25'),(48,35,'1.00','0.25'),(49,38,'1.00','0.25'),(50,38,'1.00','0.25'),(51,38,'1.00','0.25'),(52,38,'1.00','0.25'),(53,38,'1.00','0.25'),(54,38,'1.00','0.25'),(55,38,'1.00','0.25'),(56,38,'1.00','0.25'),(57,38,'1.00','0.25'),(58,38,'1.00','0.25'),(59,47,'1.00','0.25'),(60,47,'1.00','0.25'),(61,47,'1.00','0.25'),(62,47,'1.00','0.25'),(63,49,'1.00','0.25'),(64,50,'1.00','0.25'),(65,50,'1.00','0.25'),(66,50,'1.00','0.25'),(67,50,'1.00','0.25'),(68,50,'1.00','0.25'),(69,51,'1.00','0.25'),(70,51,'1.00','0.25'),(71,51,'1.00','0.25'),(72,51,'1.00','0.25'),(73,51,'1.00','0.25'),(74,60,'1.00','0.25'),(76,72,'3.00','0.00'),(75,73,'1.00','0.25'),(79,73,'1.00','0.25'),(77,79,'1.00','0.25'),(80,81,'1.00','0.00'),(78,82,'1.00','0.25'),(81,89,'3.00','0.00'),(82,104,'2.00','0.00'),(83,106,'1.00','0.00'),(86,117,'3.00','0.00'),(85,121,'1.00','0.25'),(87,137,'1.00','0.00'),(88,142,'1.00','0.25'),(89,144,'2.00','0.00'),(90,158,'1.00','0.00'),(91,167,'1.00','0.00'),(92,173,'10.00','0.00'),(93,183,'5.00','0.00');

--
-- Table structure for table `COULEUR_ARTICLE`
--

CREATE TABLE `COULEUR_ARTICLE` (
  `Couleur` varchar(40) NOT NULL default '',
  PRIMARY KEY  (`Couleur`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `COULEUR_ARTICLE`
--


--
-- Table structure for table `DERNIER_RB_JOURNAL`
--

CREATE TABLE `DERNIER_RB_JOURNAL` (
  `Code_Journal` char(3) NOT NULL,
  `Periode` bigint(20) unsigned default '0',
  `Clos` char(1) default 'n',
  PRIMARY KEY  (`Code_Journal`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `DERNIER_RB_JOURNAL`
--


--
-- Table structure for table `DEVIS`
--

CREATE TABLE `DEVIS` (
  `Devis_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Devis` bigint(20) unsigned default NULL,
  `Remise` decimal(9,6) unsigned default '0.000000',
  `Montant_Remise` decimal(9,2) unsigned default '0.00',
  `Escompte` decimal(5,2) unsigned default NULL,
  `Acompte` decimal(14,2) unsigned default NULL,
  `Frais_Port` decimal(10,2) unsigned default NULL,
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` char(10) default NULL,
  `Etat` char(1) default NULL,
  `Date_Exp` bigint(20) unsigned default NULL,
  `Total_HT` decimal(14,2) default NULL,
  `Montant_TTC` decimal(14,2) default NULL,
  `Date_Validation` bigint(20) unsigned default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Adresse` varchar(80) default NULL,
  `Comp_Adresse` varchar(50) default NULL,
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default NULL,
  `Ville` varchar(50) default NULL,
  `Pays` varchar(30) default NULL,
  `Login_Resp` varchar(15) default NULL,
  `Client_Id` varchar(10) default NULL,
  `Num_Inter` int(10) unsigned default NULL,
  `Code_Tarif` tinyint(3) unsigned default '1',
  `Type_Vente` char(1) default 'N',
  `Edition_TTC` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Devis_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `DEVIS`
--

INSERT INTO `DEVIS` VALUES (1,1199719224789,'2.676763','221.00','0.00','0.00','0.00','',0,1199719224789,1199719290762,'gfremery','gfremery',1,'D08010001','F',0,'8035.24','9610.15',1199720493542,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','gfremery','C810001',0,1,'N',0),(2,1199722155365,'2.000000','0.00','0.00','0.00','0.00','',0,1199722155365,1199723838459,'gfremery','gfremery',2,'D08010002','F',1201734000000,'1838.18','2198.46',1199783147776,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','gfremery','C810002',3,1,'N',0),(3,1199722938994,'0.000000','0.00','0.00','0.00','0.00','',0,1199722938994,1199722938994,'gfremery','gfremery',3,'D08010003','C',1201734000000,'1838.18','2198.46',1199722948332,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','gfremery','C810002',0,1,'N',0),(4,1199723894799,'0.181209','2.36','0.00','0.00','0.00','',0,1199723894799,1199782815721,'gfremery','gfremery',4,'D08010004','C',1200351600000,'1300.00','1554.80',1199782857761,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','gfremery','C310000',2,1,'N',0),(5,1199783959388,'0.000000','0.00','0.00','0.00','0.00','Commentaire de fin de devis',1,1199783959388,1199784038749,'gfremery','gfremery',5,'D08010005','F',1201215600000,'501.44','599.72',1199784109512,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','gfremery','C310000',2,1,'N',0),(6,1199790182159,'0.000000','0.00','0.00','0.00','0.00','',0,1199790182159,1200306915142,'VM','gfremery',6,'D08010006','C',1200351600000,'1302.36','1557.62',1199790226270,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','gfremery','C810001',0,1,'N',0),(7,1199896606875,'0.000000','0.00','0.00','0.00','0.00','',0,1199896606875,1199896609807,'gfremery','gfremery',7,'D08010007','F',0,'1650.00','1973.40',1199896625701,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','gfremery','C310001',0,1,'N',0),(8,1199972970672,'0.000000','0.00','0.00','0.00','0.00','',0,1199972970672,1199972994537,'jj31','jj31',8,'D08010008','F',0,'1320.00','1578.72',1199972997354,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','gfremery','C810002',0,1,'N',0),(9,1199973633420,'0.000000','0.00','0.00','0.00','0.00','',0,1199973633420,1199973740819,'jj31','jj31',9,'D08010009','F',0,'5830.00','6972.68',1199973752949,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','jj31','C810001',1,1,'N',0),(10,1200148821377,'0.000000','0.00','0.00','0.00','0.00','',0,1200148821377,1200148849090,'gfremery','gfremery',10,'D08010010','F',0,'27530.00','32925.88',1200148863256,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','jj31','C310001',0,1,'N',0),(11,1200148936271,'0.000000','0.00','0.00','0.00','0.00','',0,1200148936271,1200148951895,'gfremery','gfremery',11,'D08010011','F',0,'20000.00','23920.00',1200148957640,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','jj31','C810001',0,1,'N',0),(12,1200149028717,'0.000000','0.00','0.00','0.00','0.00','',0,1200149028717,1200149031694,'gfremery','gfremery',12,'D08010012','F',0,'5000.00','5980.00',1200149039275,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','gfremery','C310001',0,1,'N',0),(13,1200149098825,'0.000000','0.00','0.00','0.00','0.00','',0,1200149098825,1200149101431,'gfremery','gfremery',13,'D08010013','F',0,'50000.00','59800.00',1200149105797,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','gfremery','C310000',0,1,'N',0),(14,1200305174814,'9.090909','50.00','0.00','0.00','0.00','Commentaires de fin de devis',1,1200305174814,1200305733752,'VM','VM',14,'D08010014','F',1201734000000,'500.00','598.00',1200305747534,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','gfremery','C810002',3,1,'N',0),(15,1200306942050,'0.000000','0.00','0.00','0.00','0.00','',0,1200306942050,1200306948470,'VM','VM',15,'D08010015','A',0,'5830.00','6972.68',1200306959798,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','gfremery','C810002',0,1,'N',0),(16,1200307157647,'3.548641','500.00','0.00','0.00','0.00','',0,1200307157647,1200307178508,'VM','VM',16,'D08010016','A',0,'13589.90','16253.52',1200307188686,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','gfremery','C810002',0,1,'N',0),(17,1200307276598,'0.000000','0.00','0.00','0.00','0.00','',0,1200307276598,1203945618133,'aurelie','VM',17,'D08010017','A',0,'9000.89','10765.06',1200307309336,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','gfremery','C810002',0,1,'N',0),(18,1200327797907,'0.000000','0.00','0.00','0.00','0.00','',0,1200327797907,1200327802498,'gfremery','gfremery',18,'D08010018','A',0,'5000.00','5980.00',1200327819742,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','gfremery','C310000',0,1,'N',0),(19,1200329135295,'0.000000','0.00','0.00','0.00','0.00','',0,1200329135295,1200329248267,'VM','VM',19,'D08010019','F',0,'419.33','501.52',1200329299143,'A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','VM','C810004',0,1,'N',0),(20,1200506486770,'0.000000','0.00','0.00','0.00','0.00','',0,1200506486770,1200506655960,'VM','VM',20,'D08010020','F',0,'2500.00','2990.00',1200506727131,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','VM','C810005',0,1,'N',0),(21,1200558188855,'0.000000','0.00','0.00','0.00','0.00','',0,1200558188855,1203946162725,'aurelie','IM',21,'D08010021','C',0,'1944.00','2325.02',1200585016189,'MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','IM','C810003',4,1,'N',0),(22,1200583203243,'10.080000','504.00','0.00','0.00','0.00','',0,1200583203243,1203945715146,'aurelie','demo',22,'D08010022','A',0,'4496.00','5377.22',1200583230566,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','demo','C110000',0,1,'N',0),(24,1202312721125,'0.000000','0.00','0.00','0.00','0.00','',0,1202312721125,1205743812912,'gfremery','demo',1,'D08020001','C',1208210400000,'110.00','131.56',1205743831952,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','VM','C810005',6,1,'N',0),(25,1207041873895,'0.000000','0.00','0.00','0.00','0.00','',0,1207041873895,1207041873895,'gfremery','gfremery',1,'D08040001','C',1209938400000,'5000.00','5980.00',1207041933515,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','gfremery','C310001',0,1,'N',0),(26,1207042289122,'0.000000','0.00','0.00','0.00','0.00','',0,1207042289122,1207042289122,'gfremery','gfremery',2,'D08040002','C',1209938400000,'50000.00','59800.00',1207042301490,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','demo','C110000',5,1,'N',0),(27,1207043234791,'0.000000','0.00','0.00','0.00','0.00','',0,1207043234791,1207043274057,'gfremery','gfremery',3,'D08040003','C',1209938400000,'5450.00','6518.20',1207043298438,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','jj31','C810001',1,1,'N',0),(28,1213790723879,'0.000000','0.00','0.00','0.00','100.00','',0,1213790723879,1219829814073,'gfremery','gfremery',1,'D08060001','F',1213826400000,'210.00','235.65',1219829817597,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','jj31','C810001',1,1,'N',0),(29,1217688086152,'0.000000','0.00','0.00','0.00','0.00','',0,1217688086152,1217688099333,'gfremery','gfremery',1,'D08080001','F',1220133600000,'100.00','119.60',1217688105460,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','gfremery','P8100000',0,1,'N',0),(30,1217868063948,'12.000000','0.00','3.00','500.00','80.00','',0,1217868063948,1217868100313,'gfremery','gfremery',2,'D08080002','F',1218751200000,'960.00','1148.16',1217868371511,'EFCS SARL','chemin des Mésanges','','','81600','GAILLAC','France','gfremery','P8100001',0,1,'N',0),(31,1219846909017,'16.835017','250.00','3.00','1000.00','500.00','',0,1219846909017,1219846986573,'gfremery','gfremery',3,'D08080003','F',1221429600000,'1735.00','2075.06',1219847066734,'CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','gfremery','C310001',0,1,'N',0),(32,1220448238928,'0.000000','0.00','3.00','1000.00','500.00','',0,1220448238928,1220448238928,'gfremery','gfremery',1,'D08090001','C',1221429600000,'1735.00','2075.06',1220979164723,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','gfremery','P8100000',7,1,'N',0),(33,1221155905514,'0.000000','0.00','0.00','0.00','0.00','',0,1221155905514,1221155908115,'gfremery','gfremery',2,'D08090002','C',1221429600000,'350.00','418.60',1221155909570,'AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','jj31','C810001',1,1,'N',0),(34,1221156180289,'0.000000','0.00','0.00','0.00','0.00','',0,1221156180289,1221156183044,'gfremery','gfremery',3,'D08090003','C',1221429600000,'40.00','47.84',1221156184129,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','gfremery','P8100000',7,1,'N',0),(35,1221665640863,'0.000000','0.00','0.00','0.00','0.00','',0,1221665640863,1221665694137,'gfremery','gfremery',4,'D08090004','C',1224021600000,'990.00','1184.04',1221665819521,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','gfremery','P8100000',7,1,'N',0),(36,1222250259012,'0.000000','0.00','0.00','0.00','0.00','',0,1222250259012,1222694448857,'gfremery','gfremery',5,'D08090005','C',1222725600000,'64.96','77.69',1222694464870,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','VM','C810005',0,1,'N',0),(38,1223995982915,'1.234568','3.50','0.00','0.00','0.00','',0,1223995982915,1223996367476,'gfremery','gfremery',1,'D08100001','F',1224108000000,'234.11','280.00',1223996040668,'CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','VM','C810005',0,1,'N',1),(39,1224002178737,'0.145243','0.96','0.00','0.00','0.00','',0,1224002178737,1224002236481,'gfremery','gfremery',2,'D08100002','F',1224280800000,'565.67','660.00',1224002245224,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','demo','C110000',5,1,'N',1),(40,1224057666525,'0.093632','0.97','0.00','0.00','0.00','',0,1224057666525,1224057712669,'gfremery','gfremery',3,'D08100003','F',1224280800000,'879.22','1035.00',1224057772254,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','jj31','C810002',3,1,'N',1),(41,1224603648011,'0.000000','0.00','0.00','0.00','0.00','ceci est un commentaire de bas de devis',1,1224603648011,1224604055359,'gfremery','gfremery',4,'D08100004','F',1225234800000,'3844.26','4597.73',1224604356696,'BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','jj31','C810002',3,1,'N',0),(42,1224604527173,'0.000000','0.00','0.00','0.00','0.00','ceci est un commentaire de bas de devis',1,1224604527173,1224604527173,'gfremery','gfremery',5,'D08100005','F',1225234800000,'3844.26','4597.73',1224604541993,'PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','gfremery','P8100000',7,1,'N',0),(43,1225476216448,'0.000000','0.00','0.00','0.00','0.00','',0,1225476216448,1225476226104,'gfremery','gfremery',6,'D08100006','A',1225407600000,'5.94','6.27',1225476230775,'M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','gfremery','C450000',0,1,'N',0),(44,1225803548828,'6.936027','9.27','0.00','0.00','25.62','',0,1225803548828,1225803669638,'gfremery','gfremery',1,'D08110001','F',1227999600000,'128.61','150.00',1225803675141,'M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','demo','C110000',5,1,'N',1),(45,1226569822227,'0.000000','0.00','0.00','0.00','0.00','',0,1226569822227,1226569843603,'gfremery','gfremery',2,'D08110002','A',1226703600000,'2.09','2.50',1226569857049,'Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','gfremery','C810006',0,1,'N',0),(46,1228326389774,'0.000000','0.00','0.00','0.00','0.00','',0,1228326389774,1228326400590,'gfremery','gfremery',1,'D08120001','F',1230678000000,'5500.00','6578.00',1228326427173,'Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','gfremery','C310000',2,1,'N',0),(47,1228326557865,'0.000000','0.00','0.00','0.00','0.00','',0,1228326557865,1228326569470,'gfremery','gfremery',2,'D08120002','C',1230678000000,'5500.00','6578.00',1228326585917,'M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','gfremery','C310002',0,1,'N',0);

--
-- Table structure for table `ECHEANCE_ABONNEMENT`
--

CREATE TABLE `ECHEANCE_ABONNEMENT` (
  `NumEcheance` int(10) unsigned NOT NULL,
  `Abonnement_Id` int(10) unsigned NOT NULL,
  `Date_Debut` bigint(20) unsigned default NULL,
  `Date_Fin` bigint(20) unsigned default NULL,
  `Date_generation` bigint(20) unsigned default NULL,
  `Facture_Id` int(10) unsigned default '0',
  `Num_Entier_Facture` char(10) default '',
  `Total_HT` decimal(14,2) default NULL,
  `MontantTTC` decimal(14,2) default NULL,
  `Etat` char(1) default NULL,
  `Date_Echeance` bigint(20) unsigned default NULL,
  `nbJourEcheance` tinyint(3) unsigned default NULL,
  `Type` char(1) default NULL,
  `Historique` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`NumEcheance`,`Abonnement_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ECHEANCE_ABONNEMENT`
--


--
-- Table structure for table `ECHEANCE_AVOIR_CLIENT`
--

CREATE TABLE `ECHEANCE_AVOIR_CLIENT` (
  `Echeance_Avoir_Id` int(10) unsigned NOT NULL auto_increment,
  `Echeance_Id` int(10) unsigned NOT NULL default '0',
  `Avoir_Id` int(10) unsigned NOT NULL default '0',
  `Montant` decimal(14,2) default '0.00',
  PRIMARY KEY  (`Echeance_Avoir_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ECHEANCE_AVOIR_CLIENT`
--

INSERT INTO `ECHEANCE_AVOIR_CLIENT` VALUES (1,13,1,'131.56'),(2,17,3,'541.02'),(3,18,2,'1196.00');

--
-- Table structure for table `ECHEANCE_AVOIR_FOURNISSEUR`
--

CREATE TABLE `ECHEANCE_AVOIR_FOURNISSEUR` (
  `Echeance_Avoir_Id` int(10) unsigned NOT NULL auto_increment,
  `Echeance_Id` int(10) unsigned NOT NULL,
  `Avoir_Id` int(10) unsigned NOT NULL,
  `Montant` decimal(14,2) default NULL,
  PRIMARY KEY  (`Echeance_Avoir_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ECHEANCE_AVOIR_FOURNISSEUR`
--


--
-- Table structure for table `ECHEANCE_CLIENT`
--

CREATE TABLE `ECHEANCE_CLIENT` (
  `Echeance_Id` int(10) unsigned NOT NULL auto_increment,
  `Type` char(8) default 'Echeance',
  `Provenance` char(8) default 'Facture',
  `Numero` varchar(20) default '',
  `Document_Id` int(10) unsigned default '0',
  `Date_Echeance` bigint(20) unsigned default '0',
  `Echeance_Initiale` bigint(20) unsigned default '0',
  `Client_Id` varchar(10) default '',
  `Raison_Sociale` varchar(50) default '',
  `Montant_Du` decimal(14,2) default '0.00',
  `Montant_Regle` decimal(14,2) default '0.00',
  `Montant_Restant` decimal(14,2) default '0.00',
  `Regulariser` decimal(14,2) default '0.00',
  `Etat` char(1) default 'N',
  `Mode_Reglement` varchar(25) default '',
  `Commentaires` text,
  PRIMARY KEY  (`Echeance_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ECHEANCE_CLIENT`
--

INSERT INTO `ECHEANCE_CLIENT` VALUES (1,'Echeance','Facture','F08010001',1,1199660400000,1199660400000,'C810001','AFFAIRES EN LIGNE','9610.15','9610.15','0.00','0.00','R','Cheque',''),(2,'Echeance','Facture','F08010002',2,1199746800000,1199746800000,'C810002','BIOTERROIR','2198.46','2198.46','0.00','0.00','R','Cheque',''),(3,'Echeance','Facture','F08010003',3,1199746800000,1199746800000,'C310000','Librairie Coulier','599.72','599.72','0.00','0.00','R','Prelevement',''),(4,'Echeance','Facture','F08010004',4,1201734000000,1201734000000,'C310001','CHARLY-HEBDDO','1973.40','1973.40','0.00','0.00','R','Cheque',''),(5,'Echeance','Facture','F08010005',5,1199919600000,1199919600000,'C810002','BIOTERROIR','1578.72','1578.72','0.00','0.00','R','Cheque',''),(6,'Echeance','Facture','F08010006',6,1199919600000,1199919600000,'C810001','AFFAIRES EN LIGNE','6972.68','6972.68','0.00','0.00','R','Carte bancaire',''),(7,'Echeance','Facture','F08010007',7,1201734000000,1201734000000,'C310001','CHARLY-HEBDDO','32925.88','32925.88','0.00','0.00','R','Cheque',''),(8,'Echeance','Facture','F08010008',8,1200092400000,1200092400000,'C810001','AFFAIRES EN LIGNE','23920.00','23920.00','0.00','0.00','R','Especes',''),(9,'Echeance','Facture','F08010009',9,1201734000000,1201734000000,'C310001','CHARLY-HEBDDO','5980.00','5980.00','0.00','0.00','R','Prelevement',''),(10,'Echeance','Facture','F08010010',10,1200092400000,1200092400000,'C310000','Librairie Coulier','59800.00','59800.00','0.00','0.00','R','Prelevement',''),(11,'Echeance','Facture','F08010011',11,1200265200000,1200265200000,'C810002','BIOTERROIR','4732.44','4732.44','0.00','0.00','R','Cheque',''),(12,'Echeance','Facture','F08010012',12,1200265200000,1200265200000,'C810000','AEL','2805.42','2805.42','0.00','0.00','R','Cheque',''),(13,'Echeance','Facture','F08010013',14,1201734000000,1201734000000,'C810004','A MAMES','501.52','501.52','0.00','0.00','R','Prelevement',''),(14,'Echeance','Facture','F08010015',15,1200438000000,1200438000000,'C810005','CLIC CLIC','2990.00','2990.00','0.00','0.00','R','Cheque',''),(15,'Echeance','Facture','F08030001',16,1205708400000,1205708400000,'','CLIC CLIC','131.56','131.56','0.00','0.00','R','Chèque',''),(16,'Echeance','Facture','F08030002',18,1207000800000,1207000800000,'','BIOTERROIR','2243.33','2243.33','0.00','0.00','R','Prelevement',''),(17,'Echeance','Facture','F08030003',19,1207042795032,1207042795032,'','AFFAIRES EN LIGNE','1557.62','1557.62','0.00','0.00','R','Chèque',''),(18,'Echeance','Facture','F08030004',20,1207046722025,1207046722025,'','CHARLY-HEBDDO','5980.00','5980.00','0.00','0.00','R','Chèque',''),(19,'Echeance','Facture','F08050001',21,1212184800000,1212184800000,'C310001','CHARLY-HEBDDO','5980.00','5980.00','0.00','0.00','R','Cheque',''),(20,'Echeance','Facture','F08050002',22,1212184800000,1212184800000,'C110000','M. DUCHARBON Noir','2093.00','2093.00','0.00','0.00','R','Cheque',''),(21,'Echeance','Facture','F08050003',23,1211752800000,1211752800000,'C310000','Librairie Coulier','59800.00','59800.00','0.00','0.00','R','Cheque',''),(22,'Echeance','Facture','F08050004',24,1211752800000,1211752800000,'C810001','AFFAIRES EN LIGNE','239.20','239.20','0.00','0.00','R','Carte bancaire',''),(23,'Echeance','Facture','F08080001',25,1217628000000,1217628000000,'P8100000','PUEL PHILIPPE','119.60','119.60','0.00','0.00','R','Cheque',''),(24,'Acompte','Facture','F08080002',26,1217800800000,1217800800000,'P8100001','EFCS SARL','500.00','500.00','0.00','0.00','R','Cheque',''),(25,'Echeance','Facture','F08080002',26,1217800800000,1217800800000,'P8100001','EFCS SARL','613.72','613.72','0.00','0.00','R','Cheque',''),(26,'Echeance','Facture','F08080003',27,1219788000000,1219788000000,'C810001','AFFAIRES EN LIGNE','235.65','235.65','0.00','0.00','R','Carte bancaire',''),(27,'Acompte','Facture','F08080004',28,1219788000000,1219788000000,'C310001','CHARLY-HEBDDO','1000.00','1000.00','0.00','0.00','R','LCR',''),(28,'Echeance','Facture','F08080004',28,1220133600000,1220133600000,'C310001','CHARLY-HEBDDO','1012.81','1012.81','0.00','0.00','R','LCR',''),(29,'Echeance','Facture','F08090001',29,1221084000000,1221084000000,'','AFFAIRES EN LIGNE','466.44','466.44','0.00','0.00','R','LCR',''),(30,'Echeance','Facture','F08090002',30,1221084000000,1221084000000,'','Librairie Coulier','1310.82','1310.82','0.00','0.00','R','',''),(31,'Echeance','Facture','F08090004',31,1221666519799,1221666519799,'','PUEL PHILIPPE','1184.04','1184.04','0.00','0.00','R','Chèque',''),(32,'Echeance','Facture','F08090005',32,1222639200000,1222639200000,'','CLIC CLIC','27.69','27.69','0.00','0.00','R','Cheque',''),(33,'Acompte','Commande','1-1',11,1222639200000,1222639200000,'P8100000','PUEL PHILIPPE','200.00','50.00','150.00','0.00','C','',''),(34,'Echeance','Facture','F08100001',41,1222812000000,1222812000000,'C310000','Librairie Coulier','197.34','197.34','0.00','0.00','R','Cheque',''),(35,'Echeance','Facture','F08100002',42,1222812000000,1222812000000,'C310000','Librairie Coulier','197.34','197.34','0.00','0.00','R','Prelevement',''),(36,'Echeance','Facture','F08100003',43,1223244000000,1223244000000,'C310000','Librairie Coulier','135.15','135.15','0.00','0.00','R','LCR',''),(37,'Echeance','Facture','F08100004',44,1223244000000,1223244000000,'C310000','Librairie Coulier','394.68','394.68','0.00','0.00','R','Prelevement',''),(38,'Echeance','Facture','F08100005',45,1225407600000,1225407600000,'C310001','CHARLY-HEBDDO','12354.68','12354.68','0.00','0.00','R','LCR',''),(39,'Echeance','Facture','F08100006',46,1225407600000,1225407600000,'C310001','CHARLY-HEBDDO','239.20','239.20','0.00','0.00','R','LCR',''),(40,'Echeance','Facture','F08100007',47,1225407600000,1225407600000,'C310001','CHARLY-HEBDDO','124.74','124.74','0.00','0.00','R','LCR',''),(41,'Echeance','Facture','F08100008',48,1223848800000,1223848800000,'C810005','CLIC CLIC','40.94','40.94','0.00','0.00','R','Cheque',''),(42,'Echeance','Facture','F08100009',49,1223848800000,1223848800000,'C810005','CLIC CLIC','0.00','0.00','0.00','0.00','R','Cheque',''),(43,'Echeance','Facture','F08100010',50,1223848800000,1223848800000,'P8100000','PUEL PHILIPPE','-2.02','0.00','-2.02','0.00','R','Cheque',''),(44,'Echeance','Facture','F08100011',51,1225407600000,1225407600000,'C810004','A MAMES','1155.34','1155.34','0.00','0.00','R','LCR',''),(45,'Echeance','Facture','F08100012',52,1225407600000,1225407600000,'C810004','A MAMES','368.03','368.03','0.00','0.00','R','Prelevement',''),(46,'Echeance','Facture','F08100013',57,1225407600000,1225407600000,'C810003','MADY TIFF','633.88','633.88','0.00','0.00','R','Cheque',''),(47,'Echeance','Facture','F08100014',58,1223848800000,1223848800000,'P8100000','PUEL PHILIPPE','7690.11','7690.11','0.00','0.00','R','LCR',''),(48,'Echeance','Facture','F08100015',59,1223848800000,1223848800000,'C810005','CLIC CLIC','356.48','356.48','0.00','0.00','R','LCR',''),(49,'Echeance','Facture','F08100016',61,1223935200000,1223935200000,'C810005','CLIC CLIC','280.00','280.00','0.00','0.00','R','Cheque',''),(50,'Echeance','Facture','F08100017',62,1223935200000,1223935200000,'C310000','Librairie Coulier','210.00','210.00','0.00','0.00','R','Cheque',''),(51,'Echeance','Facture','F08100018',63,1225407600000,1225407600000,'C110000','M. DUCHARBON Noir','660.00','660.00','0.00','0.00','R','Cheque',''),(52,'Echeance','Facture','F08100019',64,1225407600000,1225407600000,'C810004','A MAMES','120.37','120.37','0.00','0.00','R','Carte bancaire',''),(53,'Echeance','Facture','F08100020',65,1224021600000,1224021600000,'C810002','BIOTERROIR','1035.00','1035.00','0.00','0.00','R','Cheque',''),(54,'Echeance','Facture','F08100021',66,1224021600000,1224021600000,'P8100000','PUEL PHILIPPE','350.00','350.00','0.00','0.00','R','Cheque',''),(55,'Echeance','Facture','F08100022',67,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','274.00','274.00','0.00','0.00','R','Cheque',''),(56,'Echeance','Facture','F08100023',68,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','530.00','530.00','0.00','0.00','R','Cheque',''),(57,'Echeance','Facture','F08100024',69,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','590.39','0.00','590.39','0.00','N','Cheque',''),(58,'Echeance','Facture','F08100025',70,1225407600000,1225407600000,'C310001','CHARLY-HEBDDO','915.00','0.00','915.00','0.00','N','LCR',''),(59,'Echeance','Facture','F08100026',71,1225407600000,1225407600000,'C810004','A MAMES','2166.00','269.96','1896.04','0.00','C','Cheque',''),(60,'Echeance','Facture','F08100027',72,1225407600000,1225407600000,'C810003','MADY TIFF','1610.00','0.00','1610.00','0.00','N','Cheque',''),(61,'Echeance','Facture','F08100028',74,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','5077.56','0.00','5077.56','0.00','N','LCR',''),(62,'Echeance','Facture','F08100029',75,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','1648.90','0.00','1648.90','0.00','N','Cheque',''),(63,'Echeance','Facture','F08100030',76,1224108000000,1224108000000,'C310000','Librairie Coulier','1019.53','1019.53','0.00','0.00','R','LCR',''),(64,'Echeance','Facture','F08100031',77,1224280800000,1224280800000,'C310000','Librairie Coulier','1904.39','0.00','1904.39','0.00','N','LCR',''),(65,'Echeance','Facture','F08100032',81,1224280800000,1224280800000,'C310000','Librairie Coulier','248.71','0.00','248.71','0.00','N','Cheque',''),(66,'Echeance','Facture','F08100033',82,1225407600000,1225407600000,'C450000','M. LAFLEUR Julie','9124.47','0.00','9124.47','0.00','N','LCR',''),(67,'Echeance','Facture','F08100034',83,1225407600000,1225407600000,'C450000','M. LAFLEUR Julie','8233.18','0.00','8233.18','0.00','N','LCR',''),(68,'Acompte','Facture','F08100035',87,1224453600000,1224453600000,'C310001','CHARLY-HEBDDO','150.00','150.00','0.00','0.00','R','Especes',''),(69,'Echeance','Facture','F08100035',87,1225407600000,1225407600000,'C310001','CHARLY-HEBDDO','160.96','0.00','160.96','0.00','N','Especes',''),(70,'Echeance','Facture','F08100036',88,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','1156.44','0.00','1156.44','0.00','N','Cheque',''),(71,'Echeance','Facture','F08100037',89,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','1749.94','0.00','1749.94','0.00','N','Cheque',''),(72,'Acompte','Facture','F08100038',90,1224540000000,1224540000000,'C810002','BIOTERROIR','1583.26','0.00','1583.26','0.00','N','Especes',''),(73,'Echeance','Facture','F08100038',90,1224540000000,1224540000000,'C810002','BIOTERROIR','3014.47','0.00','3014.47','0.00','N','Especes',''),(74,'Echeance','Facture','F08100039',91,1224540000000,1224540000000,'P8100000','PUEL PHILIPPE','4597.73','150.00','4447.73','0.00','C','Cheque',''),(75,'Echeance','Facture','F08100040',92,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','7724.80','0.00','7724.80','0.00','N','Cheque',''),(76,'Echeance','Facture','F08100041',93,1225407600000,1225407600000,'C310002','M. HYDRAVION Jules','93.18','0.00','93.18','0.00','N','Cheque',''),(77,'Echeance','Facture','F08100042',94,1225407600000,1225407600000,'C110000','M. DUCHARBON Noir','386.29','0.00','386.29','0.00','N','LCR',''),(78,'Echeance','Facture','F08100043',95,1225407600000,1225407600000,'C110000','M. DUCHARBON Noir','5731.88','0.00','5731.88','0.00','N','LCR',''),(79,'Echeance','Facture','non généré',96,1225407600000,1225407600000,'C310001','CHARLY-HEBDDO','1003.65','0.00','1003.65','0.00','N','Cheque',''),(80,'Echeance','Facture','F08100044',96,1225407600000,1225407600000,'C310001','CHARLY-HEBDDO','714.52','0.00','714.52','0.00','N','LCR',''),(81,'Echeance','Facture','F08100045',97,1225407600000,1225407600000,'C810004','A MAMES','352.75','0.00','352.75','0.00','N','Prelevement',''),(82,'Echeance','Facture','F08100046',98,1225407600000,1225407600000,'C810004','A MAMES','51.98','0.00','51.98','0.00','N','Prelevement',''),(83,'Echeance','Facture','F08100047',99,1225407600000,1225407600000,'C810004','A MAMES','3757.81','0.00','3757.81','0.00','N','Prelevement',''),(84,'Echeance','Facture','F08100048',100,1225407600000,1225407600000,'C810004','A MAMES','8.27','0.00','8.27','0.00','N','Prelevement',''),(85,'Echeance','Facture','F08100049',101,1225407600000,1225407600000,'C810004','A MAMES','34.21','0.00','34.21','0.00','N','Prelevement',''),(86,'Echeance','Facture','F08110001',102,1227999600000,1227999600000,'C110000','M. DUCHARBON Noir','150.00','0.00','150.00','0.00','N','Cheque',''),(87,'Echeance','Facture','F08110002',103,1227999600000,1227999600000,'C310002','M. HYDRAVION Jules','710.00','0.00','710.00','0.00','N','Cheque',''),(88,'Echeance','Facture','F08110003',104,1227999600000,1227999600000,'C450000','M. LAFLEUR Julie','3.92','0.00','3.92','0.00','N','Cheque',''),(89,'Echeance','Facture','F08110004',105,1225753200000,1225753200000,'P8100000','PUEL PHILIPPE','4419.10','0.00','4419.10','0.00','N','Cheque',''),(90,'Echeance','Facture','F08110005',106,1225753200000,1225753200000,'P8100001','EFCS SARL','554.59','0.00','554.59','0.00','N','Cheque',''),(92,'Echeance','Facture','F08110006',107,1227999600000,1227999600000,'C450000','M. LAFLEUR Julie','6.27','0.00','6.27','0.00','N','Cheque',''),(95,'Echeance','Facture','F08110007',109,1227999600000,1227999600000,'C450000','M. LAFLEUR Julie','74.00','0.00','74.00','0.00','N','Cheque',''),(96,'Echeance','Facture','F08110008',110,1227999600000,1227999600000,'C810006','Les OUBLIES DE NAVARRES','2.50','0.00','2.50','0.00','N','Cheque',''),(97,'Echeance','Facture','F08110009',111,1227999600000,1227999600000,'C810006','Les OUBLIES DE NAVARRES','5.00','0.00','5.00','0.00','N','Cheque',''),(98,'Echeance','Facture','F08110010',113,1226530800000,1226530800000,'P3100002','SA SNEF','31.33','0.00','31.33','0.00','N','Cheque',''),(99,'Echeance','Facture','F08110011',114,1226530800000,1226530800000,'P3100002','SA SNEF','31.33','0.00','31.33','0.00','N','Cheque',''),(100,'Echeance','Facture','F08110012',115,1226530800000,1226530800000,'P3100002','SA SNEF','7.30','0.00','7.30','0.00','N','Cheque',''),(101,'Echeance','Facture','F08110013',116,1226530800000,1226530800000,'P3100002','SA SNEF','168.24','0.00','168.24','0.00','N','LCR',''),(102,'Echeance','Facture','F08110014',117,1226530800000,1226530800000,'P3100002','SA SNEF','10.94','0.00','10.94','0.00','N','Cheque',''),(103,'Echeance','Facture','F08110015',118,1227999600000,1227999600000,'C310001','CHARLY-HEBDDO','1.46','0.00','1.46','0.00','N','Cheque',''),(104,'Echeance','Facture','F08110016',119,1227999600000,1227999600000,'C310001','CHARLY-HEBDDO','5.84','0.00','5.84','0.00','N','Cheque',''),(105,'Echeance','Facture','F08110017',120,1227999600000,1227999600000,'C310001','CHARLY-HEBDDO','103.48','0.00','103.48','0.00','N','Cheque',''),(106,'Echeance','Facture','F08110018',121,1227999600000,1227999600000,'C310001','CHARLY-HEBDDO','79.35','0.00','79.35','0.00','N','Cheque',''),(107,'Echeance','Facture','F08110019',122,1227999600000,1227999600000,'C310001','CHARLY-HEBDDO','13.21','0.00','13.21','0.00','N','LCR',''),(108,'Echeance','Facture','F08110020',123,1227999600000,1227999600000,'C810006','Les OUBLIES DE NAVARRES','42.88','0.00','42.88','0.00','N','Cheque',''),(109,'Echeance','Facture','F08110021',124,1227999600000,1227999600000,'C810006','Les OUBLIES DE NAVARRES','1336.20','0.00','1336.20','0.00','N','Cheque',''),(110,'Echeance','Facture','F08110022',125,1227999600000,1227999600000,'C810006','Les OUBLIES DE NAVARRES','22.59','0.00','22.59','0.00','N','Cheque',''),(111,'Echeance','Facture','F08110023',126,1227999600000,1227999600000,'C810003','MADY TIFF','59.68','0.00','59.68','0.00','N','Cheque',''),(112,'Echeance','Facture','F08110024',127,1227999600000,1227999600000,'C810003','MADY TIFF','21030.35','0.00','21030.35','0.00','N','Cheque',''),(113,'Echeance','Facture','F08110025',128,1227999600000,1227999600000,'C310001','CHARLY-HEBDDO','187.05','0.00','187.05','0.00','N','Cheque',''),(114,'Echeance','Facture','F08110026',129,1227999600000,1227999600000,'C310001','CHARLY-HEBDDO','174.23','0.00','174.23','0.00','N','Cheque',''),(115,'Echeance','Facture','F08120001',130,1228258800000,1228258800000,'C810005','CLIC CLIC','6578.00','0.00','6578.00','0.00','N','Cheque',''),(116,'Echeance','Facture','F08120002',131,1228258800000,1228258800000,'C310000','Librairie Coulier','6578.00','0.00','6578.00','0.00','N','Prelevement',''),(117,'Echeance','Facture','F08120003',132,1228258800000,1228258800000,'','M. HYDRAVION Jules','6578.00','0.00','6578.00','0.00','N','LCR',''),(118,'Echeance','Facture','F08120004',133,1230678000000,1230678000000,'C310001','CHARLY-HEBDDO','6578.00','0.00','6578.00','0.00','N','Cheque',''),(119,'Echeance','Facture','F08120005',134,1230678000000,1230678000000,'C810003','MADY TIFF','106.56','0.00','106.56','0.00','N','Cheque','');

--
-- Table structure for table `ECHEANCE_FOURNISSEUR`
--

CREATE TABLE `ECHEANCE_FOURNISSEUR` (
  `Echeance_Id` int(10) unsigned NOT NULL auto_increment,
  `Type` char(8) default 'Echeance',
  `Provenance` char(8) default 'Facture',
  `Numero` varchar(20) default '',
  `Document_Id` int(10) unsigned default '0',
  `Date_Echeance` bigint(20) unsigned NOT NULL,
  `Echeance_Initiale` bigint(20) unsigned NOT NULL,
  `Fournisseur_Id` varchar(10) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Montant_Du` decimal(14,2) default '0.00',
  `Montant_Regle` decimal(14,2) default '0.00',
  `Montant_Restant` decimal(14,2) default '0.00',
  `Regulariser` decimal(14,2) default '0.00',
  `Etat` char(1) default 'N',
  `Mode_Reglement` varchar(25) default NULL,
  `Commentaires` text,
  PRIMARY KEY  (`Echeance_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ECHEANCE_FOURNISSEUR`
--

INSERT INTO `ECHEANCE_FOURNISSEUR` VALUES (1,'Echeance','Facture','F000125',1,1212184800000,1212184800000,'F440000','DUMOULIN','23.92','23.92','0.00','0.00','R','Carte bancaire',''),(2,'Echeance','Facture','F08050012',2,1212184800000,1212184800000,'F440000','DUMOULIN','119.60','119.60','0.00','0.00','R','Carte bancaire',''),(3,'Echeance','Facture','FAC00125',3,1212184800000,1212184800000,'F440000','DUMOULIN','119.60','119.60','0.00','0.00','R','Carte bancaire',''),(4,'Echeance','Facture','FAC987456',4,1212184800000,1212184800000,'F440000','DUMOULIN','8108.88','8108.88','0.00','0.00','R','Cheque',''),(5,'Echeance','Facture','FAC789654',5,1212184800000,1212184800000,'F440000','DUMOULIN','526.24','526.24','0.00','0.00','R','Prelevement',''),(6,'Echeance','Facture','FAC6541230',6,1212184800000,1212184800000,'F440000','DUMOULIN','43118.94','43118.94','0.00','0.00','R','LCR','');

--
-- Table structure for table `ECHEANCE_REGLEMENT_CLIENT`
--

CREATE TABLE `ECHEANCE_REGLEMENT_CLIENT` (
  `Echeance_Reglement_Id` int(10) unsigned NOT NULL auto_increment,
  `Echeance_Id` int(10) unsigned NOT NULL default '0',
  `Reglement_Id` int(10) unsigned NOT NULL default '0',
  `Montant` decimal(14,2) default '0.00',
  `Date_Affectation` bigint(20) unsigned default '0',
  PRIMARY KEY  (`Echeance_Reglement_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ECHEANCE_REGLEMENT_CLIENT`
--

INSERT INTO `ECHEANCE_REGLEMENT_CLIENT` VALUES (1,1,1,'9610.15',1199720600900),(2,2,2,'2198.46',1199784253521),(3,3,3,'599.72',1199784286634),(4,5,4,'1578.72',1199973115604),(5,4,5,'1973.40',1199973142553),(6,6,6,'6972.68',1199973823462),(7,8,7,'23920.00',1200149164773),(8,10,8,'59800.00',1200149188351),(9,7,9,'32925.88',1200149209118),(10,9,10,'5980.00',1200149225580),(11,11,11,'2000.00',1200308555478),(12,12,12,'2805.42',1200308613774),(13,11,13,'1000.00',1200308883757),(14,13,14,'100.00',1200506961542),(15,14,15,'2990.00',1200507587861),(16,11,16,'1732.44',1200507653424),(17,16,17,'2243.33',1207042664089),(18,19,18,'5980.00',1211295420133),(19,27,19,'1000.00',1219847361909),(20,28,20,'500.00',1219847436947),(21,30,21,'1310.82',1221158120090),(22,59,22,'269.96',1224147698473),(23,13,23,'269.96',1224147764155),(24,15,24,'103.87',1224147794164),(25,32,24,'27.69',1224147794164),(26,15,25,'27.69',1224147823500),(27,17,26,'1016.60',1224147849295),(28,18,27,'4784.00',1224147872914),(29,21,28,'59800.00',1224147905054),(30,22,29,'239.20',1224147929424),(31,20,30,'2093.00',1224147957987),(32,23,31,'119.60',1224147996804),(33,24,32,'500.00',1224148013675),(34,25,33,'613.72',1224148034996),(35,26,34,'235.65',1224148074308),(36,28,35,'512.81',1224148098831),(37,29,36,'466.44',1224148120840),(38,31,37,'1184.04',1224148161933),(39,54,38,'200.00',1224148190513),(40,33,39,'50.00',1224148259203),(41,54,39,'150.00',1224148259203),(42,34,40,'197.34',1224148283170),(43,35,41,'197.34',1224148304087),(44,36,42,'135.15',1224148323651),(45,37,43,'394.68',1224148344994),(46,41,44,'40.94',1224148376787),(47,47,45,'7690.11',1224148402548),(48,48,46,'356.48',1224148432559),(49,49,47,'280.00',1224148452479),(50,50,48,'210.00',1224148495099),(51,53,49,'1035.00',1224148509346),(52,63,50,'1019.53',1224148530577),(53,38,51,'12354.68',1224148562144),(54,39,52,'239.20',1224148578592),(55,40,53,'124.74',1224148631103),(56,44,54,'1155.34',1224148662669),(57,45,55,'368.03',1224148691458),(58,46,56,'633.88',1224148715535),(59,51,57,'660.00',1224148729357),(60,52,58,'120.37',1224148757119),(61,55,59,'274.00',1224148771020),(62,56,60,'530.00',1224148785989),(63,68,61,'150.00',1224522194485),(64,74,62,'150.00',1224607866276);

--
-- Table structure for table `ECHEANCE_REGLEMENT_FOURNISSEUR`
--

CREATE TABLE `ECHEANCE_REGLEMENT_FOURNISSEUR` (
  `Echeance_Reglement_Id` int(10) unsigned NOT NULL auto_increment,
  `Echeance_Id` int(10) unsigned NOT NULL,
  `Reglement_Id` int(10) unsigned NOT NULL,
  `Montant` decimal(14,2) default NULL,
  PRIMARY KEY  (`Echeance_Reglement_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ECHEANCE_REGLEMENT_FOURNISSEUR`
--

INSERT INTO `ECHEANCE_REGLEMENT_FOURNISSEUR` VALUES (1,1,1,'23.92'),(2,2,2,'119.60'),(3,3,3,'119.60'),(4,4,4,'8108.88'),(5,5,5,'526.24'),(6,6,6,'1000.00'),(7,6,7,'1000.00'),(8,6,8,'1000.00'),(9,6,9,'40118.94');

--
-- Table structure for table `EXPORT_COLIS`
--

CREATE TABLE `EXPORT_COLIS` (
  `Export_Id` varchar(10) NOT NULL,
  `Description` varchar(100) default '',
  `Class` varchar(100) default '',
  PRIMARY KEY  (`Export_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `EXPORT_COLIS`
--

INSERT INTO `EXPORT_COLIS` VALUES ('LAPOSTE','La Poste','');

--
-- Table structure for table `FACTURE`
--

CREATE TABLE `FACTURE` (
  `Facture_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Facture` bigint(20) unsigned default NULL,
  `Echeance` bigint(20) unsigned default NULL,
  `Mode_Reg` varchar(25) default NULL,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` varchar(11) default '',
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Login_Resp` varchar(15) default NULL,
  `Nom_Resp` varchar(30) default NULL,
  `Prenom_Resp` varchar(20) default NULL,
  `Num_Inter` int(10) unsigned default '0',
  `Civ_Inter` tinyint(3) unsigned default NULL,
  `Nom_Inter` varchar(30) default NULL,
  `Prenom_Inter` varchar(20) default NULL,
  `Client_Id` varchar(10) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Adresse_Fact` varchar(80) default NULL,
  `Comp_Adresse_Fact` varchar(50) default NULL,
  `Adresse_3_Fact` varchar(50) default '',
  `CP_Fact` varchar(10) default NULL,
  `Ville_Fact` varchar(50) default NULL,
  `Pays_Fact` varchar(30) default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Acompte` decimal(14,2) unsigned default NULL,
  `Remise` decimal(9,6) unsigned default '0.000000',
  `Montant_Remise` decimal(9,2) unsigned default '0.00',
  `Escompte` decimal(6,3) unsigned default '0.000',
  `Frais_Port` decimal(10,2) unsigned default NULL,
  `Total_HT` decimal(14,2) default NULL,
  `Montant_TTC` decimal(14,2) default NULL,
  `Directe` tinyint(3) unsigned default '0',
  `Code_Tarif` tinyint(3) unsigned default '1',
  `Transferee` tinyint(3) unsigned default '0',
  `Type_Vente` char(1) default 'N',
  `Taux_TVA_Port` decimal(4,2) unsigned default NULL,
  `Envoyee_Au_Site` tinyint(3) unsigned default '0',
  `Com_Web_Id` int(10) unsigned default '0',
  `Edition_TTC` tinyint(3) unsigned default '0',
  `Eco_Taxe` decimal(10,2) default '0.00',
  PRIMARY KEY  (`Facture_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FACTURE`
--

INSERT INTO `FACTURE` VALUES (1,1199660400000,1199660400000,'Cheque',1,'F08010001','',0,'gfremery','','',0,1,'','','C810001','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1199720494006,1199720505089,'gfremery','gfremery','0.00','2.676763','221.00','0.000','0.00','8035.24','9610.15',1,1,1,'N','19.60',0,0,0,'0.00'),(2,1199746800000,1199746800000,'Cheque',2,'F08010002','',0,'gfremery','','',0,1,'','','C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1199783150396,1199783164868,'gfremery','gfremery','0.00','2.000000','0.00','0.000','0.00','1838.18','2198.46',1,1,1,'N','19.60',0,0,0,'0.00'),(3,1199746800000,1199746800000,'Prelevement',3,'F08010003','Commentaire de fin de devis',1,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1199784109610,1199784109610,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','501.44','599.72',1,1,1,'N','19.60',0,0,0,'0.00'),(4,1199833200000,1201734000000,'Cheque',4,'F08010004','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1199896625849,1199896625849,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','1650.00','1973.40',1,1,1,'N','19.60',0,0,0,'0.00'),(5,1199919600000,1199919600000,'Cheque',5,'F08010005','',0,'gfremery','','',3,2,'TRUCMUCHE','Joëlle','C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1199972997765,1199973009691,'jj31','jj31','0.00','0.000000','0.00','0.000','0.00','1320.00','1578.72',1,1,1,'N','19.60',0,0,0,'0.00'),(6,1199919600000,1199919600000,'Carte bancaire',6,'F08010006','',0,'jj31','URBAIN','Jean-Jacques',0,1,'OLTRA','Jean-Michel','C810001','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1199973753102,1199973753102,'jj31','jj31','0.00','0.000000','0.00','0.000','0.00','5830.00','6972.68',1,1,1,'N','19.60',0,0,0,'0.00'),(7,1200092400000,1201734000000,'Cheque',7,'F08010007','',0,'jj31','URBAIN','Jean-Jacques',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1200148863812,1200148863812,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','27530.00','32925.88',1,1,1,'N','19.60',0,0,0,'0.00'),(8,1200092400000,1200092400000,'Especes',8,'F08010008','',0,'jj31','','',0,1,'','','C810001','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1200148957757,1200148988465,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','20000.00','23920.00',1,1,1,'N','19.60',0,0,0,'0.00'),(9,1200092400000,1201734000000,'Prelevement',9,'F08010009','',0,'gfremery','','',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1200149039335,1200149052931,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5000.00','5980.00',1,1,1,'N','19.60',0,0,0,'0.00'),(10,1200092400000,1200092400000,'Prelevement',10,'F08010010','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1200149106668,1200149106668,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','50000.00','59800.00',1,1,1,'N','19.60',0,0,0,'0.00'),(11,1200265200000,1200265200000,'Cheque',11,'F08010011','Commentaires de fin de devis',1,'gfremery','','',0,1,'','','C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1200305747665,1200305857834,'VM','VM','0.00','1.247851','50.00','0.000','0.00','3956.89','4732.44',1,1,1,'N','19.60',0,0,0,'0.00'),(12,1200265200000,1200265200000,'Cheque',12,'F08010012','',0,'VM','','',0,1,'','','C810000','AEL','6, Ave Lucien Coudert','','','81100','CASTRES','France',1200306456409,1200306464054,'VM','VM','0.00','0.000000','0.00','0.000','0.00','2345.67','2805.42',1,1,1,'N','19.60',0,0,0,'0.00'),(13,0,1200265200000,'Cheque',0,'non généré','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1200307044767,1200307056217,'VM','VM','0.00','0.000000','0.00','0.000','0.00','5830.00','6972.68',0,1,0,'N','19.60',0,0,0,'0.00'),(14,1200265200000,1201734000000,'Prelevement',13,'F08010013','',0,'VM','','',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1200329299207,1200329314616,'VM','VM','0.00','0.000000','0.00','0.000','0.00','419.33','501.52',1,1,1,'N','19.60',0,0,0,'0.00'),(15,1200438000000,1200438000000,'Cheque',15,'F08010015','',0,'VM','','',0,1,'','','C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1200506727467,1200507101608,'VM','VM','0.00','0.000000','0.00','0.000','0.00','2500.00','2990.00',1,1,1,'N','19.60',0,0,0,'0.00'),(16,1205708400000,1205708400000,'Chèque',1,'F08030001','',0,NULL,NULL,NULL,0,0,'','','','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1205743972785,1205743978740,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','110.00','131.56',0,1,1,'N','19.60',0,5,0,'0.00'),(17,1207042524725,1207000800000,'Especes',0,'non généré','',0,NULL,NULL,NULL,0,0,'','','','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1207042524725,1207042553305,'gfremery','gfremery','0.00','0.181209','2.36','0.000','0.00','1300.00','1554.80',0,1,0,'N','19.60',0,2,0,'0.00'),(18,1206914400000,1207000800000,'Prelevement',2,'F08030002','',0,NULL,NULL,NULL,0,0,'','','','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1207042629649,1207042656070,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','1875.69','2243.33',0,1,0,'N','19.60',0,1,0,'0.00'),(19,1206914400000,1207042795032,'Chèque',3,'F08030003','',NULL,NULL,NULL,NULL,0,0,'','','','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1207042795032,1207042795032,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','1302.36','1557.62',0,1,0,'N','19.60',0,3,0,'0.00'),(20,1206914400000,1207046722025,'Chèque',4,'F08030004','',NULL,NULL,NULL,NULL,0,0,'','','','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1207046722025,1207046722025,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5000.00','5980.00',0,1,1,'N','19.60',0,6,0,'0.00'),(21,1211234400000,1212184800000,'Cheque',1,'F08050001','',0,'gfremery','','',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1211295282309,1211295285380,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5000.00','5980.00',1,1,1,'N','19.60',0,0,0,'0.00'),(22,1211752800000,1212184800000,'Cheque',2,'F08050002','',0,'demo','','',5,1,'DUCHARBON','Noir','C110000','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',1211784356332,1211784377331,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','1750.00','2093.00',1,1,1,'N','19.60',0,0,0,'0.00'),(23,1211752800000,1211752800000,'Cheque',3,'F08050003','',0,'gfremery','','',0,1,'','','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1211785105190,1211785117951,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','50000.00','59800.00',1,1,1,'N','19.60',0,0,0,'0.00'),(24,1211752800000,1211752800000,'Carte bancaire',4,'F08050004','',0,'jj31','','',0,1,'','','C810001','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1211824896883,1211824899400,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','200.00','239.20',1,1,0,'N','19.60',0,0,0,'0.00'),(25,1217628000000,1217628000000,'Cheque',1,'F08080001','',0,'gfremery','FREMERY','Gérald',0,1,'','','P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1217688105558,1217688105558,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','100.00','119.60',1,1,1,'N','19.60',0,0,0,'0.00'),(26,1217800800000,1217800800000,'Cheque',2,'F08080002','',0,'gfremery','FREMERY','Gérald',0,1,'','','P8100001','EFCS SARL','chemin des Mésanges','','','81600','GAILLAC','France',1217868371611,1217868371611,'gfremery','gfremery','500.00','12.000000','0.00','3.000','80.00','960.00','1148.16',1,1,1,'N','19.60',0,0,0,'0.00'),(27,1219788000000,1219788000000,'Carte bancaire',3,'F08080003','',0,'jj31','','',0,1,'','','C810001','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1219829818129,1219829826565,'gfremery','gfremery','0.00','0.000000','0.00','0.000','100.00','210.00','235.65',1,1,1,'N','19.60',0,0,0,'0.00'),(28,1219788000000,1220133600000,'LCR',4,'F08080004','',0,'gfremery','','',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1219847067230,1219847144637,'gfremery','gfremery','1000.00','16.835017','250.00','3.000','500.00','1735.00','2075.06',1,1,1,'N','19.60',0,0,0,'0.00'),(29,1221084000000,1221084000000,'LCR',1,'F08090001','',0,'jj31','','',0,0,'','','','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France',1221155989667,1221155996069,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','390.00','466.44',0,1,1,'N','19.60',0,10,0,'0.00'),(30,1221084000000,1221084000000,'',2,'F08090002','',0,'','','',0,0,'','','','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1221157568135,1221157588625,'gfremery','gfremery','0.00','0.000000','0.00','0.000','256.00','1096.00','1310.82',0,1,1,'N','19.60',0,13,0,'0.00'),(31,1221602400000,1221666519799,'Chèque',4,'F08090004','',NULL,'gfremery','FREMERY','Gérald',0,0,'','','','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1221666519799,1221666519799,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','990.00','1184.04',0,1,1,'N','19.60',0,17,0,'0.00'),(32,1222639200000,1222639200000,'LCR',5,'F08090005','',0,'VM','MARIE','Virginie',0,0,'','','','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1222694540212,1222696055613,'gfremery','gfremery','50.00','0.000000','0.00','0.000','0.00','64.96','77.69',0,1,1,'N','19.60',0,19,0,'0.00'),(41,1222812000000,1222812000000,'Cheque',1,'F08100001','',0,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1222854526826,1222854549136,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','165.00','197.34',0,1,1,'N','19.60',0,0,0,'0.00'),(42,1222812000000,1222812000000,'Prelevement',2,'F08100002','',0,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1222854727156,1222854730263,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','165.00','197.34',0,1,1,'N','19.60',0,0,0,'0.00'),(43,1223244000000,1223244000000,'LCR',3,'F08100003','',0,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1223285475916,1223285540627,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','113.00','135.15',0,1,1,'N','19.60',0,0,0,'0.00'),(44,1223244000000,1223244000000,'Prelevement',4,'F08100004','il y a ici regroupement de plusieurs BL',1,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1223297350539,1223297393553,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','330.00','394.68',0,1,1,'N','19.60',0,0,0,'0.00'),(45,1223848800000,1225407600000,'LCR',5,'F08100005','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1223892069769,1223892096869,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','10330.00','12354.68',0,1,1,'N','19.60',0,0,0,'0.00'),(46,1223848800000,1225407600000,'LCR',6,'F08100006','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1223892172588,1223892187062,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','200.00','239.20',0,1,1,'N','19.60',0,0,0,'0.00'),(47,1223848800000,1225407600000,'LCR',7,'F08100007','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1223892214605,1223892219170,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','104.30','124.74',0,1,1,'N','19.60',0,0,0,'0.00'),(48,1223848800000,1223848800000,'Cheque',8,'F08100008','',0,'VM','MARIE','Virginie',0,1,'','','C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1223892274257,1223892274257,'gfremery','gfremery','0.00','0.000000','0.00','0.000','15.00','34.23','40.94',0,1,1,'N','19.60',0,0,0,'0.00'),(49,1223848800000,1223848800000,'Cheque',9,'F08100009','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1223892274681,1223892274681,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','0.00','0.00',0,1,0,'N','19.60',0,0,0,'0.00'),(50,1223848800000,1223848800000,'Cheque',10,'F08100010','Ceci est une nouvelle affaire',1,'gfremery','FREMERY','Gérald',0,1,'PUEL','Philippe','P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1223892274827,1223892274827,'gfremery','gfremery','67.36','0.000000','0.00','3.000','56.32','56.32','67.36',0,1,1,'N','19.60',0,0,0,'0.00'),(51,1223848800000,1225407600000,'LCR',11,'F08100011','affaire mode de facturation par regroupement',1,'VM','MARIE','Virginie',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1223892679924,1223892727496,'gfremery','gfremery','0.00','0.000000','0.00','0.000','156.00','966.00','1155.34',0,1,1,'N','19.60',0,0,0,'0.00'),(52,1223848800000,1225407600000,'Prelevement',12,'F08100012','affaire mode de facturation par regroupement',1,'VM','MARIE','Virginie',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1223892779837,1223892779837,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','307.72','368.03',0,1,1,'N','19.60',0,0,0,'0.00'),(57,1223848800000,1225407600000,'Cheque',13,'F08100013','re-test par regroupement',1,'IM','','',0,1,'','','C810003','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',1223893131538,1223893138136,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','530.00','633.88',0,1,1,'N','19.60',0,0,0,'0.00'),(58,1223848800000,1223848800000,'LCR',14,'F08100014','',0,'gfremery','FREMERY','Gérald',0,1,'PUEL','Philippe','P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1223902012012,1223902036121,'gfremery','gfremery','0.00','0.465487','30.00','0.000','15.00','6429.86','7690.11',0,1,1,'N','19.60',0,0,0,'0.00'),(59,1223848800000,1223848800000,'LCR',15,'F08100015','',0,'VM','MARIE','Virginie',0,1,'','','C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1223903861521,1223903870284,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','298.06','356.48',0,1,1,'N','19.60',0,0,0,'0.00'),(61,1223935200000,1223935200000,'Cheque',16,'F08100016','',0,'VM','MARIE','Virginie',0,1,'','','C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1223996041047,1223996041048,'gfremery','gfremery','0.00','1.234568','3.50','0.000','0.00','234.11','280.00',1,1,1,'N','19.60',0,0,1,'0.00'),(62,1223935200000,1223935200000,'Cheque',17,'F08100017','',0,'gfremery','','',0,1,'','','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1224001750764,1224001798010,'gfremery','gfremery','0.00','3.819731','8.34','0.000','0.00','175.59','210.00',1,1,1,'N','19.60',0,0,1,'0.00'),(63,1223935200000,1225407600000,'Cheque',18,'F08100018','',0,'demo','DEMO','Omed',0,1,'DUCHARBON','Noir','C110000','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',1224002245514,1224002245514,'gfremery','gfremery','0.00','0.145243','0.96','0.000','0.00','565.67','660.00',1,1,1,'N','19.60',0,0,1,'0.00'),(64,1223935200000,1225407600000,'Carte bancaire',19,'F08100019','',0,'VM','','',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1224002318390,1224002378388,'gfremery','gfremery','0.00','1.505605','1.84','0.000','0.00','108.83','120.37',1,1,1,'N','19.60',0,0,1,'0.00'),(65,1224021600000,1224021600000,'Cheque',20,'F08100020','',0,'jj31','','',0,2,'TRUCMUCHE','Joëlle','C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1224057772367,1224057772367,'gfremery','gfremery','0.00','0.093632','0.97','0.000','0.00','879.22','1035.00',1,1,1,'N','19.60',0,0,1,'0.00'),(66,1224021600000,1224021600000,'Cheque',21,'F08100021','',0,'gfremery','','',0,1,'','','P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1224057931635,1224058051860,'gfremery','gfremery','0.00','0.386560','1.30','0.000','15.00','300.92','350.00',1,1,1,'N','19.60',0,0,1,'0.00'),(67,1224021600000,1225407600000,'Cheque',22,'F08100022','Affaire avec CDE en TTC pour vérifier les calculs lors du transfert en Cpta',1,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1224058595186,1224058595187,'gfremery','gfremery','0.00','0.306569','0.84','0.000','0.00','236.95','274.00',0,1,1,'N','19.60',0,0,1,'0.00'),(68,1224021600000,1225407600000,'Cheque',23,'F08100023','Affaire avec CDE en TTC pour vérifier les calculs lors du transfert en Cpta',1,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1224058677157,1224058682379,'gfremery','gfremery','0.00','0.458268','2.44','0.000','0.00','451.42','530.00',0,1,1,'N','19.60',0,0,1,'0.00'),(69,1224021600000,1225407600000,'Cheque',24,'F08100024','Affaire avec CDE en TTC pour vérifier les calculs lors du transfert en Cpta',1,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1224058699743,1224058703336,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','507.49','590.39',0,1,1,'N','19.60',0,0,1,'0.00'),(70,1224021600000,1225407600000,'LCR',25,'F08100025','',0,'gfremery','','',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1224072108123,1224072208766,'gfremery','gfremery','0.00','0.169112','1.55','0.000','0.00','779.34','915.00',1,1,1,'N','19.60',0,0,1,'0.00'),(71,1224021600000,1225407600000,'Cheque',26,'F08100026','',0,'VM','','',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1224072519162,1224072694547,'gfremery','gfremery','0.00','0.492883','9.46','0.000','256.14','1821.60','2166.00',1,1,1,'N','19.60',0,0,1,'0.00'),(72,1224021600000,1225407600000,'Cheque',27,'F08100027','',0,'IM','','',0,1,'','','C810003','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',1224074316154,1224074485637,'gfremery','gfremery','0.00','0.239133','3.26','0.000','250.00','1363.25','1610.00',1,1,1,'N','19.60',0,0,1,'0.00'),(73,0,1224021600000,'Cheque',0,'non généré','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1224078036589,1224078036589,'gfremery','gfremery','0.00','0.000000','0.00','0.000','15.00','15.00','17.94',0,1,0,'N','19.60',0,0,0,'0.00'),(74,1224021600000,1225407600000,'LCR',28,'F08100028','Affaires par regroupement',1,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1224078940374,1224078953597,'gfremery','gfremery','0.00','0.008774','0.36','0.000','150.00','4252.45','5077.56',0,1,1,'N','19.60',0,0,0,'0.00'),(75,1224021600000,1225407600000,'Cheque',29,'F08100029','Affaires par regroupement',1,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1224080302560,1224080312139,'gfremery','gfremery','0.00','0.034804','0.48','0.000','0.00','1378.68','1648.90',0,1,1,'N','19.60',0,0,0,'0.00'),(76,1224108000000,1224108000000,'LCR',30,'F08100030','',0,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1224144400622,1224144411445,'gfremery','gfremery','0.00','0.127123','0.89','0.000','156.00','855.22','1019.53',0,1,1,'N','19.60',0,0,0,'0.00'),(77,1224280800000,1224280800000,'LCR',31,'F08100031','',0,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1224338219993,1224338274168,'gfremery','gfremery','0.00','0.018015','0.26','0.000','150.00','1593.00','1904.39',0,1,1,'N','19.60',0,0,0,'0.00'),(81,1224280800000,1224280800000,'Cheque',32,'F08100032','',0,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1224338414774,1224338431334,'gfremery','gfremery','0.00','12.000000','0.00','0.000','123.00','208.57','248.71',0,1,1,'N','19.60',0,0,0,'0.00'),(82,1224280800000,1225407600000,'LCR',33,'F08100033','',1,'gfremery','FREMERY','Gérald',0,1,'','','C450000','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',1224340071673,1224340083082,'gfremery','gfremery','0.00','0.311524','23.66','0.000','65.49','7636.74','9124.47',0,1,1,'N','19.60',0,0,0,'0.00'),(83,1224280800000,1225407600000,'LCR',34,'F08100034','',1,'gfremery','FREMERY','Gérald',0,1,'','','C450000','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',1224340245439,1224340252555,'gfremery','gfremery','0.00','0.411055','28.73','0.000','12.34','6972.95','8233.18',0,1,1,'N','19.60',0,0,0,'0.00'),(87,1224453600000,1225407600000,'Especes',35,'F08100035','',0,'gfremery','','',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1224521850811,1224521875178,'gfremery','gfremery','150.00','0.740628','1.94','0.000','0.00','260.00','310.96',1,1,1,'N','19.60',0,0,0,'0.00'),(88,1224540000000,1225407600000,'Cheque',36,'F08100036','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1224591245835,1224591245835,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','972.55','1156.44',0,1,1,'N','19.60',0,0,0,'0.00'),(89,1224540000000,1225407600000,'Cheque',37,'F08100037','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1224591297775,1224591297775,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','1463.16','1749.94',0,1,1,'N','19.60',0,0,0,'0.00'),(90,1224540000000,1224540000000,'Especes',38,'F08100038','ceci est un commentaire de bas de devis',0,'gfremery','','',0,1,'','','C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1224604356841,1224604602539,'gfremery','gfremery','1583.26','0.000000','0.00','0.000','0.00','3844.26','4597.73',1,1,1,'N','19.60',0,0,0,'0.00'),(91,1224540000000,1224540000000,'Cheque',39,'F08100039','ceci est un commentaire de bas de devis',1,'gfremery','','',0,1,'','','P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1224604542128,1224604579728,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','3844.26','4597.73',1,1,1,'N','19.60',0,0,0,'0.00'),(92,1224972000000,1225407600000,'Cheque',40,'F08100040','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1225029027060,1225029036596,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','6458.86','7724.80',0,1,1,'N','19.60',0,0,0,'0.00'),(93,1224972000000,1225407600000,'Cheque',41,'F08100041','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1225029075445,1225029075445,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','88.32','93.18',0,1,1,'N','19.60',0,0,0,'0.00'),(94,1224972000000,1225407600000,'LCR',42,'F08100042','',0,'demo','DEMO','Omed',0,1,'DUCHARBON','Noir','C110000','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',1225029310354,1225029326601,'gfremery','gfremery','0.00','4.002363','13.55','0.000','0.00','325.00','386.29',0,1,1,'N','19.60',0,0,0,'0.00'),(95,1224972000000,1225407600000,'LCR',43,'F08100043','',0,'demo','DEMO','Omed',0,1,'DUCHARBON','Noir','C110000','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',1225029349357,1225029361625,'gfremery','gfremery','0.00','0.000000','0.00','3.000','1500.00','4940.76','5909.15',0,1,1,'N','19.60',0,0,0,'0.00'),(96,1225407600000,1225407600000,'LCR',44,'F08100044','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1225439358520,1225439390228,'gfremery','gfremery','523.00','0.000000','0.00','5.000','250.00','1104.41','1302.65',0,1,1,'N','19.60',0,0,0,'0.00'),(97,1225407600000,1225407600000,'Prelevement',45,'F08100045','',0,'VM','MARIE','Virginie',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1225439854911,1225439854911,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','294.94','352.75',0,1,1,'N','19.60',0,0,0,'0.00'),(98,1225407600000,1225407600000,'Prelevement',46,'F08100046','',0,'VM','MARIE','Virginie',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1225439854911,1225439854911,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','43.92','51.98',0,1,1,'N','19.60',0,0,0,'0.00'),(99,1225407600000,1225407600000,'Prelevement',47,'F08100047','',0,'VM','MARIE','Virginie',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1225439854911,1225439854911,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','3141.98','3757.81',0,1,1,'N','19.60',0,0,0,'0.00'),(100,1225407600000,1225407600000,'Prelevement',48,'F08100048','',0,'VM','MARIE','Virginie',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1225439854911,1225439854911,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','7.84','8.27',0,1,1,'N','19.60',0,0,0,'0.00'),(101,1225407600000,1225407600000,'Prelevement',49,'F08100049','',0,'VM','MARIE','Virginie',0,1,'','','C810004','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE',1225439854911,1225439854911,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','28.60','34.21',0,1,1,'N','19.60',0,0,0,'0.00'),(102,1225753200000,1227999600000,'Cheque',1,'F08110001','',0,'demo','DEMO','Omed',0,1,'DUCHARBON','Noir','C110000','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',1225803675402,1225803675402,'gfremery','gfremery','0.00','6.936027','9.27','0.000','25.62','128.61','150.00',1,1,1,'N','19.60',0,0,1,'0.00'),(103,1225753200000,1227999600000,'Cheque',2,'F08110002','',0,'gfremery','','',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1225803743424,1225803837303,'gfremery','gfremery','0.00','1.314871','9.23','0.000','17.26','597.61','710.00',1,1,1,'N','19.60',0,0,1,'0.00'),(104,1225753200000,1227999600000,'Cheque',3,'F08110003','',0,'gfremery','','',0,1,'','','C450000','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',1225804124252,1225804126932,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','3.72','3.92',1,1,1,'N','19.60',0,0,0,'0.00'),(105,1225753200000,1225753200000,'Cheque',4,'F08110004','',0,'gfremery','','',0,1,'','','P8100000','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France',1225804209539,1225804298443,'gfremery','gfremery','0.00','3.000000','0.00','0.000','0.00','3698.03','4419.10',1,1,1,'N','19.60',0,0,1,'0.00'),(106,1225753200000,1225753200000,'Cheque',5,'F08110005','',0,'gfremery','','',8,1,'BRISSET','Eric','P8100001','EFCS SARL','chemin des Mésanges','','','81600','GAILLAC','France',1225804372954,1225804479713,'gfremery','gfremery','0.00','6.890000','0.00','0.000','31.62','467.11','554.59',1,1,1,'N','19.60',0,0,1,'0.00'),(107,1225839600000,1227999600000,'Cheque',6,'F08110006','',0,'gfremery','FREMERY','Gérald',0,1,'','','C450000','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',1225870324519,1225870324519,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5.94','6.27',0,1,1,'N','19.60',0,0,0,'0.00'),(109,1225839600000,1227999600000,'Cheque',7,'F08110007','',0,'gfremery','FREMERY','Gérald',0,1,'','','C450000','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France',1225871951776,1225871959617,'gfremery','gfremery','0.00','1.095964','0.82','0.000','0.00','61.87','74.00',0,1,1,'N','19.60',0,0,1,'0.00'),(110,1226530800000,1227999600000,'Cheque',8,'F08110008','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810006','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',1226569972194,1226569975271,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','2.09','2.50',0,1,1,'N','19.60',0,0,0,'0.00'),(111,1226530800000,1227999600000,'Cheque',9,'F08110009','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810006','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',1226570934304,1226570937474,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','4.18','5.00',0,1,1,'N','19.60',0,0,0,'0.00'),(112,0,1227999600000,'Cheque',0,'non généré','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310002','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1226594653953,1226594653953,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','0.00','0.00',0,1,0,'N','0.00',0,0,0,'0.00'),(113,1226530800000,1226530800000,'Cheque',10,'F08110010','',0,'gfremery','FREMERY','Gérald',0,1,'DREAU','JEAN','P3100002','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France',1226594780172,1226594780172,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','29.70','31.33',0,1,1,'N','0.00',0,0,0,'0.00'),(114,1226530800000,1226530800000,'Cheque',11,'F08110011','',0,'gfremery','FREMERY','Gérald',0,1,'DREAU','JEAN','P3100002','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France',1226594800316,1226594800316,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','29.70','31.33',0,1,1,'N','0.00',0,0,0,'0.00'),(115,1226530800000,1226530800000,'Cheque',12,'F08110012','',0,'gfremery','FREMERY','Gérald',0,1,'DREAU','JEAN','P3100002','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France',1226594986128,1226594987468,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','6.10','7.30',0,1,1,'N','0.00',0,0,0,'0.00'),(116,1226530800000,1226530800000,'LCR',13,'F08110013','',0,'gfremery','FREMERY','Gérald',0,1,'DREAU','JEAN','P3100002','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France',1226595007906,1226595019987,'gfremery','gfremery','0.00','0.000000','0.00','0.000','150.00','165.25','168.24',0,1,1,'N','0.00',0,0,0,'0.00'),(117,1226530800000,1226530800000,'Cheque',14,'F08110014','',0,'gfremery','FREMERY','Gérald',0,1,'DREAU','JEAN','P3100002','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France',1226595055170,1226595055170,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','9.15','10.94',0,1,1,'N','0.00',0,0,0,'0.00'),(118,1226530800000,1227999600000,'Cheque',15,'F08110015','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1226597717008,1226597719119,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','1.22','1.46',0,1,1,'N','0.00',0,0,0,'0.00'),(119,1226530800000,1227999600000,'Cheque',16,'F08110016','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1226597737950,1226597737950,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','4.88','5.84',0,1,1,'N','0.00',0,0,0,'0.00'),(120,1226530800000,1227999600000,'Cheque',17,'F08110017','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1226597920129,1226597935014,'gfremery','gfremery','0.00','6.433600','5.30','3.000','25.36','102.44','106.68',0,1,1,'N','0.00',0,0,0,'0.00'),(121,1226530800000,1227999600000,'Cheque',18,'F08110018','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1226597962781,1226597981898,'gfremery','gfremery','0.00','11.276596','5.30','0.000','35.36','77.06','79.35',0,1,1,'N','0.00',0,0,0,'0.00'),(122,1226530800000,1227999600000,'LCR',19,'F08110019','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1226598007516,1226598018992,'gfremery','gfremery','0.00','29.741863','5.30','0.000','0.00','12.52','13.21',0,1,1,'N','0.00',0,0,0,'0.00'),(123,1226530800000,1227999600000,'Cheque',20,'F08110020','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810006','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',1226598288890,1226598288890,'gfremery','gfremery','0.00','1.895492','0.74','1.500','15.00','39.31','43.53',0,1,1,'N','0.00',0,0,0,'0.00'),(124,1226530800000,1227999600000,'Cheque',21,'F08110021','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810006','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',1226598312516,1226598312516,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','1117.22','1336.20',0,1,1,'N','0.00',0,0,0,'0.00'),(125,1226530800000,1227999600000,'Cheque',22,'F08110022','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810006','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France',1226598339452,1226598354147,'gfremery','gfremery','0.00','0.000000','0.00','0.000','15.29','21.39','22.59',0,1,1,'N','0.00',0,0,0,'0.00'),(126,1226530800000,1227999600000,'Cheque',23,'F08110023','',0,'IM','','',0,1,'','','C810003','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',1226598614924,1226598614924,'gfremery','gfremery','0.00','0.000000','0.00','0.000','18.32','57.52','59.68',0,1,1,'N','0.00',0,0,0,'0.00'),(127,1226530800000,1227999600000,'Cheque',24,'F08110024','',0,'IM','','',0,1,'','','C810003','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',1226598639348,1226598651591,'gfremery','gfremery','0.00','0.000000','0.00','0.000','256.31','17625.91','21030.35',0,1,1,'N','0.00',0,0,0,'0.00'),(128,1226617200000,1227999600000,'Cheque',25,'F08110025','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1226682239597,1226682239597,'gfremery','gfremery','0.00','0.000000','0.00','3.000','156.36','186.86','192.84',0,1,1,'N','0.00',0,0,0,'0.00'),(129,1226617200000,1227999600000,'Cheque',26,'F08110026','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1226682323808,1226682323808,'gfremery','gfremery','0.00','0.598875','0.99','0.000','124.30','166.05','174.23',0,1,1,'N','0.00',0,0,0,'0.00'),(130,1228258800000,1228258800000,'Cheque',1,'F08120001','',0,'VM','','',0,1,'','','C810005','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE',1228326091641,1228326094669,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5500.00','6578.00',1,1,0,'N','19.60',0,0,0,'0.00'),(131,1228258800000,1228258800000,'Prelevement',2,'F08120002','',0,'gfremery','FREMERY','Gérald',0,1,'Coulier','Joseph','C310000','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France',1228326427260,1228326427261,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5500.00','6578.00',1,1,0,'N','19.60',0,0,0,'0.00'),(132,1228258800000,1228258800000,'LCR',3,'F08120003','',0,'gfremery','FREMERY','Gérald',0,0,'','','','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France',1228326710910,1228326755347,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5500.00','6578.00',0,1,0,'N','19.60',0,20,0,'0.00'),(133,1228258800000,1230678000000,'Cheque',4,'F08120004','',0,'gfremery','FREMERY','Gérald',0,1,'','','C310001','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','',1228326938952,1228326938953,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','5500.00','6578.00',0,1,0,'N','0.00',0,0,0,'0.00'),(134,1228345200000,1230678000000,'Cheque',5,'F08120005','',0,'gfremery','FREMERY','Gérald',0,1,'','','C810003','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France',1228382382389,1228382382389,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','89.10','106.56',0,1,0,'N','0.00',0,0,0,'0.00'),(137,0,1230678000000,'Cheque',0,'non généré','',0,'gfremery','FREMERY','Gérald',0,1,'DUCHARBON','Noir','C110000','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France',1228386968515,1228386968515,'gfremery','gfremery','0.00','0.000000','0.00','0.000','0.00','9.28','11.10',0,1,0,'N','0.00',0,0,0,'0.00');

--
-- Table structure for table `FACTURE_FOURNISSEUR`
--

CREATE TABLE `FACTURE_FOURNISSEUR` (
  `Facture_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Facture` bigint(20) unsigned default NULL,
  `Echeance` bigint(20) unsigned default NULL,
  `Mode_Reg` varchar(25) default NULL,
  `Numero` int(10) unsigned default NULL,
  `Num_Entier` varchar(20) default '',
  `Commentaires` text,
  `Imp_Com` tinyint(3) unsigned default NULL,
  `Login_Resp` varchar(15) default NULL,
  `Nom_Resp` varchar(30) default NULL,
  `Prenom_Resp` varchar(20) default NULL,
  `Num_Inter` int(10) unsigned default '0',
  `Civ_Inter` tinyint(3) unsigned default NULL,
  `Nom_Inter` varchar(30) default NULL,
  `Prenom_Inter` varchar(20) default NULL,
  `Fournisseur_Id` varchar(10) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Adresse_Fact` varchar(80) default NULL,
  `Comp_Adresse_Fact` varchar(50) default NULL,
  `Adresse_3_Fact` varchar(50) default '',
  `CP_Fact` varchar(10) default NULL,
  `Ville_Fact` varchar(50) default NULL,
  `Pays_Fact` varchar(30) default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Acompte` decimal(14,2) unsigned default NULL,
  `Remise` decimal(5,2) unsigned default NULL,
  `Escompte` decimal(5,2) unsigned default NULL,
  `Frais_Port` decimal(10,2) unsigned default NULL,
  `Total_HT` decimal(14,2) default NULL,
  `Montant_TTC` decimal(14,2) default NULL,
  `Transferee` tinyint(3) unsigned default '0',
  `Taux_TVA_Port` decimal(4,2) unsigned default NULL,
  `Type_Achat` char(1) default 'N',
  PRIMARY KEY  (`Facture_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FACTURE_FOURNISSEUR`
--

INSERT INTO `FACTURE_FOURNISSEUR` VALUES (1,1210888800000,1212184800000,'Carte bancaire',1,'F000125','',0,'gfremery','','',0,1,'','','F440000','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','France',1210863651695,1210863661576,'gfremery','gfremery','0.00','0.00','0.00','0.00','20.00','23.92',1,'19.60','N'),(2,1211148000000,1212184800000,'Carte bancaire',1,'F08050012','',0,'gfremery','','',0,1,'','','F440000','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','',1211192249357,1211192265595,'gfremery','gfremery','0.00','0.00','0.00','0.00','100.00','119.60',1,'19.60','N'),(3,1211148000000,1212184800000,'Carte bancaire',1,'FAC00125','',0,'gfremery','','',0,1,'','','F440000','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','',1211272854049,1211272874464,'gfremery','gfremery','0.00','0.00','0.00','0.00','100.00','119.60',1,'19.60','N'),(4,1210802400000,1212184800000,'Cheque',1,'FAC987456','',0,'gfremery','','',0,1,'','','F440000','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','',1211273530843,1211273564274,'gfremery','gfremery','0.00','0.00','0.00','0.00','6780.00','8108.88',1,'19.60','N'),(5,1210197600000,1212184800000,'Prelevement',1,'FAC789654','',0,'gfremery','','',0,1,'','','F440000','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','',1211274125779,1211274173274,'gfremery','gfremery','0.00','0.00','0.00','0.00','440.00','526.24',1,'19.60','N'),(6,1207000800000,1212184800000,'LCR',1,'FAC6541230','',0,'gfremery','','',0,1,'','','F440000','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','',1211274398579,1224061389988,'gfremery','gfremery','0.00','10.00','0.00','231.00','38319.00','43118.94',1,'19.60','N');

--
-- Table structure for table `FAMILLE_ARTICLE`
--

CREATE TABLE `FAMILLE_ARTICLE` (
  `Famille` varchar(40) NOT NULL,
  `Compte_Achat` varchar(8) default '',
  `Compte_Vente` varchar(8) default '',
  `Image` varchar(100) default '',
  `Compte_Vente_UE` varchar(8) default '',
  `Compte_Vente_I` varchar(8) default '',
  `Compte_Achat_UE` varchar(8) default '',
  `Compte_Achat_I` varchar(8) default '',
  PRIMARY KEY  (`Famille`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FAMILLE_ARTICLE`
--

INSERT INTO `FAMILLE_ARTICLE` VALUES ('Charcuterie','','','','','','',''),('Confiture','','','','','','',''),('Conserve','','','','','','',''),('Emballage','','','','','','',''),('FORETS','','','','','','',''),('Gaz','','','','','','',''),('Légumes','','','','','','',''),('Pièces déttachées','','','','','','',''),('Pneu','','','','','','',''),('Prestations','','','','','','',''),('SOUPE','','','','','','',''),('sucre','','','','','','',''),('Véhicule','','','','','','',''),('Viande','','','','','','','');

--
-- Table structure for table `FAMILLE_CLIENT`
--

CREATE TABLE `FAMILLE_CLIENT` (
  `Famille` varchar(40) NOT NULL,
  PRIMARY KEY  (`Famille`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FAMILLE_CLIENT`
--

INSERT INTO `FAMILLE_CLIENT` VALUES ('Client Caisse'),('Éleveur de chèvres'),('Garagiste'),('Informatique'),('Libraire'),('Maçon'),('particulier'),('Pret à porter'),('Salon de coiffure');

--
-- Table structure for table `FAMILLE_FOURNISSEUR`
--

CREATE TABLE `FAMILLE_FOURNISSEUR` (
  `Famille` varchar(40) NOT NULL,
  PRIMARY KEY  (`Famille`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FAMILLE_FOURNISSEUR`
--

INSERT INTO `FAMILLE_FOURNISSEUR` VALUES ('Boulanger'),('Charcuterie'),('Confiturier'),('Epicerie fine'),('Fabricant Automobile'),('Grossiste Automobile'),('Imprimeur');

--
-- Table structure for table `FICHE_ARTICLE`
--

CREATE TABLE `FICHE_ARTICLE` (
  `Article_Id` char(40) NOT NULL,
  `Designation` varchar(100) default '',
  `Marque` varchar(40) default '',
  `Famille` varchar(40) default '',
  `Sous_Famille` varchar(40) default '',
  `Unite` char(3) default 'U',
  `Colisage` decimal(10,2) unsigned default '0.00',
  `Compte_Vente` varchar(8) default '',
  `Compte_Achat` varchar(8) default '',
  `Compte_Vente_UE` varchar(8) default '',
  `Compte_Achat_UE` varchar(8) default '',
  `Compte_Vente_I` varchar(8) default '',
  `Compte_Achat_I` varchar(8) default '',
  `Prix_Achat_Der` decimal(14,4) unsigned default '0.0000',
  `Code_TVA` tinyint(3) unsigned default '4',
  `Frais_Appro_Der` decimal(14,4) unsigned default '0.0000',
  `Tarif_1` decimal(14,4) unsigned default '0.0000',
  `Tarif_2` decimal(14,4) unsigned default '0.0000',
  `Tarif_3` decimal(14,4) unsigned default '0.0000',
  `Tarif_4` decimal(14,4) unsigned default '0.0000',
  `Tarif_5` decimal(14,4) unsigned default '0.0000',
  `Coeff_1` decimal(8,6) unsigned default '1.100000',
  `Coeff_2` decimal(8,6) unsigned default '1.200000',
  `Coeff_3` decimal(8,6) unsigned default '1.300000',
  `Coeff_4` decimal(8,6) unsigned default '1.400000',
  `Coeff_5` decimal(8,6) unsigned default '1.500000',
  `Tarif_1_TTC` decimal(14,4) unsigned default '0.0000',
  `Tarif_2_TTC` decimal(14,4) unsigned default '0.0000',
  `Tarif_3_TTC` decimal(14,4) unsigned default '0.0000',
  `Tarif_4_TTC` decimal(14,4) unsigned default '0.0000',
  `Tarif_5_TTC` decimal(14,4) unsigned default '0.0000',
  `Marge_1` decimal(5,2) unsigned default '0.00',
  `Marge_2` decimal(5,2) unsigned default '0.00',
  `Marge_3` decimal(5,2) unsigned default '0.00',
  `Marge_4` decimal(5,2) unsigned default '0.00',
  `Marge_5` decimal(5,2) unsigned default '0.00',
  `Prix_Achat` decimal(12,3) default '0.000',
  `Frais_Appro` decimal(12,3) default '0.000',
  `Nature` tinyint(3) unsigned default '1',
  `Art_Achat` tinyint(3) unsigned default '1',
  `Art_Vente` tinyint(3) unsigned default '1',
  `Tenue_Stock` tinyint(3) unsigned default '1',
  `Prestation` tinyint(3) unsigned default '0',
  `Poids_Brut` decimal(10,2) unsigned default '0.00',
  `Poids_Net` decimal(10,2) unsigned default '0.00',
  `Poids_Unite` decimal(10,2) unsigned default '0.00',
  `Mesure_Poids` char(1) default 'K',
  `Unite_Vente` int(10) unsigned default '1',
  `Localisation` varchar(30) default '',
  `Code_Barre` varchar(15) default '',
  `Conditionnement` varchar(30) default '',
  `Article_Substitution` varchar(40) default '',
  `Date_Creation` bigint(20) unsigned default '0',
  `Login_Createur` varchar(15) default '',
  `Date_Maj` bigint(20) unsigned default '0',
  `Login_Maj` varchar(15) default '',
  `Descrip_1` text,
  `Descrip_2` text,
  `Couleur` varchar(40) default '',
  `Taille` varchar(20) default '',
  `Collection` varchar(40) default '',
  `Supprime` tinyint(3) unsigned default '0',
  `Liaison` int(10) unsigned default '0',
  `Base_Calcul` tinyint(3) unsigned default '1',
  `Eco_Taxe` decimal(10,2) unsigned default '0.00',
  `Ref_Fabricant` varchar(40) default '',
  `Prix_Public` decimal(12,2) unsigned default '0.00',
  `Composition` char(1) default 'U',
  `Imp_Nom_Devis` tinyint(3) unsigned default '0',
  `Imp_Nom_OF` tinyint(3) unsigned default '0',
  `Imp_Nom_Facture` tinyint(3) unsigned default '0',
  `Imp_Nom_Bon` tinyint(3) unsigned default '0',
  `Imp_Nom_Fiche` tinyint(3) unsigned default '0',
  `Imp_Nom_BP` tinyint(3) unsigned default '0',
  `Imp_Nom_BCF` tinyint(3) unsigned default '0',
  `Imp_Desc1_Devis` tinyint(3) unsigned default '0',
  `Imp_Desc1_OF` tinyint(3) unsigned default '0',
  `Imp_Desc1_Facture` tinyint(3) unsigned default '0',
  `Imp_Desc1_Bon` tinyint(3) unsigned default '0',
  `Imp_Desc1_Fiche` tinyint(3) unsigned default '0',
  `Imp_Desc1_BP` tinyint(3) unsigned default '0',
  `Imp_Desc1_BCF` tinyint(3) unsigned default '0',
  `Imp_Desc2_Devis` tinyint(3) unsigned default '0',
  `Imp_Desc2_OF` tinyint(3) unsigned default '0',
  `Imp_Desc2_Facture` tinyint(3) unsigned default '0',
  `Imp_Desc2_Bon` tinyint(3) unsigned default '0',
  `Imp_Desc2_Fiche` tinyint(3) unsigned default '0',
  `Imp_Desc2_BP` tinyint(3) unsigned default '0',
  `Imp_Desc2_BCF` tinyint(3) unsigned default '0',
  `Code_Stats` varchar(10) default '',
  PRIMARY KEY  (`Article_Id`),
  KEY `idx_code_tva` (`Code_TVA`),
  CONSTRAINT `cfk_fiche_article_code_tva` FOREIGN KEY (`Code_TVA`) REFERENCES `TAUX_TVA` (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FICHE_ARTICLE`
--

INSERT INTO `FICHE_ARTICLE` VALUES ('ALP1051020','Trépan bi-métal diam 102','ALPHA COUPE','FORETS','TREPANS','U','1.00','','','','','','','11.7000',4,'0.0000','33.0000','14.0400','15.2100','16.3800','17.5500','2.820510','1.200000','1.300000','1.400000','1.500000','39.4700','16.7900','18.1900','19.5900','20.9900','64.55','16.67','23.08','28.57','33.33','11.700','0.000',1,1,1,1,0,'0.25','0.25','0.25','K',1,'','','','',1221664822570,'gfremery',1224060827859,'gfremery','','','','','',0,5,1,'0.00','','48.56','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('AP002','Prestation location de site','AEL','Prestations','Location','U','0.00','','','','','','','0.0000',4,'0.0000','5000.0000','6.0000','6.5000','7.0000','7.5000','99.999900','1.200000','1.300000','1.400000','1.500000','5980.0000','7.1800','7.7700','8.3700','8.9700','99.90','16.67','23.08','28.57','33.33','5.000','0.000',1,0,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1200148677889,'gfremery',1211785577037,'gfremery','','','','','',0,2,1,'0.00','','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('AP003','Bouteille de gaz 13 kg','DUMACHIN','Gaz','Bouteille','U','0.00','','','','','','','19.0000',4,'0.5000','40.0000','24.0000','26.0000','28.0000','30.0000','2.000000','1.200000','1.300000','1.400000','1.500000','47.8400','28.7000','31.1000','33.4900','35.8800','50.00','16.67','23.08','28.57','33.33','20.000','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1200148752580,'gfremery',1219848338687,'gfremery','','','','','',0,3,1,'0.00','','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('apha-102','Foret dian 250','ALPHA COUPE','FORETS','TREPANS','U','0.00','','','','','','','12.5600',4,'0.0000','20.8600','22.7500','24.6500','26.5400','28.4400','1.100000','1.200000','1.300000','1.400000','1.500000','24.9400','27.2100','29.4800','31.7500','34.0100','9.09','16.67','23.08','28.57','33.33','18.960','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1221664927941,'gfremery',1222262532990,'gfremery','','','','','',0,6,1,'0.00','','35.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('B001','Boîte de conserve 1L','FERBLANC','Emballage','Boîte','U','0.00','','','','','','','0.0000',4,'0.0000','0.6100','0.6600','0.7200','0.7700','0.8300','1.100000','1.200000','1.300000','1.400000','1.500000','0.7200','0.7900','0.8600','0.9200','0.9900','9.09','16.67','23.08','28.57','33.33','0.550','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1226566218238,'gfremery',1226569576908,'gfremery','','','','','',0,21,1,'0.00','','0.00','U',0,1,1,0,1,0,0,1,1,1,1,1,0,0,0,0,1,0,1,0,0,''),('C001','Conserve 1L haricots porc','LA BELLE BOITE','Conserve','Porc','U','0.00','','','','','','','1.9000',4,'0.0000','2.0900','2.2800','2.4700','2.6600','2.8500','1.100000','1.200000','1.300000','1.400000','1.500000','2.5000','2.7300','2.9500','3.1800','3.4100','9.09','16.67','23.08','28.57','33.33','1.900','0.000',1,0,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1226566524247,'gfremery',1226569650963,'gfremery','','','','','',0,23,1,'0.00','','0.00','N',0,1,1,0,1,0,0,1,1,1,1,1,0,0,0,0,1,0,1,0,0,''),('CONF-001','Confiture de Mirabelles d\'espagne','ANABEL CONFIOTTE','Confiture','Mirabelle','U','12.00','','','','','','','3.5600',3,'0.0000','3.9200','4.2700','4.6300','4.9800','5.3400','1.100000','1.200000','1.300000','1.400000','1.500000','4.1300','4.5100','4.8800','5.2600','5.6300','9.09','16.67','23.08','28.57','33.33','3.560','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224071756773,'gfremery',1224071793249,'gfremery','','','','','',0,8,1,'0.00','ref-003','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('G001','Tranche de gras','GRAS','Charcuterie','lard','kg','0.00','','','','','','','0.0000',4,'0.0000','0.2800','0.3000','0.3300','0.3500','0.3800','1.100000','1.200000','1.300000','1.400000','1.500000','0.3300','0.3600','0.3900','0.4200','0.4500','9.09','16.67','23.08','28.57','33.33','0.250','0.000',0,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1226565999180,'gfremery',1226566030411,'gfremery','','','','','',0,19,1,'0.00','','0.00','U',0,1,0,0,1,0,0,1,1,0,1,1,0,0,0,0,0,0,1,0,0,''),('gar_000','Main d\'oeuvre','MonGarage','Prestations','Dépanage sur site','H','0.00','','','','','','','0.0000',4,'0.0000','50.2600','54.8300','59.4000','63.9700','68.5400','1.100000','1.200000','1.300000','1.400000','1.500000','60.1200','65.5800','71.0500','76.5100','81.9800','9.09','16.67','23.08','28.57','33.33','45.695','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224075348630,'gfremery',1224075416430,'gfremery','','','','','',0,11,1,'0.00','','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('GAR_001','Dépanage hors site','MonGarage','Prestations','Dépanage','H','0.00','','','','','','','0.0000',4,'0.0000','54.3000','59.2300','64.1700','69.1100','74.0400','1.100000','1.200000','1.300000','1.400000','1.500000','64.9400','70.8400','76.7500','82.6500','88.5500','9.09','16.67','23.08','28.57','33.33','49.361','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224075515174,'gfremery',1224075553053,'gfremery','','','','','',0,12,1,'0.00','','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('GAR_002','Bloc Moteur diesel C4 break','CITROEN','Pièces déttachées','Bloc Moteur','U','0.00','','','','','','','2856.3420',4,'0.0000','3141.9800','3427.6100','3713.2400','3998.8800','4284.5100','1.100000','1.200000','1.300000','1.400000','1.500000','3757.8000','4099.4200','4441.0400','4782.6600','5124.2800','9.09','16.67','23.08','28.57','33.33','2856.342','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224075672570,'gfremery',1224076133808,'gfremery','','','','','',0,13,1,'0.00','BMC4','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('GAR_003','Cardan gauche 104ZS','PEUGEOT','Pièces déttachées','Cardan','U','0.00','','','','','','','238.1300',4,'0.0000','261.9400','285.7600','309.5700','333.3800','357.2000','1.100000','1.200000','1.300000','1.400000','1.500000','313.2800','341.7600','370.2400','398.7200','427.2100','9.09','16.67','23.08','28.57','33.33','238.130','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224076235799,'gfremery',1224076329303,'gfremery','','','','','',0,14,1,'0.00','CARD-000','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('GAR_004','Clignotant avant droit C5','CITROEN','Pièces déttachées','Feux','U','0.00','','','','','','','78.2300',4,'0.0000','86.0500','93.8800','101.7000','109.5200','117.3500','1.100000','1.200000','1.300000','1.400000','1.500000','102.9200','112.2800','121.6300','130.9900','140.3400','9.09','16.67','23.08','28.57','33.33','78.230','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224076429843,'gfremery',1224141869133,'gfremery','','','','','',0,15,1,'0.00','FAVD_001','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('GAR_005','Pneumatique Neige','GENERIC','Pneu','Neige','U','0.00','','','','','','','0.0000',4,'0.0000','58.3000','63.6000','68.9000','74.2000','79.5000','1.100000','1.200000','1.300000','1.400000','1.500000','69.7300','76.0700','82.4000','88.7400','95.0800','9.09','16.67','23.08','28.57','33.33','53.000','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224076565376,'gfremery',1224141920637,'gfremery','','','','','',0,16,1,'0.00','','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('GAR_006','Compresseur','GENERIC','Pièces déttachées','Climatisation','U','0.00','','','','','','','989.6500',4,'0.0000','1088.6200','1187.5800','1286.5500','1385.5100','1484.4800','1.100000','1.200000','1.300000','1.400000','1.500000','1301.9800','1420.3500','1538.7100','1657.0700','1775.4300','9.09','16.67','23.08','28.57','33.33','989.650','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224076795980,'gfremery',1224076902101,'gfremery','','','','','',0,17,1,'0.00','CLIM_000','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('GAR_007','Groupe Flitre à air','GENERIC','Pièces déttachées','Filtre à air','U','0.00','','','','','','','26.0000',4,'0.0000','28.6000','31.2000','33.8000','36.4000','39.0000','1.100000','1.200000','1.300000','1.400000','1.500000','34.2100','37.3200','40.4200','43.5300','46.6400','9.09','16.67','23.08','28.57','33.33','26.000','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224077025993,'gfremery',1224077535499,'gfremery','','','','','',0,18,1,'0.00','FAA_001','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('H001','Haricots blanc','LA FERME','Légumes','Frais','kg','0.00','','','','','','','0.0000',4,'0.0000','0.3600','0.4000','0.4300','0.4600','0.5000','1.100000','1.200000','1.300000','1.400000','1.500000','0.4300','0.4700','0.5100','0.5500','0.5900','9.09','16.67','23.08','28.57','33.33','0.330','0.000',0,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1226566412916,'gfremery',1228383348654,'gfremery','','','','','',0,22,1,'0.00','','0.60','U',0,1,0,0,1,0,0,1,1,0,1,1,0,0,0,0,0,0,1,0,0,''),('Prest001A','Première Prestation','AEL','Prestations','Infographie','U','0.00','70610100','','70610100','','70610100','','0.0000',4,'0.0000','110.0000','120.0000','130.0000','140.0000','150.0000','1.100000','1.200000','1.300000','1.400000','1.500000','131.5600','143.5200','155.4800','167.4400','179.4000','9.09','16.67','23.08','28.57','33.33','100.000','0.000',1,0,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1199783836955,'gfremery',1200308301337,'VM','Descriptif n°1','Descriptif n°2','','','',0,1,1,'0.00','','250.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('SOUP001','Soupe de poisson','LAILOLIT','SOUPE','POISSON','','0.00','','','','','','','21.3600',3,'0.0000','23.5000','25.6300','27.7700','29.9000','32.0400','1.100000','1.200000','1.300000','1.400000','1.500000','24.7900','27.0400','29.3000','31.5500','33.8000','9.09','16.67','23.08','28.57','33.33','21.360','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224002062991,'gfremery',1224590374321,'gfremery','','','','','',0,7,1,'0.00','SP-001','31.26','U',0,1,1,0,0,0,0,1,1,1,1,1,1,0,0,1,1,0,1,0,0,''),('SUC-001','Surcre roux en morceaux','CANDY','sucre','morceaux','kg','0.00','','','','','','','5.3980',3,'0.0000','5.9400','6.4800','7.0200','7.5600','8.1000','1.100000','1.200000','1.300000','1.400000','1.500000','6.2600','6.8300','7.4000','7.9700','8.5400','9.09','16.67','23.08','28.57','33.33','5.398','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224073887755,'gfremery',1224074116161,'gfremery','','','','','',0,9,1,'0.00','ref_004','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('SUC_002','Sucre en poudre blanc','CANDY','sucre','poudre','U','0.00','','','','','','','4.2130',3,'0.0000','4.6300','5.0600','5.4800','5.9000','6.3200','1.100000','1.200000','1.300000','1.400000','1.500000','4.8900','5.3300','5.7800','6.2200','6.6700','9.09','16.67','23.08','28.57','33.33','4.213','0.000',1,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1224074183140,'gfremery',1224074595264,'gfremery','','','','','',0,10,1,'0.00','ref_005','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('svael001','serveur virtuel','AEL','Prestations','serveur','U','0.00','','','','','','','0.0000',4,'0.0000','350.0000','12.0000','13.0000','14.0000','15.0000','35.000000','1.200000','1.300000','1.400000','1.500000','418.6000','14.3500','15.5500','16.7400','17.9400','97.14','16.67','23.08','28.57','33.33','10.000','0.000',1,0,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1203946396912,'aurelie',1203947342090,'aurelie','serveur virtuel 50go','','','','',0,4,1,'0.00','','0.00','U',0,0,1,0,0,0,0,1,0,1,0,1,0,0,0,0,1,0,1,0,0,''),('V001','Voiture a bras','PEUGEOT','Véhicule','Essence','U','0.00','','','','','','','0.0000',4,'0.0000','5500.0000','6000.0000','6500.0000','7000.0000','7500.0000','1.100000','1.200000','1.300000','1.400000','1.500000','6578.0000','7176.0000','7774.0000','8372.0000','8970.0000','9.09','16.67','23.08','28.57','33.33','5000.000','0.000',1,0,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1228325699152,'gfremery',1228325992772,'gfremery','','','','','',0,24,1,'0.00','','0.00','N',0,1,1,0,1,0,0,1,1,1,1,1,0,0,0,0,1,0,1,0,0,''),('VP001','Viande de porc','LA FERME','Viande','porc','kg','0.00','','','','','','','0.0000',4,'0.0000','1.0800','1.1800','1.2700','1.3700','1.4700','1.100000','1.200000','1.300000','1.400000','1.500000','1.2900','1.4100','1.5200','1.6400','1.7600','9.09','16.67','23.08','28.57','33.33','0.980','0.000',0,1,1,1,0,'0.00','0.00','0.00','K',1,'','','','',1226566115725,'gfremery',1226566141974,'gfremery','','','','','',0,20,1,'0.00','','0.00','U',0,1,0,0,1,0,0,1,1,0,1,1,0,0,0,0,0,0,1,0,0,'');

--
-- Table structure for table `FICHE_ARTICLE_TEMP`
--

CREATE TABLE `FICHE_ARTICLE_TEMP` (
  `Site_Id` int(11) NOT NULL,
  `Article_Id` char(40) NOT NULL,
  `Designation` varchar(100) default '',
  `Description` text,
  `Marque` varchar(40) default '',
  `Famille` varchar(40) default '',
  `Sous_Famille` varchar(40) default '',
  `Prix_Vente` decimal(14,4) unsigned default '0.0000',
  `Prix_Achat` decimal(12,4) default '0.0000',
  `Stock` int(11) default '0',
  `Poids` decimal(10,2) default NULL,
  `En_ligne` char(1) default 'n',
  `Nom_Image` varchar(40) default NULL,
  `Taille` varchar(20) default '',
  `Couleur` varchar(20) default '',
  `Collection` varchar(20) default '',
  PRIMARY KEY  (`Site_Id`,`Article_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FICHE_ARTICLE_TEMP`
--


--
-- Table structure for table `FICHE_ARTICLE_WEB`
--

CREATE TABLE `FICHE_ARTICLE_WEB` (
  `Article_Web_Id` int(10) unsigned NOT NULL auto_increment,
  `Article_Id` varchar(40) NOT NULL,
  `Article_Id_Site` varchar(40) default NULL,
  `Site_Id` int(10) unsigned default NULL,
  `Stock_Web` int(11) default '0',
  `Calcul_Stock` char(1) default NULL,
  `Valeur_Stock` decimal(12,2) default NULL,
  `Stock_Modifie` tinyint(4) default '0',
  `Prix_Web` decimal(12,3) default '0.000',
  `Calcul_Prix` char(2) default NULL,
  `Valeur_Prix` decimal(12,4) default NULL,
  `Prix_Modifie` tinyint(4) default '0',
  `Date_Limite` bigint(20) default NULL,
  `Statut_Web` char(1) default 'n',
  `Etat_Existance` tinyint(4) default '0',
  `Date_Prix_Ref` bigint(20) default '0',
  `Date_Stock_Ref` bigint(20) default '0',
  `Date_Info_Ref` bigint(20) default '0',
  `Ancien_Stock` int(11) default '0',
  PRIMARY KEY  (`Article_Web_Id`),
  UNIQUE KEY `Site_Id` (`Site_Id`,`Article_Id`,`Article_Id_Site`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FICHE_ARTICLE_WEB`
--


--
-- Table structure for table `FICHE_CLIENT`
--

CREATE TABLE `FICHE_CLIENT` (
  `Client_Id` char(10) NOT NULL,
  `Code_Couleur` tinyint(3) unsigned default '2',
  `Civilite` tinyint(3) unsigned default '0',
  `Nom` varchar(30) default '',
  `Prenom` varchar(20) default '',
  `Raison_Sociale` varchar(50) default '',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Tel_1` varchar(20) default '',
  `Tel_2` varchar(20) default '',
  `Tel_3` varchar(20) default '',
  `Fax_1` varchar(20) default '',
  `Fax_2` varchar(20) default '',
  `Email_1` varchar(60) default '',
  `Email_2` varchar(60) default '',
  `Site_Web` varchar(40) default '',
  `Num_SIRET` char(14) default '',
  `Code_NAF` char(5) default '',
  `Num_TVA_Intra` varchar(14) default '',
  `Type_Societe` varchar(11) default 'SARL',
  `Famille` varchar(40) default '',
  `Date_Creation` bigint(20) unsigned default '0',
  `Date_Maj` bigint(20) unsigned default '0',
  `Login_Maj` varchar(15) default '',
  `Login_Createur` varchar(15) default '',
  `Login_Resp` varchar(15) default '',
  `Recurrent` tinyint(3) unsigned default '0',
  `Exigences` tinyint(3) unsigned default '0',
  `Actif` tinyint(3) unsigned default '1',
  `Com_Recurrent` text,
  `Com_Exigences` text,
  `Com_Sante` text,
  `Com_Libre` text,
  `Revendeur` tinyint(3) unsigned default '0',
  `Bloque` tinyint(3) unsigned default '0',
  `Supprime` tinyint(3) unsigned default '0',
  `Code_Fournisseur` varchar(10) default '',
  `Numero_Compte` char(8) default '',
  `Collectif` char(8) default '41100000',
  `Mode_Reg` varchar(25) default '',
  `Delai_Reg` tinyint(3) unsigned default '0',
  `Taux_Penalite` float(4,2) default '0.00',
  `Taux_Remise` float(4,2) default '0.00',
  `Code_Tarif` tinyint(3) unsigned default '1',
  `Nb_Ex` tinyint(3) unsigned default '1',
  `Num_Org` int(10) unsigned default '0',
  `Fact_Port` tinyint(3) unsigned default '1',
  `Fact_Gest` tinyint(3) unsigned default '0',
  `Fact_Emballage` tinyint(3) unsigned default '0',
  `Franco` decimal(10,2) default '0.00',
  `Type_Reg` char(1) default 'N',
  `Jour_Fact` tinyint(3) unsigned default '0',
  `Type_Vente` char(1) default 'N',
  `Nb_Bon` tinyint(3) unsigned default '1',
  `Bon_Chiffre` tinyint(3) unsigned default '0',
  `Encours_Auto` decimal(14,2) default '0.00',
  `Type_Fact` char(1) default 'C',
  `Com_Fact` tinytext,
  `Indications` tinytext,
  `Type_Client` char(1) default 'E',
  `Mailing` tinyint(3) unsigned NOT NULL default '1',
  PRIMARY KEY  (`Client_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FICHE_CLIENT`
--

INSERT INTO `FICHE_CLIENT` VALUES ('C-CAISSE',2,1,'Caisse','','M. Caisse','Rue','','','81100','CASTRES','','','','','','','','','','','','','SARL','Client Caisse',1211295854223,1211295854223,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01000002','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','F',0,'N',1,0,'0.00','C','','','P',0),('C110000',1,1,'DUCHARBON','Noir','M. DUCHARBON Noir','RN99','','','11000','Carcassonne','France','','','','','','','','','','','','SARL','particulier',1200583091447,1217920124366,'gfremery','demo','demo',0,0,1,'','','','',0,0,0,'','01000001','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','F',0,'N',1,0,'0.00','G','','','P',0),('C310000',2,1,'Coulier','Joseph','Librairie Coulier','56, place du Capitole','','','31000','TOULOUSE','France','05.61.62.35.26','','','','','','','','','','','ETS','Libraire',1199723659694,1217920156742,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01010000','41100000','Prelevement',0,0.00,0.00,1,1,0,1,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',0),('C310001',2,1,'FAGELL','Henry','CHARLY-HEBDDO','45, route de Narbonne','','','31000','TOULOUSE','','','','','','','','','','','','','SARL','Maçon',1199896286152,1219846803974,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01020000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','F',0,'N',1,0,'0.00','C','','','E',0),('C310002',2,1,'HYDRAVION','Jules','M. HYDRAVION Jules','Ici et là','','','31540','LARDENNE','France','','','','','','','','','','','','SARL','particulier',1221742806626,1221742806626,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01000000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','F',0,'N',1,0,'0.00','C','','','P',0),('C450000',2,1,'LAFLEUR','Julie','M. LAFLEUR Julie','2568 allée des corbières','','','45685','TRIFOUILLY LES OIES','France','0960589756','','','','','','','','','','','SARL','Client Caisse',1217938606093,1217938606093,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01000000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','F',0,'N',1,0,'0.00','C','','','P',0),('C810000',2,1,'FREMERY','Gérald','AEL','6, Ave Lucien Coudert','','','81100','CASTRES','France','09.50.44.01.10','','','','','contact@spidboutic.fr','','http://www.spidboutic.fr','','','','SARL','Informatique',1200302271903,1228588301418,'gfremery','VM','IM',0,0,1,'','','','',0,0,0,'','01000000','41100000','Carte bancaire',0,0.00,0.00,1,1,0,1,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',1),('C810001',3,1,'OLTRA','Jean-Michel','AFFAIRES EN LIGNE','L\'Espinasse','','','81240','LACABAREDE','France','','','','','','','','','49084324000014','6311Z','FR86490843240','SARL','Éleveur de chèvres',1199719147954,1217919943713,'gfremery','gfremery','jj31',0,0,1,'','','','',0,0,0,'','01000000','41100000','Carte bancaire',0,0.00,0.00,1,1,0,1,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',0),('C810002',2,2,'TRUCMUCHE','Joëlle','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France','','','','','','','','','','','','SARL','Libraire',1199722105638,1217919977760,'gfremery','gfremery','jj31',0,0,1,'','','','',0,0,0,'','01000000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',0),('C810003',2,2,'MARTINEZ','Madeleine','MADY TIFF','153 avenue du Sidobre','','','81100','CASTRES','France','05 63 51 13 97','','','','','','','','','','','ENT','Salon de coiffure',1200557809309,1217920017383,'gfremery','IM','IM',0,0,1,'','','','',1,0,0,'','01030000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','F',0,'N',1,0,'0.00','C','','','E',0),('C810004',2,2,'SAMBLAS','Severine','A MAMES','1, impasse barral','','','81100','CASTRES','FRANCE','','','','','','','','www.amamesure.com','','','','SARL','Pret à porter',1200328786217,1217920057085,'gfremery','VM','VM',1,0,1,'abonnement vidéo','Fantaisie','','Location espace video\nLogo',0,0,0,'','01000000','41100000','Prelevement',0,0.00,0.00,1,1,0,0,0,0,'0.00','F',0,'N',1,0,'0.00','C','Prélévement au premier de chaque mois','','E',0),('C810005',2,1,'SAMBLAS','Guillaume','CLIC CLIC','1 RUE BARRAL','','','81100','CASTRES','FRANCE','0563656565','','','','','contact@wanadoo.fr','','','','','','SARL','INFORMATIQUE',1200506153010,1223995950990,'gfremery','VM','VM',1,1,1,'','souris','','',0,0,0,'','01000000','41100000','Cheque',0,0.00,0.00,1,1,0,0,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',0),('C810006',2,1,'LIBERTINE','Rosalie','Les OUBLIES DE NAVARRES','Chemin des pas perdus','','','81250','MAZAMET','France','','','','','','','','','','','','SARL','Client Caisse',1217938742507,1217938742507,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01000000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','F',0,'N',1,0,'0.00','C','','','A',0),('P3100002',2,1,'DREAU','JEAN','SA SNEF','68 Chemin DE LA FLAMBERE','','','31300','TOULOUSE','France','05.61.15.82.40','','','05.61.15.82.41','','toulouse@snef.fr','','','','','','SARL','Client Caisse',1217869569891,1217869814465,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01000000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',0),('P8100000',2,1,'PUEL','Philippe','PUEL PHILIPPE','Le bourg','','','81350','ST JEAN DE MARCEL','France','05.63.76.58.00','','','','','','','','','','','SARL','Éleveur de chèvres',1217687066067,1222764091345,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01000001','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',0),('P8100001',2,1,'BRISSET','Eric','EFCS SARL','chemin des Mésanges','','','81600','GAILLAC','France','05.63.40.88.78','','','','','','','','','','','SARL','Client Caisse',1217868157264,1217868315615,'gfremery','gfremery','gfremery',0,0,1,'','','','',0,0,0,'','01000000','41100000','Cheque',0,0.00,0.00,1,1,0,1,0,0,'0.00','N',0,'N',1,0,'0.00','C','','','E',0);

--
-- Table structure for table `FICHE_COMMERCIAL`
--

CREATE TABLE `FICHE_COMMERCIAL` (
  `Code_Commercial` varchar(15) NOT NULL,
  `Login` varchar(15) NOT NULL,
  `Nom` varchar(30) default '',
  `Prenom` varchar(20) default '',
  `Civilite` tinyint(3) unsigned default '0',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Secteur` varchar(50) default '',
  `Tel_1` varchar(20) default '',
  `Tel_2` varchar(20) default '',
  `Tel_3` varchar(20) default '',
  `Fax_1` varchar(20) default '',
  `Fax_2` varchar(20) default '',
  `Email_1` varchar(60) default '',
  `Email_2` varchar(60) default '',
  `Supprime` tinyint(4) default '0',
  `Login_Createur` varchar(15) default '',
  `Date_Creation` bigint(20) unsigned default '0',
  `Login_Maj` varchar(15) default '',
  `Date_Maj` bigint(20) unsigned default '0',
  PRIMARY KEY  (`Code_Commercial`),
  UNIQUE KEY `Login` (`Login`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FICHE_COMMERCIAL`
--

INSERT INTO `FICHE_COMMERCIAL` VALUES ('DEM','demo','DEMO','omed',2,'12, allée des peuplier','','11000','CARCASSONNE','France','11','','','','','','','',0,'gfremery',1200566326431,'gfremery',1200566326431),('GF','gfremery','FREMERY','Gérald',1,'6, avenue Lucien Coudert','','81100','CASTRES','France','81,31','05.63.83.02.28','','','','','gfremery@affaires-en-ligne.fr','',0,'gfremery',1199896492784,'gfremery',1199896492784),('IM','IM','MARTINEZ','Ingrid',3,'789, avenue Générald 3 Gaulles','','33569','BORDEAUX','France','88','','','','','','','',0,'gfremery',1200566467740,'gfremery',1200566467740),('jj31','jj31','URBAIN','Jean-Jacques',1,'61, allée des peupliers','','','TOULOUSE','France','31','05.61.','','','','','jj.urbain@affaires-en-ligne.fr','',0,'gfremery',1199896045494,'gfremery',1200221824676);

--
-- Table structure for table `FICHE_FOURNISSEUR`
--

CREATE TABLE `FICHE_FOURNISSEUR` (
  `Fournisseur_Id` char(10) NOT NULL,
  `Civilite` tinyint(3) unsigned default '0',
  `Nom` varchar(30) default '',
  `Prenom` varchar(20) default '',
  `Raison_Sociale` varchar(50) default '',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Tel_1` varchar(20) default '',
  `Tel_2` varchar(20) default '',
  `Tel_3` varchar(20) default '',
  `Fax_1` varchar(20) default '',
  `Fax_2` varchar(20) default '',
  `Email_1` varchar(60) default '',
  `Email_2` varchar(60) default '',
  `Site_Web` varchar(40) default '',
  `Date_Creation` bigint(20) unsigned default '0',
  `Date_Maj` bigint(20) unsigned default '0',
  `Login_Maj` varchar(15) default '',
  `Login_Createur` varchar(15) default '',
  `Com_Libre` text,
  `Code_Couleur` tinyint(3) unsigned default '2',
  `Type_Societe` varchar(11) default 'SARL',
  `Famille` varchar(40) default '',
  `Num_TVA_Intra` varchar(14) default '',
  `Num_SIRET` char(14) default '',
  `Code_NAF` char(5) default '',
  `Qualite_Relation` char(1) default 'B',
  `Respect_Delai` tinyint(3) unsigned default '1',
  `Competitivite` tinyint(3) unsigned default '1',
  `Supprime` tinyint(3) unsigned default '0',
  `Franco` decimal(10,2) default '0.00',
  PRIMARY KEY  (`Fournisseur_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FICHE_FOURNISSEUR`
--

INSERT INTO `FICHE_FOURNISSEUR` VALUES ('F440000',1,'DU MOULIN','Jack','DUMOULIN','65, allée des Peupliers','','','44000','Nantes','','','','','','','','','',1200304893458,1211273342802,'gfremery','VM','',2,'SARL','Boulanger','','','','B',1,1,0,'0.00'),('F81030000',1,'GARCES','Christophe','CONTIGRAPH 81','ZI Melou','','','81100','CASTRES','FRANCE','','','','','','','','',1200329031150,1200329031150,'VM','VM','',2,'SARL','Imprimeur','','','','B',1,1,0,'0.00'),('frn001',1,'CONFIOTTE','Julie','CONFITURES EN GROS','789, allée de L\'abre en boule','','','81100','CASTRES','France','','','','','','','','',1224071958493,1224071958493,'gfremery','gfremery','',2,'SARL','Confiturier','','','','B',1,1,0,'0.00'),('frn_003',1,'Julia','Jules','LE FLEURON','ici','','','81100','CASTRES','France','','','','','','','','',1226569493783,1226569493783,'gfremery','gfremery','',2,'SARL','Charcuterie','','','','B',1,1,0,'0.00'),('frn_004',1,'DUGLNDU','Alphonse','LES MAGASINS REUNIS','Rue des torticollis','','','81000','ALBI','France','','','','','','','','',1224074061204,1224074061204,'gfremery','gfremery','',2,'SCI','Epicerie fine','','','','B',1,1,0,'0.00'),('frn_007',1,'CITROEN','Jules','CITROEN','Avenue des champs Elysées','','','75001','PARIS','France','','','','','','','','',1224075947916,1224075947916,'gfremery','gfremery','',2,'SARL','Fabricant Automobile','','','','B',1,1,0,'0.00'),('frn_008',1,'PEUGEOT','Albert','PEUGEOT','route du pont','','','75002','PARIS','France','','','','','','','','',1224076031679,1224076031679,'gfremery','gfremery','',2,'SARL','Fabricant Automobile','','','','B',1,1,0,'0.00'),('frn_009',1,'DUCHAGRIN','Jean-louis','TOUTPOURLAUTO','parc d\'activité des sudres','','','81100','CASTRES','France','','','','','','','','',1224076697054,1224076697054,'gfremery','gfremery','',2,'SARL','Grossiste Automobile','','','','B',1,1,0,'0.00');

--
-- Table structure for table `FICHIER_ASSOC`
--

CREATE TABLE `FICHIER_ASSOC` (
  `Fichier_Assoc_Id` int(10) unsigned NOT NULL auto_increment,
  `Document_Id` varchar(20) NOT NULL default '',
  `Type` varchar(20) default '',
  `Lien` varchar(255) default '',
  `Nom` varchar(100) default '',
  PRIMARY KEY  (`Fichier_Assoc_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FICHIER_ASSOC`
--


--
-- Table structure for table `FOURNISSEUR_ARTICLE`
--

CREATE TABLE `FOURNISSEUR_ARTICLE` (
  `Article_Id` char(40) NOT NULL,
  `Fournisseur_Id` char(10) NOT NULL,
  `Prix_Achat` decimal(14,4) unsigned default '0.0000',
  `Ref_Fournisseur` varchar(40) default '',
  `Principal` tinyint(3) unsigned default '0',
  `Delai_Reappro` tinyint(3) unsigned default '0',
  `Qte_Minimum` decimal(10,2) unsigned default '0.00',
  `Frais_Logistiques` decimal(12,2) unsigned default '0.00',
  `Pack` int(10) unsigned default '1',
  `Multiple` decimal(10,2) unsigned default '0.00',
  PRIMARY KEY  (`Article_Id`,`Fournisseur_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `FOURNISSEUR_ARTICLE`
--

INSERT INTO `FOURNISSEUR_ARTICLE` VALUES ('ALP1051020','F440000','11.7000','ref-02',0,0,'0.00','0.00',1,'0.00'),('AP003','F440000','20.0000','ref001',0,0,'0.00','0.00',1,'0.00'),('apha-102','F440000','12.5600','gfr',0,0,'0.00','0.00',1,'0.00'),('B001','frn_003','0.5500','C001',0,0,'0.00','0.00',1,'0.00'),('C001','frn_003','1.9000','C001',0,0,'0.00','0.00',1,'0.00'),('CONF-001','frn001','3.5600','ref-003',0,0,'0.00','0.00',1,'0.00'),('GAR_002','frn_007','2856.3420','BMC4',0,0,'0.00','0.00',1,'0.00'),('GAR_003','frn_008','238.1300','CARD-000',0,0,'0.00','0.00',1,'0.00'),('GAR_004','frn_007','78.2300','FAVD_001',0,0,'0.00','0.00',1,'0.00'),('GAR_006','frn_009','989.6500','CLIM_000',0,0,'0.00','0.00',1,'0.00'),('GAR_007','frn_009','26.0000','FAA_000',0,0,'0.00','0.00',1,'0.00'),('SOUP001','F440000','21.3600','SP-001',0,0,'0.00','0.00',1,'0.00'),('SUC-001','frn_004','5.3980','ref_004',0,0,'0.00','0.00',1,'0.00'),('SUC_002','frn_004','4.2130','ref_005',0,0,'0.00','0.00',1,'0.00');

--
-- Table structure for table `IMPORT_COLIS`
--

CREATE TABLE `IMPORT_COLIS` (
  `Import_Id` varchar(10) NOT NULL,
  `Description` varchar(100) default '',
  `Class` varchar(100) default '',
  PRIMARY KEY  (`Import_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `IMPORT_COLIS`
--

INSERT INTO `IMPORT_COLIS` VALUES ('LAPOSTE','La Poste','');

--
-- Table structure for table `INTERLOCUTEUR`
--

CREATE TABLE `INTERLOCUTEUR` (
  `Num_Inter` int(10) unsigned NOT NULL auto_increment,
  `Fournisseur_Id` char(10) NOT NULL,
  `Civilite` tinyint(3) unsigned default '0',
  `Nom` varchar(30) default NULL,
  `Prenom` varchar(20) default NULL,
  `Fonction` varchar(25) default NULL,
  `Relation` char(1) default NULL,
  `Infos` text,
  `Adresse` varchar(100) default NULL,
  `Code_Postal` varchar(10) default NULL,
  `Ville` varchar(50) default NULL,
  `Pays` varchar(30) default NULL,
  `Tel` varchar(20) default NULL,
  `Portable` varchar(20) default NULL,
  `Fax` varchar(20) default NULL,
  `Email` varchar(60) default NULL,
  `Site_Web` varchar(40) default NULL,
  `Principal` tinyint(3) unsigned default NULL,
  `Age` tinyint(3) unsigned default NULL,
  PRIMARY KEY  (`Num_Inter`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INTERLOCUTEUR`
--


--
-- Table structure for table `INTERVENANT`
--

CREATE TABLE `INTERVENANT` (
  `Num_Inter` int(10) unsigned NOT NULL auto_increment,
  `Civilite` tinyint(3) unsigned default '0',
  `Client_Id` char(10) NOT NULL,
  `Nom` varchar(30) default NULL,
  `Prenom` varchar(20) default NULL,
  `Age` tinyint(3) unsigned default NULL,
  `Fonction` varchar(25) default NULL,
  `Infos` text,
  `Adresse` varchar(100) default NULL,
  `Code_Postal` varchar(10) default NULL,
  `Ville` varchar(50) default NULL,
  `Pays` varchar(30) default NULL,
  `Tel` varchar(20) default NULL,
  `Portable` varchar(20) default NULL,
  `Fax` varchar(20) default NULL,
  `Email` varchar(60) default NULL,
  `Site_Web` varchar(40) default NULL,
  `Principal` tinyint(3) unsigned default NULL,
  `Relation` char(1) default NULL,
  PRIMARY KEY  (`Num_Inter`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INTERVENANT`
--

INSERT INTO `INTERVENANT` VALUES (1,1,'C810001','OLTRA','Jean-Michel',0,'Gérant','','','','','','','','','','',1,'H'),(2,1,'C310000','Coulier','Joseph',0,'','','','','','','','','','','',1,'O'),(3,2,'C810002','TRUCMUCHE','Joëlle',0,'','','','','ALBI','France','','','','','',1,'O'),(4,2,'C810003','MARTINEZ','Madeleine',0,'','','','','','','','','','','',0,''),(5,1,'C110000','DUCHARBON','Noir',48,'Facteur','','RN99','11000','CARCASSONNE','France','','','','','',1,'O'),(6,1,'C810005','SAMBLAS','Guillaume',0,'','','','','','France','','','','g.samblas@toutetrien.net','',0,'O'),(7,1,'P8100000','PUEL','Philippe',0,'','','Le bourg','81350','ST JEAN DE MARCEL','France','05.63.76.58.00','','','','',1,'H'),(8,1,'P8100001','BRISSET','Eric',0,'','','chemin des Mésanges','81600','GAILLAC','France','05.63.40.88.78','','','','',1,'H'),(9,1,'P3100002','DREAU','JEAN',0,'','','68 Chemin DE LA FLAMBERE','31300','TOULOUSE','France','05.61.15.82.40','','05.61.15.82.41','toulouse@snef.fr','',1,'H');

--
-- Table structure for table `INVENTAIRE`
--

CREATE TABLE `INVENTAIRE` (
  `Inventaire_Id` int(10) unsigned NOT NULL auto_increment,
  `Type_Inventaire` char(1) default 'C',
  `Marque` varchar(40) default '',
  `Famille` varchar(40) default '',
  `Sous_Famille` varchar(40) default '',
  `Etat` char(1) default 'O',
  `Date_Cloture` bigint(20) unsigned default '0',
  `Date_Ouverture` bigint(20) unsigned default '0',
  `Date_Annulation` bigint(20) unsigned default '0',
  PRIMARY KEY  (`Inventaire_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `INVENTAIRE`
--

INSERT INTO `INVENTAIRE` VALUES (1,'C','','','','A',0,1199725824035,1200328630240),(2,'C','','','','O',0,1200328668551,0);

--
-- Table structure for table `LIGNE_ARTICLE_PREP`
--

CREATE TABLE `LIGNE_ARTICLE_PREP` (
  `Ligne_Prep_Id` int(10) unsigned NOT NULL,
  `Fournisseur_Id` varchar(10) NOT NULL,
  `Quantite` decimal(10,2) default '0.00',
  PRIMARY KEY  (`Ligne_Prep_Id`,`Fournisseur_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `LIGNE_ARTICLE_PREP`
--

INSERT INTO `LIGNE_ARTICLE_PREP` VALUES (1,'F440000','339.00');

--
-- Table structure for table `MAJ_AUTO`
--

CREATE TABLE `MAJ_AUTO` (
  `Maj_Id` int(10) unsigned NOT NULL auto_increment,
  `Site_Id` int(11) NOT NULL,
  `Type_Maj` varchar(5) NOT NULL,
  `Type_Periode` varchar(7) default NULL,
  `Valeur_Periode` varchar(26) default NULL,
  `Heure_Depart` int(11) default '0',
  `Nom_Service` varchar(20) default NULL,
  `Groupe_Service` varchar(20) default NULL,
  `Derniere_Maj` bigint(20) default '0',
  PRIMARY KEY  (`Maj_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `MAJ_AUTO`
--


--
-- Table structure for table `MARQUE_ARTICLE`
--

CREATE TABLE `MARQUE_ARTICLE` (
  `Marque` varchar(40) NOT NULL,
  `Image` varchar(100) default '',
  `Url` varchar(100) default '',
  PRIMARY KEY  (`Marque`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `MARQUE_ARTICLE`
--

INSERT INTO `MARQUE_ARTICLE` VALUES ('AEL','',''),('ALPHA COUPE','',''),('ANABEL CONFIOTTE','',''),('CANDY','',''),('CITROEN','',''),('DUMACHIN','',''),('FERBLANC','',''),('GENERIC','',''),('GRAS','',''),('LA BELLE BOITE','',''),('LA FERME','',''),('LAILOLIT','',''),('MonGarage','',''),('PEUGEOT','','');

--
-- Table structure for table `MODELE`
--

CREATE TABLE `MODELE` (
  `Modele_Id` int(10) unsigned NOT NULL auto_increment,
  `Reference_modele` char(10) NOT NULL,
  `Libelle_modele` varchar(40) NOT NULL,
  `Periodicite` tinyint(3) unsigned default NULL,
  `Type_periodicite` tinyint(3) unsigned default NULL,
  `Duree_contrat` int(10) unsigned default NULL,
  `Type_duree_contrat` tinyint(3) unsigned default NULL,
  `Type_contrat` tinyint(3) unsigned default NULL,
  `Duree_recon_contrat` int(10) unsigned default NULL,
  `Type_duree_recon_contrat` tinyint(3) unsigned default NULL,
  `OptionRachat` tinyint(3) unsigned default NULL,
  `Delai_preavis` tinyint(3) unsigned default NULL,
  `Delai_gen_facture` tinyint(3) unsigned default NULL,
  `nbPeriodeOfferte` tinyint(3) unsigned default NULL,
  `Delais_reglement` tinyint(3) unsigned default NULL,
  `Type_reglement` tinyint(3) unsigned default NULL,
  `Val_type_reglement` tinyint(3) unsigned default '0',
  `Commentaires` text,
  `Com_ds_facture` tinyint(3) unsigned default NULL,
  `Login_resp` varchar(15) default '',
  `Code_tarif` tinyint(3) unsigned default '1',
  `Mode_reglement` varchar(25) default NULL,
  `Remise` decimal(5,2) unsigned default NULL,
  `Escompte` decimal(5,2) unsigned default NULL,
  `Frais_Port` decimal(10,2) unsigned default NULL,
  `Date_Creation` bigint(20) unsigned default NULL,
  `Date_Maj` bigint(20) unsigned default NULL,
  `Login_Maj` varchar(15) default NULL,
  `Login_Createur` varchar(15) default NULL,
  `Type_facturation` tinyint(3) unsigned default NULL,
  `PrefixeNumContrat` varchar(6) default NULL,
  `Edition_TTC` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Modele_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `MODELE`
--


--
-- Table structure for table `MODELE_ETIQUETTE`
--

CREATE TABLE `MODELE_ETIQUETTE` (
  `Modele_Id` varchar(10) NOT NULL,
  `Description` varchar(100) NOT NULL,
  `Class` varchar(100) default '',
  PRIMARY KEY  (`Modele_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `MODELE_ETIQUETTE`
--

INSERT INTO `MODELE_ETIQUETTE` VALUES ('STD01','Standard 120 x 80',''),('STD02','Standard 225 x 80','');

--
-- Table structure for table `MODE_REGLEMENT`
--

CREATE TABLE `MODE_REGLEMENT` (
  `Mode_R` varchar(25) NOT NULL,
  `Type_R` varchar(20) default '',
  PRIMARY KEY  (`Mode_R`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `MODE_REGLEMENT`
--

INSERT INTO `MODE_REGLEMENT` VALUES ('Carte bancaire','CARTE BANCAIRE'),('Cheque','CHEQUE'),('Especes','ESPECES'),('LCR','LCR'),('Prelevement','PRELEVEMENT'),('Virement','VIREMENT');

--
-- Table structure for table `MVT_STOCK`
--

CREATE TABLE `MVT_STOCK` (
  `Mvt_Id` int(10) unsigned NOT NULL auto_increment,
  `Article_Id` char(40) default NULL,
  `Date_Mvt` bigint(20) unsigned default NULL,
  `Type_Mvt` char(1) default NULL,
  `Quantite` decimal(10,2) default NULL,
  `Frais_Appro` decimal(10,2) default '0.00',
  `Prix_HT` decimal(14,4) unsigned default '0.0000',
  `Num_Piece` varchar(11) default '',
  `Libelle` varchar(50) default '',
  PRIMARY KEY  (`Mvt_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `MVT_STOCK`
--

INSERT INTO `MVT_STOCK` VALUES (1,'Prest001A',1199784120774,'S','4.00','0.00','0.0000','F08010003','Facture express'),(2,'MaRef0001',1199790294045,'S','1.00','0.00','0.0000','BL08010001','Bon de livraison'),(3,'MaRef0002',1199790294045,'S','1.00','0.00','0.0000','BL08010001','Bon de livraison'),(4,'',1199790538230,'S','1.00','0.00','0.0000','BL08010002','Bon de livraison'),(5,'MaRef0001',1199790828769,'S','1.00','0.00','0.0000','BL08010003','Bon de livraison'),(6,'MaRef0002',1199790828769,'S','1.00','0.00','0.0000','BL08010003','Bon de livraison'),(7,'Prest001A',1199896637723,'S','15.00','0.00','0.0000','F08010004','Facture express'),(8,'Prest001A',1199973014038,'S','12.00','0.00','0.0000','F08010005','Facture express'),(9,'Prest001A',1199973764831,'S','53.00','0.00','0.0000','F08010006','Facture express'),(10,'Prest001A',1200148879169,'S','23.00','0.00','0.0000','F08010007','Facture express'),(11,'AP002',1200148879169,'S','5.00','0.00','0.0000','F08010007','Facture express'),(12,'AP003',1200148991962,'S','200.00','0.00','0.0000','F08010008','Facture express'),(13,'AP003',1200149057016,'S','50.00','0.00','0.0000','F08010009','Facture express'),(14,'AP002',1200149117937,'S','10.00','0.00','0.0000','F08010010','Facture express'),(15,'Prest001A',1200305949629,'S','5.00','0.00','0.0000','F08010011','Facture express'),(16,'AP003',1200305949629,'S','4.00','0.00','0.0000','F08010011','Facture express'),(17,'Prest001A',1200307021748,'S','53.00','0.00','0.0000','BL08010004','Bon de livraison'),(18,'Prest001A',1200329320928,'S','1.00','0.00','0.0000','F08010013','Facture express'),(19,'Prest001A',1200329466474,'E','1.00','0.00','0.0000','A08010014','Avoir'),(20,'AP002',1200507110244,'S','1.00','0.00','0.0000','F08010015','Facture express'),(21,'Prest001A',1205743918435,'S','1.00','0.00','0.0000','BL08030001','Bon de livraison'),(22,'AP003',1207044587288,'S','10.00','0.00','0.0000','BL08040001','Bon de livraison'),(23,'AP003',1207046591688,'S','40.00','0.00','0.0000','BL08040002','Bon de livraison'),(24,'AP003',1207046650141,'S','2.00','0.00','0.0000','BL08040003','Bon de livraison'),(25,'AP003',1207046699878,'S','3.00','0.00','0.0000','BL08040004','Bon de livraison'),(26,'AP003',1210863519113,'E','1.00','0.00','20.0000','BR08050001','Bon de réception'),(27,'AP003',1211192129947,'E','5.00','0.00','20.0000','BR08050002','Bon de réception'),(28,'AP003',1211192182911,'E','5.00','0.00','20.0000','BR08050003','Bon de réception'),(29,'AP003',1211272775475,'E','5.00','0.00','20.0000','BR08050004','Bon de réception'),(30,'AP003',1211273490965,'E','339.00','0.00','20.0000','BR08050005','Bon de réception'),(31,'AP003',1211274045732,'E','12.00','4.26','23.2600','BR08050006','Bon de réception'),(32,'AP002',1211295290872,'S','1.00','0.00','0.0000','F08050001','Facture express'),(33,'svael001',1211784381882,'S','5.00','0.00','0.0000','F08050002','Facture express'),(34,'AP002',1211785124385,'S','10.00','0.00','0.0000','F08050003','Facture express'),(35,'AP003',1217688122983,'S','1.00','0.00','0.0000','F08080001','Facture express'),(36,'svael001',1217868378260,'S','1.00','0.00','0.0000','F08080002','Facture express'),(37,'Prest001A',1219829831716,'S','1.00','0.00','0.0000','F08080003','Facture express'),(38,'Prest001A',1219847154178,'S','15.00','0.00','0.0000','F08080004','Facture express'),(39,'svael001',1221155949767,'S','1.00','0.00','0.0000','BL08090001','Bon de livraison'),(40,'AP003',1221155974579,'S','1.00','0.00','0.0000','BL08090002','Bon de livraison'),(41,'AP003',1221156225844,'S','2.00','0.00','0.0000','BL08090003','Bon de livraison'),(42,'AP002',1221156336291,'S','3.00','0.00','0.0000','BL08090004','Bon de livraison'),(43,'Prest001A',1221156336291,'S','2.00','0.00','0.0000','BL08090004','Bon de livraison'),(44,'svael001',1221156352936,'S','5.00','0.00','0.0000','BL08090005','Bon de livraison'),(45,'AP003',1221156352936,'S','8.00','0.00','0.0000','BL08090005','Bon de livraison'),(46,'AP002',1221156352936,'S','2.00','0.00','0.0000','BL08090005','Bon de livraison'),(47,'Prest001A',1221156352936,'S','8.00','0.00','0.0000','BL08090005','Bon de livraison'),(48,'AP003',1221157254711,'S','2.00','0.00','0.0000','BL08090006','Bon de livraison'),(49,'svael001',1221157254711,'S','3.00','0.00','0.0000','BL08090006','Bon de livraison'),(50,'AP003',1221157319219,'S','2.00','0.00','0.0000','BL08090007','Bon de livraison'),(51,'svael001',1221157319219,'S','1.00','0.00','0.0000','BL08090007','Bon de livraison'),(52,'Prest001A',1221157539591,'S','4.00','0.00','0.0000','BL08090008','Bon de livraison'),(53,'AP003',1221157539591,'S','10.00','0.00','0.0000','BL08090008','Bon de livraison'),(54,'AP002',1221157549074,'S','1.00','0.00','0.0000','BL08090009','Bon de livraison'),(55,'Prest001A',1221157549074,'S','1.00','0.00','0.0000','BL08090009','Bon de livraison'),(56,'svael001',1221157549074,'S','1.00','0.00','0.0000','BL08090009','Bon de livraison'),(57,'AP003',1221157549074,'S','1.00','0.00','0.0000','BL08090009','Bon de livraison'),(58,'ALP1051020',1221666010813,'S','5.00','0.00','0.0000','BL08090010','Bon de livraison'),(59,'ALP1051020',1221666152156,'S','20.00','0.00','0.0000','BL08090011','Bon de livraison'),(60,'ALP1051020',1221666200469,'S','5.00','0.00','0.0000','BL08090012','Bon de livraison'),(61,'ALP1051020',1222282380669,'S','1.00','0.00','0.0000','BL08090013','Bon de livraison'),(62,'ALP1051020',1222689829769,'S','5.00','0.00','0.0000','BL08090015','Bon de livraison'),(63,'AP003',1222690240462,'S','5.00','0.00','0.0000','BL08090016','Bon de livraison'),(64,'svael001',1222690240462,'S','1.00','0.00','0.0000','BL08090016','Bon de livraison'),(65,'ALP1051020',1222690274688,'S','10.00','0.00','0.0000','BL08090017','Bon de livraison'),(66,'ALP1051020',1222693158602,'S','3.00','0.00','0.0000','BL08090018','Bon de livraison'),(67,'ALP1051020',1222693184136,'S','7.00','0.00','0.0000','BL08090019','Bon de livraison'),(68,'AP003',1222693210208,'S','5.00','0.00','0.0000','BL08090020','Bon de livraison'),(69,'svael001',1222693244711,'S','1.00','0.00','0.0000','BL08090021','Bon de livraison'),(70,'AP003',1222693244711,'S','2.00','0.00','0.0000','BL08090021','Bon de livraison'),(71,'AP003',1222693266320,'S','3.00','0.00','0.0000','BL08090022','Bon de livraison'),(72,'apha-102',1222694507357,'S','2.00','0.00','0.0000','BL08090023','Bon de livraison'),(73,'ALP1051020',1222697892185,'S','2.00','0.00','0.0000','BL08090024','Bon de livraison'),(74,'AP003',1222699019676,'S','1.00','0.00','0.0000','BL08090025','Bon de livraison'),(75,'apha-102',1222699019676,'S','1.00','0.00','0.0000','BL08090025','Bon de livraison'),(76,'ALP1051020',1222699268705,'S','3.00','0.00','0.0000','BL08090026','Bon de livraison'),(77,'AP003',1222699385902,'S','5.00','0.00','0.0000','BL08090027','Bon de livraison'),(78,'apha-102',1222699385902,'S','1.00','0.00','0.0000','BL08090027','Bon de livraison'),(79,'ALP1051020',1222854497826,'S','5.00','0.00','0.0000','BL08100001','Bon de livraison'),(80,'ALP1051020',1222854678754,'S','2.00','0.00','0.0000','BL08100002','Bon de livraison'),(81,'ALP1051020',1222854712612,'S','3.00','0.00','0.0000','BL08100003','Bon de livraison'),(82,'ALP1051020',1223285291360,'S','5.00','0.00','0.0000','BL08100004','Bon de livraison'),(83,'svael001',1223285291360,'S','1.00','0.00','0.0000','BL08100004','Bon de livraison'),(84,'AP003',1223285390916,'S','2.00','0.00','0.0000','BL08100005','Bon de livraison'),(85,'ALP1051020',1223285390916,'S','1.00','0.00','0.0000','BL08100005','Bon de livraison'),(86,'Prest001A',1223285443396,'S','1.00','0.00','0.0000','BL08100006','Bon de livraison'),(87,'apha-102',1223285443396,'S','5.00','0.00','0.0000','BL08100006','Bon de livraison'),(88,'AP003',1223297171645,'S','3.00','0.00','0.0000','BL08100007','Bon de livraison'),(89,'ALP1051020',1223297171645,'S','5.00','0.00','0.0000','BL08100007','Bon de livraison'),(90,'apha-102',1223297207581,'S','5.00','0.00','0.0000','BL08100008','Bon de livraison'),(91,'ALP1051020',1223297241746,'S','5.00','0.00','0.0000','BL08100009','Bon de livraison'),(92,'ALP1051020',1223297280522,'S','4.00','0.00','0.0000','BL08100010','Bon de livraison'),(93,'ALP1051020',1223297310990,'S','5.00','0.00','0.0000','BL08100011','Bon de livraison'),(94,'apha-102',1223891954197,'S','3.00','0.00','0.0000','BL08100012','Bon de livraison'),(95,'ALP1051020',1223891982927,'S','3.00','0.00','0.0000','BL08100013','Bon de livraison'),(96,'AP002',1223891982927,'S','1.00','0.00','0.0000','BL08100013','Bon de livraison'),(97,'AP003',1223892002820,'S','3.00','0.00','0.0000','BL08100014','Bon de livraison'),(98,'apha-102',1223892026882,'S','2.00','0.00','0.0000','BL08100015','Bon de livraison'),(99,'AP003',1223892045161,'S','2.00','0.00','0.0000','BL08100016','Bon de livraison'),(100,'ALP1051020',1223892061508,'S','7.00','0.00','0.0000','BL08100017','Bon de livraison'),(101,'AP002',1223892061508,'S','1.00','0.00','0.0000','BL08100017','Bon de livraison'),(102,'Prest001A',1223892557645,'S','1.00','0.00','0.0000','BL08100018','Bon de livraison'),(103,'svael001',1223892557645,'S','1.00','0.00','0.0000','BL08100018','Bon de livraison'),(104,'AP003',1223892584619,'S','2.00','0.00','0.0000','BL08100019','Bon de livraison'),(105,'ALP1051020',1223892605959,'S','1.00','0.00','0.0000','BL08100020','Bon de livraison'),(106,'apha-102',1223892605959,'S','1.00','0.00','0.0000','BL08100020','Bon de livraison'),(107,'svael001',1223892624246,'S','1.00','0.00','0.0000','BL08100021','Bon de livraison'),(108,'ALP1051020',1223892642954,'S','1.00','0.00','0.0000','BL08100022','Bon de livraison'),(109,'apha-102',1223892642954,'S','1.00','0.00','0.0000','BL08100022','Bon de livraison'),(110,'AP003',1223892659373,'S','3.00','0.00','0.0000','BL08100023','Bon de livraison'),(111,'ALP1051020',1223893090210,'S','10.00','0.00','0.0000','BL08100024','Bon de livraison'),(112,'AP003',1223893106903,'S','2.00','0.00','0.0000','BL08100025','Bon de livraison'),(113,'AP003',1223893119614,'S','3.00','0.00','0.0000','BL08100026','Bon de livraison'),(114,'AP002',1223901837669,'S','1.00','0.00','0.0000','BL08100027','Bon de livraison'),(115,'svael001',1223901837669,'S','1.00','0.00','0.0000','BL08100027','Bon de livraison'),(116,'apha-102',1223901896844,'S','1.00','0.00','0.0000','BL08100028','Bon de livraison'),(117,'ALP1051020',1223901896844,'S','4.00','0.00','0.0000','BL08100028','Bon de livraison'),(118,'svael001',1223901923560,'S','2.00','0.00','0.0000','BL08100029','Bon de livraison'),(119,'Prest001A',1223901968065,'S','1.00','0.00','0.0000','BL08100030','Bon de livraison'),(120,'ALP1051020',1223901989486,'S','4.00','0.00','0.0000','BL08100031','Bon de livraison'),(121,'ALP1051020',1223903692407,'S','1.00','0.00','0.0000','BL08100032','Bon de livraison'),(122,'ALP1051020',1223903756246,'S','5.00','0.00','0.0000','BL08100033','Bon de livraison'),(123,'ALP1051020',1223903777141,'S','5.00','0.00','0.0000','BL08100034','Bon de livraison'),(124,'ALP1051020',1223903846646,'S','5.00','0.00','0.0000','BL08100035','Bon de livraison'),(125,'ALP1051020',1223996054494,'S','3.00','0.00','0.0000','F08100016','Facture express'),(126,'apha-102',1223996054494,'S','3.00','0.00','0.0000','F08100016','Facture express'),(127,'AP003',1224001810026,'S','3.00','0.00','0.0000','F08100017','Facture express'),(128,'apha-102',1224001810026,'S','3.00','0.00','0.0000','F08100017','Facture express'),(129,'SOUP001',1224002277302,'S','5.00','0.00','0.0000','F08100018','Facture express'),(130,'ALP1051020',1224002277302,'S','3.00','0.00','0.0000','F08100018','Facture express'),(131,'svael001',1224002277302,'S','1.00','0.00','0.0000','F08100018','Facture express'),(132,'SOUP001',1224002386106,'S','3.00','0.00','0.0000','F08100019','Facture express'),(133,'AP003',1224002386106,'S','1.00','0.00','0.0000','F08100019','Facture express'),(134,'SOUP001',1224057790971,'S','5.00','0.00','0.0000','F08100020','Facture express'),(135,'apha-102',1224057790971,'S','3.00','0.00','0.0000','F08100020','Facture express'),(136,'svael001',1224057790971,'S','2.00','0.00','0.0000','F08100020','Facture express'),(137,'AP003',1224058055107,'S','3.00','0.00','0.0000','F08100021','Facture express'),(138,'SOUP001',1224058055107,'S','3.00','0.00','0.0000','F08100021','Facture express'),(139,'ALP1051020',1224058055107,'S','3.00','0.00','0.0000','F08100021','Facture express'),(140,'SOUP001',1224058513158,'S','3.00','0.00','0.0000','BL08100036','Bon de livraison'),(141,'Prest001A',1224058513158,'S','1.00','0.00','0.0000','BL08100036','Bon de livraison'),(142,'apha-102',1224058513158,'S','1.00','0.00','0.0000','BL08100036','Bon de livraison'),(143,'AP003',1224058513158,'S','1.00','0.00','0.0000','BL08100036','Bon de livraison'),(144,'svael001',1224058533874,'S','1.00','0.00','0.0000','BL08100037','Bon de livraison'),(145,'SOUP001',1224058533874,'S','3.00','0.00','0.0000','BL08100037','Bon de livraison'),(146,'ALP1051020',1224058533874,'S','1.00','0.00','0.0000','BL08100037','Bon de livraison'),(147,'AP003',1224058551429,'S','1.00','0.00','0.0000','BL08100038','Bon de livraison'),(148,'svael001',1224058551429,'S','1.00','0.00','0.0000','BL08100038','Bon de livraison'),(149,'SOUP001',1224058551429,'S','5.00','0.00','0.0000','BL08100038','Bon de livraison'),(150,'apha-102',1224060969950,'E','500.00','0.00','12.5600','BR08100001','Bon de réception'),(151,'ALP1051020',1224060969950,'E','400.00','0.00','11.7000','BR08100001','Bon de réception'),(152,'SOUP001',1224061040429,'E','1000.00','0.00','21.3600','BR08100002','Bon de réception'),(153,'AP003',1224061192268,'E','500.00','0.50','19.5000','BR08100003','Bon de réception'),(154,'CONF-001',1224072059818,'E','500.00','0.00','3.5600','BR08100004','Bon de réception'),(155,'SOUP001',1224072216459,'S','3.00','0.00','0.0000','F08100025','Facture express'),(156,'ALP1051020',1224072216459,'S','5.00','0.00','0.0000','F08100025','Facture express'),(157,'CONF-001',1224072216459,'S','13.00','0.00','0.0000','F08100025','Facture express'),(158,'svael001',1224072216459,'S','1.00','0.00','0.0000','F08100025','Facture express'),(159,'apha-102',1224072216459,'S','5.00','0.00','0.0000','F08100025','Facture express'),(160,'AP003',1224072216459,'S','1.00','0.00','0.0000','F08100025','Facture express'),(161,'Prest001A',1224072698546,'S','3.00','0.00','0.0000','F08100026','Facture express'),(162,'svael001',1224072698546,'S','2.00','0.00','0.0000','F08100026','Facture express'),(163,'ALP1051020',1224072698546,'S','5.00','0.00','0.0000','F08100026','Facture express'),(164,'apha-102',1224072698546,'S','3.00','0.00','0.0000','F08100026','Facture express'),(165,'CONF-001',1224072698546,'S','5.00','0.00','0.0000','F08100026','Facture express'),(166,'AP003',1224072698546,'S','3.00','0.00','0.0000','F08100026','Facture express'),(167,'SOUP001',1224072698546,'S','3.00','0.00','0.0000','F08100026','Facture express'),(168,'AP002',1224072698546,'S','3.00','0.00','0.0000','F08100026','Facture express'),(169,'SUC-001',1224074283149,'E','359.00','0.00','5.3980','BR08100005','Bon de réception'),(170,'SUC_002',1224074283149,'E','568.00','0.00','4.2130','BR08100005','Bon de réception'),(171,'SUC-001',1224074492370,'S','5.00','0.00','0.0000','F08100027','Facture express'),(172,'SUC_002',1224074492370,'S','3.00','0.00','0.0000','F08100027','Facture express'),(173,'svael001',1224074492370,'S','1.00','0.00','0.0000','F08100027','Facture express'),(174,'Prest001A',1224074492370,'S','3.00','0.00','0.0000','F08100027','Facture express'),(175,'AP002',1224074492370,'S','1.00','0.00','0.0000','F08100027','Facture express'),(176,'ALP1051020',1224074492370,'S','3.00','0.00','0.0000','F08100027','Facture express'),(177,'apha-102',1224074492370,'S','3.00','0.00','0.0000','F08100027','Facture express'),(178,'CONF-001',1224074492370,'S','8.00','0.00','0.0000','F08100027','Facture express'),(179,'AP003',1224074492370,'S','3.00','0.00','0.0000','F08100027','Facture express'),(180,'SOUP001',1224074492370,'S','3.00','0.00','0.0000','F08100027','Facture express'),(181,'GAR_002',1224077831815,'E','50.00','0.00','2856.3420','BR08100006','Bon de réception'),(182,'GAR_004',1224077831815,'E','150.00','0.00','78.2300','BR08100006','Bon de réception'),(183,'GAR_003',1224077900902,'E','55.00','0.00','238.1300','BR08100007','Bon de réception'),(184,'GAR_006',1224077964229,'E','50.00','0.00','989.6500','BR08100008','Bon de réception'),(185,'GAR_007',1224077964229,'E','50.00','0.00','26.0000','BR08100008','Bon de réception'),(186,'GAR_004',1224078881260,'S','1.00','0.00','0.0000','BL08100039','Bon de livraison'),(187,'GAR_002',1224078881260,'S','1.00','0.00','0.0000','BL08100039','Bon de livraison'),(188,'GAR_005',1224078881260,'S','5.00','0.00','0.0000','BL08100039','Bon de livraison'),(189,'GAR_006',1224078896479,'S','1.00','0.00','0.0000','BL08100040','Bon de livraison'),(190,'GAR_007',1224078896479,'S','1.00','0.00','0.0000','BL08100040','Bon de livraison'),(191,'GAR_003',1224078896479,'S','1.00','0.00','0.0000','BL08100040','Bon de livraison'),(192,'GAR_003',1224078911979,'S','2.00','0.00','0.0000','BL08100041','Bon de livraison'),(193,'SUC-001',1224078911979,'S','10.00','0.00','0.0000','BL08100041','Bon de livraison'),(194,'ALP1051020',1224144137457,'S','1.00','0.00','0.0000','BL08100042','Bon de livraison'),(195,'CONF-001',1224144137457,'S','2.00','0.00','0.0000','BL08100042','Bon de livraison'),(196,'GAR_004',1224144137457,'S','1.00','0.00','0.0000','BL08100042','Bon de livraison'),(197,'AP003',1224144137457,'S','1.00','0.00','0.0000','BL08100042','Bon de livraison'),(198,'GAR_005',1224144137457,'S','1.00','0.00','0.0000','BL08100042','Bon de livraison'),(199,'GAR_003',1224144137457,'S','1.00','0.00','0.0000','BL08100042','Bon de livraison'),(200,'ALP1051020',1224144165145,'S','1.00','0.00','0.0000','BL08100043','Bon de livraison'),(201,'GAR_005',1224144165145,'S','1.00','0.00','0.0000','BL08100043','Bon de livraison'),(202,'SUC-001',1224144165145,'S','1.00','0.00','0.0000','BL08100043','Bon de livraison'),(203,'ALP1051020',1224144184374,'S','1.00','0.00','0.0000','BL08100044','Bon de livraison'),(204,'GAR_005',1224144184374,'S','1.00','0.00','0.0000','BL08100044','Bon de livraison'),(205,'ALP1051020',1224144202652,'S','2.00','0.00','0.0000','BL08100045','Bon de livraison'),(206,'CONF-001',1224144202652,'S','3.00','0.00','0.0000','BL08100045','Bon de livraison'),(207,'CONF-001',1224144217339,'S','1.00','0.00','0.0000','BL08100046','Bon de livraison'),(208,'AP003',1224144217339,'S','1.00','0.00','0.0000','BL08100046','Bon de livraison'),(209,'GAR_006',1224144348759,'S','1.00','0.00','0.0000','BL08100047','Bon de livraison'),(210,'GAR_007',1224144348759,'S','1.00','0.00','0.0000','BL08100047','Bon de livraison'),(211,'GAR_005',1224144348759,'S','2.00','0.00','0.0000','BL08100047','Bon de livraison'),(212,'SUC-001',1224144348759,'S','1.00','0.00','0.0000','BL08100047','Bon de livraison'),(213,'GAR_007',1224144365202,'S','1.00','0.00','0.0000','BL08100048','Bon de livraison'),(214,'GAR_005',1224144365202,'S','3.00','0.00','0.0000','BL08100048','Bon de livraison'),(215,'GAR_002',1224339828752,'S','2.00','0.00','0.0000','BL08100049','Bon de livraison'),(216,'CONF-001',1224339828752,'S','2.00','0.00','0.0000','BL08100049','Bon de livraison'),(217,'GAR_005',1224339828752,'S','1.00','0.00','0.0000','BL08100049','Bon de livraison'),(218,'apha-102',1224339859645,'S','3.00','0.00','0.0000','BL08100050','Bon de livraison'),(219,'SUC-001',1224339859645,'S','5.00','0.00','0.0000','BL08100050','Bon de livraison'),(220,'SOUP001',1224339859645,'S','15.00','0.00','0.0000','BL08100050','Bon de livraison'),(221,'svael001',1224339911910,'S','1.00','0.00','0.0000','BL08100051','Bon de livraison'),(222,'AP003',1224339911910,'S','1.00','0.00','0.0000','BL08100051','Bon de livraison'),(223,'GAR_004',1224339911910,'S','2.00','0.00','0.0000','BL08100051','Bon de livraison'),(224,'CONF-001',1224339911910,'S','3.00','0.00','0.0000','BL08100051','Bon de livraison'),(225,'GAR_005',1224339911910,'S','3.00','0.00','0.0000','BL08100051','Bon de livraison'),(226,'SUC_002',1224339911910,'S','1.00','0.00','0.0000','BL08100051','Bon de livraison'),(227,'CONF-001',1224339911910,'S','1.00','0.00','0.0000','BL08100051','Bon de livraison'),(228,'GAR_006',1224339932936,'S','2.00','0.00','0.0000','BL08100052','Bon de livraison'),(229,'GAR_003',1224339932936,'S','3.00','0.00','0.0000','BL08100052','Bon de livraison'),(230,'CONF-001',1224339951941,'S','3.00','0.00','0.0000','BL08100053','Bon de livraison'),(231,'SOUP001',1224339969149,'S','16.00','0.00','0.0000','BL08100054','Bon de livraison'),(232,'AP003',1224339997961,'S','2.00','0.00','0.0000','BL08100055','Bon de livraison'),(233,'SUC_002',1224339997961,'S','2.00','0.00','0.0000','BL08100055','Bon de livraison'),(234,'GAR_004',1224339997961,'S','1.00','0.00','0.0000','BL08100055','Bon de livraison'),(235,'CONF-001',1224339997961,'S','1.00','0.00','0.0000','BL08100055','Bon de livraison'),(236,'AP002',1224340013127,'S','1.00','0.00','0.0000','BL08100056','Bon de livraison'),(237,'GAR_005',1224340027378,'S','2.00','0.00','0.0000','BL08100057','Bon de livraison'),(238,'GAR_004',1224340043169,'S','2.00','0.00','0.0000','BL08100058','Bon de livraison'),(239,'CONF-001',1224340043169,'S','2.00','0.00','0.0000','BL08100058','Bon de livraison'),(240,'CONF-001',1224340043169,'S','1.00','0.00','0.0000','BL08100058','Bon de livraison'),(241,'GAR_003',1224521879279,'S','1.00','0.00','0.0000','F08100035','Facture express'),(242,'GAR_003',1224590962752,'S','1.00','0.00','0.0000','BL08100059','Bon de livraison'),(243,'ALP1051020',1224590962752,'S','2.00','0.00','0.0000','BL08100059','Bon de livraison'),(244,'CONF-001',1224590962752,'S','2.00','0.00','0.0000','BL08100059','Bon de livraison'),(245,'AP003',1224590962752,'S','1.00','0.00','0.0000','BL08100059','Bon de livraison'),(246,'GAR_001',1224591063293,'S','1.00','0.00','0.0000','BL08100060','Bon de livraison'),(247,'GAR_005',1224591063293,'S','1.00','0.00','0.0000','BL08100060','Bon de livraison'),(248,'GAR_003',1224591147939,'S','2.00','0.00','0.0000','BL08100061','Bon de livraison'),(249,'ALP1051020',1224591147939,'S','1.00','0.00','0.0000','BL08100061','Bon de livraison'),(250,'CONF-001',1224591147939,'S','3.00','0.00','0.0000','BL08100061','Bon de livraison'),(251,'SUC_002',1224591147939,'S','1.00','0.00','0.0000','BL08100061','Bon de livraison'),(252,'SOUP001',1224591147939,'S','1.00','0.00','0.0000','BL08100061','Bon de livraison'),(253,'GAR_003',1224591198739,'S','1.00','0.00','0.0000','BL08100062','Bon de livraison'),(254,'GAR_006',1224591198739,'S','1.00','0.00','0.0000','BL08100062','Bon de livraison'),(255,'GAR_002',1224604610941,'S','1.00','0.00','0.0000','F08100038','Facture express'),(256,'GAR_005',1224604610941,'S','4.00','0.00','0.0000','F08100038','Facture express'),(257,'GAR_002',1224604638732,'S','1.00','0.00','0.0000','F08100039','Facture express'),(258,'GAR_005',1224604638732,'S','4.00','0.00','0.0000','F08100039','Facture express'),(259,'GAR_005',1225028935789,'S','2.00','0.00','0.0000','BL08100063','Bon de livraison'),(260,'GAR_002',1225028935789,'S','1.00','0.00','0.0000','BL08100063','Bon de livraison'),(261,'SUC-001',1225028971594,'S','1.00','0.00','0.0000','BL08100064','Bon de livraison'),(262,'SOUP001',1225028971594,'S','1.00','0.00','0.0000','BL08100064','Bon de livraison'),(263,'GAR_005',1225028993241,'S','1.00','0.00','0.0000','BL08100065','Bon de livraison'),(264,'GAR_002',1225028993241,'S','1.00','0.00','0.0000','BL08100065','Bon de livraison'),(265,'SUC-001',1225029011406,'S','2.00','0.00','0.0000','BL08100066','Bon de livraison'),(266,'SOUP001',1225029011406,'S','2.00','0.00','0.0000','BL08100066','Bon de livraison'),(267,'apha-102',1225029169307,'S','1.00','0.00','0.0000','BL08100067','Bon de livraison'),(268,'SUC-001',1225029169307,'S','3.00','0.00','0.0000','BL08100067','Bon de livraison'),(269,'GAR_004',1225029169307,'S','1.00','0.00','0.0000','BL08100067','Bon de livraison'),(270,'GAR_005',1225029203732,'S','2.00','0.00','0.0000','BL08100068','Bon de livraison'),(271,'GAR_006',1225029203732,'S','1.00','0.00','0.0000','BL08100068','Bon de livraison'),(272,'apha-102',1225029226808,'S','1.00','0.00','0.0000','BL08100069','Bon de livraison'),(273,'GAR_005',1225029244731,'S','1.00','0.00','0.0000','BL08100070','Bon de livraison'),(274,'GAR_006',1225029244731,'S','1.00','0.00','0.0000','BL08100070','Bon de livraison'),(275,'apha-102',1225029261754,'S','1.00','0.00','0.0000','BL08100071','Bon de livraison'),(276,'GAR_004',1225029261754,'S','2.00','0.00','0.0000','BL08100071','Bon de livraison'),(277,'GAR_006',1225029288124,'S','1.00','0.00','0.0000','BL08100072','Bon de livraison'),(278,'AP003',1225438973839,'S','1.00','0.00','0.0000','BL08100073','Bon de livraison'),(279,'GAR_004',1225438973839,'S','1.00','0.00','0.0000','BL08100073','Bon de livraison'),(280,'CONF-001',1225439037911,'S','2.00','0.00','0.0000','BL08100074','Bon de livraison'),(281,'GAR_005',1225439037911,'S','1.00','0.00','0.0000','BL08100074','Bon de livraison'),(282,'SOUP001',1225439037911,'S','2.00','0.00','0.0000','BL08100074','Bon de livraison'),(283,'AP003',1225439068175,'S','2.00','0.00','0.0000','BL08100075','Bon de livraison'),(284,'GAR_004',1225439098795,'S','4.00','0.00','0.0000','BL08100076','Bon de livraison'),(285,'CONF-001',1225439297194,'S','1.00','0.00','0.0000','BL08100077','Bon de livraison'),(286,'GAR_005',1225439297194,'S','2.00','0.00','0.0000','BL08100077','Bon de livraison'),(287,'SOUP001',1225439297194,'S','3.00','0.00','0.0000','BL08100077','Bon de livraison'),(288,'ALP1051020',1225439641721,'S','1.00','0.00','0.0000','BL08100078','Bon de livraison'),(289,'GAR_003',1225439641721,'S','1.00','0.00','0.0000','BL08100078','Bon de livraison'),(290,'AP003',1225439673381,'S','1.00','0.00','0.0000','BL08100079','Bon de livraison'),(291,'CONF-001',1225439673381,'S','1.00','0.00','0.0000','BL08100079','Bon de livraison'),(292,'GAR_002',1225439699032,'S','1.00','0.00','0.0000','BL08100080','Bon de livraison'),(293,'CONF-001',1225439725760,'S','2.00','0.00','0.0000','BL08100081','Bon de livraison'),(294,'GAR_007',1225439786694,'S','1.00','0.00','0.0000','BL08100082','Bon de livraison'),(295,'SUC-001',1225803690601,'S','1.00','0.00','0.0000','F08110001','Facture express'),(296,'GAR_004',1225803690601,'S','1.00','0.00','0.0000','F08110001','Facture express'),(297,'SOUP001',1225803690601,'S','1.00','0.00','0.0000','F08110001','Facture express'),(298,'ALP1051020',1225803843416,'S','1.00','0.00','0.0000','F08110002','Facture express'),(299,'SUC-001',1225803843416,'S','1.00','0.00','0.0000','F08110002','Facture express'),(300,'SOUP001',1225803843416,'S','1.00','0.00','0.0000','F08110002','Facture express'),(301,'GAR_003',1225803843416,'S','1.00','0.00','0.0000','F08110002','Facture express'),(302,'GAR_003',1225803843416,'S','1.00','0.00','0.0000','F08110002','Facture express'),(303,'SUC_002',1225803843416,'S','1.00','0.00','0.0000','F08110002','Facture express'),(304,'CONF-001',1225804131612,'S','1.00','0.00','0.0000','F08110003','Facture express'),(305,'ALP1051020',1225804304565,'S','1.00','0.00','0.0000','F08110004','Facture express'),(306,'GAR_006',1225804304565,'S','1.00','0.00','0.0000','F08110004','Facture express'),(307,'GAR_002',1225804304565,'S','1.00','0.00','0.0000','F08110004','Facture express'),(308,'SOUP001',1225804304565,'S','1.00','0.00','0.0000','F08110004','Facture express'),(309,'CONF-001',1225804304565,'S','1.00','0.00','0.0000','F08110004','Facture express'),(310,'CONF-001',1225804485401,'S','1.00','0.00','0.0000','F08110005','Facture express'),(311,'GAR_003',1225804485401,'S','1.00','0.00','0.0000','F08110005','Facture express'),(312,'GAR_001',1225804485401,'S','1.00','0.00','0.0000','F08110005','Facture express'),(313,'SOUP001',1225804485401,'S','1.00','0.00','0.0000','F08110005','Facture express'),(314,'SUC_002',1225804485401,'S','1.00','0.00','0.0000','F08110005','Facture express'),(315,'GAR_004',1225804485401,'S','1.00','0.00','0.0000','F08110005','Facture express'),(316,'AP003',1225804485401,'S','1.00','0.00','0.0000','F08110005','Facture express'),(317,'SUC-001',1225870298975,'S','1.00','0.00','0.0000','BL08110001','Bon de livraison'),(318,'apha-102',1225870400410,'S','1.00','0.00','0.0000','BL08110002','Bon de livraison'),(319,'apha-102',1225871904454,'S','2.00','0.00','0.0000','BL08110003','Bon de livraison'),(320,'C001',1226569950884,'S','1.00','0.00','0.0000','BL08110004','Bon de livraison'),(321,'C001',1226570909887,'S','2.00','0.00','0.0000','BL08110005','Bon de livraison'),(322,'C001',1226571135244,'S','3.00','0.00','0.0000','BL08110006','Bon de livraison'),(323,'apha-102',1226572849097,'S','2.00','0.00','0.0000','BL08110007','Bon de livraison'),(324,'G001',1226572849097,'S','2.00','0.00','0.0000','BL08110007','Bon de livraison'),(325,'G001',1226572871142,'S','18.00','0.00','0.0000','BL08110008','Bon de livraison'),(326,'CONF-001',1226580609520,'S','1.00','0.00','0.0000','BL08110009','Bon de livraison'),(327,'GAR_006',1226580638225,'S','1.00','0.00','0.0000','BL08110010','Bon de livraison'),(328,'H001',1226581576796,'S','10.00','0.00','0.0000','BL08110011','Bon de livraison'),(329,'H001',1226581670703,'S','140.00','0.00','0.0000','BL08110012','Bon de livraison'),(330,'SUC-001',1226594745191,'S','5.00','0.00','0.0000','BL08110013','Bon de livraison'),(331,'SUC-001',1226594765679,'S','5.00','0.00','0.0000','BL08110014','Bon de livraison'),(332,'B001',1226594917851,'S','10.00','0.00','0.0000','BL08110015','Bon de livraison'),(333,'B001',1226594948483,'S','25.00','0.00','0.0000','BL08110016','Bon de livraison'),(334,'B001',1226594971541,'S','15.00','0.00','0.0000','BL08110017','Bon de livraison'),(335,'B001',1226597692628,'S','2.00','0.00','0.0000','BL08110018','Bon de livraison'),(336,'B001',1226597706406,'S','8.00','0.00','0.0000','BL08110019','Bon de livraison'),(337,'SOUP001',1226597862389,'S','2.00','0.00','0.0000','BL08110020','Bon de livraison'),(338,'SUC-001',1226597891900,'S','3.00','0.00','0.0000','BL08110021','Bon de livraison'),(339,'SOUP001',1226597907361,'S','3.00','0.00','0.0000','BL08110022','Bon de livraison'),(340,'SUC-001',1226597907361,'S','2.00','0.00','0.0000','BL08110022','Bon de livraison'),(341,'apha-102',1226598237629,'S','1.00','0.00','0.0000','BL08110023','Bon de livraison'),(342,'CONF-001',1226598237629,'S','1.00','0.00','0.0000','BL08110023','Bon de livraison'),(343,'B001',1226598259717,'S','10.00','0.00','0.0000','BL08110024','Bon de livraison'),(344,'GAR_006',1226598275476,'S','1.00','0.00','0.0000','BL08110025','Bon de livraison'),(345,'GAR_007',1226598275476,'S','1.00','0.00','0.0000','BL08110025','Bon de livraison'),(346,'CONF-001',1226598576948,'S','10.00','0.00','0.0000','BL08110026','Bon de livraison'),(347,'H001',1226598576948,'S','50.00','0.00','0.0000','BL08110026','Bon de livraison'),(348,'svael001',1226598591675,'S','1.00','0.00','0.0000','BL08110027','Bon de livraison'),(349,'GAR_003',1226598591675,'S','5.00','0.00','0.0000','BL08110027','Bon de livraison'),(350,'GAR_002',1226598604929,'S','5.00','0.00','0.0000','BL08110028','Bon de livraison'),(351,'B001',1226682169725,'S','25.00','0.00','0.0000','BL08110029','Bon de livraison'),(352,'G001',1226682202887,'S','50.00','0.00','0.0000','BL08110030','Bon de livraison'),(353,'H001',1226682202887,'S','80.00','0.00','0.0000','BL08110030','Bon de livraison'),(354,'B001',1226682217731,'S','25.00','0.00','0.0000','BL08110031','Bon de livraison'),(355,'G001',1226682231855,'S','100.00','0.00','0.0000','BL08110032','Bon de livraison'),(356,'H001',1226682231855,'S','120.00','0.00','0.0000','BL08110032','Bon de livraison'),(357,'V001',1228326104290,'S','1.00','0.00','0.0000','F08120001','Facture express'),(358,'V001',1228326438455,'S','1.00','0.00','0.0000','F08120002','Facture express'),(359,'V001',1228326639192,'S','1.00','0.00','0.0000','BL08120001','Bon de livraison'),(360,'V001',1228326922845,'S','1.00','0.00','0.0000','BL08120002','Bon de livraison'),(361,'CONF-001',1228382350139,'S','5.00','0.00','0.0000','BL08120003','Bon de livraison'),(362,'SUC-001',1228382350139,'S','3.00','0.00','0.0000','BL08120003','Bon de livraison'),(363,'GAR_004',1228382374122,'S','1.00','0.00','0.0000','BL08120004','Bon de livraison'),(364,'B001',1228382374122,'S','5.00','0.00','0.0000','BL08120004','Bon de livraison'),(365,'H001',1228383456742,'S','5.00','0.00','0.0000','BL08120005','Bon de livraison'),(366,'B001',1228383456742,'S','2.00','0.00','0.0000','BL08120005','Bon de livraison'),(367,'VP001',1228383483195,'S','3.00','0.00','0.0000','BL08120006','Bon de livraison'),(368,'B001',1228383483195,'S','2.00','0.00','0.0000','BL08120006','Bon de livraison'),(369,'H001',1228383501959,'S','5.00','0.00','0.0000','BL08120007','Bon de livraison');

--
-- Table structure for table `OPTION_CHAMP_PERSO`
--

CREATE TABLE `OPTION_CHAMP_PERSO` (
  `Liste_Id` int(10) unsigned NOT NULL auto_increment,
  `Libelle` varchar(50) default '',
  `Valeur` varchar(20) default '',
  `Champ_Perso_Id` int(10) unsigned default '0',
  PRIMARY KEY  (`Liste_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `OPTION_CHAMP_PERSO`
--


--
-- Table structure for table `ORG_LIVRAISON`
--

CREATE TABLE `ORG_LIVRAISON` (
  `Num_Org` int(10) unsigned NOT NULL auto_increment,
  `Nom_Org` varchar(30) default NULL,
  `Adresse` varchar(80) default NULL,
  `Code_Postal` varchar(10) default NULL,
  `Ville` varchar(50) default NULL,
  `Tel` varchar(20) default NULL,
  `Fax` varchar(20) default NULL,
  PRIMARY KEY  (`Num_Org`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `ORG_LIVRAISON`
--


--
-- Table structure for table `PARAMETRES`
--

CREATE TABLE `PARAMETRES` (
  `Activite` char(1) NOT NULL,
  `Marge_Com` int(11) default NULL,
  `Marge_Prod` int(11) default NULL,
  `Inventaire_Permanent` char(1) default NULL,
  `Coefficient_Saisonnier` char(1) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `PARAMETRES`
--

INSERT INTO `PARAMETRES` VALUES ('D',30,90,'n','n');

--
-- Table structure for table `PREP_BON_RECEPTION`
--

CREATE TABLE `PREP_BON_RECEPTION` (
  `Prep_Id` int(10) unsigned NOT NULL auto_increment,
  `Fournisseur_Id` varchar(10) default '',
  `Num_BL` varchar(15) default '',
  `Date_Creation` bigint(20) unsigned default '0',
  `Date_Validation` bigint(20) unsigned default '0',
  `Login_Validation` varchar(15) default '',
  `Etat` char(1) default 'N',
  PRIMARY KEY  (`Prep_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `PREP_BON_RECEPTION`
--

INSERT INTO `PREP_BON_RECEPTION` VALUES (1,'F440000','',1210863556233,0,'gfremery','N');

--
-- Table structure for table `PREP_COMMANDE`
--

CREATE TABLE `PREP_COMMANDE` (
  `Prep_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Creation` bigint(20) unsigned default '0',
  `Date_Validation` bigint(20) unsigned default '0',
  `Login_Validation` varchar(15) default '',
  `Etat` char(1) default 'N',
  PRIMARY KEY  (`Prep_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `PREP_COMMANDE`
--

INSERT INTO `PREP_COMMANDE` VALUES (1,1200566087981,1211273440234,'gfremery','V'),(2,1226566785532,0,'','N');

--
-- Table structure for table `PROFORMA`
--

CREATE TABLE `PROFORMA` (
  `Proforma_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Proforma` bigint(20) unsigned default '0',
  `Echeance` bigint(20) unsigned default '0',
  `Mode_Reg` varchar(25) default '',
  `Numero` int(10) unsigned default '0',
  `Num_Entier` varchar(10) default '',
  `Commentaires` text,
  `Login_Resp` varchar(15) default '',
  `Nom_Resp` varchar(30) default '',
  `Prenom_Resp` varchar(20) default '',
  `Num_Inter` int(10) unsigned default '0',
  `Civ_Inter` tinyint(3) unsigned default '0',
  `Nom_Inter` varchar(30) default '',
  `Prenom_Inter` varchar(20) default '',
  `Client_Id` varchar(10) default '',
  `Raison_Sociale` varchar(50) default '',
  `Adresse` varchar(80) default '',
  `Comp_Adresse` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Date_Creation` bigint(20) unsigned default '0',
  `Login_Createur` varchar(15) default '',
  `Acompte` decimal(14,2) unsigned default '0.00',
  `Remise` decimal(9,6) unsigned default '0.000000',
  `Escompte` decimal(6,3) unsigned default '0.000',
  `Frais_Port` decimal(10,2) unsigned default '0.00',
  `Total_HT` decimal(14,2) unsigned default '0.00',
  `Montant_TTC` decimal(14,2) unsigned default '0.00',
  `Type_Vente` char(1) default 'N',
  `Taux_TVA_Port` decimal(4,2) unsigned default '0.00',
  `Envoyee_Au_Site` tinyint(3) unsigned default '0',
  `Edition_TTC` tinyint(3) unsigned default '0',
  `Eco_Taxe` decimal(10,2) default '0.00',
  `Facture_Id` int(10) unsigned default '0',
  `Devis_Id` int(10) unsigned default '0',
  `Com_Web_Id` int(10) unsigned default '0',
  `Com_Id` int(10) unsigned default '0',
  PRIMARY KEY  (`Proforma_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `PROFORMA`
--

INSERT INTO `PROFORMA` VALUES (1,1224540000000,0,'',1,'P08100001','ceci est un commentaire de bas de devis','jj31','','',3,0,'','','C810002','BIOTERROIR','28, rue du chêne clair','','','81000','ALBI','France',1224603648011,'gfremery','0.00','0.000000','0.000','0.00','3777.86','4518.32','N','0.00',0,0,'0.00',0,41,0,0);

--
-- Table structure for table `REGLEMENT_CLIENT`
--

CREATE TABLE `REGLEMENT_CLIENT` (
  `Reglement_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Reg` bigint(20) unsigned default '0',
  `Numero_Compte` varchar(8) default '',
  `Client_Id` varchar(10) default '',
  `Raison_Sociale` varchar(50) default '',
  `Journal_Banque` char(3) default '',
  `Num_Piece` varchar(20) default '',
  `Banque_Client` varchar(20) default '',
  `Montant` decimal(14,2) default '0.00',
  `Montant_Restant` decimal(14,2) default '0.00',
  `Regulariser` decimal(14,2) default '0.00',
  `Rembourser` decimal(14,2) default '0.00',
  `Etat` char(1) default 'N',
  `Comptabilise` tinyint(3) unsigned default '0',
  `Remis` tinyint(3) unsigned default '0',
  `Date_Remis` bigint(20) unsigned default '0',
  `Mode_Reglement` varchar(25) default '',
  `Commentaires` varchar(100) default '',
  PRIMARY KEY  (`Reglement_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `REGLEMENT_CLIENT`
--

INSERT INTO `REGLEMENT_CLIENT` VALUES (1,1199660400000,'01000000','C810001','AFFAIRES EN LIGNE','BQ','F08010001','CCP','9610.15','0.00','0.00','0.00','R',1,1,1199720813403,'Cheque',''),(2,1199746800000,'01000000','C810002','BIOTERROIR','BQ','F08010002','','2198.46','0.00','0.00','0.00','R',1,0,0,'Especes',''),(3,1199746800000,'01010000','C310000','Librairie Coulier','BQ','F08010003','BPO','599.72','0.00','0.00','0.00','R',1,1,1199784357540,'Prelevement',''),(4,1199919600000,'01000000','C810002','BIOTERROIR','BQ','F08010005','CA','1578.72','0.00','0.00','0.00','R',1,1,1199973158340,'Cheque',''),(5,1199919600000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08010004','BPO','1973.40','0.00','0.00','0.00','R',1,1,1199973158340,'Cheque',''),(6,1199919600000,'01000000','C810001','AFFAIRES EN LIGNE','BQ','F08010006','COURTOIS','6972.68','0.00','0.00','0.00','R',1,1,1199973841821,'Carte bancaire',''),(7,1200092400000,'01000000','C810001','AFFAIRES EN LIGNE','BQ','F08010008','','23920.00','0.00','0.00','0.00','R',1,0,0,'Especes',''),(8,1200092400000,'01010000','C310000','Librairie Coulier','BQ','F08010010','LCI','59800.00','0.00','0.00','0.00','R',1,1,1200149247397,'Prelevement',''),(9,1200092400000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08010007','COURTOIS','32925.88','0.00','0.00','0.00','R',1,1,1200149283071,'Cheque',''),(10,1200092400000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08010009','BPO','5980.00','0.00','0.00','0.00','R',1,1,1200149247397,'Prelevement',''),(11,1200265200000,'01000000','C810002','BIOTERROIR','BQ','F08010011','BPO','2000.00','0.00','0.00','0.00','R',1,1,1200308708194,'Cheque','EN 3 FOIS'),(12,1200265200000,'01000000','C810000','AEL','BQ','F08010012','CREDIT MUT','2805.42','0.00','0.00','0.00','R',1,1,1200308708194,'Cheque',''),(13,1200265200000,'01000000','C810002','BIOTERROIR','BQ','F08010011','LCL','1000.00','0.00','0.00','0.00','R',1,1,1200308911123,'Cheque',''),(14,1200438000000,'01000000','C810004','A MAMES','BQ','f08010013','bpo','100.00','0.00','0.00','0.00','R',1,1,1224148802363,'Prelevement',''),(15,1200438000000,'01000000','C810005','CLIC CLIC','BQ','f8010015','lcl','2990.00','0.00','0.00','0.00','R',1,1,1211295457101,'Cheque',''),(16,1200438000000,'01000000','C810002','BIOTERROIR','BQ','f08010011','credit','1732.44','0.00','0.00','0.00','R',1,1,1211295457101,'Cheque',''),(17,1199746800000,'01000000','','BIOTERROIR','BQ','1199722948408','BPO','2243.33','0.00','0.00','0.00','R',1,1,1224148802363,'Prelevement',''),(18,1211234400000,'01020000','C310001','CHARLY-HEBDDO','BQ','F0805001','BPO','5980.00','0.00','0.00','0.00','R',1,1,1211295457101,'Cheque',''),(19,1219788000000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08080004','BPO','1000.00','0.00','0.00','0.00','R',1,1,1219847393281,'Cheque',''),(20,1219788000000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08080004','BPO','500.00','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(21,1221256800000,'01000000','','Librairie Coulier','BQ','F','CCL','1310.82','0.00','0.00','0.00','R',0,0,0,'',''),(22,1224108000000,'01000000','C810004','A MAMES','BQ','F08010013','CA','269.96','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(23,1201993200000,'01000000','C810004','A MAMES','BQ','F08010013','CA','269.96','0.00','0.00','0.00','R',1,1,1224148802363,'Prelevement',''),(24,1201993200000,'01000000','','CLIC CLIC','BQ','F08030001','CE','131.56','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(25,1201993200000,'01000000','','CLIC CLIC','BQ','F0803001','CCF','27.69','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(26,1201993200000,'01000000','','AFFAIRES EN LIGNE','BQ','F08030003','BPO','1016.60','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(27,1201993200000,'01000000','','CHARLY-HEBDDO','BQ','F08030004','BPO','4784.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(28,1212444000000,'01010000','C310000','Librairie Coulier','BQ','F08050003','CE','59800.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(29,1212444000000,'01000000','C810001','AFFAIRES EN LIGNE','BQ','F08050004','CE','239.20','0.00','0.00','0.00','R',1,1,1224148815103,'Carte bancaire',''),(30,1212444000000,'01000001','C110000','M. DUCHARBON Noir','BQ','F08050002','CA','2093.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(31,1218578400000,'01000001','P8100000','PUEL PHILIPPE','BQ','F08080001','CCF','119.60','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(32,1218578400000,'01000000','P8100001','EFCS SARL','BQ','F08080002','CA','500.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(33,1218578400000,'01000000','P8100001','EFCS SARL','BQ','F08080002','BPO','613.72','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(34,1219960800000,'01000000','C810001','AFFAIRES EN LIGNE','BQ','F08080003','CA','235.65','0.00','0.00','0.00','R',1,1,1224148815103,'Carte bancaire',''),(35,1222639200000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08080004','BPO','512.81','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(36,1222639200000,'01000000','','AFFAIRES EN LIGNE','BQ','F08090001','CCF','466.44','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(37,1221861600000,'01000000','','PUEL PHILIPPE','BQ','F08090004','CE','1184.04','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(38,1221861600000,'01000001','P8100000','PUEL PHILIPPE','BQ','1-1','BPO','200.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(39,1223157600000,'01000001','P8100000','PUEL PHILIPPE','BQ','1-1','CCF','200.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(40,1223157600000,'01010000','C310000','Librairie Coulier','BQ','F08100001','CCL','197.34','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(41,1223157600000,'01010000','C310000','Librairie Coulier','BQ','F08100002','CCI','197.34','0.00','0.00','0.00','R',1,1,1224148802363,'Prelevement',''),(42,1223157600000,'01010000','C310000','Librairie Coulier','BQ','F08100003','CE','135.15','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(43,1224021600000,'01010000','C310000','Librairie Coulier','BQ','F08100004','CA','394.68','0.00','0.00','0.00','R',1,1,1224148802363,'Prelevement',''),(44,1224021600000,'01000000','C810005','CLIC CLIC','BQ','F08100008','CCI','40.94','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(45,1224021600000,'01000001','P8100000','PUEL PHILIPPE','BQ','F08100014','BPO','7690.11','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(46,1224021600000,'01000000','C810005','CLIC CLIC','BQ','F08100015','CA','356.48','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(47,1224021600000,'01000000','C810005','CLIC CLIC','BQ','F08100016','BPA','280.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(48,1224885600000,'01010000','C310000','Librairie Coulier','BQ','F08100017','CA','210.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(49,1224885600000,'01000000','C810002','BIOTERROIR','BQ','F08100020','CE','1035.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(50,1224885600000,'01010000','C310000','Librairie Coulier','BQ','F08100030','CCL','1019.53','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(51,1224885600000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08100005','BPO','12354.68','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(52,1224885600000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08100006','BPO','239.20','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(53,1225407600000,'01020000','C310001','CHARLY-HEBDDO','BQ','F08100007','BPO','124.74','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(54,1225407600000,'01000000','C810004','A MAMES','BQ','F08100011','BPA','1155.34','0.00','0.00','0.00','R',1,1,1224148828046,'LCR',''),(55,1225407600000,'01000000','C810004','A MAMES','BQ','F08100012','CCI','368.03','0.00','0.00','0.00','R',1,1,1224148802363,'Prelevement',''),(56,1225407600000,'01030000','C810003','MADY TIFF','BQ','F08100013','CE','633.88','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(57,1225407600000,'01000001','C110000','M. DUCHARBON Noir','BQ','F08100018','CA','660.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(58,1225407600000,'01000000','C810004','A MAMES','BQ','F08100019','CE','120.37','0.00','0.00','0.00','R',1,1,1224148815103,'Carte bancaire',''),(59,1225407600000,'01000000','C310002','M. HYDRAVION Jules','BQ','F08100022','CA','274.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(60,1225407600000,'01000000','C310002','M. HYDRAVION Jules','BQ','F08100023','CCI','530.00','0.00','0.00','0.00','R',1,1,1224148843349,'Cheque',''),(61,1224453600000,'01020000','C310001','CHARLY-HEBDDO','CS','F08100035','','150.00','0.00','0.00','0.00','R',1,0,0,'Especes',''),(62,1224540000000,'01000001','P8100000','PUEL PHILIPPE','BQ','1-1','ccl','150.00','0.00','0.00','0.00','R',1,1,1224607892773,'Cheque','');

--
-- Table structure for table `REGLEMENT_FOURNISSEUR`
--

CREATE TABLE `REGLEMENT_FOURNISSEUR` (
  `Reglement_Id` int(10) unsigned NOT NULL auto_increment,
  `Date_Reg` bigint(20) unsigned default NULL,
  `Fournisseur_Id` varchar(10) default NULL,
  `Raison_Sociale` varchar(50) default NULL,
  `Journal_Banque` char(3) default '',
  `Num_Piece` varchar(20) default '',
  `Banque_Fournisseur` varchar(20) default '',
  `Montant` decimal(14,2) default NULL,
  `Montant_Restant` decimal(14,2) default NULL,
  `Regulariser` decimal(14,2) default '0.00',
  `Rembourser` decimal(14,2) default '0.00',
  `Etat` char(1) default 'N',
  `Comptabilise` tinyint(3) unsigned default '0',
  `Remis` tinyint(3) unsigned default '0',
  `Date_Remis` bigint(20) unsigned default '0',
  `Mode_Reglement` varchar(25) default NULL,
  `Commentaires` varchar(100) default '',
  PRIMARY KEY  (`Reglement_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `REGLEMENT_FOURNISSEUR`
--

INSERT INTO `REGLEMENT_FOURNISSEUR` VALUES (1,1210802400000,'F440000','DUMOULIN','BQ','','CCI','23.92','0.00','0.00','0.00','R',1,1,1211273686372,'Cheque',''),(2,1211234400000,'F440000','DUMOULIN','BQ','F08050012','BPL','119.60','0.00','0.00','0.00','R',1,1,1211273238361,'Carte bancaire',''),(3,1211234400000,'F440000','DUMOULIN','BQ','FAC00125','CCL','119.60','0.00','0.00','0.00','R',1,1,1211273238361,'Carte bancaire',''),(4,1211234400000,'F440000','DUMOULIN','BQ','TEST','CCL','8108.88','0.00','0.00','0.00','R',1,1,1211273686372,'Cheque',''),(5,1224108000000,'F440000','DUMOULIN','BQ','FAC789654','CCF','526.24','0.00','0.00','0.00','R',1,1,1224149087187,'Prelevement',''),(6,1212184800000,'F440000','DUMOULIN','BQ','FAC6541230','CE','1000.00','0.00','0.00','0.00','R',1,1,1224149102624,'LCR',''),(7,1214776800000,'F440000','DUMOULIN','BQ','FAC6541230','CE','1000.00','0.00','0.00','0.00','R',1,1,1224149102624,'LCR',''),(8,1217368800000,'F440000','DUMOULIN','BQ','FAC6541230','CE','1000.00','0.00','0.00','0.00','R',1,1,1224149102624,'LCR',''),(9,1220047200000,'F440000','DUMOULIN','BQ','FAC6541230','CE','40118.94','0.00','0.00','0.00','R',1,1,1224149102624,'LCR','');

--
-- Table structure for table `REGLE_COMMISSION`
--

CREATE TABLE `REGLE_COMMISSION` (
  `Commission_Id` int(10) unsigned NOT NULL auto_increment,
  `Code_Commercial` varchar(15) default '',
  `Type` varchar(10) default '',
  `Base_Calcul` varchar(15) default '',
  `Article_Id` varchar(40) default '',
  `Famille` varchar(40) default '',
  `Prestation` varchar(40) default '',
  PRIMARY KEY  (`Commission_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `REGLE_COMMISSION`
--

INSERT INTO `REGLE_COMMISSION` VALUES (9,'GF','G','CA','','',''),(10,'jj31','G','CA','','','');

--
-- Table structure for table `RELANCE`
--

CREATE TABLE `RELANCE` (
  `Echeance_Id` int(10) unsigned NOT NULL,
  `Date_Relance` bigint(20) NOT NULL default '0',
  `Etat` tinyint(3) unsigned default '0',
  PRIMARY KEY  (`Echeance_Id`,`Date_Relance`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `RELANCE`
--


--
-- Table structure for table `SAUVE_MC`
--

CREATE TABLE `SAUVE_MC` (
  `Id_Budget` int(11) NOT NULL,
  `Mois` int(11) NOT NULL,
  `Annee` int(11) NOT NULL,
  `Marge` int(11) NOT NULL,
  PRIMARY KEY  (`Id_Budget`,`Mois`,`Annee`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SAUVE_MC`
--


--
-- Table structure for table `SAUVE_MP`
--

CREATE TABLE `SAUVE_MP` (
  `Id_Budget` int(11) NOT NULL,
  `Mois` int(11) NOT NULL,
  `Annee` int(11) NOT NULL,
  `Marge` int(11) NOT NULL,
  PRIMARY KEY  (`Id_Budget`,`Mois`,`Annee`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SAUVE_MP`
--


--
-- Table structure for table `SAUVE_RESULTATS`
--

CREATE TABLE `SAUVE_RESULTATS` (
  `Id_Budget` int(11) NOT NULL,
  `Libelle` char(2) NOT NULL,
  `Mois` int(11) NOT NULL,
  `Annee` int(11) NOT NULL,
  `Montant` bigint(20) NOT NULL,
  PRIMARY KEY  (`Id_Budget`,`Libelle`,`Mois`,`Annee`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SAUVE_RESULTATS`
--

INSERT INTO `SAUVE_RESULTATS` VALUES (1,'AD',1,2008,9563),(1,'AD',2,2008,9563),(1,'AD',3,2008,9563),(1,'AD',4,2008,9563),(1,'AD',5,2008,9563),(1,'AD',6,2008,9563),(1,'AD',7,2008,9563),(1,'AD',8,2008,9563),(1,'AD',9,2008,9563),(1,'AD',10,2008,9563),(1,'AD',11,2008,9563),(1,'AD',12,2008,9563),(1,'AM',1,2008,2144),(1,'AM',2,2008,2144),(1,'AM',3,2008,2144),(1,'AM',4,2008,2144),(1,'AM',5,2008,2144),(1,'AM',6,2008,2144),(1,'AM',7,2008,2144),(1,'AM',8,2008,2144),(1,'AM',9,2008,2144),(1,'AM',10,2008,2144),(1,'AM',11,2008,2144),(1,'AM',12,2008,2144),(1,'CA',1,2008,9563),(1,'CA',2,2008,9563),(1,'CA',3,2008,9563),(1,'CA',4,2008,9563),(1,'CA',5,2008,9563),(1,'CA',6,2008,9563),(1,'CA',7,2008,9563),(1,'CA',8,2008,9563),(1,'CA',9,2008,9563),(1,'CA',10,2008,9563),(1,'CA',11,2008,9563),(1,'CA',12,2008,9563),(1,'CE',1,2008,2144),(1,'CE',2,2008,2144),(1,'CE',3,2008,2144),(1,'CE',4,2008,2144),(1,'CE',5,2008,2144),(1,'CE',6,2008,2144),(1,'CE',7,2008,2144),(1,'CE',8,2008,2144),(1,'CE',9,2008,2144),(1,'CE',10,2008,2144),(1,'CE',11,2008,2144),(1,'CE',12,2008,2144),(1,'CF',1,2008,2144),(1,'CF',2,2008,2144),(1,'CF',3,2008,2144),(1,'CF',4,2008,2144),(1,'CF',5,2008,2144),(1,'CF',6,2008,2144),(1,'CF',7,2008,2144),(1,'CF',8,2008,2144),(1,'CF',9,2008,2144),(1,'CF',10,2008,2144),(1,'CF',11,2008,2144),(1,'CF',12,2008,2144),(1,'CP',1,2008,2144),(1,'CP',2,2008,2144),(1,'CP',3,2008,2144),(1,'CP',4,2008,2144),(1,'CP',5,2008,2144),(1,'CP',6,2008,2144),(1,'CP',7,2008,2144),(1,'CP',8,2008,2144),(1,'CP',9,2008,2144),(1,'CP',10,2008,2144),(1,'CP',11,2008,2144),(1,'CP',12,2008,2144),(1,'IT',1,2008,2144),(1,'IT',2,2008,2144),(1,'IT',3,2008,2144),(1,'IT',4,2008,2144),(1,'IT',5,2008,2144),(1,'IT',6,2008,2144),(1,'IT',7,2008,2144),(1,'IT',8,2008,2144),(1,'IT',9,2008,2144),(1,'IT',10,2008,2144),(1,'IT',11,2008,2144),(1,'IT',12,2008,2144);

--
-- Table structure for table `SAUVE_SAISIES`
--

CREATE TABLE `SAUVE_SAISIES` (
  `Id_Budget` int(11) NOT NULL,
  `Numero_Compte` varchar(8) NOT NULL,
  `Mois` int(11) NOT NULL,
  `Annee` int(11) NOT NULL,
  `Montant` bigint(20) NOT NULL,
  PRIMARY KEY  (`Id_Budget`,`Numero_Compte`,`Mois`,`Annee`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SAUVE_SAISIES`
--

INSERT INTO `SAUVE_SAISIES` VALUES (1,'60000000',1,2008,9563),(1,'60000000',2,2008,9563),(1,'60000000',3,2008,9563),(1,'60000000',4,2008,9563),(1,'60000000',5,2008,9563),(1,'60000000',6,2008,9563),(1,'60000000',7,2008,9563),(1,'60000000',8,2008,9563),(1,'60000000',9,2008,9563),(1,'60000000',10,2008,9563),(1,'60000000',11,2008,9563),(1,'60000000',12,2008,9563),(1,'60700000',1,2008,9563),(1,'60700000',2,2008,9563),(1,'60700000',3,2008,9563),(1,'60700000',4,2008,9563),(1,'60700000',5,2008,9563),(1,'60700000',6,2008,9563),(1,'60700000',7,2008,9563),(1,'60700000',8,2008,9563),(1,'60700000',9,2008,9563),(1,'60700000',10,2008,9563),(1,'60700000',11,2008,9563),(1,'60700000',12,2008,9563),(1,'70700000',1,2008,9563),(1,'70700000',2,2008,9563),(1,'70700000',3,2008,9563),(1,'70700000',4,2008,9563),(1,'70700000',5,2008,9563),(1,'70700000',6,2008,9563),(1,'70700000',7,2008,9563),(1,'70700000',8,2008,9563),(1,'70700000',9,2008,9563),(1,'70700000',10,2008,9563),(1,'70700000',11,2008,9563),(1,'70700000',12,2008,9563),(1,'71000000',1,2008,9563),(1,'71000000',2,2008,9563),(1,'71000000',3,2008,9563),(1,'71000000',4,2008,9563),(1,'71000000',5,2008,9563),(1,'71000000',6,2008,9563),(1,'71000000',7,2008,9563),(1,'71000000',8,2008,9563),(1,'71000000',9,2008,9563),(1,'71000000',10,2008,9563),(1,'71000000',11,2008,9563),(1,'71000000',12,2008,9563),(1,'72000000',1,2008,9563),(1,'72000000',2,2008,9563),(1,'72000000',3,2008,9563),(1,'72000000',4,2008,9563),(1,'72000000',5,2008,9563),(1,'72000000',6,2008,9563),(1,'72000000',7,2008,9563),(1,'72000000',8,2008,9563),(1,'72000000',9,2008,9563),(1,'72000000',10,2008,9563),(1,'72000000',11,2008,9563),(1,'72000000',12,2008,9563),(1,'73000000',1,2008,9563),(1,'73000000',2,2008,9563),(1,'73000000',3,2008,9563),(1,'73000000',4,2008,9563),(1,'73000000',5,2008,9563),(1,'73000000',6,2008,9563),(1,'73000000',7,2008,9563),(1,'73000000',8,2008,9563),(1,'73000000',9,2008,9563),(1,'73000000',10,2008,9563),(1,'73000000',11,2008,9563),(1,'73000000',12,2008,9563);

--
-- Table structure for table `SITE`
--

CREATE TABLE `SITE` (
  `Site_Id` int(10) unsigned NOT NULL auto_increment,
  `Intitule` varchar(30) default '',
  `Denomination` varchar(50) default '',
  `Adresse_1` varchar(80) default '',
  `Adresse_2` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  `Stock_Defaut` int(10) unsigned default '0',
  PRIMARY KEY  (`Site_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SITE`
--


--
-- Table structure for table `SITE_WEB`
--

CREATE TABLE `SITE_WEB` (
  `Site_Id` int(10) unsigned NOT NULL auto_increment,
  `Nom_Site` varchar(40) NOT NULL,
  `URL_Service` varchar(100) NOT NULL,
  `Mail_Rapports` varchar(30) NOT NULL,
  `URL_Site` varchar(100) NOT NULL,
  `URL_Logo` varchar(100) default '',
  `Status` char(1) default 'a',
  `Periode_Maj_Prix` int(11) default '1440',
  `Depart_Maj_Prix` int(11) default '22',
  `Periode_Maj_Article` int(11) default '1440',
  `Depart_Maj_Article` int(11) default '22',
  `Periode_Maj_Stock` int(11) default '60',
  `Periode_Maj_Cmde` int(11) default '60',
  `Gestion_Stock` tinyint(4) default '0',
  `Mail_Nouvelle` varchar(64) default '',
  `Mail_EnCours` varchar(64) default '',
  `Mail_Envoye` varchar(64) default '',
  `Mail_Annule` varchar(64) default '',
  `Subject_Nouvelle` varchar(64) default '',
  `Subject_EnCours` varchar(64) default '',
  `Subject_Envoye` varchar(64) default '',
  `Subject_Annule` varchar(64) default '',
  `Journal_Banque_CB` char(3) default '',
  `Num_Piece_CB` varchar(20) default '',
  `Banque_Client_CB` varchar(20) default '',
  `Envoyer_Nouvelle` tinyint(3) unsigned default '1',
  `Envoyer_EnCours` tinyint(3) unsigned default '1',
  `Envoyer_Envoye` tinyint(3) unsigned default '1',
  `Envoyer_Annule` tinyint(3) unsigned default '1',
  `Calcul_Stock` char(1) default 'P',
  `Valeur_Stock` decimal(12,2) default '100.00',
  `Calcul_Prix` char(2) default 'PV',
  `Valeur_Prix` decimal(12,4) default '1.0000',
  PRIMARY KEY  (`Site_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SITE_WEB`
--


--
-- Table structure for table `SOUS_FAMILLE_ARTICLE`
--

CREATE TABLE `SOUS_FAMILLE_ARTICLE` (
  `Famille` varchar(40) NOT NULL,
  `Sous_Famille` varchar(40) NOT NULL,
  `Compte_Achat` varchar(8) default '',
  `Compte_Vente` varchar(8) default '',
  `Image` varchar(100) default '',
  `Compte_Vente_UE` varchar(8) default '',
  `Compte_Vente_I` varchar(8) default '',
  `Compte_Achat_UE` varchar(8) default '',
  `Compte_Achat_I` varchar(8) default '',
  PRIMARY KEY  (`Famille`,`Sous_Famille`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `SOUS_FAMILLE_ARTICLE`
--

INSERT INTO `SOUS_FAMILLE_ARTICLE` VALUES ('Charcuterie','lard','','','','','','',''),('Confiture','Mirabelle','','','','','','',''),('Conserve','Porc','','','','','','',''),('Emballage','Boîte','','','','','','',''),('FORETS','TREPANS','','','','','','',''),('Gaz','Bouteille','','','','','','',''),('Légumes','Frais','','','','','','',''),('Pièces déttachées','Bloc Moteur','','','','','','',''),('Pièces déttachées','Cardan','','','','','','',''),('Pièces déttachées','Climatisation','','','','','','',''),('Pièces déttachées','Feux','','','','','','',''),('Pièces déttachées','Filtre à air','','','','','','',''),('Pneu','Neige','','','','','','',''),('Prestations','Dépanage','','','','','','',''),('Prestations','Dépanage sur site','','','','','','',''),('Prestations','Infographie','','','','','','',''),('Prestations','Location','','','','','','',''),('Prestations','serveur','','','','','','',''),('SOUPE','POISSON','','','','','','',''),('sucre','morceaux','','','','','','',''),('sucre','poudre','','','','','','',''),('Véhicule','Essence','','','','','','',''),('Viande','porc','','','','','','','');

--
-- Table structure for table `STOCK`
--

CREATE TABLE `STOCK` (
  `Stock_Id` int(10) unsigned NOT NULL auto_increment,
  `Intitule` varchar(30) default '',
  `Denomination` varchar(50) default '',
  `Adresse_1` varchar(80) default '',
  `Adresse_2` varchar(50) default '',
  `Adresse_3` varchar(50) default '',
  `Code_Postal` varchar(10) default '',
  `Ville` varchar(50) default '',
  `Pays` varchar(30) default '',
  PRIMARY KEY  (`Stock_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `STOCK`
--


--
-- Table structure for table `STOCKS_ARTICLE`
--

CREATE TABLE `STOCKS_ARTICLE` (
  `Article_Id` char(40) NOT NULL,
  `Prix_Init` decimal(10,2) unsigned default '0.00',
  `Frais_Init` decimal(10,2) unsigned default '0.00',
  `Stock_Init` decimal(10,2) default '0.00',
  `Entrees` decimal(10,2) default '0.00',
  `Sorties` decimal(10,2) default '0.00',
  `Com_Clients` decimal(10,2) default '0.00',
  `Com_Fournisseurs` decimal(10,2) default '0.00',
  `Stock_Alerte` decimal(10,2) unsigned default '0.00',
  `Stock_Securite` decimal(10,2) unsigned default '0.00',
  `Stock_Maximum` decimal(10,2) unsigned default '0.00',
  `Date_Inventaire` bigint(20) unsigned default '0',
  PRIMARY KEY  (`Article_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `STOCKS_ARTICLE`
--

INSERT INTO `STOCKS_ARTICLE` VALUES ('ALP1051020','0.00','0.00','0.00','400.00','176.00','1.00','0.00','0.00','0.00','0.00',0),('AP002','0.00','0.00','0.00','0.00','41.00','2.00','0.00','0.00','0.00','0.00',0),('AP003','0.00','0.00','0.00','867.00','404.00','47.00','38.00','0.00','0.00','0.00',0),('apha-102','0.00','0.00','0.00','500.00','55.00','0.00','0.00','0.00','0.00','0.00',0),('B001','0.00','0.00','0.00','0.00','129.00','11.00','0.00','0.00','0.00','0.00',0),('C001','0.00','0.00','0.00','0.00','6.00','0.00','100.00','0.00','0.00','0.00',0),('CONF-001','0.00','0.00','0.00','500.00','76.00','5.00','0.00','0.00','0.00','0.00',0),('G001','0.00','0.00','0.00','0.00','170.00','0.00','0.00','0.00','0.00','0.00',0),('gar_000','0.00','0.00','0.00','0.00','0.00','3.50','0.00','0.00','0.00','0.00',0),('GAR_001','0.00','0.00','0.00','0.00','2.00','0.00','0.00','0.00','0.00','0.00',0),('GAR_002','0.00','0.00','0.00','50.00','14.00','0.00','0.00','0.00','0.00','0.00',0),('GAR_003','0.00','0.00','0.00','55.00','21.00','0.00','0.00','0.00','0.00','0.00',0),('GAR_004','0.00','0.00','0.00','150.00','18.00','1.00','0.00','0.00','0.00','0.00',0),('GAR_005','0.00','0.00','0.00','0.00','37.00','0.00','0.00','0.00','0.00','0.00',0),('GAR_006','0.00','0.00','0.00','50.00','11.00','1.00','0.00','0.00','0.00','0.00',0),('GAR_007','0.00','0.00','0.00','50.00','5.00','0.00','0.00','0.00','0.00','0.00',0),('H001','0.00','0.00','0.00','0.00','410.00','5.00','0.00','0.00','0.00','0.00',0),('Prest001A','0.00','0.00','0.00','1.00','208.00','15.00','0.00','0.00','0.00','0.00',0),('SOUP001','0.00','0.00','0.00','1000.00','85.00','0.00','0.00','0.00','0.00','0.00',0),('SUC-001','0.00','0.00','0.00','359.00','49.00','2.00','0.00','0.00','0.00','0.00',0),('SUC_002','0.00','0.00','0.00','568.00','9.00','0.00','0.00','0.00','0.00','0.00',0),('svael001','0.00','0.00','0.00','0.00','36.00','1.00','0.00','0.00','0.00','0.00',0),('V001','0.00','0.00','0.00','0.00','4.00','0.00','0.00','1.00','2.00','5.00',0),('VP001','0.00','0.00','0.00','0.00','3.00','2.00','0.00','0.00','0.00','0.00',0);

--
-- Table structure for table `TAILLE_ARTICLE`
--

CREATE TABLE `TAILLE_ARTICLE` (
  `Taille` varchar(20) NOT NULL default '',
  PRIMARY KEY  (`Taille`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `TAILLE_ARTICLE`
--


--
-- Table structure for table `TARIF_QTE`
--

CREATE TABLE `TARIF_QTE` (
  `Tarif_Id` int(10) unsigned NOT NULL auto_increment,
  `Article_Id` char(40) default NULL,
  `Prix` decimal(14,4) unsigned default NULL,
  `Prix_TTC` decimal(14,4) unsigned default '0.0000',
  `Coeff` decimal(8,6) unsigned default NULL,
  `Marge` decimal(5,2) unsigned default '0.00',
  `Quantite` decimal(10,2) unsigned default NULL,
  `Lib_Int` varchar(20) default NULL,
  `Lib_Ext` varchar(20) default NULL,
  PRIMARY KEY  (`Tarif_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `TARIF_QTE`
--


--
-- Table structure for table `TAUX_TVA`
--

CREATE TABLE `TAUX_TVA` (
  `Code_TVA` tinyint(3) unsigned NOT NULL auto_increment,
  `Taux_TVA` decimal(4,2) default '0.00',
  `Taux_NPR` decimal(4,2) default '0.00',
  `Compte_TVA_Achat` varchar(8) default '',
  `Compte_TVA_Vente` varchar(8) default '',
  `Compte_Vente` varchar(8) default '',
  `Compte_Achat` varchar(8) default '',
  PRIMARY KEY  (`Code_TVA`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `TAUX_TVA`
--

INSERT INTO `TAUX_TVA` VALUES (1,'0.00','0.00','','','',''),(2,'2.10','0.00','44566100','44571100','',''),(3,'5.50','0.00','44566200','44571200','',''),(4,'19.60','0.00','44566300','44571300','70700000','60700000');

--
-- Table structure for table `TRANCHE_COMMISSION`
--

CREATE TABLE `TRANCHE_COMMISSION` (
  `Tranche_Id` int(10) unsigned NOT NULL auto_increment,
  `Commission_Id` int(10) unsigned NOT NULL,
  `Borne_Inf` decimal(14,2) unsigned default '0.00',
  `Borne_Sup` decimal(14,2) unsigned default '0.00',
  `Valeur` decimal(14,2) unsigned default '0.00',
  PRIMARY KEY  (`Tranche_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `TRANCHE_COMMISSION`
--

INSERT INTO `TRANCHE_COMMISSION` VALUES (9,9,'1000.00','2000.00','10.00'),(10,9,'2000.01','4000.00','15.00'),(11,9,'4000.01','6000.00','20.00'),(12,9,'6000.01','8000.00','25.00'),(13,9,'8000.01','999999999999.99','30.00'),(14,10,'1000.00','2000.00','5.00'),(15,10,'2000.01','4000.00','10.00'),(16,10,'4000.01','6000.00','25.00'),(17,10,'6000.01','8000.00','35.00'),(18,10,'8000.01','999999999999.99','40.00');


