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/model/Clients.php | |
parent | 78439b6a178e238ab8fb73d25567a85df78d6681 (diff) | |
download | 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/model/Clients.php')
-rw-r--r-- | src/model/Clients.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/model/Clients.php b/src/model/Clients.php index 524070a..a5cc276 100644 --- a/src/model/Clients.php +++ b/src/model/Clients.php | |||
@@ -102,17 +102,11 @@ class Clients extends Model | |||
102 | $this->ville = (string) $value; | 102 | $this->ville = (string) $value; |
103 | return $this; | 103 | return $this; |
104 | } | 104 | } |
105 | public function setTelephone($value) // chaine parce que zenity renvoie une chaine et parce qu'on garde le 0 au début | 105 | public function setTelephone($value) |
106 | { | 106 | { |
107 | if(is_numeric($value)) | 107 | // type string parce que |
108 | { | 108 | // zenity renvoie une chaine, on peut ainsi garder le 0 au début et avoir plusieurs numéros (séparés par virgule et espace) |
109 | $this->telephone = (string) $value; | 109 | $this->telephone = (string) $value; |
110 | } | ||
111 | else | ||
112 | { | ||
113 | $this->telephone = ''; | ||
114 | echo 'debug: le champ "telephone" ne doit comporter que des nombres, aucun numéro ne sera utilisé' . "\n"; | ||
115 | } | ||
116 | return $this; | 110 | return $this; |
117 | } | 111 | } |
118 | public function setCourriel($value) | 112 | public function setCourriel($value) |