diff options
Diffstat (limited to 'src/functions.php')
-rw-r--r-- | src/functions.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/functions.php b/src/functions.php index 47961f2..9bb59d6 100644 --- a/src/functions.php +++ b/src/functions.php | |||
@@ -96,13 +96,14 @@ function searchCustomer(string $input, Clients $Client): array | |||
96 | } | 96 | } |
97 | 97 | ||
98 | 98 | ||
99 | function getServices(Clients $Client) | 99 | function getServices(Clients $Client, string $type = '') |
100 | { | 100 | { |
101 | echo "debug: recherche d'une prestation\n"; | 101 | echo "debug: recherche d'une prestation\n"; |
102 | 102 | ||
103 | // recherche dans la table 'prestations' avec 'ID_client' les ID des prestas | 103 | // on recherche les ID des prestas dans la table 'prestations' avec 'ID_client' |
104 | $Presta = new Prestations($Client->getID()); | 104 | $Presta = new Prestations($Client->getID()); |
105 | $IDs = $Presta->getIDsByIdClient(); | 105 | $Presta->setTypePresta($type); |
106 | $IDs = $Presta->getIDsByIdClient(); // comportement différent si le type est connu | ||
106 | unset($Presta); | 107 | unset($Presta); |
107 | 108 | ||
108 | // mettres toutes les données dans un tableau | 109 | // mettres toutes les données dans un tableau |