From f2f5560339203baad7951006c5a63d10f237ee6a Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 9 Oct 2026 16:12:46 +0200 Subject: =?UTF-8?q?cr=C3=A9er=20un=20devis=20ne=20fait=20plus=20d'un=20pro?= =?UTF-8?q?spect=20un=20client,=20typage=20dans=20Client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/2_service.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sections') diff --git a/src/sections/2_service.php b/src/sections/2_service.php index 9ebf303..9269503 100644 --- a/src/sections/2_service.php +++ b/src/sections/2_service.php @@ -132,7 +132,9 @@ function newService(?Client $Client = null): array if($choix_niv2 != ZenitySetup::$menu_enregistrement['entrees'][5]) // cas: tous les cas sauf presta non vendue { //var_dump($answers); - $Client->typeToClient(); + if($Presta->getTypePresta() !== 'devis'){ + $Client->setType('client'); + } if($answers == '') // annulation { echo "debug: annulation lors de l'enregistrement des détails de la prestation\n"; -- cgit v1.2.3