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/sections/1_customer.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/sections/1_customer.php') diff --git a/src/sections/1_customer.php b/src/sections/1_customer.php index ca20d08..ae8067f 100644 --- a/src/sections/1_customer.php +++ b/src/sections/1_customer.php @@ -6,19 +6,19 @@ function newCustomer(): array { // fenĂȘtres - $TypeDeClient = new ZenityList(ZenitySetup::$type_client_text, ZenitySetup::$type_client_entrees); + $TypeDeClient = new ZenityList(ZenitySetup::$type_client['text'], ZenitySetup::$type_client['entrees']); //~ $NouveauClient = new ZenityForms(ZenitySetup::$nouveau_client_text, ZenitySetup::$nouveau_client_entrees); - $FinSection1 = new ZenityList(ZenitySetup::$fin_section_1_text, ZenitySetup::$fin_section_1_entrees); + $FinSection1 = new ZenityList(ZenitySetup::$fin_section_1['text'], ZenitySetup::$fin_section_1['entrees']); // -- partie 1: client ou prospect? -- $Client = new Clients; $choix_niv2 = exec($TypeDeClient->get()); - if($choix_niv2 === ZenitySetup::$type_client_entrees[0]) + if($choix_niv2 === ZenitySetup::$type_client['entrees'][0]) { echo "choix: " . $choix_niv2 . "\n"; $Client->setType('client'); } - elseif($choix_niv2 === ZenitySetup::$type_client_entrees[1]) + elseif($choix_niv2 === ZenitySetup::$type_client['entrees'][1]) { echo "choix: " . $choix_niv2 . "\n"; $Client->setType('prospect'); @@ -33,15 +33,15 @@ function newCustomer(): array { // -- partie 3: on fait quoi maintenant -- $choix_niv3 = exec($FinSection1->get()); - if($choix_niv3 === ZenitySetup::$fin_section_1_entrees[0]) + if($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][0]) { return [2, $Client]; // section 2: newService() } - elseif($choix_niv3 === ZenitySetup::$fin_section_1_entrees[1]) + elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][1]) { return [3, $Client]; // section 3: modifyData() } - elseif($choix_niv3 === ZenitySetup::$fin_section_1_entrees[2]) + elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][2]) { return [1, null]; // relancer section 1: newCustomer() } -- cgit v1.2.3