diff options
| author | polo <ordipolo@gmx.fr> | 2023-12-23 10:00:24 +0100 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-12-23 10:00:24 +0100 |
| commit | a4d88fd1913758cc95b395eefcf5e9d730450382 (patch) | |
| tree | a7ffe3ab2816d7562cc967b5b4ef7c974dd7a0e2 /src/functions.php | |
| parent | 78439b6a178e238ab8fb73d25567a85df78d6681 (diff) | |
| download | AppliGestionPHP-a4d88fd1913758cc95b395eefcf5e9d730450382.tar.gz AppliGestionPHP-a4d88fd1913758cc95b395eefcf5e9d730450382.tar.bz2 AppliGestionPHP-a4d88fd1913758cc95b395eefcf5e9d730450382.zip | |
devis payant, créer devis depuis facture, changement dans getIDsByIdClient(), suppression dépendance paquet latex "ulem", (string) dans setTelephone()
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 |
