CAISSE

SELECT `id`, `vente`, `montant`, `porteur`, `encaissement`, `dateEncaissement`, `ville`, `client` AS `partenaire`, `photo`, 'vente' AS `type`, `id_caisse` FROM `vente_reglement` WHERE `mode` = 'Espece' UNION SELECT `id`, `achat`, `montant`, `porteur`, `encaissement`, `dateEncaissement`, `ville`, `fournisseur` AS `partenaire`, `photo`, 'achat' AS `type`, `id_caisse` FROM `achat_reglement` WHERE `mode` = 'Espece' UNION SELECT `id`, `nom`, `montant`, `porteur`, `encaissement`, `dateEncaissement`, `ville`, `beneficiaire` AS `partenaire`, `img` AS `photo`, 'encaissement', `id_caisse` FROM `encaissement` WHERE 1
Id Id Numero Bénéficiaire Montant Caisse Date Encaissement Ville Photo Action
-1355 1355 865 test 5000 DH 2025-01-24        
-1374 1374 876 test 50 DH 2025-01-27        
-1409 1409 901 testouma 10000 DH 2025-02-24        
-1478 1478 922 SOFT MEDICAL 95 DH 2025-02-25        
-1486 1486 925 LABORATOIRE LOUIS PASTEUR 1865 DH 2025-02-25        
-1489 1489 932 test 100 DH 2025-03-01        
-31 31 62 BIOTEC SCIENTIFIQUE FSS 399 DH 0000-00-00        
-32 32 63 BIOTEC SCIENTIFIQUE FSS 594 DH 0000-00-00        
-36 36 72 BIOTEC SCIENTIFIQUE FSS 297.6 DH 0000-00-00        
-40 40 76 Rapid labs limited 0 DH 0000-00-00        
-1 1 test oumaima 1100000 DH        
-3 3 test oumaima 1100 DH        
-4 4 alimentation 1 test be 1000 DH