summaryrefslogtreecommitdiff
path: root/src/sections/3-1_windows.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/sections/3-1_windows.php')
-rw-r--r--src/sections/3-1_windows.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/sections/3-1_windows.php b/src/sections/3-1_windows.php
index 7e7367b..31c6cee 100644
--- a/src/sections/3-1_windows.php
+++ b/src/sections/3-1_windows.php
@@ -5,7 +5,9 @@
5 5
6function makeModifyCustomerWindow(Clients $Customer): ZenityList 6function makeModifyCustomerWindow(Clients $Customer): ZenityList
7{ 7{
8 // fenêtre
8 $ModifyCustomer = new ZenityList(ZenitySetup::$modification_client['text'], []); 9 $ModifyCustomer = new ZenityList(ZenitySetup::$modification_client['text'], []);
10
9 $entries = []; 11 $entries = [];
10 $i = 0; 12 $i = 0;
11 $client_data = $Customer->getAllWithWindowFields(); 13 $client_data = $Customer->getAllWithWindowFields();
@@ -18,7 +20,6 @@ function makeModifyCustomerWindow(Clients $Customer): ZenityList
18 } 20 }
19 $entries[$i][] = ZenitySetup::$modification_client['service']; 21 $entries[$i][] = ZenitySetup::$modification_client['service'];
20 $entries[$i][] = ''; 22 $entries[$i][] = '';
21 //~ $i++;
22 //~ $entries[$i][] = ZenitySetup::$modification_client['return']; 23 //~ $entries[$i][] = ZenitySetup::$modification_client['return'];
23 //~ $entries[$i][] = ''; 24 //~ $entries[$i][] = '';
24 $ModifyCustomer->setListRows($entries, 2, 2.5); 25 $ModifyCustomer->setListRows($entries, 2, 2.5);
@@ -28,10 +29,11 @@ function makeModifyCustomerWindow(Clients $Customer): ZenityList
28 29
29function makeModifyServiceWindow(Prestations $Service, $ServiceDetails = null): ZenityList 30function makeModifyServiceWindow(Prestations $Service, $ServiceDetails = null): ZenityList
30{ 31{
32 // fenêtre
31 $ModifyService = new ZenityList(ZenitySetup::$modification_presta['text'], []); 33 $ModifyService = new ZenityList(ZenitySetup::$modification_presta['text'], []);
34
32 $entrees = []; 35 $entrees = [];
33 $i = 0; 36 $i = 0;
34
35 $presta_data = $Service->getAllWithWindowFields(); 37 $presta_data = $Service->getAllWithWindowFields();
36 //var_dump($presta_data); 38 //var_dump($presta_data);
37 foreach($presta_data as $key => $value) 39 foreach($presta_data as $key => $value)
@@ -53,18 +55,18 @@ function makeModifyServiceWindow(Prestations $Service, $ServiceDetails = null):
53 } 55 }
54 } 56 }
55 57
56 if($Service->getTypePresta() === 'devis') 58 //~ if($Service->getTypePresta() === 'devis')
57 { 59 //~ {
58 $entrees[$i][] = ZenitySetup::$modification_presta['devis_facture']; // option créer une facture à partir du devis 60 //~ $entrees[$i][] = ZenitySetup::$modification_presta['devis_facture']; // option créer une facture à partir du devis
59 $entrees[$i][] = ''; 61 //~ $entrees[$i][] = '';
60 //~ $i++; 62 //~ }
61 } 63
62 //~ $entrees[$i][] = ZenitySetup::$modification_presta['service']; 64 //~ $entrees[$i][] = ZenitySetup::$modification_presta['service'];
63 //~ $entrees[$i][] = ''; 65 //~ $entrees[$i][] = '';
64 //~ $i++; 66 //~ $i++;
65 //~ $entrees[$i][] = ZenitySetup::$modification_presta['return']; 67 //~ $entrees[$i][] = ZenitySetup::$modification_presta['return'];
66 //~ $entrees[$i][] = ''; 68 //~ $entrees[$i][] = '';
67 $ModifyService->setListRows($entrees, 2, 2.5);
68 69
70 $ModifyService->setListRows($entrees, 2, 2.5);
69 return $ModifyService; 71 return $ModifyService;
70} 72}