summaryrefslogtreecommitdiff
path: root/src/sections/1_customer.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2023-12-23 10:00:24 +0100
committerpolo <ordipolo@gmx.fr>2023-12-23 10:00:24 +0100
commita4d88fd1913758cc95b395eefcf5e9d730450382 (patch)
treea7ffe3ab2816d7562cc967b5b4ef7c974dd7a0e2 /src/sections/1_customer.php
parent78439b6a178e238ab8fb73d25567a85df78d6681 (diff)
downloadAppliGestionPHP-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/sections/1_customer.php')
-rw-r--r--src/sections/1_customer.php14
1 files changed, 7 insertions, 7 deletions
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 @@
6function newCustomer(): array 6function newCustomer(): array
7{ 7{
8 // fenêtres 8 // fenêtres
9 $TypeDeClient = new ZenityList(ZenitySetup::$type_client_text, ZenitySetup::$type_client_entrees); 9 $TypeDeClient = new ZenityList(ZenitySetup::$type_client['text'], ZenitySetup::$type_client['entrees']);
10 //~ $NouveauClient = new ZenityForms(ZenitySetup::$nouveau_client_text, ZenitySetup::$nouveau_client_entrees); 10 //~ $NouveauClient = new ZenityForms(ZenitySetup::$nouveau_client_text, ZenitySetup::$nouveau_client_entrees);
11 $FinSection1 = new ZenityList(ZenitySetup::$fin_section_1_text, ZenitySetup::$fin_section_1_entrees); 11 $FinSection1 = new ZenityList(ZenitySetup::$fin_section_1['text'], ZenitySetup::$fin_section_1['entrees']);
12 12
13 // -- partie 1: client ou prospect? -- 13 // -- partie 1: client ou prospect? --
14 $Client = new Clients; 14 $Client = new Clients;
15 $choix_niv2 = exec($TypeDeClient->get()); 15 $choix_niv2 = exec($TypeDeClient->get());
16 if($choix_niv2 === ZenitySetup::$type_client_entrees[0]) 16 if($choix_niv2 === ZenitySetup::$type_client['entrees'][0])
17 { 17 {
18 echo "choix: " . $choix_niv2 . "\n"; 18 echo "choix: " . $choix_niv2 . "\n";
19 $Client->setType('client'); 19 $Client->setType('client');
20 } 20 }
21 elseif($choix_niv2 === ZenitySetup::$type_client_entrees[1]) 21 elseif($choix_niv2 === ZenitySetup::$type_client['entrees'][1])
22 { 22 {
23 echo "choix: " . $choix_niv2 . "\n"; 23 echo "choix: " . $choix_niv2 . "\n";
24 $Client->setType('prospect'); 24 $Client->setType('prospect');
@@ -33,15 +33,15 @@ function newCustomer(): array
33 { 33 {
34 // -- partie 3: on fait quoi maintenant -- 34 // -- partie 3: on fait quoi maintenant --
35 $choix_niv3 = exec($FinSection1->get()); 35 $choix_niv3 = exec($FinSection1->get());
36 if($choix_niv3 === ZenitySetup::$fin_section_1_entrees[0]) 36 if($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][0])
37 { 37 {
38 return [2, $Client]; // section 2: newService() 38 return [2, $Client]; // section 2: newService()
39 } 39 }
40 elseif($choix_niv3 === ZenitySetup::$fin_section_1_entrees[1]) 40 elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][1])
41 { 41 {
42 return [3, $Client]; // section 3: modifyData() 42 return [3, $Client]; // section 3: modifyData()
43 } 43 }
44 elseif($choix_niv3 === ZenitySetup::$fin_section_1_entrees[2]) 44 elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][2])
45 { 45 {
46 return [1, null]; // relancer section 1: newCustomer() 46 return [1, null]; // relancer section 1: newCustomer()
47 } 47 }