===== 1. Tiers ARCELOR (requete auditeur) ===== SELECT s.rowid,s.nom,s.code_fournisseur,s.tva_intra,s.siren,s.siret,s.idprof1,s.idprof2,s.status,s.entity,(SELECT COUNT(*) FROM llx_facture_fourn ff WHERE ff.fk_soc=s.rowid) nb,(SELECT ROUND(SUM(ff.total_ttc),2) FROM llx_facture_fourn ff WHERE ff.fk_soc=s.rowid) ttc FROM llx_societe s WHERE s.fournisseur=1 AND UPPER(REPLACE(s.nom,' ','')) LIKE '%ARCELOR%' ERR Unknown column 's.idprof1' in 'field list' ===== 1bis. Tous tiers ARCELOR sans filtre ===== SELECT s.rowid,s.nom,s.fournisseur,s.client,s.code_fournisseur,s.tva_intra,s.siret,s.status FROM llx_societe s WHERE UPPER(REPLACE(s.nom,' ','')) LIKE '%ARCELOR%' rowid=314 | nom=ArcelorMittal Distribution Solutions France | fournisseur=1 | client=0 | code_fournisseur=SU2608-00011 | tva_intra=FR39469500961 | siret= | status=1 rowid=372 | nom=ARCELOR MITTAL | fournisseur=1 | client=0 | code_fournisseur=SU2608-00059 | tva_intra= | siret= | status=1 -- 2 ligne(s) ===== 2. Factures fourn des soc 314 et 372 ===== SELECT ff.rowid,ff.ref,ff.ref_supplier,ff.fk_soc,ff.datef,ff.total_ht,ff.total_tva,ff.total_ttc,ff.fk_statut,ff.paye,ff.note_private FROM llx_facture_fourn ff WHERE ff.fk_soc IN (314,372) ORDER BY ff.fk_soc,ff.datef rowid=189 | ref=SI2605-0050 | ref_supplier=05/11 | fk_soc=314 | datef=2026-05-19 | total_ht=3721.95000000 | total_tva=744.39000000 | total_ttc=4466.34000000 | fk_statut=2 | paye=1 | note_private=Repris de la comptabilité Excel de l'assistante de direction — pièce 05/11 (ACHAT MAT 1è FOURNITURES). rowid=156 | ref=SI2606-0199 | ref_supplier=98720321 | fk_soc=314 | datef=2026-06-24 | total_ht=2571.36000000 | total_tva=514.27000000 | total_ttc=3085.63000000 | fk_statut=2 | paye=1 | note_private=[AGENTCOMPTA] Brouillon créé automatiquement par IA Confiance : 0.88 Modèle : (défaut) Warnings : Le prix unitaire est exprimé en €/M2 (8,95/M2) et non par pièce, conversion non effectuée faute de surface unitaire explicite, IBAN extrait avec espace possible dans le numéro : à vérifier (FR76 3000 4005 1500 0223 0349 607) Source : ARCELOR MITTAL 06-20.pdf Hash : 2940d8ac8ec887c8c0de160c55a9bc81537a9c8c7777b85fbc01c1f43bdca188 ID intake : 119 rowid=190 | ref=SI2607-0051 | ref_supplier=07/08 | fk_soc=314 | datef=2026-07-01 | total_ht=263.73000000 | total_tva=52.75000000 | total_ttc=316.48000000 | fk_statut=2 | paye=1 | note_private=Repris de la comptabilité Excel de l'assistante de direction — pièce 07/08 (ACHAT MAT 1è FOURNITURES). rowid=513 | ref=SI2608-0276 | ref_supplier=98745991 | fk_soc=314 | datef=2026-08-31 | total_ht=1573.04000000 | total_tva=314.61000000 | total_ttc=1887.65000000 | fk_statut=2 | paye=1 | note_private=[AGENTCOMPTA] Brouillon créé automatiquement par IA Confiance : 0.88 Modèle : (défaut) Warnings : prix_a_l_unite_de_mesure, SIRET non mentionné sur la facture — RCS Reims 469 500 961 présent mais SIRET complet non lisible, IBAN reconstruit depuis le RIB imprimé : FR76 3000 4005 1500 0223 0349 607 — vérifier le dernier chiffre (607 ou 07), Mode de paiement LCR (lettre de change relevée) — non mappé sur les valeurs standard du schéma Source : arcelormittalsupport_FR_FR_98745991.pdf Hash : 5602b1e0e0a33817bcbbdb446a8effce94f0794cc6afd3b77ff7bd04c4ae8f36 ID intake : 253 rowid=537 | ref=SI2608-0300 | ref_supplier=98745992 | fk_soc=314 | datef=2026-08-31 | total_ht=2389.50000000 | total_tva=477.90000000 | total_ttc=2867.40000000 | fk_statut=2 | paye=1 | note_private=[AGENTCOMPTA] Brouillon créé automatiquement par IA Confiance : 0.00 Modèle : (défaut) Warnings : Saisie le 18/10/2026 depuis le PDF : document archivé à tort comme facture client le 02/09 Source : arcelormittalsupport_FR_FR_98745992.pdf Hash : 8033ab735a78ab337fb8a36d98971703a6a84b237f295d4e86f8dcfa0f2a457f ID intake : 254 rowid=399 | ref=SI2603-0192 | ref_supplier=03/10 | fk_soc=372 | datef=2026-03-24 | total_ht=354.75000000 | total_tva=70.95000000 | total_ttc=425.70000000 | fk_statut=2 | paye=1 | note_private=Repris de la comptabilité Excel de l'assistante — pièce 03/10 (ACHAT MAT 1è FOURNITURES). rowid=400 | ref=SI2604-0193 | ref_supplier=04/14 | fk_soc=372 | datef=2026-04-30 | total_ht=3173.32000000 | total_tva=634.66000000 | total_ttc=3807.98000000 | fk_statut=2 | paye=1 | note_private=Repris de la comptabilité Excel de l'assistante — pièce 04/14 (ACHAT MAT 1è FOURNITURES). rowid=401 | ref=SI2606-0194 | ref_supplier=06/23 | fk_soc=372 | datef=2026-06-29 | total_ht=1605.77000000 | total_tva=321.15000000 | total_ttc=1926.92000000 | fk_statut=2 | paye=1 | note_private=Repris de la comptabilité Excel de l'assistante — pièce 06/23 (ACHAT MAT 1è FOURNITURES). rowid=408 | ref=SI2607-0198 | ref_supplier=07/13 | fk_soc=372 | datef=2026-07-28 | total_ht=174.24000000 | total_tva=34.85000000 | total_ttc=209.09000000 | fk_statut=2 | paye=1 | note_private=Repris de la comptabilité Excel de l'assistante — pièce 07/13 (ACHAT MAT 1è FOURNITURES). -- 9 ligne(s) ===== 3. Totaux par tiers + total general ===== SELECT ff.fk_soc,COUNT(*) nb,ROUND(SUM(ff.total_ht),2) ht,ROUND(SUM(ff.total_ttc),2) ttc FROM llx_facture_fourn ff WHERE ff.fk_soc IN (314,372) GROUP BY ff.fk_soc WITH ROLLUP fk_soc=314 | nb=5 | ht=10519.58 | ttc=12623.5 fk_soc=372 | nb=4 | ht=5308.08 | ttc=6369.69 fk_soc= | nb=9 | ht=15827.66 | ttc=18993.19 -- 3 ligne(s) ===== 4. Paiement 95 ===== SELECT p.rowid,p.ref,p.datep,p.amount,p.fk_bank,p.fk_user_author,p.note FROM llx_paiementfourn p WHERE p.rowid=95 rowid=95 | ref=SPAY2607-0050 | datep=2026-07-31 00:00:00 | amount=8804.22000000 | fk_bank=209 | fk_user_author=1 | note=AgentCompta — effet domicilie du 2026-07-31 Factures : SI2606-0022 + SI2606-0089 + SI2606-0023 + SI2606-0199 + SI2606-0194 Libelle : EFFETS DOMICILIES DOMICILIES -- 1 ligne(s) ===== 4bis. Ventilation du paiement 95 ===== SELECT pf.rowid,pf.fk_paiementfourn,pf.fk_facturefourn,pf.amount,ff.ref,ff.fk_soc,s.nom FROM llx_paiementfourn_facturefourn pf JOIN llx_facture_fourn ff ON ff.rowid=pf.fk_facturefourn JOIN llx_societe s ON s.rowid=ff.fk_soc WHERE pf.fk_paiementfourn=95 rowid=113 | fk_paiementfourn=95 | fk_facturefourn=103 | amount=2090.99000000 | ref=SI2606-0022 | fk_soc=318 | nom=ASTURIENNE (SAS SAINT-GOBAIN DISTRIBUTION BÂTIMENT) rowid=115 | fk_paiementfourn=95 | fk_facturefourn=134 | amount=182.70000000 | ref=SI2606-0023 | fk_soc=342 | nom=Würth France SAS rowid=116 | fk_paiementfourn=95 | fk_facturefourn=156 | amount=3085.63000000 | ref=SI2606-0199 | fk_soc=314 | nom=ArcelorMittal Distribution Solutions France rowid=114 | fk_paiementfourn=95 | fk_facturefourn=229 | amount=1517.98000000 | ref=SI2606-0089 | fk_soc=336 | nom=Cœugnet Matériaux rowid=117 | fk_paiementfourn=95 | fk_facturefourn=401 | amount=1926.92000000 | ref=SI2606-0194 | fk_soc=372 | nom=ARCELOR MITTAL -- 5 ligne(s) ===== 5. Paiements couvrant 314/372 ===== SELECT pf.fk_paiementfourn,p.ref,p.datep,p.amount tot_paiement,COUNT(DISTINCT ff.fk_soc) nb_tiers,GROUP_CONCAT(DISTINCT ff.fk_soc) tiers,GROUP_CONCAT(ff.ref) factures FROM llx_paiementfourn_facturefourn pf JOIN llx_facture_fourn ff ON ff.rowid=pf.fk_facturefourn JOIN llx_paiementfourn p ON p.rowid=pf.fk_paiementfourn WHERE ff.fk_soc IN (314,372) GROUP BY pf.fk_paiementfourn,p.ref,p.datep,p.amount fk_paiementfourn=94 | ref=SPAY2607-0049 | datep=2026-07-15 00:00:00 | tot_paiement=22219.92000000 | nb_tiers=1 | tiers=314 | factures=SI2605-0050,SI2607-0051 fk_paiementfourn=95 | ref=SPAY2607-0050 | datep=2026-07-31 00:00:00 | tot_paiement=8804.22000000 | nb_tiers=2 | tiers=314,372 | factures=SI2606-0199,SI2606-0194 fk_paiementfourn=104 | ref=SPAY2606-0059 | datep=2026-06-22 00:00:00 | tot_paiement=3807.98000000 | nb_tiers=1 | tiers=372 | factures=SI2604-0193 fk_paiementfourn=130 | ref=SPAY2603-0085 | datep=2026-03-20 00:00:00 | tot_paiement=425.70000000 | nb_tiers=1 | tiers=372 | factures=SI2603-0192 fk_paiementfourn=218 | ref=SPAY2608-0173 | datep=2026-08-31 00:00:00 | tot_paiement=209.09000000 | nb_tiers=1 | tiers=372 | factures=SI2607-0198 fk_paiementfourn=250 | ref=SPAY2609-0205 | datep=2026-09-30 00:00:00 | tot_paiement=4755.05000000 | nb_tiers=1 | tiers=314 | factures=SI2608-0276,SI2608-0300 -- 6 ligne(s) ===== 6. Comptes auxiliaires (401) ===== SELECT rowid,nom,code_compta_fournisseur,code_compta,accountancy_code_supplier FROM llx_societe WHERE rowid IN (314,372,356,371,357,369,320,349) ERR Unknown column 'accountancy_code_supplier' in 'field list' ===== 7. Doublons fournisseurs (cle 8 car.) ===== SELECT UPPER(LEFT(REPLACE(nom,' ',''),8)) cle, COUNT(*) n, GROUP_CONCAT(rowid) ids, GROUP_CONCAT(nom SEPARATOR ' || ') noms FROM llx_societe WHERE fournisseur=1 GROUP BY cle HAVING COUNT(*)>1 cle=ARCELORM | n=2 | ids=372,314 | noms=ARCELOR MITTAL || ArcelorMittal Distribution Solutions France cle=EDF | n=2 | ids=356,371 | noms=EDF || EDF cle=EQUIPEME | n=2 | ids=357,369 | noms=EQUIPEMENT SCIENTIFIQUE || EQUIPEMENTS SCIENTIFIQUES S.A.S cle=SHENZHEN | n=3 | ids=320,395,349 | noms=Shenzhenshi Fengmaishiyeyouxiangongsi || shenzhenshitianpengshengkejiyouxiangongsi || shenzhenshiluanniaomaoyiyouxiangongsi -- 4 ligne(s) ===== 8. Autres doublons annonces ===== SELECT s.rowid,s.nom,s.status,s.tva_intra,s.siret,(SELECT COUNT(*) FROM llx_facture_fourn ff WHERE ff.fk_soc=s.rowid) nbff,(SELECT ROUND(SUM(total_ttc),2) FROM llx_facture_fourn ff WHERE ff.fk_soc=s.rowid) ttc,(SELECT COUNT(*) FROM llx_commande_fournisseur cf WHERE cf.fk_soc=s.rowid) nbcf,(SELECT COUNT(*) FROM llx_facture f WHERE f.fk_soc=s.rowid) nbfc FROM llx_societe s WHERE s.rowid IN (356,371,357,369,320,349) rowid=320 | nom=Shenzhenshi Fengmaishiyeyouxiangongsi | status=1 | tva_intra= | siret= | nbff=1 | ttc=15.82 | nbcf=0 | nbfc=0 rowid=349 | nom=shenzhenshiluanniaomaoyiyouxiangongsi | status=1 | tva_intra=FR66918477886 | siret= | nbff=0 | ttc= | nbcf=0 | nbfc=0 rowid=356 | nom=EDF | status=1 | tva_intra= | siret= | nbff=4 | ttc=390.74 | nbcf=0 | nbfc=0 rowid=357 | nom=EQUIPEMENT SCIENTIFIQUE | status=1 | tva_intra= | siret= | nbff=2 | ttc=1439.2 | nbcf=0 | nbfc=0 rowid=369 | nom=EQUIPEMENTS SCIENTIFIQUES S.A.S | status=1 | tva_intra=FR70353579634 | siret= | nbff=1 | ttc=1303.69 | nbcf=0 | nbfc=0 rowid=371 | nom=EDF | status=0 | tva_intra= | siret= | nbff=0 | ttc= | nbcf=0 | nbfc=0 -- 6 ligne(s)