From a4d88fd1913758cc95b395eefcf5e9d730450382 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 23 Dec 2023 10:00:24 +0100 Subject: =?UTF-8?q?devis=20payant,=20cr=C3=A9er=20devis=20depuis=20facture?= =?UTF-8?q?,=20changement=20dans=20getIDsByIdClient(),=20suppression=20d?= =?UTF-8?q?=C3=A9pendance=20paquet=20latex=20"ulem",=20(string)=20dans=20s?= =?UTF-8?q?etTelephone()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/functions.php') 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 } -function getServices(Clients $Client) +function getServices(Clients $Client, string $type = '') { echo "debug: recherche d'une prestation\n"; - // recherche dans la table 'prestations' avec 'ID_client' les ID des prestas + // on recherche les ID des prestas dans la table 'prestations' avec 'ID_client' $Presta = new Prestations($Client->getID()); - $IDs = $Presta->getIDsByIdClient(); + $Presta->setTypePresta($type); + $IDs = $Presta->getIDsByIdClient(); // comportement différent si le type est connu unset($Presta); // mettres toutes les données dans un tableau -- cgit v1.2.3