importCSV Importation du fichier CSV des produits d'un marché : /var/www/unikoffice/linet/pub/files/upload/import/liste_tarifaire_lna_sante_17022025.csv Encodage détecté : Windows-1252 Requête de preparation terminée : UPDATE produits SET chk_import=0; Fichier CSV ouvert : démarrage de la lecture ligne par ligne Ok lecture CSV 1ère ligne en-tête Nettoyage des infos produits du marché 25 ligne 2 : code (1LAC2) libelle (LIT LATERA ACUTE) groupe (LATERA) liste (LNA SANTE - VENTE) 2 insert : INSERT INTO produits SET fk_marche=25, code="1LAC2", libelle="LIT LATERA ACUTE", groupe="LATERA", liste="LNA SANTE - VENTE", prix_vente=2571.4, active=1, chk_import=1; ligne 2 : import terminé ligne 3 : code (BE59_LA) libelle (Jeu de panneaux Design A+) groupe (LATERA) liste (LNA SANTE - VENTE) 3 insert : INSERT INTO produits SET fk_marche=25, code="BE59_LA", libelle="Jeu de panneaux Design A+", groupe="LATERA", liste="LNA SANTE - VENTE", prix_vente=62.92, active=1, chk_import=1; ligne 3 : import terminé ligne 4 : code (FC15_LA) libelle (PEDALES DE LATERALISATION) groupe (LATERA) liste (LNA SANTE - VENTE) 4 insert : INSERT INTO produits SET fk_marche=25, code="FC15_LA", libelle="PEDALES DE LATERALISATION", groupe="LATERA", liste="LNA SANTE - VENTE", prix_vente=126.14, active=1, chk_import=1; ligne 4 : import terminé ligne 5 : code (AU001) libelle (POTENCE D'ANGLE EPOXY AVEC POIGNEE REGLABLE ET ENROULEUR) groupe (ACCESSORIES SBU2) liste (LNA SANTE - VENTE) 5 insert : INSERT INTO produits SET fk_marche=25, code="AU001", libelle="POTENCE D'ANGLE EPOXY AVEC POIGNEE REGLABLE ET ENROULEUR", groupe="ACCESSORIES SBU2", liste="LNA SANTE - VENTE", prix_vente=103.04, active=1, chk_import=1; ligne 5 : import terminé ligne 6 : code (AU006) libelle (TIGE PORTE SERUM) groupe (ACCESSORIES SBU2) liste (LNA SANTE - VENTE) 6 insert : INSERT INTO produits SET fk_marche=25, code="AU006", libelle="TIGE PORTE SERUM", groupe="ACCESSORIES SBU2", liste="LNA SANTE - VENTE", prix_vente=62.08, active=1, chk_import=1; ligne 6 : import terminé ligne 7 : code (10-1200MXXL) libelle (LIT DE SOINS BAS SENTIDA SC 300 MOBILE XXL G SFF0) groupe (SENTIDA SC) liste (LNA SANTE - VENTE) 7 insert : INSERT INTO produits SET fk_marche=25, code="10-1200MXXL", libelle="LIT DE SOINS BAS SENTIDA SC 300 MOBILE XXL G SFF0", groupe="SENTIDA SC", liste="LNA SANTE - VENTE", prix_vente=2866.03, active=1, chk_import=1; ligne 7 : import terminé ligne 8 : code (OL-154_scxxl) libelle (Demi-barrières SafeFree Fix4 360) groupe (SENTIDA SC) liste (LNA SANTE - VENTE) 8 insert : INSERT INTO produits SET fk_marche=25, code="OL-154_scxxl", libelle="Demi-barrières SafeFree Fix4 360", groupe="SENTIDA SC", liste="LNA SANTE - VENTE", prix_vente=650, active=1, chk_import=1; ligne 8 : import terminé ligne 9 : code (OL-178_scxxl) libelle (PROTECTION MURALE) groupe (SENTIDA SC) liste (LNA SANTE - VENTE) 9 insert : INSERT INTO produits SET fk_marche=25, code="OL-178_scxxl", libelle="PROTECTION MURALE", groupe="SENTIDA SC", liste="LNA SANTE - VENTE", prix_vente=42.12, active=1, chk_import=1; ligne 9 : import terminé ligne 10 : code (OL-227_scxxl) libelle (Roues Tente Intégral 150 mm) groupe (SENTIDA SC) liste (LNA SANTE - VENTE) 10 insert : INSERT INTO produits SET fk_marche=25, code="OL-227_scxxl", libelle="Roues Tente Intégral 150 mm", groupe="SENTIDA SC", liste="LNA SANTE - VENTE", prix_vente=49.88, active=1, chk_import=1; ligne 10 : import terminé ligne 11 : code (OL-72_scxxl) libelle (PLUS VALUE COLORIS GROUPE 7) groupe (SENTIDA SC) liste (LNA SANTE - VENTE) 11 insert : INSERT INTO produits SET fk_marche=25, code="OL-72_scxxl", libelle="PLUS VALUE COLORIS GROUPE 7", groupe="SENTIDA SC", liste="LNA SANTE - VENTE", prix_vente=32.48, active=1, chk_import=1; ligne 11 : import terminé ligne 12 : code (10-0946) libelle (POIGNEE DE MOBILISATION) groupe (ACCESSORIES SBU1) liste (LNA SANTE - VENTE) 12 insert : INSERT INTO produits SET fk_marche=25, code="10-0946", libelle="POIGNEE DE MOBILISATION", groupe="ACCESSORIES SBU1", liste="LNA SANTE - VENTE", prix_vente=132, active=1, chk_import=1; ligne 12 : import terminé ligne 13 : code (AC-025) libelle (POTENCE DOUBLE EPOXY AVEC POIGNEE REGLABLE ET ENROULEUR) groupe (ACCESSORIES SBU1) liste (LNA SANTE - VENTE) 13 insert : INSERT INTO produits SET fk_marche=25, code="AC-025", libelle="POTENCE DOUBLE EPOXY AVEC POIGNEE REGLABLE ET ENROULEUR", groupe="ACCESSORIES SBU1", liste="LNA SANTE - VENTE", prix_vente=204.75, active=1, chk_import=1; ligne 13 : import terminé ligne 14 : code (50-0694) libelle (TIGE A PERFUSION 4 CROCHETS) groupe (ACCESSORIES SBU1) liste (LNA SANTE - VENTE) 14 insert : INSERT INTO produits SET fk_marche=25, code="50-0694", libelle="TIGE A PERFUSION 4 CROCHETS", groupe="ACCESSORIES SBU1", liste="LNA SANTE - VENTE", prix_vente=72.8, active=1, chk_import=1; ligne 14 : import terminé ligne 15 : code (50-0693) libelle (TIGE A PERFUSION 4 CROCHETS COUDEE 45°) groupe (ACCESSORIES SBU1) liste (LNA SANTE - VENTE) 15 insert : INSERT INTO produits SET fk_marche=25, code="50-0693", libelle="TIGE A PERFUSION 4 CROCHETS COUDEE 45°", groupe="ACCESSORIES SBU1", liste="LNA SANTE - VENTE", prix_vente=164, active=1, chk_import=1; ligne 15 : import terminé Fichier CSV fermé Fin de la boucle Désactivation des produits non importés : UPDATE produits SET active=0 WHERE fk_marche=25 AND chk_import=0; Mise à jour de la date d'import dans marches : UPDATE marches SET date_import="2025-02-17 17:14:23" WHERE rowid=25; Fin de l'importation et fermeture du fichier log