Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/fourn/ajax/getSupplierPrices.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
             }
116 116
         }
117 117
 
118
-        $prices[] = array("id" => 'pmpprice', "price" => price2num($price), "label" => $langs->trans("PMPValueShort") . ': ' . price($price, 0, $langs, 0, 0, -1, $conf->currency), "title" => $langs->trans("PMPValueShort") . ': ' . price($price, 0, $langs, 0, 0, -1, $conf->currency));  // For price field, we must use price2num(), for label or title, price()
118
+        $prices[] = array("id" => 'pmpprice', "price" => price2num($price), "label" => $langs->trans("PMPValueShort") . ': ' . price($price, 0, $langs, 0, 0, -1, $conf->currency), "title" => $langs->trans("PMPValueShort") . ': ' . price($price, 0, $langs, 0, 0, -1, $conf->currency)); // For price field, we must use price2num(), for label or title, price()
119 119
     }
120 120
 
121 121
     // Add price for costprice (at end)
Please login to merge, or discard this patch.
htdocs/fourn/commande/list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 $search_date_order_endday = GETPOSTINT('search_date_order_endday');
66 66
 $search_date_order_endmonth = GETPOSTINT('search_date_order_endmonth');
67 67
 $search_date_order_endyear = GETPOSTINT('search_date_order_endyear');
68
-$search_date_order_start = dol_mktime(0, 0, 0, $search_date_order_startmonth, $search_date_order_startday, $search_date_order_startyear);   // Use tzserver
68
+$search_date_order_start = dol_mktime(0, 0, 0, $search_date_order_startmonth, $search_date_order_startday, $search_date_order_startyear); // Use tzserver
69 69
 $search_date_order_end = dol_mktime(23, 59, 59, $search_date_order_endmonth, $search_date_order_endday, $search_date_order_endyear);
70 70
 
71 71
 $search_date_delivery_startday = GETPOSTINT('search_date_delivery_startday');
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 $search_date_delivery_endday = GETPOSTINT('search_date_delivery_endday');
75 75
 $search_date_delivery_endmonth = GETPOSTINT('search_date_delivery_endmonth');
76 76
 $search_date_delivery_endyear = GETPOSTINT('search_date_delivery_endyear');
77
-$search_date_delivery_start = dol_mktime(0, 0, 0, $search_date_delivery_startmonth, $search_date_delivery_startday, $search_date_delivery_startyear);   // Use tzserver
77
+$search_date_delivery_start = dol_mktime(0, 0, 0, $search_date_delivery_startmonth, $search_date_delivery_startday, $search_date_delivery_startyear); // Use tzserver
78 78
 $search_date_delivery_end = dol_mktime(23, 59, 59, $search_date_delivery_endmonth, $search_date_delivery_endday, $search_date_delivery_endyear);
79 79
 
80 80
 $search_date_valid_startday = GETPOSTINT('search_date_valid_startday');
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 $search_date_valid_endday = GETPOSTINT('search_date_valid_endday');
84 84
 $search_date_valid_endmonth = GETPOSTINT('search_date_valid_endmonth');
85 85
 $search_date_valid_endyear = GETPOSTINT('search_date_valid_endyear');
86
-$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear);   // Use tzserver
86
+$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear); // Use tzserver
87 87
 $search_date_valid_end = dol_mktime(23, 59, 59, $search_date_valid_endmonth, $search_date_valid_endday, $search_date_valid_endyear);
88 88
 
89 89
 $search_date_approve_startday = GETPOSTINT('search_date_approve_startday');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 $search_date_approve_endday = GETPOSTINT('search_date_approve_endday');
93 93
 $search_date_approve_endmonth = GETPOSTINT('search_date_approve_endmonth');
94 94
 $search_date_approve_endyear = GETPOSTINT('search_date_approve_endyear');
95
-$search_date_approve_start = dol_mktime(0, 0, 0, $search_date_approve_startmonth, $search_date_approve_startday, $search_date_approve_startyear);   // Use tzserver
95
+$search_date_approve_start = dol_mktime(0, 0, 0, $search_date_approve_startmonth, $search_date_approve_startday, $search_date_approve_startyear); // Use tzserver
96 96
 $search_date_approve_end = dol_mktime(23, 59, 59, $search_date_approve_endmonth, $search_date_approve_endday, $search_date_approve_endyear);
97 97
 
98 98
 $sall = trim((GETPOST('search_all', 'alphanohtml') != '') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
@@ -1236,7 +1236,7 @@  discard block
 block discarded – undo
1236 1236
 
1237 1237
     $topicmail = "SendOrderRef";
1238 1238
     $modelmail = "order_supplier_send";
1239
-    $objecttmp = new CommandeFournisseur($db);  // in case $object is not the good object
1239
+    $objecttmp = new CommandeFournisseur($db); // in case $object is not the good object
1240 1240
     $trackid = 'sord' . $object->id;
1241 1241
     include DOL_DOCUMENT_ROOT . '/core/tpl/massactions_pre.tpl.php';
1242 1242
 
Please login to merge, or discard this patch.
htdocs/fourn/commande/note.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 // Permissions
58 58
 $permissionnote = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer")); // Used by the include of actions_setnotes.inc.php
59 59
 $usercancreate  = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
60
-$permissiontoadd    = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
60
+$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
61 61
 
62 62
 
63 63
 /*
Please login to merge, or discard this patch.
htdocs/fourn/commande/dispatch.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
     accessforbidden();
103 103
 }
104 104
 
105
-$usercancreate  = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
106
-$permissiontoadd    = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
105
+$usercancreate = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
106
+$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
107 107
 
108 108
 
109 109
 /*
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
     if (!empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)) {
630 630
         $disabled = 0;
631 631
     }*/
632
-    $disabled = 0;  // This is used to disable or not the bulk selection of target warehouse. No reason to have it disabled so forced to 0.
632
+    $disabled = 0; // This is used to disable or not the bulk selection of target warehouse. No reason to have it disabled so forced to 0.
633 633
 
634 634
     // Line of orders
635 635
     if ($object->statut <= CommandeFournisseur::STATUS_ACCEPTED || $object->statut >= CommandeFournisseur::STATUS_CANCELED) {
Please login to merge, or discard this patch.
htdocs/fourn/commande/card.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
             $idprod = GETPOSTINT('idprod');
437 437
         }
438 438
 
439
-        $tva_tx = (GETPOST('tva_tx') ? GETPOST('tva_tx') : 0);      // Can be '1.2' or '1.2 (CODE)'
439
+        $tva_tx = (GETPOST('tva_tx') ? GETPOST('tva_tx') : 0); // Can be '1.2' or '1.2 (CODE)'
440 440
 
441 441
         $price_ht = price2num(GETPOST('price_ht'), 'MU', 2);
442 442
         $price_ht_devise = price2num(GETPOST('multicurrency_price_ht'), 'CU', 2);
@@ -1239,7 +1239,7 @@  discard block
 block discarded – undo
1239 1239
             $object->mode_reglement_id = GETPOSTINT('mode_reglement_id');
1240 1240
             $object->fk_account        = GETPOSTINT('fk_account');
1241 1241
             $object->note_private = GETPOST('note_private', 'restricthtml');
1242
-            $object->note_public    = GETPOST('note_public', 'restricthtml');
1242
+            $object->note_public = GETPOST('note_public', 'restricthtml');
1243 1243
             $object->delivery_date = $datelivraison;
1244 1244
             $object->fk_incoterms = GETPOSTINT('incoterm_id');
1245 1245
             $object->location_incoterms = GETPOST('location_incoterms', 'alpha');
@@ -1635,7 +1635,7 @@  discard block
 block discarded – undo
1635 1635
         $demand_reason_id = (!empty($objectsrc->demand_reason_id) ? $objectsrc->demand_reason_id : (!empty($soc->demand_reason_id) ? $soc->demand_reason_id : 0));
1636 1636
         //$remise_percent       = (!empty($objectsrc->remise_percent) ? $objectsrc->remise_percent : (!empty($soc->remise_supplier_percent) ? $soc->remise_supplier_percent : 0));
1637 1637
         //$remise_absolue       = (!empty($objectsrc->remise_absolue) ? $objectsrc->remise_absolue : (!empty($soc->remise_absolue) ? $soc->remise_absolue : 0));
1638
-        $dateinvoice        = !getDolGlobalString('MAIN_AUTOFILL_DATE') ? -1 : '';
1638
+        $dateinvoice = !getDolGlobalString('MAIN_AUTOFILL_DATE') ? -1 : '';
1639 1639
 
1640 1640
         $datedelivery = (!empty($objectsrc->delivery_date) ? $objectsrc->delivery_date : '');
1641 1641
 
@@ -1750,7 +1750,7 @@  discard block
 block discarded – undo
1750 1750
         // Payment term
1751 1751
         print '<tr><td class="nowrap">' . $langs->trans('PaymentConditionsShort') . '</td><td>';
1752 1752
         print img_picto('', 'payment', 'class="pictofixedwidth"');
1753
-        print $form->getSelectConditionsPaiements((GETPOSTISSET('cond_reglement_id') &&  GETPOST('cond_reglement_id') != 0) ? GETPOST('cond_reglement_id') : $cond_reglement_id, 'cond_reglement_id', -1, 1);
1753
+        print $form->getSelectConditionsPaiements((GETPOSTISSET('cond_reglement_id') && GETPOST('cond_reglement_id') != 0) ? GETPOST('cond_reglement_id') : $cond_reglement_id, 'cond_reglement_id', -1, 1);
1754 1754
         print '</td></tr>';
1755 1755
 
1756 1756
         // Payment mode
@@ -2000,7 +2000,7 @@  discard block
 block discarded – undo
2000 2000
                 'morecss' => 'minwidth300'
2001 2001
             )
2002 2002
         );
2003
-        $formconfirm  = $form->formconfirm($_SERVER['PHP_SELF'] . "?id=$object->id", $langs->trans("DenyingThisOrder"), $langs->trans("ConfirmDenyingThisOrder", $object->ref), "confirm_refuse", $formquestion, 0, 1);
2003
+        $formconfirm = $form->formconfirm($_SERVER['PHP_SELF'] . "?id=$object->id", $langs->trans("DenyingThisOrder"), $langs->trans("ConfirmDenyingThisOrder", $object->ref), "confirm_refuse", $formquestion, 0, 1);
2004 2004
     }
2005 2005
 
2006 2006
     // Confirmation of cancellation
Please login to merge, or discard this patch.
htdocs/fourn/commande/contact.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
 
53 53
 $object = new CommandeFournisseur($db);
54 54
 
55
-$usercancreate  = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
56
-$permissiontoadd    = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
55
+$usercancreate = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
56
+$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
57 57
 
58 58
 /*
59 59
  * Actions
Please login to merge, or discard this patch.
htdocs/fourn/commande/info.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@
 block discarded – undo
85 85
 // Init Hooks
86 86
 $hookmanager->initHooks(array('ordersuppliercardinfo'));
87 87
 
88
-$usercancreate  = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
89
-$permissiontoadd    = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
88
+$usercancreate = ($user->hasRight("fournisseur", "commande", "creer") || $user->hasRight("supplier_order", "creer"));
89
+$permissiontoadd = $usercancreate; // Used by the include of actions_addupdatedelete.inc.php
90 90
 
91 91
 
92 92
 /*
Please login to merge, or discard this patch.
htdocs/contrat/list.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 $search_date_endday = GETPOSTINT('search_date_endday');
81 81
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
82 82
 $search_date_endyear = GETPOSTINT('search_date_endyear');
83
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);   // Use tzserver
83
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
84 84
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
85 85
 $searchCategoryCustomerOperator = 0;
86 86
 if (GETPOSTISSET('formfilteraction')) {
@@ -93,20 +93,20 @@  discard block
 block discarded – undo
93 93
 $search_date_creation_startmonth = GETPOSTINT('search_date_creation_startmonth');
94 94
 $search_date_creation_startyear = GETPOSTINT('search_date_creation_startyear');
95 95
 $search_date_creation_startday = GETPOSTINT('search_date_creation_startday');
96
-$search_date_creation_start = dol_mktime(0, 0, 0, $search_date_creation_startmonth, $search_date_creation_startday, $search_date_creation_startyear);   // Use tzserver
96
+$search_date_creation_start = dol_mktime(0, 0, 0, $search_date_creation_startmonth, $search_date_creation_startday, $search_date_creation_startyear); // Use tzserver
97 97
 $search_date_creation_endmonth = GETPOSTINT('search_date_creation_endmonth');
98 98
 $search_date_creation_endyear = GETPOSTINT('search_date_creation_endyear');
99 99
 $search_date_creation_endday = GETPOSTINT('search_date_creation_endday');
100
-$search_date_creation_end = dol_mktime(23, 59, 59, $search_date_creation_endmonth, $search_date_creation_endday, $search_date_creation_endyear);    // Use tzserver
100
+$search_date_creation_end = dol_mktime(23, 59, 59, $search_date_creation_endmonth, $search_date_creation_endday, $search_date_creation_endyear); // Use tzserver
101 101
 
102 102
 $search_date_modif_startmonth = GETPOSTINT('search_date_modif_startmonth');
103 103
 $search_date_modif_startyear = GETPOSTINT('search_date_modif_startyear');
104 104
 $search_date_modif_startday = GETPOSTINT('search_date_modif_startday');
105
-$search_date_modif_start = dol_mktime(0, 0, 0, $search_date_modif_startmonth, $search_date_modif_startday, $search_date_modif_startyear);   // Use tzserver
105
+$search_date_modif_start = dol_mktime(0, 0, 0, $search_date_modif_startmonth, $search_date_modif_startday, $search_date_modif_startyear); // Use tzserver
106 106
 $search_date_modif_endmonth = GETPOSTINT('search_date_modif_endmonth');
107 107
 $search_date_modif_endyear = GETPOSTINT('search_date_modif_endyear');
108 108
 $search_date_modif_endday = GETPOSTINT('search_date_modif_endday');
109
-$search_date_modif_end = dol_mktime(23, 59, 59, $search_date_modif_endmonth, $search_date_modif_endday, $search_date_modif_endyear);    // Use tzserver
109
+$search_date_modif_end = dol_mktime(23, 59, 59, $search_date_modif_endmonth, $search_date_modif_endday, $search_date_modif_endyear); // Use tzserver
110 110
 
111 111
 // Load variable for pagination
112 112
 $limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
         $resql = $db->query($sql, 0, 'auto', 1);
529 529
         while ($db->fetch_object($resql)) {
530 530
             if (empty($nbtotalofrecords)) {
531
-                $nbtotalofrecords = 1;    // We can't make +1 because init value is ''
531
+                $nbtotalofrecords = 1; // We can't make +1 because init value is ''
532 532
             } else {
533 533
                 $nbtotalofrecords++;
534 534
             }
@@ -980,55 +980,55 @@  discard block
 block discarded – undo
980 980
 print '<tr class="liste_titre">';
981 981
 if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
982 982
     print_liste_field_titre($selectedfields, $_SERVER['PHP_SELF'], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
983
-    $totalarray['nbfield']++;   // For the column action
983
+    $totalarray['nbfield']++; // For the column action
984 984
 }
985 985
 if (!empty($arrayfields['c.ref']['checked'])) {
986 986
     print_liste_field_titre($arrayfields['c.ref']['label'], $_SERVER['PHP_SELF'], "c.ref", "", $param, '', $sortfield, $sortorder);
987
-    $totalarray['nbfield']++;   // For the column action
987
+    $totalarray['nbfield']++; // For the column action
988 988
 }
989 989
 if (!empty($arrayfields['c.ref_customer']['checked'])) {
990 990
     print_liste_field_titre($arrayfields['c.ref_customer']['label'], $_SERVER['PHP_SELF'], "c.ref_customer", "", $param, '', $sortfield, $sortorder);
991
-    $totalarray['nbfield']++;   // For the column action
991
+    $totalarray['nbfield']++; // For the column action
992 992
 }
993 993
 if (!empty($arrayfields['c.ref_supplier']['checked'])) {
994 994
     print_liste_field_titre($arrayfields['c.ref_supplier']['label'], $_SERVER['PHP_SELF'], "c.ref_supplier", "", $param, '', $sortfield, $sortorder);
995
-    $totalarray['nbfield']++;   // For the column action
995
+    $totalarray['nbfield']++; // For the column action
996 996
 }
997 997
 if (!empty($arrayfields['s.nom']['checked'])) {
998 998
     print_liste_field_titre($arrayfields['s.nom']['label'], $_SERVER['PHP_SELF'], "s.nom", "", $param, '', $sortfield, $sortorder);
999
-    $totalarray['nbfield']++;   // For the column action
999
+    $totalarray['nbfield']++; // For the column action
1000 1000
 }
1001 1001
 if (!empty($arrayfields['s.email']['checked'])) {
1002 1002
     print_liste_field_titre($arrayfields['s.email']['label'], $_SERVER['PHP_SELF'], "s.email", "", $param, '', $sortfield, $sortorder);
1003
-    $totalarray['nbfield']++;   // For the column action
1003
+    $totalarray['nbfield']++; // For the column action
1004 1004
 }
1005 1005
 if (!empty($arrayfields['s.town']['checked'])) {
1006 1006
     print_liste_field_titre($arrayfields['s.town']['label'], $_SERVER['PHP_SELF'], 's.town', '', $param, '', $sortfield, $sortorder);
1007
-    $totalarray['nbfield']++;   // For the column action
1007
+    $totalarray['nbfield']++; // For the column action
1008 1008
 }
1009 1009
 if (!empty($arrayfields['s.zip']['checked'])) {
1010 1010
     print_liste_field_titre($arrayfields['s.zip']['label'], $_SERVER['PHP_SELF'], 's.zip', '', $param, '', $sortfield, $sortorder);
1011
-    $totalarray['nbfield']++;   // For the column action
1011
+    $totalarray['nbfield']++; // For the column action
1012 1012
 }
1013 1013
 if (!empty($arrayfields['state.nom']['checked'])) {
1014 1014
     print_liste_field_titre($arrayfields['state.nom']['label'], $_SERVER['PHP_SELF'], "state.nom", "", $param, '', $sortfield, $sortorder);
1015
-    $totalarray['nbfield']++;   // For the column action
1015
+    $totalarray['nbfield']++; // For the column action
1016 1016
 }
1017 1017
 if (!empty($arrayfields['country.code_iso']['checked'])) {
1018 1018
     print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER['PHP_SELF'], "country.code_iso", "", $param, '', $sortfield, $sortorder, 'center ');
1019
-    $totalarray['nbfield']++;   // For the column action
1019
+    $totalarray['nbfield']++; // For the column action
1020 1020
 }
1021 1021
 if (!empty($arrayfields['typent.code']['checked'])) {
1022 1022
     print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER['PHP_SELF'], "typent.code", "", $param, '', $sortfield, $sortorder, 'center ');
1023
-    $totalarray['nbfield']++;   // For the column action
1023
+    $totalarray['nbfield']++; // For the column action
1024 1024
 }
1025 1025
 if (!empty($arrayfields['sale_representative']['checked'])) {
1026 1026
     print_liste_field_titre($arrayfields['sale_representative']['label'], $_SERVER['PHP_SELF'], "", "", $param, '', $sortfield, $sortorder);
1027
-    $totalarray['nbfield']++;   // For the column action
1027
+    $totalarray['nbfield']++; // For the column action
1028 1028
 }
1029 1029
 if (!empty($arrayfields['c.date_contrat']['checked'])) {
1030 1030
     print_liste_field_titre($arrayfields['c.date_contrat']['label'], $_SERVER['PHP_SELF'], "c.date_contrat", "", $param, '', $sortfield, $sortorder, 'center ');
1031
-    $totalarray['nbfield']++;   // For the column action
1031
+    $totalarray['nbfield']++; // For the column action
1032 1032
 }
1033 1033
 // Extra fields
1034 1034
 include DOL_DOCUMENT_ROOT . '/core/tpl/extrafields_list_search_title.tpl.php';
@@ -1038,29 +1038,29 @@  discard block
 block discarded – undo
1038 1038
 print $hookmanager->resPrint;
1039 1039
 if (!empty($arrayfields['c.datec']['checked'])) {
1040 1040
     print_liste_field_titre($arrayfields['c.datec']['label'], $_SERVER['PHP_SELF'], "c.datec", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
1041
-    $totalarray['nbfield']++;   // For the column action
1041
+    $totalarray['nbfield']++; // For the column action
1042 1042
 }
1043 1043
 if (!empty($arrayfields['c.tms']['checked'])) {
1044 1044
     print_liste_field_titre($arrayfields['c.tms']['label'], $_SERVER['PHP_SELF'], "c.tms", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
1045
-    $totalarray['nbfield']++;   // For the column action
1045
+    $totalarray['nbfield']++; // For the column action
1046 1046
 }
1047 1047
 if (!empty($arrayfields['lower_planned_end_date']['checked'])) {
1048 1048
     print_liste_field_titre($arrayfields['lower_planned_end_date']['label'], $_SERVER['PHP_SELF'], "lower_planned_end_date", "", $param, '', $sortfield, $sortorder, 'center ');
1049
-    $totalarray['nbfield']++;   // For the column action
1049
+    $totalarray['nbfield']++; // For the column action
1050 1050
 }
1051 1051
 if (!empty($arrayfields['status']['checked'])) {
1052 1052
     print_liste_field_titre($staticcontratligne->LibStatut(0, 3, -1, 'class="nochangebackground"'), '', '', '', '', 'width="16"');
1053
-    $totalarray['nbfield']++;   // For the column action
1053
+    $totalarray['nbfield']++; // For the column action
1054 1054
     print_liste_field_titre($staticcontratligne->LibStatut(4, 3, 0, 'class="nochangebackground"'), '', '', '', '', 'width="16"');
1055
-    $totalarray['nbfield']++;   // For the column action
1055
+    $totalarray['nbfield']++; // For the column action
1056 1056
     print_liste_field_titre($staticcontratligne->LibStatut(4, 3, 1, 'class="nochangebackground"'), '', '', '', '', 'width="16"');
1057
-    $totalarray['nbfield']++;   // For the column action
1057
+    $totalarray['nbfield']++; // For the column action
1058 1058
     print_liste_field_titre($staticcontratligne->LibStatut(5, 3, -1, 'class="nochangebackground"'), '', '', '', '', 'width="16"');
1059
-    $totalarray['nbfield']++;   // For the column action
1059
+    $totalarray['nbfield']++; // For the column action
1060 1060
 }
1061 1061
 if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
1062 1062
     print_liste_field_titre($selectedfields, $_SERVER['PHP_SELF'], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
1063
-    $totalarray['nbfield']++;   // For the column action
1063
+    $totalarray['nbfield']++; // For the column action
1064 1064
 }
1065 1065
 print "</tr>\n";
1066 1066
 
@@ -1350,7 +1350,7 @@  discard block
 block discarded – undo
1350 1350
 
1351 1351
 // If no record found
1352 1352
 if ($num == 0) {
1353
-    $colspan = 4;   // Include the 4 columns of status
1353
+    $colspan = 4; // Include the 4 columns of status
1354 1354
     foreach ($arrayfields as $key => $val) {
1355 1355
         if (!empty($val['checked'])) {
1356 1356
             $colspan++;
Please login to merge, or discard this patch.
htdocs/contrat/note.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 $object = new Contrat($db);
54 54
 $object->fetch($id, $ref);
55 55
 
56
-$permissiontoadd   = $user->hasRight('contrat', 'creer');     //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
56
+$permissiontoadd = $user->hasRight('contrat', 'creer'); //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
57 57
 $permissionnote = $user->hasRight('contrat', 'creer'); // Used by the include of actions_setnotes.inc.php
58 58
 
59 59
 $result = restrictedArea($user, 'contrat', $object->id);
Please login to merge, or discard this patch.