From 45f1b99a1060ee43deb6055faef1f8b16b5d80a2 Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 1 Sep 2023 12:00:23 +0200 Subject: =?UTF-8?q?section=203=20bient=C3=B4t=20termin=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/3-1_windows.php | 70 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/sections/3-1_windows.php (limited to 'src/sections/3-1_windows.php') diff --git a/src/sections/3-1_windows.php b/src/sections/3-1_windows.php new file mode 100644 index 0000000..7952f6d --- /dev/null +++ b/src/sections/3-1_windows.php @@ -0,0 +1,70 @@ +getAllWithWindowFields(); + //var_dump($client_data); + foreach($client_data as $key => $value) + { + $entries[$i][] = $key; + $entries[$i][] = $value; + $i++; + } + $entries[$i][] = ZenitySetup::$modification_client['service']; + $entries[$i][] = ''; + //~ $i++; + //~ $entries[$i][] = ZenitySetup::$modification_client['return']; + //~ $entries[$i][] = ''; + $ModifyCustomer->setListRows($entries, 2, 2.5); + + return $ModifyCustomer; +} + +function makeModifyServiceWindow(Prestations $Service, $ServiceDetails = null): ZenityList +{ + $ModifyService = new ZenityList(ZenitySetup::$modification_presta['text'], []); + $entrees = []; + $i = 0; + + $presta_data = $Service->getAllWithWindowFields(); + //var_dump($presta_data); + foreach($presta_data as $key => $value) + { + $entrees[$i][] = $key; + $entrees[$i][] = $value; + $i++; + } + + if(is_object($ServiceDetails)) + { + $presta_data = $ServiceDetails->getAllWithWindowFields(); + //var_dump($presta_data); + foreach($presta_data as $key => $value) + { + $entrees[$i][] = $key; + $entrees[$i][] = $value; + $i++; + } + } + + if($Service->getTypePresta() === 'devis') + { + $entrees[$i][] = ZenitySetup::$modification_presta['devis_facture']; // option changer le devis en facture + $entrees[$i][] = ''; + //~ $i++; + } + //~ $entrees[$i][] = ZenitySetup::$modification_presta['service']; + //~ $entrees[$i][] = ''; + //~ $i++; + //~ $entrees[$i][] = ZenitySetup::$modification_presta['return']; + //~ $entrees[$i][] = ''; + $ModifyService->setListRows($entrees, 2, 2.5); + + return $ModifyService; +} -- cgit v1.2.3