- Configuration du debug conditionnel pour dev/recette - Fonction debug() globale avec niveaux - Logging des requêtes SQL - Handlers d'exceptions et d'erreurs globaux 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
6.3 KiB
Plaintext
Executable File
57 lines
6.3 KiB
Plaintext
Executable File
importCSV Importation du fichier CSV des produits d'un marché : /var/www/unikoffice/linet/pub/files/upload/import/liste_tarifaire_helpevia_maintenance_janv2025.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é 1025
|
|
ligne 2 : code (CM-INV) libelle (INVENTAIRE PARC) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
2 insert : INSERT INTO produits SET fk_marche=1025, code="CM-INV", libelle="INVENTAIRE PARC", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=875, active=1, chk_import=1;
|
|
ligne 2 : import terminé
|
|
ligne 3 : code (CM-AUDIT) libelle (AUDIT DE PARC) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
3 insert : INSERT INTO produits SET fk_marche=1025, code="CM-AUDIT", libelle="AUDIT DE PARC", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=28, active=1, chk_import=1;
|
|
ligne 3 : import terminé
|
|
ligne 4 : code (CM-3E-C) libelle (Maintenance Préventive 3 Etoiles - LATERA) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
4 insert : INSERT INTO produits SET fk_marche=1025, code="CM-3E-C", libelle="Maintenance Préventive 3 Etoiles - LATERA", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=84, active=1, chk_import=1;
|
|
ligne 4 : import terminé
|
|
ligne 5 : code (CM-3E-D) libelle (Maintenance Préventive 3 Etoiles - Lits soins aigus) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
5 insert : INSERT INTO produits SET fk_marche=1025, code="CM-3E-D", libelle="Maintenance Préventive 3 Etoiles - Lits soins aigus", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=207, active=1, chk_import=1;
|
|
ligne 5 : import terminé
|
|
ligne 6 : code (CM-3E-E) libelle (Maintenance Préventive 3 Etoiles - EG5) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
6 insert : INSERT INTO produits SET fk_marche=1025, code="CM-3E-E", libelle="Maintenance Préventive 3 Etoiles - EG5", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=310, active=1, chk_import=1;
|
|
ligne 6 : import terminé
|
|
ligne 7 : code (CM-3E-F) libelle (Maintenance Préventive 3 Etoiles - MULTICARE) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
7 insert : INSERT INTO produits SET fk_marche=1025, code="CM-3E-F", libelle="Maintenance Préventive 3 Etoiles - MULTICARE", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=352, active=1, chk_import=1;
|
|
ligne 7 : import terminé
|
|
ligne 8 : code (CM-5E-C) libelle (Maintenance tous risques 5 Etoiles - LATERA) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
8 insert : INSERT INTO produits SET fk_marche=1025, code="CM-5E-C", libelle="Maintenance tous risques 5 Etoiles - LATERA", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=190, active=1, chk_import=1;
|
|
ligne 8 : import terminé
|
|
ligne 9 : code (CM-5E-D) libelle (Maintenance tous risques 5 Etoiles - Lits soins aigus) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
9 insert : INSERT INTO produits SET fk_marche=1025, code="CM-5E-D", libelle="Maintenance tous risques 5 Etoiles - Lits soins aigus", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=403, active=1, chk_import=1;
|
|
ligne 9 : import terminé
|
|
ligne 10 : code (CM-5E-E) libelle (Maintenance tous risques 5 Etoiles - EG5) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
10 insert : INSERT INTO produits SET fk_marche=1025, code="CM-5E-E", libelle="Maintenance tous risques 5 Etoiles - EG5", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=570, active=1, chk_import=1;
|
|
ligne 10 : import terminé
|
|
ligne 11 : code (CM-5E-F) libelle (Maintenance tous risques 5 Etoiles - MULTICARE) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
11 insert : INSERT INTO produits SET fk_marche=1025, code="CM-5E-F", libelle="Maintenance tous risques 5 Etoiles - MULTICARE", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=627, active=1, chk_import=1;
|
|
ligne 11 : import terminé
|
|
ligne 12 : code (CM-3E-A_B) libelle (Maintenance Préventive 3 Etoiles - Lits hébergements 1/2 barrières) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
12 insert : INSERT INTO produits SET fk_marche=1025, code="CM-3E-A_B", libelle="Maintenance Préventive 3 Etoiles - Lits hébergements 1/2 barrières", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=42, active=1, chk_import=1;
|
|
ligne 12 : import terminé
|
|
ligne 13 : code (CM-3E-A) libelle (Maintenance Préventive 3 Etoiles - Lits hébergements) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
13 insert : INSERT INTO produits SET fk_marche=1025, code="CM-3E-A", libelle="Maintenance Préventive 3 Etoiles - Lits hébergements", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=38, active=1, chk_import=1;
|
|
ligne 13 : import terminé
|
|
ligne 14 : code (CM-3E-B) libelle (Maintenance Préventive 3 Etoiles - Lits soins courants) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
14 insert : INSERT INTO produits SET fk_marche=1025, code="CM-3E-B", libelle="Maintenance Préventive 3 Etoiles - Lits soins courants", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=59.5, active=1, chk_import=1;
|
|
ligne 14 : import terminé
|
|
ligne 15 : code (CM-5E-A) libelle (Maintenance tous risques 5 Etoiles - Lits hébergements) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
15 insert : INSERT INTO produits SET fk_marche=1025, code="CM-5E-A", libelle="Maintenance tous risques 5 Etoiles - Lits hébergements", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=107, active=1, chk_import=1;
|
|
ligne 15 : import terminé
|
|
ligne 16 : code (CM-5E-B) libelle (Maintenance tous risques 5 Etoiles - Lits soins courants) groupe (Z-SERVICES) liste (HELP MAINTENANCE - VENTE)
|
|
16 insert : INSERT INTO produits SET fk_marche=1025, code="CM-5E-B", libelle="Maintenance tous risques 5 Etoiles - Lits soins courants", groupe="Z-SERVICES", liste="HELP MAINTENANCE - VENTE", prix_vente=151, active=1, chk_import=1;
|
|
ligne 16 : import terminé
|
|
Fichier CSV fermé
|
|
Fin de la boucle
|
|
Désactivation des produits non importés : UPDATE produits SET active=0 WHERE fk_marche=1025 AND chk_import=0;
|
|
Mise à jour de la date d'import dans marches : UPDATE marches SET date_import="2025-01-06 16:54:17" WHERE rowid=1025;
|
|
Fin de l'importation et fermeture du fichier log
|