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.php30
1 files changed, 3 insertions, 27 deletions
diff --git a/src/sections/3-1_windows.php b/src/sections/3-1_windows.php
index 76d01dd..152c3d3 100644
--- a/src/sections/3-1_windows.php
+++ b/src/sections/3-1_windows.php
@@ -22,12 +22,12 @@ function makeModifyCustomerWindow(Client $Customer): ZenityList
22 $entries[$i][] = ''; 22 $entries[$i][] = '';
23 //~ $entries[$i][] = ZenitySetup::$modification_client['return']; 23 //~ $entries[$i][] = ZenitySetup::$modification_client['return'];
24 //~ $entries[$i][] = ''; 24 //~ $entries[$i][] = '';
25 $ModifyCustomer->setListRows($entries, 2, 2.5);
26 25
26 $ModifyCustomer->setListRows($entries, 2, 2.5);
27 return $ModifyCustomer; 27 return $ModifyCustomer;
28} 28}
29 29
30function makeModifyServiceWindow(Prestation $Service, $ServiceDetails = null): ZenityList 30function makeModifyServiceWindow(Prestation $Service): ZenityList
31{ 31{
32 // fenêtre 32 // fenêtre
33 $ModifyService = new ZenityList(ZenitySetup::$modification_presta['text'], []); 33 $ModifyService = new ZenityList(ZenitySetup::$modification_presta['text'], []);
@@ -42,31 +42,7 @@ function makeModifyServiceWindow(Prestation $Service, $ServiceDetails = null): Z
42 $entrees[$i][] = $value; 42 $entrees[$i][] = $value;
43 $i++; 43 $i++;
44 } 44 }
45 45
46 if(is_object($ServiceDetails))
47 {
48 $presta_data = $ServiceDetails->getAllWithWindowFields();
49 //var_dump($presta_data);
50 foreach($presta_data as $key => $value)
51 {
52 $entrees[$i][] = $key;
53 $entrees[$i][] = $value;
54 $i++;
55 }
56 }
57
58 //~ if($Service->getTypePresta() === 'devis')
59 //~ {
60 //~ $entrees[$i][] = ZenitySetup::$modification_presta['devis_facture']; // option créer une facture à partir du devis
61 //~ $entrees[$i][] = '';
62 //~ }
63
64 //~ $entrees[$i][] = ZenitySetup::$modification_presta['service'];
65 //~ $entrees[$i][] = '';
66 //~ $i++;
67 //~ $entrees[$i][] = ZenitySetup::$modification_presta['return'];
68 //~ $entrees[$i][] = '';
69
70 $ModifyService->setListRows($entrees, 2, 2.5); 46 $ModifyService->setListRows($entrees, 2, 2.5);
71 return $ModifyService; 47 return $ModifyService;
72} 48}