diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-20 21:49:17 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-20 22:49:21 +0200 |
| commit | 0161ac4d632af7d45f4fe9d68c1ba3a86f094fc4 (patch) | |
| tree | bbaea156e9d32edf14adad8fe5ce3338014e7710 /src/sections/3-1_windows.php | |
| parent | 87eb9864d7c738d7897be33c9a1aa06e33378acc (diff) | |
| download | AppliGestionPHP-0161ac4d632af7d45f4fe9d68c1ba3a86f094fc4.tar.gz AppliGestionPHP-0161ac4d632af7d45f4fe9d68c1ba3a86f094fc4.tar.bz2 AppliGestionPHP-0161ac4d632af7d45f4fe9d68c1ba3a86f094fc4.zip | |
mise en place de l'héritage 2, nombreuses simplifications et factorisations
Diffstat (limited to 'src/sections/3-1_windows.php')
| -rw-r--r-- | src/sections/3-1_windows.php | 30 |
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 | ||
| 30 | function makeModifyServiceWindow(Prestation $Service, $ServiceDetails = null): ZenityList | 30 | function 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 | } |
