Query Metrics
1370
Database Queries
114
Different statements
1304.67 ms
Query time
4
Invalid entities
Grouped Statements
| Time▼ | Count | Info |
|---|---|---|
|
248.77 ms (19.07%) |
100 |
SELECT t0.id AS id_1, t0.montant AS montant_2, t0.date_operation AS date_operation_3, t0.motif AS motif_4, t0.flag_compassation AS flag_compassation_5, t0.fichier_banque AS fichier_banque_6, t0.id_cmd_id AS id_cmd_id_7, t0.id_ag_id AS id_ag_id_8 FROM reduction t0 WHERE t0.id_cmd_id = ?
Parameters:
[
7928269
]
|
|
57.45 ms (4.40%) |
348 |
SELECT t0.id AS id_1, t0.created_at AS created_at_2, t0.commentaire AS commentaire_3, t0.suivi_id AS suivi_id_4, t0.sous_position_id AS sous_position_id_5 FROM sous_suivi t0 WHERE t0.suivi_id = ?
Parameters:
[
7678
]
|
|
30.74 ms (2.36%) |
100 |
SELECT t0.id AS id_1, t0.date_chargement AS date_chargement_2, t0.date_depart AS date_depart_3, t0.date_arriver AS date_arriver_4, t0.date_operation AS date_operation_5, t0.nom_bateau AS nom_bateau_6, t0.id_ag AS id_ag_7, t0.flag AS flag_8, t0.numero_contenaire AS numero_contenaire_9, t0.transporteur AS transporteur_10, t0.complet_flag AS complet_flag_11, t0.proprietaire_conteneur AS proprietaire_conteneur_12, t0.destination AS destination_13, t0.validation AS validation_14, t0.depenses_prevue AS depenses_prevue_15, t0.remarque_conteneur AS remarque_conteneur_16, t0.is_mco AS is_mco_17, t0.is_rapport AS is_rapport_18, t0.date_rapport_at AS date_rapport_at_19, t0.is_clients AS is_clients_20, t0.rapport AS rapport_21, t0.is_electronique AS is_electronique_22, t0.date_validation AS date_validation_23, t0.is_notifier AS is_notifier_24, t0.fin AS fin_25, t0.date_validation_fin AS date_validation_fin_26, t0.dateattribution AS dateattribution_27, t0.paye_gestionnaire AS paye_gestionnaire_28, t0.id_ct_id AS id_ct_id_29, t0.id_ville_id AS id_ville_id_30, t0.ville_initiale_id AS ville_initiale_id_31, t0.agent_gestionnaire_id AS agent_gestionnaire_id_32 FROM programme_contenaire t0 WHERE t0.id = ?
Parameters:
[
5478
]
|
|
24.88 ms (1.91%) |
100 |
SELECT t0.id AS id_1, t0.lieu AS lieu_2, t0.id_position AS id_position_3, t0.date_operation AS date_operation_4, t0.position_actuelle_flag AS position_actuelle_flag_5, t0.id_ct_pr_id AS id_ct_pr_id_6 FROM suivi_contenaire t0 WHERE t0.id_ct_pr_id = ?
Parameters:
[
5478
]
|
|
19.20 ms (1.47%) |
100 |
SELECT t0.id AS id_1, t0.quantite AS quantite_2, t0.sortie_at AS sortie_at_3, t0.remarque AS remarque_4, t0.noms AS noms_5, t0.telephone AS telephone_6, t0.plaque AS plaque_7, t0.commande_id AS commande_id_8, t0.user_id AS user_id_9 FROM depot t0 WHERE t0.commande_id = ?
Parameters:
[
7928269
]
|
|
19.17 ms (1.47%) |
100 |
SELECT t0.id AS id_1, t0.montant AS montant_2, t0.date_operation AS date_operation_3, t0.flag_en_avance AS flag_en_avance_4, t0.id_cmd_id AS id_cmd_id_5, t0.id_ag_id AS id_ag_id_6 FROM paiement t0 WHERE t0.id_cmd_id = ?
Parameters:
[
7928269
]
|
|
18.74 ms (1.44%) |
100 |
SELECT t0.id AS id_1, t0.volume AS volume_2, t0.prix_unit AS prix_unit_3, t0.unite AS unite_4, t0.modification AS modification_5, t0.commande_id AS commande_id_6 FROM tmp_volume t0 WHERE t0.commande_id = ?
Parameters:
[
7928269
]
|
|
17.66 ms (1.35%) |
100 |
SELECT t0.id AS id_1, t0.qte AS qte_2, t0.libelle AS libelle_3, t0.modification AS modification_4, t0.commande_id AS commande_id_5 FROM tmp_marchandise t0 WHERE t0.commande_id = ?
Parameters:
[
7928269
]
|
|
17.03 ms (1.31%) |
1 |
SELECT c0_.id AS id_0, c0_.date_commande AS date_commande_1, c0_.alias_client AS alias_client_2, c0_.recu_cargo AS recu_cargo_3, c0_.qte_print AS qte_print_4, c0_.contact AS contact_5, c0_.facturehors AS facturehors_6, c0_.nouvelle_facture AS nouvelle_facture_7, c0_.facture_marchandise_abscent AS facture_marchandise_abscent_8, c0_.is_paid AS is_paid_9, c0_.modification AS modification_10, c0_.remarque AS remarque_11, c0_.flagflutter_notification AS flagflutter_notification_12, c0_.pkg AS pkg_13, c0_.ville AS ville_14, c0_.is_number_verified AS is_number_verified_15, c0_.remarque_depot AS remarque_depot_16, c0_.is_scanned AS is_scanned_17, c0_.p1 AS p1_18, c0_.p2 AS p2_19, c0_.p3 AS p3_20, c0_.p4 AS p4_21, c0_.p5 AS p5_22, c0_.p6 AS p6_23, c0_.date_p1 AS date_p1_24, c0_.date_p2 AS date_p2_25, c0_.date_p3 AS date_p3_26, c0_.date_p4 AS date_p4_27, c0_.date_p5 AS date_p5_28, c0_.date_p6 AS date_p6_29, c0_.id_ag_id AS id_ag_id_30, c0_.id_cl_id AS id_cl_id_31, c0_.id_ct_pr_id AS id_ct_pr_id_32 FROM commande c0_ INNER JOIN programme_contenaire p1_ ON c0_.id_ct_pr_id = p1_.id WHERE c0_.contact = ? AND p1_.validation = ? ORDER BY c0_.date_commande DESC LIMIT 100
Parameters:
[ "243851110861" 1 ] |
|
15.99 ms (1.23%) |
100 |
SELECT t0.id AS id_1, t0.libelle AS libelle_2, t0.montant AS montant_3, t0.modification AS modification_4, t0.commande_id AS commande_id_5 FROM autre_frais t0 WHERE t0.commande_id = ?
Parameters:
[
7928269
]
|
|
14.28 ms (1.09%) |
100 |
SELECT t0.id AS id_1, t0.nom_contenaire AS nom_contenaire_2 FROM contenaire t0 WHERE t0.id = ?
Parameters:
[
5620
]
|
|
11.21 ms (0.86%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7880180 ORDER BY c.id DESC
Parameters:
[] |
|
10.14 ms (0.78%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7869827 ORDER BY c.id DESC
Parameters:
[] |
|
9.55 ms (0.73%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7874919 ORDER BY c.id DESC
Parameters:
[] |
|
9.48 ms (0.73%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7873525 ORDER BY c.id DESC
Parameters:
[] |
|
9.47 ms (0.73%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7913394 ORDER BY c.id DESC
Parameters:
[] |
|
9.43 ms (0.72%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7913615 ORDER BY c.id DESC
Parameters:
[] |
|
9.36 ms (0.72%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7912722 ORDER BY c.id DESC
Parameters:
[] |
|
9.35 ms (0.72%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7904991 ORDER BY c.id DESC
Parameters:
[] |
|
9.28 ms (0.71%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7909724 ORDER BY c.id DESC
Parameters:
[] |
|
9.23 ms (0.71%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7903828 ORDER BY c.id DESC
Parameters:
[] |
|
9.23 ms (0.71%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7901549 ORDER BY c.id DESC
Parameters:
[] |
|
9.22 ms (0.71%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7904452 ORDER BY c.id DESC
Parameters:
[] |
|
9.21 ms (0.71%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7913382 ORDER BY c.id DESC
Parameters:
[] |
|
9.21 ms (0.71%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7910174 ORDER BY c.id DESC
Parameters:
[] |
|
9.19 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7918515 ORDER BY c.id DESC
Parameters:
[] |
|
9.19 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7914414 ORDER BY c.id DESC
Parameters:
[] |
|
9.18 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7908539 ORDER BY c.id DESC
Parameters:
[] |
|
9.17 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7913221 ORDER BY c.id DESC
Parameters:
[] |
|
9.15 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7922454 ORDER BY c.id DESC
Parameters:
[] |
|
9.14 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7908032 ORDER BY c.id DESC
Parameters:
[] |
|
9.14 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7880611 ORDER BY c.id DESC
Parameters:
[] |
|
9.14 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7922381 ORDER BY c.id DESC
Parameters:
[] |
|
9.13 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7869704 ORDER BY c.id DESC
Parameters:
[] |
|
9.13 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7874361 ORDER BY c.id DESC
Parameters:
[] |
|
9.12 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7916685 ORDER BY c.id DESC
Parameters:
[] |
|
9.11 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7903853 ORDER BY c.id DESC
Parameters:
[] |
|
9.11 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7916406 ORDER BY c.id DESC
Parameters:
[] |
|
9.10 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7880343 ORDER BY c.id DESC
Parameters:
[] |
|
9.10 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7905376 ORDER BY c.id DESC
Parameters:
[] |
|
9.09 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7872890 ORDER BY c.id DESC
Parameters:
[] |
|
9.07 ms (0.70%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7909828 ORDER BY c.id DESC
Parameters:
[] |
|
9.06 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7904756 ORDER BY c.id DESC
Parameters:
[] |
|
9.05 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7904490 ORDER BY c.id DESC
Parameters:
[] |
|
9.04 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7922647 ORDER BY c.id DESC
Parameters:
[] |
|
9.04 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7874645 ORDER BY c.id DESC
Parameters:
[] |
|
9.00 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7873426 ORDER BY c.id DESC
Parameters:
[] |
|
9.00 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7873398 ORDER BY c.id DESC
Parameters:
[] |
|
9.00 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7902735 ORDER BY c.id DESC
Parameters:
[] |
|
8.98 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7905219 ORDER BY c.id DESC
Parameters:
[] |
|
8.97 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7880656 ORDER BY c.id DESC
Parameters:
[] |
|
8.95 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7870919 ORDER BY c.id DESC
Parameters:
[] |
|
8.94 ms (0.69%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7907478 ORDER BY c.id DESC
Parameters:
[] |
|
8.93 ms (0.68%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7881136 ORDER BY c.id DESC
Parameters:
[] |
|
8.91 ms (0.68%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7870280 ORDER BY c.id DESC
Parameters:
[] |
|
8.91 ms (0.68%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7870617 ORDER BY c.id DESC
Parameters:
[] |
|
8.87 ms (0.68%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7902832 ORDER BY c.id DESC
Parameters:
[] |
|
8.82 ms (0.68%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7878575 ORDER BY c.id DESC
Parameters:
[] |
|
8.81 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7878397 ORDER BY c.id DESC
Parameters:
[] |
|
8.81 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7875976 ORDER BY c.id DESC
Parameters:
[] |
|
8.80 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7870434 ORDER BY c.id DESC
Parameters:
[] |
|
8.80 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7882827 ORDER BY c.id DESC
Parameters:
[] |
|
8.79 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7907295 ORDER BY c.id DESC
Parameters:
[] |
|
8.78 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7904568 ORDER BY c.id DESC
Parameters:
[] |
|
8.77 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7883155 ORDER BY c.id DESC
Parameters:
[] |
|
8.76 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7878747 ORDER BY c.id DESC
Parameters:
[] |
|
8.76 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7877254 ORDER BY c.id DESC
Parameters:
[] |
|
8.74 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7876688 ORDER BY c.id DESC
Parameters:
[] |
|
8.74 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7899591 ORDER BY c.id DESC
Parameters:
[] |
|
8.74 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7904157 ORDER BY c.id DESC
Parameters:
[] |
|
8.72 ms (0.67%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7876136 ORDER BY c.id DESC
Parameters:
[] |
|
8.66 ms (0.66%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7905100 ORDER BY c.id DESC
Parameters:
[] |
|
8.61 ms (0.66%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7872048 ORDER BY c.id DESC
Parameters:
[] |
|
8.59 ms (0.66%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7869933 ORDER BY c.id DESC
Parameters:
[] |
|
8.58 ms (0.66%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7883421 ORDER BY c.id DESC
Parameters:
[] |
|
8.58 ms (0.66%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7870943 ORDER BY c.id DESC
Parameters:
[] |
|
8.55 ms (0.66%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7875934 ORDER BY c.id DESC
Parameters:
[] |
|
8.50 ms (0.65%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7903035 ORDER BY c.id DESC
Parameters:
[] |
|
8.49 ms (0.65%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7903653 ORDER BY c.id DESC
Parameters:
[] |
|
8.45 ms (0.65%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7883631 ORDER BY c.id DESC
Parameters:
[] |
|
8.43 ms (0.65%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7898656 ORDER BY c.id DESC
Parameters:
[] |
|
8.42 ms (0.65%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7870091 ORDER BY c.id DESC
Parameters:
[] |
|
8.27 ms (0.63%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7883781 ORDER BY c.id DESC
Parameters:
[] |
|
7.91 ms (0.61%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7881436 ORDER BY c.id DESC
Parameters:
[] |
|
7.87 ms (0.60%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7900265 ORDER BY c.id DESC
Parameters:
[] |
|
7.74 ms (0.59%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7897140 ORDER BY c.id DESC
Parameters:
[] |
|
7.50 ms (0.57%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7901036 ORDER BY c.id DESC
Parameters:
[] |
|
7.22 ms (0.55%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7923198 ORDER BY c.id DESC
Parameters:
[] |
|
7.09 ms (0.54%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7902328 ORDER BY c.id DESC
Parameters:
[] |
|
7.04 ms (0.54%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7881920 ORDER BY c.id DESC
Parameters:
[] |
|
6.73 ms (0.52%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7902299 ORDER BY c.id DESC
Parameters:
[] |
|
6.20 ms (0.48%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7879488 ORDER BY c.id DESC
Parameters:
[] |
|
6.19 ms (0.47%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7922489 ORDER BY c.id DESC
Parameters:
[] |
|
6.16 ms (0.47%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7897238 ORDER BY c.id DESC
Parameters:
[] |
|
5.92 ms (0.45%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7882362 ORDER BY c.id DESC
Parameters:
[] |
|
5.92 ms (0.45%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7897277 ORDER BY c.id DESC
Parameters:
[] |
|
5.87 ms (0.45%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7901780 ORDER BY c.id DESC
Parameters:
[] |
|
5.75 ms (0.44%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7892932 ORDER BY c.id DESC
Parameters:
[] |
|
5.53 ms (0.42%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7882682 ORDER BY c.id DESC
Parameters:
[] |
|
5.45 ms (0.42%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7922930 ORDER BY c.id DESC
Parameters:
[] |
|
5.32 ms (0.41%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7879986 ORDER BY c.id DESC
Parameters:
[] |
|
5.26 ms (0.40%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7928269 ORDER BY c.id DESC
Parameters:
[] |
|
5.25 ms (0.40%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7881547 ORDER BY c.id DESC
Parameters:
[] |
|
5.24 ms (0.40%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7883047 ORDER BY c.id DESC
Parameters:
[] |
|
5.15 ms (0.39%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7881497 ORDER BY c.id DESC
Parameters:
[] |
|
5.11 ms (0.39%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7875795 ORDER BY c.id DESC
Parameters:
[] |
|
5.11 ms (0.39%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7875312 ORDER BY c.id DESC
Parameters:
[] |
|
5.10 ms (0.39%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7881677 ORDER BY c.id DESC
Parameters:
[] |
|
5.09 ms (0.39%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7881790 ORDER BY c.id DESC
Parameters:
[] |
|
5.08 ms (0.39%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7882891 ORDER BY c.id DESC
Parameters:
[] |
|
5.02 ms (0.38%) |
1 |
SELECT *,c.id AS idCommande, (SELECT nom_ag FROM agent a WHERE a.id = c.id_cl_id ) AS nom_client, (SELECT IFNULL(SUM(ROUND(tV.prix_unit * tV.volume)),0) FROM tmp_volume tV WHERE c.id = tV.commande_id ) AS pritotal, (SELECT MAX(p.id) AS maxid FROM paiement p WHERE p.id_cmd_id = c.id ) AS idFacture, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 0 ) AS dejaPaie, (SELECT IFNULL(SUM(p.montant),0) FROM paiement p WHERE p.id_cmd_id = c.id AND p.flag_en_avance = 1 ) AS paieEnAvance, (SELECT IFNULL(SUM(atF.montant),0) FROM autre_frais atF WHERE atF.commande_id = c.id ) AS AutresFrais, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '0') AS reduction, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '1' ) AS compassation, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ) AS banque, (SELECT r.montant FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '2' ORDER BY r.id DESC LIMIT 1) AS banqueDujour, (SELECT IFNULL(SUM(r.montant),0) FROM reduction r WHERE r.id_cmd_id = c.id AND r.flag_compassation = '3' ) AS depot FROM commande c LEFT JOIN agent a ON (c.id_ag_id = a.id) LEFT JOIN programme_contenaire ctpr ON (c.id_ct_pr_id = ctpr.id) LEFT JOIN contenaire ct ON (ctpr.id_ct_id = ct.id) WHERE c.id = 7882787 ORDER BY c.id DESC
Parameters:
[] |
|
2.64 ms (0.20%) |
17 |
SELECT t0.id AS id_1, t0.libelle AS libelle_2, t0.message_client AS message_client_3, t0.niveau AS niveau_4, t0.track_position_id AS track_position_id_5 FROM sous_position t0 WHERE t0.id = ?
Parameters:
[
293
]
|
|
0.72 ms (0.06%) |
3 |
SELECT t0.id AS id_1, t0.nomville AS nomville_2, t0.adresse1 AS adresse1_3, t0.adresse2 AS adresse2_4, t0.email AS email_5, t0.num_tel AS num_tel_6, t0.addresse3 AS addresse3_7, t0.addresse4 AS addresse4_8, t0.addresse5 AS addresse5_9, t0.addresse6 AS addresse6_10, t0.flag_ville AS flag_ville_11, t0.logo AS logo_12, t0.port_bateau AS port_bateau_13, t0.taux_du_jour_pays AS taux_du_jour_pays_14, t0.is_taux AS is_taux_15, t0.monnaie AS monnaie_16, t0.tokenurl AS tokenurl_17, t0.token_id AS token_id_18, t0.basdepage AS basdepage_19, t0.basdepagemco AS basdepagemco_20, t0.cbm AS cbm_21, t0.tonne AS tonne_22, t0.kg AS kg_23, t0.conteneur AS conteneur_24, t0.kgelec AS kgelec_25, t0.prefixe_code AS prefixe_code_26, t0.estimateddate_text_air_cargo AS estimateddate_text_air_cargo_27, t0.estimateddate_text_sea_cargo AS estimateddate_text_sea_cargo_28 FROM ville t0 WHERE t0.id = ?
Parameters:
[
14
]
|
|
0.30 ms (0.02%) |
1 |
SELECT t0.id AS id_1, t0.nom_ag AS nom_ag_2, t0.contact_ag AS contact_ag_3, t0.image_ag AS image_ag_4, t0.token_flutter AS token_flutter_5, t0.contact_whatsapp AS contact_whatsapp_6, t0.sexe AS sexe_7, t0.type_client_agent AS type_client_agent_8, t0.contact_ag1 AS contact_ag1_9, t0.code AS code_10, t0.prefixcode AS prefixcode_11, t0.langue AS langue_12, t0.mco AS mco_13, t0.cargo_agent AS cargo_agent_14, t0.ancien AS ancien_15, t0.is_verifier AS is_verifier_16, t0.codeverification AS codeverification_17, t0.clientblocker AS clientblocker_18, t0.admin AS admin_19, t0.face_signature AS face_signature_20, t0.daily_rate AS daily_rate_21, t0.ville_id AS ville_id_22, t23.id AS id_24, t23.etat AS etat_25, t23.role AS role_26, t23.date_created AS date_created_27, t23.date_connected AS date_connected_28, t23.status AS status_29, t23.user_name AS user_name_30, t23.password AS password_31, t23.langue AS langue_32, t23.flag_sms AS flag_sms_33, t23.flag_voice_sms AS flag_voice_sms_34, t23.flag_voice_whatsapp AS flag_voice_whatsapp_35, t23.is_mco AS is_mco_36, t23.i_sflag_calacul AS i_sflag_calacul_37, t23.caisse_localite AS caisse_localite_38, t23.ville_id AS ville_id_39, t23.id_ag_id AS id_ag_id_40 FROM agent t0 LEFT JOIN utilisateur t23 ON t23.id_ag_id = t0.id WHERE t0.id = ?
Parameters:
[
8773
]
|
Database Connections
| Name | Service |
|---|---|
| default | doctrine.dbal.default_connection |
Entity Managers
| Name | Service |
|---|---|
| default | doctrine.orm.default_entity_manager |
Second Level Cache
Second Level Cache is not enabled.
Entities Mapping
| Class | Mapping errors |
|---|---|
| App\Entity\Commande |
|
| App\Entity\ProgrammeContenaire |
|
| App\Entity\Agent |
|
| App\Entity\Paiement | No errors. |
| App\Entity\TmpMarchandise | No errors. |
| App\Entity\TmpVolume | No errors. |
| App\Entity\AutreFrais | No errors. |
| App\Entity\Reduction | No errors. |
| App\Entity\Remarque | No errors. |
| App\Entity\Depot | No errors. |
| App\Entity\Contenaire | No errors. |
| App\Entity\Ville |
|
| App\Entity\SuiviContenaire | No errors. |
| App\Entity\DepensesContenaire | No errors. |
| App\Entity\Declarant | No errors. |
| App\Entity\RemarqueConteneur | No errors. |
| App\Entity\Notification | No errors. |
| App\Entity\TmpConteneurReception | No errors. |
| App\Entity\Utilisateur | No errors. |
| App\Entity\Bois | No errors. |
| App\Entity\TransfertEnvoie | No errors. |
| App\Entity\AutrePaiement | No errors. |
| App\Entity\Reception | No errors. |
| App\Entity\Attendance | No errors. |
| App\Entity\Position | No errors. |
| App\Entity\CategoriePrix | No errors. |
| App\Entity\SousSuivi | No errors. |
| App\Entity\SousPosition | No errors. |