Completed
Push — master ( 458fbe...789f1c )
by Laurent
05:58 queued 04:00
created
validators/FlightValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      */
96 96
     private function checkBillingInformation($vol, $context)
97 97
     {
98
-        if($vol->isLinkedToOrder()){
98
+        if ($vol->isLinkedToOrder()) {
99 99
             return $this;
100 100
         }
101 101
 
Please login to merge, or discard this patch.
card_tab_financial.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
 $id = GETPOST('id', 'int') ?: GETPOST('idBBC_vols', 'int');
45 45
 $action = GETPOST('action', 'alpha');
46
-$permissiondellink=$user->rights->flightlog->vol->financial;
46
+$permissiondellink = $user->rights->flightlog->vol->financial;
47 47
 
48 48
 $object = new Bbcvols($db);
49 49
 $extrafields = new ExtraFields($db);
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
 $extralabels = $extrafields->fetch_name_optionals_label($object->table_element);
63 63
 
64 64
 // Load object
65
-include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php';  // Must be include, not include_once  // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
66
-include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php';
65
+include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once  // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
66
+include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php';
67 67
 
68 68
 // Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array
69 69
 $hookmanager->initHooks(array('bbcvols'));
@@ -93,16 +93,16 @@  discard block
 block discarded – undo
93 93
 print '<tr><td class="fieldrequired">' . $langs->trans("Fielddate") . '</td><td>' . dol_print_date($object->date) . '</td></tr>';
94 94
 
95 95
 if ($user->rights->flightlog->vol->financial) {
96
-    print '<tr><td class="fieldrequired">' . $langs->trans("Fieldis_facture") . '</td><td>' . $object->getLibStatut(5). '</td></tr>';
96
+    print '<tr><td class="fieldrequired">' . $langs->trans("Fieldis_facture") . '</td><td>' . $object->getLibStatut(5) . '</td></tr>';
97 97
 }
98 98
 
99 99
 print '<tr><td class="fieldrequired">' . $langs->trans("Fieldkilometers") . '</td><td>' . $object->kilometers . ' KM</td></tr>';
100 100
 print '<tr><td class="fieldrequired">' . $langs->trans("Fieldjustif_kilometers") . '</td><td>' . $object->justif_kilometers . '</td></tr>';
101
-if(!$object->isLinkedToOrder()){
101
+if (!$object->isLinkedToOrder()) {
102 102
     print '<tr><td class="fieldrequired">' . $langs->trans("Fieldcost") . '</td><td>' . $object->cost . " " . $langs->getCurrencySymbol($conf->currency) . '</td></tr>';
103 103
     print '<tr><td class="fieldrequired">' . $langs->trans("Fieldfk_receiver") . '</td><td>' . $receiver->getNomUrl(1) . '</td></tr>';
104
-}else{
105
-    print '<tr><td class="fieldrequired">' . $langs->trans("Order") . '</td><td>' . $object->getOrder()->getNomUrl(1). '</td></tr>';
104
+} else {
105
+    print '<tr><td class="fieldrequired">' . $langs->trans("Order") . '</td><td>' . $object->getOrder()->getNomUrl(1) . '</td></tr>';
106 106
 }
107 107
 print '</table>';
108 108
 
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
 // Buttons
112 112
 print '<div class="tabsAction">' . "\n";
113 113
 
114
-if($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()){
115
-    print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id.'">' . $langs->trans("Facturer") . '</a></div>' . "\n";
114
+if ($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()) {
115
+    print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id . '">' . $langs->trans("Facturer") . '</a></div>' . "\n";
116 116
 }
117 117
 
118 118
 print '</div>' . "\n";
119 119
 
120
-if($user->rights->flightlog->vol->financial){
120
+if ($user->rights->flightlog->vol->financial) {
121 121
     print '<div class="fichecenter"><div class="fichehalfleft">';
122 122
     $form->showLinkedObjectBlock($object);
123 123
     print '</div></div>';
Please login to merge, or discard this patch.
command/CreateOrderCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
         $name = $command->getName() . ' ' . $command->getFirstname();
133 133
 
134 134
         $existingCustomers = $this->societe->searchByName($name);
135
-        if(count($existingCustomers) > 0){
135
+        if (count($existingCustomers) > 0) {
136 136
             $this->societe = $existingCustomers[0];
137 137
             return $this->societe;
138 138
         }
Please login to merge, or discard this patch.
command/CreateOrderCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     /**
229 229
      * @return boolean
230 230
      */
231
-    public function hasTVA(){
231
+    public function hasTVA() {
232 232
         return !empty($this->tva);
233 233
     }
234 234
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * @return bool
261 261
      */
262
-    public function isCommentPublic(){
262
+    public function isCommentPublic() {
263 263
         return $this->publicComment;
264 264
     }
265 265
 
Please login to merge, or discard this patch.
command/CreateFlightCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -393,7 +393,7 @@
 block discarded – undo
393 393
     /**
394 394
      * @return bool
395 395
      */
396
-    public function hasOrderId(){
396
+    public function hasOrderId() {
397 397
         return $this->orderId !== null;
398 398
     }
399 399
 }
400 400
\ No newline at end of file
Please login to merge, or discard this patch.
list.php 1 patch
Spacing   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 $search_fk_type = GETPOST('search_fk_type', 'int');
51 51
 $search_fk_pilot = GETPOST('search_fk_pilot', 'int') ?: ($user->admin ? '' : $user->id);
52 52
 $search_fk_organisateur = GETPOST('search_fk_organisateur', 'int');
53
-$search_is_facture = GETPOST('search_is_facture', 'int') === ''? -1 : (int)GETPOST('search_is_facture', 'int');
54
-if($search_is_facture === 0){
53
+$search_is_facture = GETPOST('search_is_facture', 'int') === '' ? -1 : (int) GETPOST('search_is_facture', 'int');
54
+if ($search_is_facture === 0) {
55 55
     $search_is_facture = '<=0';
56 56
 }
57 57
 $search_kilometers = GETPOST('search_kilometers', 'alpha');
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
 $parameters = array();
183 183
 $reshook = $hookmanager->executeHooks('doActions', $parameters, $object,
184
-    $action);    // Note that $action and $object may have been modified by some hooks
184
+    $action); // Note that $action and $object may have been modified by some hooks
185 185
 if ($reshook < 0) {
186 186
     setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
187 187
 }
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 // Add fields from hooks
279 279
 $parameters = array();
280 280
 $reshook = $hookmanager->executeHooks('printFieldListSelect',
281
-    $parameters);    // Note that $action and $object may have been modified by hook
281
+    $parameters); // Note that $action and $object may have been modified by hook
282 282
 $sql .= $hookmanager->resPrint;
283 283
 $sql .= " FROM " . MAIN_DB_PREFIX . "bbc_vols as t";
284 284
 if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label)) {
@@ -292,8 +292,8 @@  discard block
 block discarded – undo
292 292
 
293 293
 $sql .= " WHERE 1 = 1";
294 294
 
295
-if($search_all){
296
-    $sql .= natural_search(["idBBC_vols",  "lieuD", "lieuA", "pilot.lastname", "pilot.firstname", "balloon.immat"], $search_all);
295
+if ($search_all) {
296
+    $sql .= natural_search(["idBBC_vols", "lieuD", "lieuA", "pilot.lastname", "pilot.firstname", "balloon.immat"], $search_all);
297 297
 }
298 298
 
299 299
 if ($search_idBBC_vols) {
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
 }
338 338
 
339 339
 if ($search_is_facture != -1) {
340
-    $sql .= natural_search("is_facture", $search_is_facture,1);
340
+    $sql .= natural_search("is_facture", $search_is_facture, 1);
341 341
 }
342 342
 if ($search_kilometers) {
343 343
     $sql .= natural_search("kilometers", $search_kilometers, 1);
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 // Add where from hooks
373 373
 $parameters = array();
374 374
 $reshook = $hookmanager->executeHooks('printFieldListWhere',
375
-    $parameters);    // Note that $action and $object may have been modified by hook
375
+    $parameters); // Note that $action and $object may have been modified by hook
376 376
 $sql .= $hookmanager->resPrint;
377 377
 $sql .= $db->order($sortfield, $sortorder);
378 378
 //$sql.= $db->plimit($conf->liste_limit+1, $offset);
@@ -414,58 +414,58 @@  discard block
 block discarded – undo
414 414
 if ($limit > 0 && $limit != $conf->liste_limit) {
415 415
     $param .= '&limit=' . $limit;
416 416
 }
417
-if ($search_idBBC_vols  != '') {
417
+if ($search_idBBC_vols != '') {
418 418
     $param .= '&amp;search_idBBC_vols=' . urlencode($search_idBBC_vols);
419 419
 }
420
-if ($search_date  != '') {
420
+if ($search_date != '') {
421 421
     $param .= '&amp;search_date=' . urlencode($search_date);
422 422
 }
423
-if ($search_lieuD  != '') {
423
+if ($search_lieuD != '') {
424 424
     $param .= '&amp;search_lieuD=' . urlencode($search_lieuD);
425 425
 }
426
-if ($search_lieuA  != '') {
426
+if ($search_lieuA != '') {
427 427
     $param .= '&amp;search_lieuA=' . urlencode($search_lieuA);
428 428
 }
429
-if ($search_heureD  != '') {
429
+if ($search_heureD != '') {
430 430
     $param .= '&amp;search_heureD=' . urlencode($search_heureD);
431 431
 }
432
-if ($search_heureA  != '') {
432
+if ($search_heureA != '') {
433 433
     $param .= '&amp;search_heureA=' . urlencode($search_heureA);
434 434
 }
435
-if ($search_BBC_ballons_idBBC_ballons  != '') {
435
+if ($search_BBC_ballons_idBBC_ballons != '') {
436 436
     $param .= '&amp;search_BBC_ballons_idBBC_ballons=' . urlencode($search_BBC_ballons_idBBC_ballons);
437 437
 }
438
-if ($search_nbrPax  != '') {
438
+if ($search_nbrPax != '') {
439 439
     $param .= '&amp;search_nbrPax=' . urlencode($search_nbrPax);
440 440
 }
441
-if ($search_remarque  != '') {
441
+if ($search_remarque != '') {
442 442
     $param .= '&amp;search_remarque=' . urlencode($search_remarque);
443 443
 }
444
-if ($search_incidents  != '') {
444
+if ($search_incidents != '') {
445 445
     $param .= '&amp;search_incidents=' . urlencode($search_incidents);
446 446
 }
447
-if ($search_fk_type  != '') {
447
+if ($search_fk_type != '') {
448 448
     $param .= '&amp;search_fk_type=' . urlencode($search_fk_type);
449 449
 }
450 450
 if ($search_fk_pilot != '') {
451 451
     $param .= '&amp;search_fk_pilot=' . urlencode($search_fk_pilot);
452 452
 }
453
-if ($search_fk_organisateur  != '') {
453
+if ($search_fk_organisateur != '') {
454 454
     $param .= '&amp;search_fk_organisateur=' . urlencode($search_fk_organisateur);
455 455
 }
456
-if ($search_is_facture  != -1) {
456
+if ($search_is_facture != -1) {
457 457
     $param .= '&amp;search_is_facture=' . urlencode($search_is_facture);
458 458
 }
459
-if ($search_kilometers  != '') {
459
+if ($search_kilometers != '') {
460 460
     $param .= '&amp;search_kilometers=' . urlencode($search_kilometers);
461 461
 }
462
-if ($search_cost  != '') {
462
+if ($search_cost != '') {
463 463
     $param .= '&amp;search_cost=' . urlencode($search_cost);
464 464
 }
465
-if ($search_fk_receiver  != '') {
465
+if ($search_fk_receiver != '') {
466 466
     $param .= '&amp;search_fk_receiver=' . urlencode($search_fk_receiver);
467 467
 }
468
-if ($search_justif_kilometers  != '') {
468
+if ($search_justif_kilometers != '') {
469 469
     $param .= '&amp;search_justif_kilometers=' . urlencode($search_justif_kilometers);
470 470
 }
471 471
 if ($search_all != '') {
@@ -509,8 +509,8 @@  discard block
 block discarded – undo
509 509
 
510 510
 
511 511
 $moreHtml = "";
512
-if($search_all !== ""){
513
-    $moreHtml = "<p>".$langs->trans(sprintf("La liste est en recherche globale sur : l'identifiant du vol, le nom du pilote, l'immat du ballon, le lieu de Décollage et le lieu d'atterissage : %s", $search_all))."</p>";
512
+if ($search_all !== "") {
513
+    $moreHtml = "<p>" . $langs->trans(sprintf("La liste est en recherche globale sur : l'identifiant du vol, le nom du pilote, l'immat du ballon, le lieu de Décollage et le lieu d'atterissage : %s", $search_all)) . "</p>";
514 514
 }
515 515
 
516 516
 print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords,
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
 
531 531
 $parameters = array();
532 532
 $reshook = $hookmanager->executeHooks('printFieldPreListTitle',
533
-    $parameters);    // Note that $action and $object may have been modified by hook
533
+    $parameters); // Note that $action and $object may have been modified by hook
534 534
 if (empty($reshook)) {
535 535
     $moreforfilter .= $hookmanager->resPrint;
536 536
 } else {
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 
546 546
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
547 547
 $selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields,
548
-    $varpage);    // This also change content of $arrayfields
548
+    $varpage); // This also change content of $arrayfields
549 549
 
550 550
 print '<div class="div-table-responsive">';
551 551
 print '<table class="tagtable liste' . ($moreforfilter ? " listwithfilterbefore" : "") . '">' . "\n";
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
 // Hook fields
642 642
 $parameters = array('arrayfields' => $arrayfields);
643 643
 $reshook = $hookmanager->executeHooks('printFieldListTitle',
644
-    $parameters);    // Note that $action and $object may have been modified by hook
644
+    $parameters); // Note that $action and $object may have been modified by hook
645 645
 print $hookmanager->resPrint;
646 646
 if (!empty($arrayfields['t.datec']['checked'])) {
647 647
     print_liste_field_titre($arrayfields['t.datec']['label'], $_SERVER["PHP_SELF"], "t.datec", "", $param,
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
 
711 711
 if (!empty($arrayfields['t.is_facture']['checked'])) {
712 712
     print '<td class="liste_titre">';
713
-    print '<select name="search_is_facture"><option value="-1" '.($search_is_facture != 1 && $search_is_facture != 0 && $search_is_facture != '<=0'? 'selected' : '' ).'></option><option value="1" '.($search_is_facture == 1 ? 'selected' : '' ).'>Facturé</option><option value="0" '.($search_is_facture == 0 || $search_is_facture == '<=0' ? 'selected' : '' ).'>Ouvert</option></select>';
713
+    print '<select name="search_is_facture"><option value="-1" ' . ($search_is_facture != 1 && $search_is_facture != 0 && $search_is_facture != '<=0' ? 'selected' : '') . '></option><option value="1" ' . ($search_is_facture == 1 ? 'selected' : '') . '>Facturé</option><option value="0" ' . ($search_is_facture == 0 || $search_is_facture == '<=0' ? 'selected' : '') . '>Ouvert</option></select>';
714 714
     print '</td>';
715 715
 }
716 716
 
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 // Fields from hook
756 756
 $parameters = array('arrayfields' => $arrayfields);
757 757
 $reshook = $hookmanager->executeHooks('printFieldListOption',
758
-    $parameters);    // Note that $action and $object may have been modified by hook
758
+    $parameters); // Note that $action and $object may have been modified by hook
759 759
 print $hookmanager->resPrint;
760 760
 if (!empty($arrayfields['t.datec']['checked'])) {
761 761
     // Date creation
@@ -797,124 +797,124 @@  discard block
 block discarded – undo
797 797
         // Show here line of result
798 798
         print '<tr ' . $bc[$var] . '>';
799 799
 
800
-        if (! empty($arrayfields['t.idBBC_vols']['checked']))
800
+        if (!empty($arrayfields['t.idBBC_vols']['checked']))
801 801
         {
802
-            print '<td>'.$flight->getNomUrl(0).'</td>';
802
+            print '<td>' . $flight->getNomUrl(0) . '</td>';
803 803
 
804
-            if (! $i) $totalarray['nbfield']++;
804
+            if (!$i) $totalarray['nbfield']++;
805 805
         }
806
-        if (! empty($arrayfields['t.date']['checked']))
806
+        if (!empty($arrayfields['t.date']['checked']))
807 807
         {
808 808
             print '<td>';
809 809
                 print dol_print_date($db->jdate($obj->date), '%d-%m-%y');
810 810
             print '</td>';
811 811
 
812
-            if (! $i) $totalarray['nbfield']++;
812
+            if (!$i) $totalarray['nbfield']++;
813 813
         }
814
-        if (! empty($arrayfields['t.lieuD']['checked']))
814
+        if (!empty($arrayfields['t.lieuD']['checked']))
815 815
         {
816
-            print '<td>'.$obj->lieuD.'</td>';
816
+            print '<td>' . $obj->lieuD . '</td>';
817 817
 
818
-            if (! $i) $totalarray['nbfield']++;
818
+            if (!$i) $totalarray['nbfield']++;
819 819
         }
820
-        if (! empty($arrayfields['t.lieuA']['checked']))
820
+        if (!empty($arrayfields['t.lieuA']['checked']))
821 821
         {
822
-            print '<td>'.$obj->lieuA.'</td>';
822
+            print '<td>' . $obj->lieuA . '</td>';
823 823
 
824
-            if (! $i) $totalarray['nbfield']++;
824
+            if (!$i) $totalarray['nbfield']++;
825 825
         }
826
-        if (! empty($arrayfields['t.heureD']['checked']))
826
+        if (!empty($arrayfields['t.heureD']['checked']))
827 827
         {
828
-            print '<td>'.$obj->heureD.'</td>';
828
+            print '<td>' . $obj->heureD . '</td>';
829 829
 
830
-            if (! $i) $totalarray['nbfield']++;
830
+            if (!$i) $totalarray['nbfield']++;
831 831
         }
832
-        if (! empty($arrayfields['t.heureA']['checked']))
832
+        if (!empty($arrayfields['t.heureA']['checked']))
833 833
         {
834
-            print '<td>'.$obj->heureA.'</td>';
834
+            print '<td>' . $obj->heureA . '</td>';
835 835
 
836
-            if (! $i) $totalarray['nbfield']++;
836
+            if (!$i) $totalarray['nbfield']++;
837 837
         }
838
-        if (! empty($arrayfields['t.BBC_ballons_idBBC_ballons']['checked']))
838
+        if (!empty($arrayfields['t.BBC_ballons_idBBC_ballons']['checked']))
839 839
         {
840
-            print '<td>'.$obj->bal.'</td>';
840
+            print '<td>' . $obj->bal . '</td>';
841 841
 
842
-            if (! $i) $totalarray['nbfield']++;
842
+            if (!$i) $totalarray['nbfield']++;
843 843
         }
844
-        if (! empty($arrayfields['t.nbrPax']['checked']))
844
+        if (!empty($arrayfields['t.nbrPax']['checked']))
845 845
         {
846
-            print '<td>'.$obj->nbrPax.'</td>';
846
+            print '<td>' . $obj->nbrPax . '</td>';
847 847
 
848
-            if (! $i) $totalarray['nbfield']++;
848
+            if (!$i) $totalarray['nbfield']++;
849 849
         }
850
-        if (! empty($arrayfields['t.remarque']['checked']))
850
+        if (!empty($arrayfields['t.remarque']['checked']))
851 851
         {
852
-            print '<td>'.$obj->remarque.'</td>';
852
+            print '<td>' . $obj->remarque . '</td>';
853 853
 
854
-            if (! $i) $totalarray['nbfield']++;
854
+            if (!$i) $totalarray['nbfield']++;
855 855
         }
856
-        if (! empty($arrayfields['t.incidents']['checked']))
856
+        if (!empty($arrayfields['t.incidents']['checked']))
857 857
         {
858
-            print '<td>'.$obj->incidents.'</td>';
858
+            print '<td>' . $obj->incidents . '</td>';
859 859
 
860
-            if (! $i) $totalarray['nbfield']++;
860
+            if (!$i) $totalarray['nbfield']++;
861 861
         }
862
-        if (! empty($arrayfields['t.fk_type']['checked']))
862
+        if (!empty($arrayfields['t.fk_type']['checked']))
863 863
         {
864
-            print '<td>'.$obj->flight_type.'</td>';
864
+            print '<td>' . $obj->flight_type . '</td>';
865 865
 
866
-            if (! $i) $totalarray['nbfield']++;
866
+            if (!$i) $totalarray['nbfield']++;
867 867
         }
868
-        if (! empty($arrayfields['t.fk_pilot']['checked']))
868
+        if (!empty($arrayfields['t.fk_pilot']['checked']))
869 869
         {
870
-            print '<td>'.$obj->pilot.'</td>';
870
+            print '<td>' . $obj->pilot . '</td>';
871 871
 
872
-            if (! $i) $totalarray['nbfield']++;
872
+            if (!$i) $totalarray['nbfield']++;
873 873
         }
874
-        if (! empty($arrayfields['t.fk_organisateur']['checked']))
874
+        if (!empty($arrayfields['t.fk_organisateur']['checked']))
875 875
         {
876
-            print '<td>'.$obj->organisator.'</td>';
876
+            print '<td>' . $obj->organisator . '</td>';
877 877
 
878
-            if (! $i) $totalarray['nbfield']++;
878
+            if (!$i) $totalarray['nbfield']++;
879 879
         }
880
-        if (! empty($arrayfields['t.is_facture']['checked']))
880
+        if (!empty($arrayfields['t.is_facture']['checked']))
881 881
         {
882 882
             $flight->is_facture = $obj->is_facture;
883
-            print '<td>'.$flight->getLibStatut(3).'</td>';
883
+            print '<td>' . $flight->getLibStatut(3) . '</td>';
884 884
 
885
-            if (! $i) $totalarray['nbfield']++;
885
+            if (!$i) $totalarray['nbfield']++;
886 886
         }
887
-        if (! empty($arrayfields['t.kilometers']['checked']))
887
+        if (!empty($arrayfields['t.kilometers']['checked']))
888 888
         {
889
-            if($user->rights->flightlog->vol->financial || $user->id == $flight->fk_pilot){
890
-                print '<td>'.$obj->kilometers.' KM</td>';
891
-            }else{
889
+            if ($user->rights->flightlog->vol->financial || $user->id == $flight->fk_pilot) {
890
+                print '<td>' . $obj->kilometers . ' KM</td>';
891
+            } else {
892 892
                 print '<td> - Km</td>';
893 893
             }
894 894
 
895
-            if (! $i) $totalarray['nbfield']++;
895
+            if (!$i) $totalarray['nbfield']++;
896 896
         }
897
-        if (! empty($arrayfields['t.cost']['checked']))
897
+        if (!empty($arrayfields['t.cost']['checked']))
898 898
         {
899
-            if(($user->rights->flightlog->vol->financial || $user->id == $flight->fk_pilot) && $obj->cost > 0){
900
-                print sprintf('<td>%s - (%s/pax)</td>', price($obj->cost, 0, $langs, 0, 0, -1, $conf->currency), price($obj->cost/$obj->nbrPax, 0, $langs, -1, -1, -1, $conf->currency));
901
-            }else{
899
+            if (($user->rights->flightlog->vol->financial || $user->id == $flight->fk_pilot) && $obj->cost > 0) {
900
+                print sprintf('<td>%s - (%s/pax)</td>', price($obj->cost, 0, $langs, 0, 0, -1, $conf->currency), price($obj->cost / $obj->nbrPax, 0, $langs, -1, -1, -1, $conf->currency));
901
+            } else {
902 902
                 print '<td> - €</td>';
903 903
             }
904 904
 
905
-            if (! $i) $totalarray['nbfield']++;
905
+            if (!$i) $totalarray['nbfield']++;
906 906
         }
907
-        if (! empty($arrayfields['t.fk_receiver']['checked']))
907
+        if (!empty($arrayfields['t.fk_receiver']['checked']))
908 908
         {
909
-            print '<td>'.$obj->receiver.'</td>';
909
+            print '<td>' . $obj->receiver . '</td>';
910 910
 
911
-            if (! $i) $totalarray['nbfield']++;
911
+            if (!$i) $totalarray['nbfield']++;
912 912
         }
913
-        if (! empty($arrayfields['t.justif_kilometers']['checked']))
913
+        if (!empty($arrayfields['t.justif_kilometers']['checked']))
914 914
         {
915
-            print '<td>'.$obj->justif_kilometers.'</td>';
915
+            print '<td>' . $obj->justif_kilometers . '</td>';
916 916
 
917
-            if (! $i) $totalarray['nbfield']++;
917
+            if (!$i) $totalarray['nbfield']++;
918 918
         }
919 919
 
920 920
         // Extra fields
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
         // Fields from hook
940 940
         $parameters = array('arrayfields' => $arrayfields, 'obj' => $obj);
941 941
         $reshook = $hookmanager->executeHooks('printFieldListValue',
942
-            $parameters);    // Note that $action and $object may have been modified by hook
942
+            $parameters); // Note that $action and $object may have been modified by hook
943 943
         print $hookmanager->resPrint;
944 944
         // Date creation
945 945
         if (!empty($arrayfields['t.datec']['checked'])) {
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
 
1010 1010
 $parameters = array('arrayfields' => $arrayfields, 'sql' => $sql);
1011 1011
 $reshook = $hookmanager->executeHooks('printFieldListFooter',
1012
-    $parameters);    // Note that $action and $object may have been modified by hook
1012
+    $parameters); // Note that $action and $object may have been modified by hook
1013 1013
 print $hookmanager->resPrint;
1014 1014
 
1015 1015
 print '</table>' . "\n";
Please login to merge, or discard this patch.
card.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
 $isAllowedEdit = ($user->rights->flightlog->vol->edit || ($user->rights->flightlog->vol->add && $object->fk_pilot == $user->id));
71 71
 $isAllowedDelete = ($user->rights->flightlog->vol->delete || ($user->rights->flightlog->vol->add && $object->fk_pilot == $user->id && !$object->is_facture));
72
-$permissiondellink=$user->rights->flightlog->vol->financial;
72
+$permissiondellink = $user->rights->flightlog->vol->financial;
73 73
 
74 74
 $search_idBBC_vols = GETPOST('search_idBBC_vols', 'int');
75 75
 $search_lieuD = GETPOST('search_lieuD', 'alpha');
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
 $extralabels = $extrafields->fetch_name_optionals_label($object->table_element);
117 117
 
118 118
 // Load object
119
-include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php';  // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
120
-include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php';
119
+include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once. Include fetch and fetch_thirdparty but not fetch_optionals
120
+include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php';
121 121
 
122 122
 // Initialize technical object to manage hooks of modules. Note that conf->hooks_modules contains array array
123 123
 $hookmanager->initHooks(array('bbcvols'));
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
 $parameters = array();
144 144
 $reshook = $hookmanager->executeHooks('doActions', $parameters, $object,
145
-    $action);    // Note that $action and $object may have been modified by some hooks
145
+    $action); // Note that $action and $object may have been modified by some hooks
146 146
 if ($reshook < 0) {
147 147
     setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
148 148
 }
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     print '<div class="tabsAction">' . "\n";
377 377
     $parameters = array();
378 378
     $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object,
379
-        $action);    // Note that $action and $object may have been modified by hook
379
+        $action); // Note that $action and $object may have been modified by hook
380 380
     if ($reshook < 0) {
381 381
         setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
382 382
     }
@@ -389,14 +389,14 @@  discard block
 block discarded – undo
389 389
         print '<div class="inline-block divButAction"><a class="butActionDelete" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&amp;action=delete">' . $langs->trans('Delete') . '</a></div>' . "\n";
390 390
     }
391 391
 
392
-    if($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()){
393
-        print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id.'">' . $langs->trans("Facturer") . '</a></div>' . "\n";
392
+    if ($user->rights->flightlog->vol->financial && $object->fk_type == 2 && !$object->hasFacture()) {
393
+        print '<div class="inline-block divButAction"><a class="butAction" href="' . DOL_URL_ROOT . '/flightlog/facture.php?id=' . $object->id . '">' . $langs->trans("Facturer") . '</a></div>' . "\n";
394 394
     }
395 395
     ?>
396 396
 
397
-    <?php if($user->rights->flightlog->vol->financial && !$object->isBilled() ): ?>
397
+    <?php if ($user->rights->flightlog->vol->financial && !$object->isBilled()): ?>
398 398
         <div class="inline-block divButAction">
399
-               <a class="butAction" href="<?php echo sprintf('%s?id=%s&action=%s' , $_SERVER["PHP_SELF"], $object->id, ACTION_FLAG_BILLED);?>">
399
+               <a class="butAction" href="<?php echo sprintf('%s?id=%s&action=%s', $_SERVER["PHP_SELF"], $object->id, ACTION_FLAG_BILLED); ?>">
400 400
                    <?php echo $langs->trans("Marqué comme facturé ") ?>
401 401
                </a>
402 402
         </div>
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 
405 405
     </div>
406 406
 <?php
407
-    if($user->rights->flightlog->vol->financial){
407
+    if ($user->rights->flightlog->vol->financial) {
408 408
         print '<div class="fichecenter"><div class="fichehalfleft">';
409 409
         $form->showLinkedObjectBlock($object);
410 410
         print '</div></div>';
Please login to merge, or discard this patch.
addOrder.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -12,32 +12,32 @@  discard block
 block discarded – undo
12 12
 dol_include_once("/flightlog/lib/flightLog.lib.php");
13 13
 dol_include_once("/flightlog/validators/SimpleOrderValidator.php");
14 14
 dol_include_once("/flightlog/command/CreateOrderCommandHandler.php");
15
-require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
16
-require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
15
+require_once DOL_DOCUMENT_ROOT . '/core/class/html.formcompany.class.php';
16
+require_once DOL_DOCUMENT_ROOT . '/core/class/html.formadmin.class.php';
17 17
 
18 18
 // Load object modCodeTiers
19
-$module=(! empty($conf->global->SOCIETE_CODECLIENT_ADDON)?$conf->global->SOCIETE_CODECLIENT_ADDON:'mod_codeclient_leopard');
19
+$module = (!empty($conf->global->SOCIETE_CODECLIENT_ADDON) ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
20 20
 if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php')
21 21
 {
22
-    $module = substr($module, 0, dol_strlen($module)-4);
22
+    $module = substr($module, 0, dol_strlen($module) - 4);
23 23
 }
24
-$dirsociete=array_merge(array('/core/modules/societe/'),$conf->modules_parts['societe']);
24
+$dirsociete = array_merge(array('/core/modules/societe/'), $conf->modules_parts['societe']);
25 25
 foreach ($dirsociete as $dirroot)
26 26
 {
27
-    $res=dol_include_once($dirroot.$module.'.php');
27
+    $res = dol_include_once($dirroot . $module . '.php');
28 28
     if ($res) break;
29 29
 }
30 30
 $modCodeClient = new $module;
31 31
 // Load object modCodeFournisseur
32
-$module=(! empty($conf->global->SOCIETE_CODECLIENT_ADDON)?$conf->global->SOCIETE_CODECLIENT_ADDON:'mod_codeclient_leopard');
32
+$module = (!empty($conf->global->SOCIETE_CODECLIENT_ADDON) ? $conf->global->SOCIETE_CODECLIENT_ADDON : 'mod_codeclient_leopard');
33 33
 if (substr($module, 0, 15) == 'mod_codeclient_' && substr($module, -3) == 'php')
34 34
 {
35
-    $module = substr($module, 0, dol_strlen($module)-4);
35
+    $module = substr($module, 0, dol_strlen($module) - 4);
36 36
 }
37
-$dirsociete=array_merge(array('/core/modules/societe/'),$conf->modules_parts['societe']);
37
+$dirsociete = array_merge(array('/core/modules/societe/'), $conf->modules_parts['societe']);
38 38
 foreach ($dirsociete as $dirroot)
39 39
 {
40
-    $res=dol_include_once($dirroot.$module.'.php');
40
+    $res = dol_include_once($dirroot . $module . '.php');
41 41
     if ($res) break;
42 42
 }
43 43
 $modCodeFournisseur = new $module;
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
     if (!$_POST["cancel"]) {
59 59
 
60 60
         $formObject = new stdClass();
61
-        $formObject->name = GETPOST('name','alpha');
62
-        $formObject->firstname = GETPOST('firstname','alpha');
63
-        $formObject->zip = GETPOST('zipcode','alpha');
61
+        $formObject->name = GETPOST('name', 'alpha');
62
+        $formObject->firstname = GETPOST('firstname', 'alpha');
63
+        $formObject->zip = GETPOST('zipcode', 'alpha');
64 64
         $formObject->town = GETPOST('town', 'alpha');
65 65
         $formObject->state = GETPOST('state_id', 'int');
66 66
         $formObject->phone = GETPOST('phone', 'alpha');
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($validator->isValid($formObject, $_REQUEST)) {
79 79
             $createOrderCommand = new CreateOrderCommand($formObject, $user->id);
80
-            try{
81
-                $handler = new CreateOrderCommandHandler($db, $conf,$user,$langs,$modCodeClient, $modCodeFournisseur);
80
+            try {
81
+                $handler = new CreateOrderCommandHandler($db, $conf, $user, $langs, $modCodeClient, $modCodeFournisseur);
82 82
                 $handler->handle($createOrderCommand);
83 83
 
84 84
                 $msg = '<div class="success ok">Commande et tiers créés. </div>';
@@ -113,18 +113,18 @@  discard block
 block discarded – undo
113 113
 ?>
114 114
 
115 115
     <!-- Success message with reference -->
116
-    <?php if($successMessage): ?>
116
+    <?php if ($successMessage): ?>
117 117
         <div class="bbc-style">
118 118
             <p class="cadre_msg1">
119 119
                 Vous avez généré la facture et créé un tiers.<br/>
120 120
                 Merci,
121 121
             </p>
122 122
 
123
-            <?php if(count($validator->getWarningMessages()) > 0):?>
123
+            <?php if (count($validator->getWarningMessages()) > 0):?>
124 124
                 <div class="box box-warning">
125 125
                     <p>Ceci sont des messages d'attention mais qui ne bloquent pas la création de la commande</p>
126 126
                     <ul>
127
-                        <?php foreach($validator->getWarningMessages() as $warningMessage): ?>
127
+                        <?php foreach ($validator->getWarningMessages() as $warningMessage): ?>
128 128
                             <li class="warning"><?php echo $warningMessage; ?></li>
129 129
                         <?php endforeach; ?>
130 130
                     </ul>
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         <p>
184 184
             Cette page vous permettra de créer une commande. La commande est <b>obligatoire</b> si vous désirez faire payer les passagers directement sur le compte du club.<br>
185 185
             Si vous avre un doute sur la manière d'encoder la commande, veuillez me contacter.<br/>
186
-            Si vous avez <b>déjà</b> encodé une commande, et que vous voulez la retrouver veuillez vous rendre sur : <a href="<?php echo sprintf(DOL_URL_ROOT.'/commande/list.php?search_sale=%s', $user->id); ?>">mes commandes.</a>
186
+            Si vous avez <b>déjà</b> encodé une commande, et que vous voulez la retrouver veuillez vous rendre sur : <a href="<?php echo sprintf(DOL_URL_ROOT . '/commande/list.php?search_sale=%s', $user->id); ?>">mes commandes.</a>
187 187
         </p>
188 188
     </div>
189 189
     <form class="flight-form" name='add' method="post">
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                     <?php echo $langs->trans('DefaultLang'); ?>
263 263
                 </td>
264 264
                 <td>
265
-                    <?php echo $formAdmin->select_language($conf->global->MAIN_LANG_DEFAULT,'default_lang',0,0,1,0,0,'maxwidth200onsmartphone'); ?>
265
+                    <?php echo $formAdmin->select_language($conf->global->MAIN_LANG_DEFAULT, 'default_lang', 0, 0, 1, 0, 0, 'maxwidth200onsmartphone'); ?>
266 266
                 </td>
267 267
             </tr>
268 268
 
@@ -272,16 +272,16 @@  discard block
 block discarded – undo
272 272
                     <?php echo $langs->trans('Region'); ?>
273 273
                 </td>
274 274
                 <td>
275
-                    <?php print $formcompany->select_state($formObject->state,'BE'); ?>
275
+                    <?php print $formcompany->select_state($formObject->state, 'BE'); ?>
276 276
                 </td>
277 277
             </tr>
278 278
 
279 279
             <?php
280 280
             // Zip / Town
281
-            print '<tr><td>'.fieldLabel('Zip','zipcode').'</td><td>';
282
-                    print $formcompany->select_ziptown($formObject->town,'zipcode',array('town','selectcountry_id','state_id'), 0, 0, '', 'maxwidth100 quatrevingtpercent');
283
-                    print '</td><td>'.fieldLabel('Town','town').'</td><td>';
284
-                    print $formcompany->select_ziptown($formObject->zip,'town',array('zipcode','selectcountry_id','state_id'), 0, 0, '', 'maxwidth100 quatrevingtpercent');
281
+            print '<tr><td>' . fieldLabel('Zip', 'zipcode') . '</td><td>';
282
+                    print $formcompany->select_ziptown($formObject->town, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 0, 0, '', 'maxwidth100 quatrevingtpercent');
283
+                    print '</td><td>' . fieldLabel('Town', 'town') . '</td><td>';
284
+                    print $formcompany->select_ziptown($formObject->zip, 'town', array('zipcode', 'selectcountry_id', 'state_id'), 0, 0, '', 'maxwidth100 quatrevingtpercent');
285 285
                     print '</td></tr>';
286 286
             ?>
287 287
 
@@ -305,16 +305,16 @@  discard block
 block discarded – undo
305 305
                     <?php
306 306
                     if (empty($conf->global->MAIN_DISABLEVATCHECK)): ?>
307 307
 
308
-                        <?php if (! empty($conf->use_javascript_ajax)): ?>
308
+                        <?php if (!empty($conf->use_javascript_ajax)): ?>
309 309
                             <script language="JavaScript" type="text/javascript">
310 310
                             function CheckVAT(a) {
311
-                                <?php print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a,'".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."',500,300);"; ?>
311
+                                <?php print "newpopup('" . DOL_URL_ROOT . "/societe/checkvat/checkVatPopup.php?vatNumber='+a,'" . dol_escape_js($langs->trans("VATIntraCheckableOnEUSite")) . "',500,300);"; ?>
312 312
                             }
313 313
                             </script>
314 314
                             <a href="#" class="hideonsmartphone" onclick="javascript: CheckVAT(document.add.tva_intra.value);"><?php echo $langs->trans("VATIntraCheck"); ?></a>
315
-                            <?php echo $html->textwithpicto($s,$langs->trans("VATIntraCheckDesc",$langs->trans("VATIntraCheck")),1); ?>
315
+                            <?php echo $html->textwithpicto($s, $langs->trans("VATIntraCheckDesc", $langs->trans("VATIntraCheck")), 1); ?>
316 316
                         <?php else: ?>
317
-                            <a href="<?php echo $langs->transcountry("VATIntraCheckURL",$object->country_id); ?>" target="_blank"><?php echo img_picto($langs->trans("VATIntraCheckableOnEUSite"),'help'); ?></a>
317
+                            <a href="<?php echo $langs->transcountry("VATIntraCheckURL", $object->country_id); ?>" target="_blank"><?php echo img_picto($langs->trans("VATIntraCheckableOnEUSite"), 'help'); ?></a>
318 318
                         <?php endif; ?>
319 319
                    <?php endif; ?>
320 320
                 </td>
@@ -367,10 +367,10 @@  discard block
 block discarded – undo
367 367
             <tr>
368 368
                 <td><?php echo $langs->trans('Le commentaire doit-il figurer sur la commande') ?></td>
369 369
                 <td>
370
-                    <input type="radio" id="public_comment" name="public_comment" value="1" <?php echo ($formObject->isCommentPublic == 1)?'checked="checked"' : ''; ?>/>
370
+                    <input type="radio" id="public_comment" name="public_comment" value="1" <?php echo ($formObject->isCommentPublic == 1) ? 'checked="checked"' : ''; ?>/>
371 371
                     <label for="public_comment">Oui</label>
372 372
                     -
373
-                    <input type="radio" id="private_comment" name="public_comment" value="0" <?php echo ($formObject == null || $formObject->isCommentPublic === null || $formObject->isCommentPublic === 0)?'checked="checked"' : ''; ?>/>
373
+                    <input type="radio" id="private_comment" name="public_comment" value="0" <?php echo ($formObject == null || $formObject->isCommentPublic === null || $formObject->isCommentPublic === 0) ? 'checked="checked"' : ''; ?>/>
374 374
                     <label for="private_comment">Non</label>
375 375
                 </td>
376 376
             </tr>
Please login to merge, or discard this patch.
command/CreateFlightCommandHandler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $vol = new Bbcvols($this->db);
66 66
         $vol->date = $command->getDate();
67 67
         $vol->lieuD = $command->getLieuD();
68
-        $vol->lieuA =$command->getLieuA();
68
+        $vol->lieuA = $command->getLieuA();
69 69
         $vol->heureD = $command->getHeureD();
70 70
         $vol->heureA = $command->getHeureA();
71 71
         $vol->BBC_ballons_idBBC_ballons = $command->getBBCBallonsIdBBCBallons();
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $vol->remarque = $command->getRemarque();
74 74
         $vol->incidents = $command->getIncidents();
75 75
         $vol->fk_type = $command->getFkType();
76
-        $vol->fk_pilot =$command->getFkPilot();
76
+        $vol->fk_pilot = $command->getFkPilot();
77 77
         $vol->fk_organisateur = $command->getFkOrganisateur();
78 78
         $vol->kilometers = $command->getKilometers();
79 79
         $vol->cost = $command->getCost();
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
             throw new Exception();
87 87
         }
88 88
 
89
-        if(!$vol->getFlightType()->isBillingRequired() || $vol->isLinkedToOrder()){
89
+        if (!$vol->getFlightType()->isBillingRequired() || $vol->isLinkedToOrder()) {
90 90
             $vol->is_facture = true;
91 91
         }
92 92
 
93 93
         $result = $vol->create($this->user);
94
-        if($result <= 0){
94
+        if ($result <= 0) {
95 95
             throw new Exception();
96 96
         }
97 97
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $flight->fetch($flight->id);
113 113
 
114
-        if(!$flight->isLinkedToOrder()){
114
+        if (!$flight->isLinkedToOrder()) {
115 115
             return;
116 116
         }
117 117
 
@@ -122,17 +122,17 @@  discard block
 block discarded – undo
122 122
 
123 123
         $qtyOrder = 0;
124 124
         /** @var OrderLine $currentOrderLine */
125
-        foreach($order->lines as $currentOrderLine){
126
-            $qtyOrder += (int)$currentOrderLine->qty;
125
+        foreach ($order->lines as $currentOrderLine) {
126
+            $qtyOrder += (int) $currentOrderLine->qty;
127 127
         }
128 128
 
129 129
         $passangersCount = $this->numberOfPassengersLinkedToOrder($order->id);
130 130
 
131
-        if($passangersCount != $qtyOrder){
131
+        if ($passangersCount != $qtyOrder) {
132 132
             return;
133 133
         }
134 134
 
135
-        if($order->statut == Commande::STATUS_VALIDATED){
135
+        if ($order->statut == Commande::STATUS_VALIDATED) {
136 136
             $order->cloture($this->user);
137 137
         }
138 138
     }
Please login to merge, or discard this patch.