21.83 ms (23.10%)
1
SELECT t0 . id AS id_1 , t0 . nom AS nom_2 , t0 . etat AS etat_3 , t0 . frequence AS frequence_4 , t0 . message AS message_5 FROM configuration_sms t0 WHERE t0 . nom = ? AND t0 . etat = ? LIMIT 1
Parameters :
[
"vente "
"actif "
]
SELECT t0 . id AS id_1 , t0 . nom AS nom_2 , t0 . etat AS etat_3 , t0 . frequence AS frequence_4 , t0 . message AS message_5 FROM configuration_sms t0 WHERE t0 . nom = 'vente' AND t0 . etat = 'actif' LIMIT 1 ;
Copy
15.96 ms (16.89%)
16
SELECT p0_ . id AS id_0 , p0_ . quantite_min AS quantite_min_1 , p0_ . quantite_bonus AS quantite_bonus_2 , p0_ . etat AS etat_3 , p0_ . date_saisie AS date_saisie_4 , p0_ . produit_bonus_id AS produit_bonus_id_5 , p0_ . lieu_vente_id AS lieu_vente_id_6 , p0_ . saisie_par_id AS saisie_par_id_7 FROM promotion p0_ INNER JOIN promotion_products p2_ ON p0_ . id = p2_ . promotion_id INNER JOIN products p1_ ON p1_ . id = p2_ . products_id WHERE p1_ . id = ?
SELECT p0_ . id AS id_0 , p0_ . quantite_min AS quantite_min_1 , p0_ . quantite_bonus AS quantite_bonus_2 , p0_ . etat AS etat_3 , p0_ . date_saisie AS date_saisie_4 , p0_ . produit_bonus_id AS produit_bonus_id_5 , p0_ . lieu_vente_id AS lieu_vente_id_6 , p0_ . saisie_par_id AS saisie_par_id_7 FROM promotion p0_ INNER JOIN promotion_products p2_ ON p0_ . id = p2_ . promotion_id INNER JOIN products p1_ ON p1_ . id = p2_ . products_id WHERE p1_ . id = 395 ;
Copy
13.36 ms (14.14%)
8
SELECT t0 . id AS id_1 , t0 . quantite AS quantite_2 , t0 . prix_achat AS prix_achat_3 , t0 . prix_revient AS prix_revient_4 , t0 . prix_vente AS prix_vente_5 , t0 . date_peremption AS date_peremption_6 , t0 . stock_produit_id AS stock_produit_id_7 , t0 . product_id AS product_id_8 FROM stock t0 WHERE t0 . stock_produit_id = ? AND t0 . product_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . quantite AS quantite_2 , t0 . prix_achat AS prix_achat_3 , t0 . prix_revient AS prix_revient_4 , t0 . prix_vente AS prix_vente_5 , t0 . date_peremption AS date_peremption_6 , t0 . stock_produit_id AS stock_produit_id_7 , t0 . product_id AS product_id_8 FROM stock t0 WHERE t0 . stock_produit_id = 1 AND t0 . product_id = 395 LIMIT 1 ;
Copy
10.60 ms (11.21%)
8
SELECT t0 . id AS id_1 , t0 . quantite AS quantite_2 , t0 . prix_achat AS prix_achat_3 , t0 . prix_revient AS prix_revient_4 , t0 . prix_vente AS prix_vente_5 , t0 . date_peremption AS date_peremption_6 , t0 . stock_produit_id AS stock_produit_id_7 , t0 . product_id AS product_id_8 FROM stock t0 WHERE t0 . product_id = ? AND t0 . stock_produit_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . quantite AS quantite_2 , t0 . prix_achat AS prix_achat_3 , t0 . prix_revient AS prix_revient_4 , t0 . prix_vente AS prix_vente_5 , t0 . date_peremption AS date_peremption_6 , t0 . stock_produit_id AS stock_produit_id_7 , t0 . product_id AS product_id_8 FROM stock t0 WHERE t0 . product_id = 395 AND t0 . stock_produit_id = 1 LIMIT 1 ;
Copy
10.36 ms (10.96%)
1
SELECT t0 . id AS id_1 , t0 . username AS username_2 , t0 . roles AS roles_3 , t0 . password AS password_4 , t0 . nom AS nom_5 , t0 . prenom AS prenom_6 , t0 . telephone AS telephone_7 , t0 . email AS email_8 , t0 . type_user AS type_user_9 , t0 . date_creation AS date_creation_10 , t0 . adresse AS adresse_11 , t0 . ville AS ville_12 , t0 . pays AS pays_13 , t0 . statut AS statut_14 , t0 . reference AS reference_15 , t0 . lieu_vente_id AS lieu_vente_id_16 , t0 . region_id AS region_id_17 FROM user t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . username AS username_2 , t0 . roles AS roles_3 , t0 . password AS password_4 , t0 . nom AS nom_5 , t0 . prenom AS prenom_6 , t0 . telephone AS telephone_7 , t0 . email AS email_8 , t0 . type_user AS type_user_9 , t0 . date_creation AS date_creation_10 , t0 . adresse AS adresse_11 , t0 . ville AS ville_12 , t0 . pays AS pays_13 , t0 . statut AS statut_14 , t0 . reference AS reference_15 , t0 . lieu_vente_id AS lieu_vente_id_16 , t0 . region_id AS region_id_17 FROM user t0 WHERE t0 . id = 1 ;
Copy
4.09 ms (4.33%)
8
SELECT t0 . id AS id_1 , t0 . reference AS reference_2 , t0 . designation AS designation_3 , t0 . prix_vente AS prix_vente_4 , t0 . code_barre AS code_barre_5 , t0 . nbre_piece AS nbre_piece_6 , t0 . nbre_paquet AS nbre_paquet_7 , t0 . type_produit AS type_produit_8 , t0 . nbre_vente AS nbre_vente_9 , t0 . statut AS statut_10 , t0 . statut_comptable AS statut_comptable_11 , t0 . tva AS tva_12 , t0 . categorie_id AS categorie_id_13 , t0 . epaisseur_id AS epaisseur_id_14 , t0 . dimension_id AS dimension_id_15 , t0 . origine_id AS origine_id_16 , t0 . type_id AS type_id_17 FROM products t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . reference AS reference_2 , t0 . designation AS designation_3 , t0 . prix_vente AS prix_vente_4 , t0 . code_barre AS code_barre_5 , t0 . nbre_piece AS nbre_piece_6 , t0 . nbre_paquet AS nbre_paquet_7 , t0 . type_produit AS type_produit_8 , t0 . nbre_vente AS nbre_vente_9 , t0 . statut AS statut_10 , t0 . statut_comptable AS statut_comptable_11 , t0 . tva AS tva_12 , t0 . categorie_id AS categorie_id_13 , t0 . epaisseur_id AS epaisseur_id_14 , t0 . dimension_id AS dimension_id_15 , t0 . origine_id AS origine_id_16 , t0 . type_id AS type_id_17 FROM products t0 WHERE t0 . id = 395 ;
Copy
2.85 ms (3.02%)
8
INSERT INTO commande_product (prix_vente , prix_revient , prix_achat , quantite , quantite_livre , remise , tva , facturation_id , product_id ) VALUES (? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
"240000 "
"205000.00 "
"225000.00 "
4.0
4.0
"0 "
0.0
795
395
]
INSERT INTO commande_product (prix_vente , prix_revient , prix_achat , quantite , quantite_livre , remise , tva , facturation_id , product_id ) VALUES ('240000' , '205000.00' , '225000.00' , 4 , 4 , '0' , 0 , 795 , 395 );
Copy
2.46 ms (2.60%)
8
INSERT INTO livraison (quantite_liv , date_livraison , date_saisie , commentaire , commande_id , saisie_par_id , stock_id ) VALUES (? , ? , ? , ? , ? , ? , ? )
Parameters :
[
4.0
"2026-06-11 17:10:16 "
"2026-06-11 17:10:16 "
"livraison direct "
9961
1
1
]
INSERT INTO livraison (quantite_liv , date_livraison , date_saisie , commentaire , commande_id , saisie_par_id , stock_id ) VALUES (4 , '2026-06-11 17:10:16' , '2026-06-11 17:10:16' , 'livraison direct' , 9961 , 1 , 1 );
Copy
2.42 ms (2.57%)
8
INSERT INTO mouvement_product (quantite , date_operation , origine , description , stock_product_id , product_id , lieu_vente_id , personnel_id , client_id , inventaire_id , anomalie_id , transfert_id , achat_fournisseur_id , livraison_id , livraison_multiple_id , sortie_stock_id ) VALUES (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
-4.0
"2026-06-11 17:10:16 "
"vente direct "
"vente direct "
1
395
1
1
null
null
null
null
null
9692
null
null
]
INSERT INTO mouvement_product (quantite , date_operation , origine , description , stock_product_id , product_id , lieu_vente_id , personnel_id , client_id , inventaire_id , anomalie_id , transfert_id , achat_fournisseur_id , livraison_id , livraison_multiple_id , sortie_stock_id ) VALUES (- 4 , '2026-06-11 17:10:16' , 'vente direct' , 'vente direct' , 1 , 395 , 1 , 1 , NULL , NULL , NULL , NULL , NULL , 9692 , NULL , NULL );
Copy
2.04 ms (2.16%)
8
UPDATE stock SET quantite = ? WHERE id = ?
Parameters :
[
163.0
395
]
UPDATE stock SET quantite = 163 WHERE id = 395 ;
Copy
2.03 ms (2.15%)
4
SELECT t0 . id AS id_1 , t0 . nom_devise AS nom_devise_2 FROM devise t0 WHERE t0 . nom_devise = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . nom_devise AS nom_devise_2 FROM devise t0 WHERE t0 . nom_devise = 'gnf' LIMIT 1 ;
Copy
0.68 ms (0.72%)
1
SELECT t0 . id AS id_1 , t0 . adresse AS adresse_2 , t0 . pays AS pays_3 , t0 . region AS region_4 , t0 . ville AS ville_5 , t0 . telephone AS telephone_6 , t0 . email AS email_7 , t0 . latitude AS latitude_8 , t0 . longitude AS longitude_9 , t0 . initial AS initial_10 , t0 . type_commerce AS type_commerce_11 , t0 . lieu AS lieu_12 , t0 . entreprise_id AS entreprise_id_13 , t0 . gestionnaire_id AS gestionnaire_id_14 FROM lieux_ventes t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . adresse AS adresse_2 , t0 . pays AS pays_3 , t0 . region AS region_4 , t0 . ville AS ville_5 , t0 . telephone AS telephone_6 , t0 . email AS email_7 , t0 . latitude AS latitude_8 , t0 . longitude AS longitude_9 , t0 . initial AS initial_10 , t0 . type_commerce AS type_commerce_11 , t0 . lieu AS lieu_12 , t0 . entreprise_id AS entreprise_id_13 , t0 . gestionnaire_id AS gestionnaire_id_14 FROM lieux_ventes t0 WHERE t0 . id = 1 ;
Copy
0.59 ms (0.62%)
1
SELECT t0 . id AS id_1 , t0 . designation AS designation_2 FROM mode_paiement t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . designation AS designation_2 FROM mode_paiement t0 WHERE t0 . id = 1 ;
Copy
0.56 ms (0.60%)
1
SELECT t0 . id AS id_1 , t0 . nom_devise AS nom_devise_2 FROM devise t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . nom_devise AS nom_devise_2 FROM devise t0 WHERE t0 . id = 1 ;
Copy
0.56 ms (0.59%)
1
SELECT t0 . id AS id_1 , t0 . nom_operation AS nom_operation_2 FROM categorie_operation t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . nom_operation AS nom_operation_2 FROM categorie_operation t0 WHERE t0 . id = 1 ;
Copy
0.55 ms (0.58%)
1
SELECT t0 . id AS id_1 , t0 . numero_compte AS numero_compte_2 , t0 . commentaire AS commentaire_3 FROM compte_operation t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . numero_compte AS numero_compte_2 , t0 . commentaire AS commentaire_3 FROM compte_operation t0 WHERE t0 . id = 6 ;
Copy
0.52 ms (0.55%)
1
SELECT MAX (f0_ . id ) AS sclr_0 FROM facturation f0_
SELECT MAX (f0_ . id ) AS sclr_0 FROM facturation f0_ ;
Copy
0.50 ms (0.53%)
1
SELECT t0 . id AS id_1 , t0 . numero_facture AS numero_facture_2 , t0 . total_facture AS total_facture_3 , t0 . montant_paye AS montant_paye_4 , t0 . montant_remise AS montant_remise_5 , t0 . etat AS etat_6 , t0 . etat_livraison AS etat_livraison_7 , t0 . date_facturation AS date_facturation_8 , t0 . date_saisie AS date_saisie_9 , t0 . date_alerte AS date_alerte_10 , t0 . commentaire AS commentaire_11 , t0 . nom_client_cash AS nom_client_cash_12 , t0 . frais_sup AS frais_sup_13 , t0 . taux AS taux_14 , t0 . client_id AS client_id_15 , t0 . caisse_id AS caisse_id_16 , t0 . lieu_vente_id AS lieu_vente_id_17 , t0 . saisie_par_id AS saisie_par_id_18 , t0 . mode_paie_id AS mode_paie_id_19 , t0 . proformat_id AS proformat_id_20 , t0 . devise_id AS devise_id_21 FROM facturation t0 ORDER BY t0 . id DESC LIMIT 1
SELECT t0 . id AS id_1 , t0 . numero_facture AS numero_facture_2 , t0 . total_facture AS total_facture_3 , t0 . montant_paye AS montant_paye_4 , t0 . montant_remise AS montant_remise_5 , t0 . etat AS etat_6 , t0 . etat_livraison AS etat_livraison_7 , t0 . date_facturation AS date_facturation_8 , t0 . date_saisie AS date_saisie_9 , t0 . date_alerte AS date_alerte_10 , t0 . commentaire AS commentaire_11 , t0 . nom_client_cash AS nom_client_cash_12 , t0 . frais_sup AS frais_sup_13 , t0 . taux AS taux_14 , t0 . client_id AS client_id_15 , t0 . caisse_id AS caisse_id_16 , t0 . lieu_vente_id AS lieu_vente_id_17 , t0 . saisie_par_id AS saisie_par_id_18 , t0 . mode_paie_id AS mode_paie_id_19 , t0 . proformat_id AS proformat_id_20 , t0 . devise_id AS devise_id_21 FROM facturation t0 ORDER BY t0 . id DESC LIMIT 1 ;
Copy
0.49 ms (0.52%)
1
SELECT s0_ . prix_achat AS prix_achat_0 , s0_ . prix_revient AS prix_revient_1 FROM stock s0_ LEFT JOIN liste_stock l1_ ON s0_ . stock_produit_id = l1_ . id WHERE s0_ . product_id = ? AND (s0_ . prix_achat > 0 OR s0_ . prix_revient > 0 ) AND l1_ . lieu_vente_id = ? ORDER BY s0_ . id DESC LIMIT 1
SELECT s0_ . prix_achat AS prix_achat_0 , s0_ . prix_revient AS prix_revient_1 FROM stock s0_ LEFT JOIN liste_stock l1_ ON s0_ . stock_produit_id = l1_ . id WHERE s0_ . product_id = 438 AND (s0_ . prix_achat > 0 OR s0_ . prix_revient > 0 ) AND l1_ . lieu_vente_id = 1 ORDER BY s0_ . id DESC LIMIT 1 ;
Copy
0.44 ms (0.47%)
1
INSERT INTO mouvement_caisse (type_mouvement , montant , date_operation , date_saisie , numero_paie , banque_cheque , taux , etat_operation , date_sortie , type_sortie , detail_sortie , lieu_vente_id , caisse_id , categorie_operation_id , compte_operation_id , devise_id , decaissement_id , avance_salaire_id , paiement_salaire_id , depense_id , versement_id , transfert_fond_id , cheque_espece_id , recette_id , facturation_id , mode_paie_id , retour_product_id , echange_id , saisie_par_id , cloture_id , sortie_stock_id ) VALUES (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
"facturation "
"7390000 "
"2026-06-11 17:10:16 "
"2026-06-11 17:10:16 "
null
null
1.0
"non traite "
null
null
null
1
1
1
6
1
null
null
null
null
null
null
null
null
795
1
null
null
1
null
null
]
INSERT INTO mouvement_caisse (
type_mouvement , montant , date_operation ,
date_saisie , numero_paie , banque_cheque ,
taux , etat_operation , date_sortie ,
type_sortie , detail_sortie , lieu_vente_id ,
caisse_id , categorie_operation_id ,
compte_operation_id , devise_id ,
decaissement_id , avance_salaire_id ,
paiement_salaire_id , depense_id ,
versement_id , transfert_fond_id ,
cheque_espece_id , recette_id , facturation_id ,
mode_paie_id , retour_product_id ,
echange_id , saisie_par_id , cloture_id ,
sortie_stock_id
)
VALUES
(
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
INSERT INTO mouvement_caisse (type_mouvement , montant , date_operation , date_saisie , numero_paie , banque_cheque , taux , etat_operation , date_sortie , type_sortie , detail_sortie , lieu_vente_id , caisse_id , categorie_operation_id , compte_operation_id , devise_id , decaissement_id , avance_salaire_id , paiement_salaire_id , depense_id , versement_id , transfert_fond_id , cheque_espece_id , recette_id , facturation_id , mode_paie_id , retour_product_id , echange_id , saisie_par_id , cloture_id , sortie_stock_id ) VALUES ('facturation' , '7390000' , '2026-06-11 17:10:16' , '2026-06-11 17:10:16' , NULL , NULL , 1 , 'non traite' , NULL , NULL , NULL , 1 , 1 , 1 , 6 , 1 , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , 795 , 1 , NULL , NULL , 1 , NULL , NULL );
Copy
0.43 ms (0.45%)
1
SELECT t0 . id AS id_1 , t0 . nom_stock AS nom_stock_2 , t0 . adresse AS adresse_3 , t0 . surface AS surface_4 , t0 . nbre_pieces AS nbre_pieces_5 , t0 . type AS type_6 , t0 . statut AS statut_7 , t0 . lieu_vente_id AS lieu_vente_id_8 , t0 . responsable_id AS responsable_id_9 FROM liste_stock t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . nom_stock AS nom_stock_2 , t0 . adresse AS adresse_3 , t0 . surface AS surface_4 , t0 . nbre_pieces AS nbre_pieces_5 , t0 . type AS type_6 , t0 . statut AS statut_7 , t0 . lieu_vente_id AS lieu_vente_id_8 , t0 . responsable_id AS responsable_id_9 FROM liste_stock t0 WHERE t0 . id = '1' ;
Copy
0.40 ms (0.42%)
1
SELECT t0 . id AS id_1 , t0 . designation AS designation_2 , t0 . type AS type_3 , t0 . numero_compte AS numero_compte_4 , t0 . document AS document_5 , t0 . point_de_vente_id AS point_de_vente_id_6 FROM caisse t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . designation AS designation_2 , t0 . type AS type_3 , t0 . numero_compte AS numero_compte_4 , t0 . document AS document_5 , t0 . point_de_vente_id AS point_de_vente_id_6 FROM caisse t0 WHERE t0 . id = '1' ;
Copy
0.40 ms (0.42%)
1
INSERT INTO facturation (numero_facture , total_facture , montant_paye , montant_remise , etat , etat_livraison , date_facturation , date_saisie , date_alerte , commentaire , nom_client_cash , frais_sup , taux , client_id , caisse_id , lieu_vente_id , saisie_par_id , mode_paie_id , proformat_id , devise_id ) VALUES (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
"acf260795 "
"7390000 "
"7390000 "
"0 "
"payé "
"livré "
"2026-06-11 17:10:16 "
"2026-06-11 17:10:16 "
null
null
null
"0 "
null
null
1
1
1
1
null
null
]
INSERT INTO facturation (numero_facture , total_facture , montant_paye , montant_remise , etat , etat_livraison , date_facturation , date_saisie , date_alerte , commentaire , nom_client_cash , frais_sup , taux , client_id , caisse_id , lieu_vente_id , saisie_par_id , mode_paie_id , proformat_id , devise_id ) VALUES ('acf260795' , '7390000' , '7390000' , '0' , 'payé' , 'livré' , '2026-06-11 17:10:16' , '2026-06-11 17:10:16' , NULL , NULL , NULL , '0' , NULL , NULL , 1 , 1 , 1 , 1 , NULL , NULL );
Copy
0.21 ms (0.22%)
1
"COMMIT"
0.17 ms (0.18%)
1
"START TRANSACTION"
"START TRANSACTION" ;
Copy