Completed
Branch develop (4d02ec)
by
unknown
24:02
created
htdocs/admin/tools/ui/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 }
33 33
 
34 34
 // Includes
35
-require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
35
+require_once DOL_DOCUMENT_ROOT.'/admin/tools/ui/class/documentation.class.php';
36 36
 
37 37
 // Load documentation translations
38 38
 $langs->load('uxdocumentation');
Please login to merge, or discard this patch.
htdocs/admin/tools/ui/components/progress-bars.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 // Includes
36
-require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
36
+require_once DOL_DOCUMENT_ROOT.'/admin/tools/ui/class/documentation.class.php';
37 37
 
38 38
 // Load documentation translations
39 39
 $langs->load('uxdocumentation');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 // Set view for menu and breadcrumb
53 53
 // Menu must be set in constructor of documentation class
54
-$documentation->view = array('Components','Progress');
54
+$documentation->view = array('Components', 'Progress');
55 55
 
56 56
 // Output sidebar
57 57
 $documentation->showSidebar(); ?>
Please login to merge, or discard this patch.
htdocs/admin/tools/ui/components/event-message.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 // Includes
36
-require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
36
+require_once DOL_DOCUMENT_ROOT.'/admin/tools/ui/class/documentation.class.php';
37 37
 
38 38
 // Load documentation translations
39 39
 $langs->load('uxdocumentation');
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
 // Set view for menu and breadcrumb
69 69
 // Menu must be set in constructor of documentation class
70
-$documentation->view = array('Components','Event Message');
70
+$documentation->view = array('Components', 'Event Message');
71 71
 
72 72
 // Output sidebar
73 73
 $documentation->showSidebar(); ?>
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 					$label = 'My action label used for accessibility visually for impaired people';
102 102
 					$user_right = 1;
103 103
 
104
-					$html = '<span class="fa fa-comments paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayMessages');;
104
+					$html = '<span class="fa fa-comments paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayMessages'); ;
105 105
 					$action_type = 'displayeventmessages';
106 106
 					$url = $_SERVER["PHP_SELF"].'?action=displayeventmessages';
107 107
 					print dolGetButtonAction($label, $html, $action_type, $url, '', $user_right); ?>
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 				<?php
139 139
 				$label = 'My action label used for accessibility visually for impaired people';
140 140
 				$user_right = 1;
141
-				$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayOKMessage');;
141
+				$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayOKMessage'); ;
142 142
 				$action_type = 'displayeventmessageok';
143 143
 				$url = $_SERVER["PHP_SELF"].'?action=displayeventmessageok#seteventmessagesection-contextvariations';
144 144
 				$params['attr']['style'] = 'background: #446548';
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
 				$label = 'My action label used for accessibility visually for impaired people';
148 148
 				$user_right = 1;
149
-				$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayWarningMessage');;
149
+				$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayWarningMessage'); ;
150 150
 				$action_type = 'displayeventmessagewarning';
151 151
 				$url = $_SERVER["PHP_SELF"].'?action=displayeventmessagewarning#seteventmessagesection-contextvariations';
152 152
 				$params['attr']['style'] = 'background: #a28918';
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
 				$label = 'My action label used for accessibility visually for impaired people';
156 156
 				$user_right = 1;
157
-				$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayErrorMessage');;
157
+				$html = '<span class="fa fa-comment paddingright"></span>'.$langs->trans('DocSetEventMessageDisplayErrorMessage'); ;
158 158
 				$action_type = 'displayeventmessageerror';
159 159
 				$url = $_SERVER["PHP_SELF"].'?action=displayeventmessageerror#seteventmessagesection-contextvariations';
160 160
 				$params['attr']['style'] = 'background: #a72947';
Please login to merge, or discard this patch.
htdocs/admin/tools/ui/components/buttons.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 // Includes
36
-require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
36
+require_once DOL_DOCUMENT_ROOT.'/admin/tools/ui/class/documentation.class.php';
37 37
 
38 38
 // Load documentation translations
39 39
 $langs->load('uxdocumentation');
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 // Set view for menu and breadcrumb
52 52
 // Menu must be set in constructor of documentation class
53
-$documentation->view = array('Components','Buttons');
53
+$documentation->view = array('Components', 'Buttons');
54 54
 
55 55
 // Output sidebar
56 56
 $documentation->showSidebar(); ?>
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 				$html = '<span class="fa fa-trash-alt paddingright" aria-hidden="true"></span> My delete action';
159 159
 				$actionType = 'delete';
160 160
 				$id = 'button-id-8';
161
-				$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
161
+				$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
162 162
 				$params = array(
163 163
 					'confirm' => array(
164 164
 						'url' => 'your confirm action url',
Please login to merge, or discard this patch.
htdocs/admin/tools/ui/components/test_buttons.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	$actionType = 'delete';
93 93
 	$n++;
94 94
 	$id = 'mybuttonid'.$n;
95
-	$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
95
+	$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
96 96
 	print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
97 97
 
98 98
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	$actionType = 'danger';
101 101
 	$n++;
102 102
 	$id = 'mybuttonid'.$n;
103
-	$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
103
+	$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
104 104
 	print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
105 105
 
106 106
 	?>
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	$actionType = 'delete';
126 126
 	$n++;
127 127
 	$id = 'mybuttonid'.$n;
128
-	$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
128
+	$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
129 129
 	print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
130 130
 
131 131
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	$actionType = 'danger';
134 134
 	$n++;
135 135
 	$id = 'mybuttonid'.$n;
136
-	$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
136
+	$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
137 137
 	print dolGetButtonAction($label, $html, $actionType, $url, $id, $userRight);
138 138
 
139 139
 	?>
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 		$actionType = 'delete';
165 165
 		$n++;
166 166
 		$id = 'mybuttonid'.$n;
167
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
167
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
168 168
 
169 169
 		$params = array(
170 170
 			'confirm' => array(
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 		$actionType = 'delete';
204 204
 		$n++;
205 205
 		$id = 'mybuttonid'.$n;
206
-		$url = $_SERVER['PHP_SELF'] . '?token='.newToken().'#'.$id;
206
+		$url = $_SERVER['PHP_SELF'].'?token='.newToken().'#'.$id;
207 207
 
208 208
 		$params = array(
209 209
 			'confirm' => array(
Please login to merge, or discard this patch.
htdocs/admin/tools/ui/components/badges.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 // Includes
36
-require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
36
+require_once DOL_DOCUMENT_ROOT.'/admin/tools/ui/class/documentation.class.php';
37 37
 
38 38
 // Load documentation translations
39 39
 $langs->load('uxdocumentation');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 // Set view for menu and breadcrumb
53 53
 // Menu must be set in constructor of documentation class
54
-$documentation->view = array('Components','Badges');
54
+$documentation->view = array('Components', 'Badges');
55 55
 
56 56
 // Output sidebar
57 57
 $documentation->showSidebar(); ?>
Please login to merge, or discard this patch.
htdocs/compta/bank/class/api_bankaccounts.class.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 use Luracast\Restler\RestException;
22 22
 
23
-require_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
23
+require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
24 24
 
25 25
 /**
26 26
  * API class for accounts
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
 
76 76
 		$sql = "SELECT t.rowid FROM ".MAIN_DB_PREFIX."bank_account AS t LEFT JOIN ".MAIN_DB_PREFIX."bank_account_extrafields AS ef ON (ef.fk_object = t.rowid)"; // Modification VMR Global Solutions to include extrafields as search parameters in the API GET call, so we will be able to filter on extrafields
77 77
 		if ($category > 0) {
78
-			$sql .= ", " . MAIN_DB_PREFIX . "categorie_account as c";
78
+			$sql .= ", ".MAIN_DB_PREFIX."categorie_account as c";
79 79
 		}
80
-		$sql .= ' WHERE t.entity IN (' . getEntity('bank_account') . ')';
80
+		$sql .= ' WHERE t.entity IN ('.getEntity('bank_account').')';
81 81
 		// Select accounts of given category
82 82
 		if ($category > 0) {
83
-			$sql .= " AND c.fk_categorie = " . ((int) $category) . " AND c.fk_account = t.rowid";
83
+			$sql .= " AND c.fk_categorie = ".((int) $category)." AND c.fk_account = t.rowid";
84 84
 		}
85 85
 		// Add sql filters
86 86
 		if ($sqlfilters) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 				}
116 116
 			}
117 117
 		} else {
118
-			throw new RestException(503, 'Error when retrieving list of accounts: ' . $this->db->lasterror());
118
+			throw new RestException(503, 'Error when retrieving list of accounts: '.$this->db->lasterror());
119 119
 		}
120 120
 
121 121
 		return $list;
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 			throw new RestException(403);
209 209
 		}
210 210
 
211
-		require_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
211
+		require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
212 212
 
213 213
 		$accountfrom = new Account($this->db);
214 214
 		$resultAccountFrom = $accountfrom->fetch($bankaccount_from_id);
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 		 * Creating links between bank line record and its source
285 285
 		 */
286 286
 
287
-		$url = DOL_URL_ROOT . '/compta/bank/line.php?rowid=';
287
+		$url = DOL_URL_ROOT.'/compta/bank/line.php?rowid=';
288 288
 		$label = '(banktransfert)';
289 289
 		$type = 'banktransfert';
290 290
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 			);
316 316
 		} else {
317 317
 			$this->db->rollback();
318
-			throw new RestException(500, $accountfrom->error . ' ' . $accountto->error);
318
+			throw new RestException(500, $accountfrom->error.' '.$accountto->error);
319 319
 		}
320 320
 	}
321 321
 
@@ -449,8 +449,8 @@  discard block
 block discarded – undo
449 449
 			throw new RestException(404, 'account not found');
450 450
 		}
451 451
 
452
-		$sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "bank ";
453
-		$sql .= " WHERE fk_account = " . ((int) $id);
452
+		$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."bank ";
453
+		$sql .= " WHERE fk_account = ".((int) $id);
454 454
 
455 455
 		// Add sql filters
456 456
 		if ($sqlfilters) {
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 				}
476 476
 			}
477 477
 		} else {
478
-			throw new RestException(503, 'Error when retrieving list of account lines: ' . $this->db->lasterror());
478
+			throw new RestException(503, 'Error when retrieving list of account lines: '.$this->db->lasterror());
479 479
 		}
480 480
 
481 481
 		return $list;
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 			$num_releve
536 536
 		);
537 537
 		if ($result < 0) {
538
-			throw new RestException(503, 'Error when adding line to account: ' . $account->error);
538
+			throw new RestException(503, 'Error when adding line to account: '.$account->error);
539 539
 		}
540 540
 		return $result;
541 541
 	}
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
 
578 578
 		$result = $account->add_url_line($line_id, $url_id, $url, $label, $type);
579 579
 		if ($result < 0) {
580
-			throw new RestException(503, 'Error when adding link to account line: ' . $account->error);
580
+			throw new RestException(503, 'Error when adding link to account line: '.$account->error);
581 581
 		}
582 582
 		return $result;
583 583
 	}
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
 
649 649
 		$result = $accountLine->updateLabel();
650 650
 		if ($result < 0) {
651
-			throw new RestException(503, 'Error when updating link to account line: ' . $accountLine->error);
651
+			throw new RestException(503, 'Error when updating link to account line: '.$accountLine->error);
652 652
 		}
653 653
 		return $accountLine->id;
654 654
 	}
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
 		if (!$result) {
714 714
 			throw new RestException(404, 'account not found');
715 715
 		}
716
-		$balance = $account->solde(1);  //1=Exclude future operation date (this is to exclude input made in advance and have real account sold)
716
+		$balance = $account->solde(1); //1=Exclude future operation date (this is to exclude input made in advance and have real account sold)
717 717
 		return $balance;
718 718
 	}
719 719
 }
Please login to merge, or discard this patch.
htdocs/product/list.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -275,12 +275,12 @@  discard block
 block discarded – undo
275 275
 	'p.tobatch' => array('label' => "ManageLotSerial", 'checked' => 0, 'enabled' => (isModEnabled('productbatch')), 'position' => 60),
276 276
 	'p.fk_country' => array('label' => "Country", 'checked' => 0, 'position' => 100),
277 277
 	'p.fk_state' => array('label' => "State", 'checked' => 0, 'position' => 101),
278
-	$alias_product_perentity . '.accountancy_code_sell' => array('label' => "ProductAccountancySellCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 400),
279
-	$alias_product_perentity . '.accountancy_code_sell_intra' => array('label' => "ProductAccountancySellIntraCode", 'checked' => 0, 'enabled' => $isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 401),
280
-	$alias_product_perentity . '.accountancy_code_sell_export' => array('label' => "ProductAccountancySellExportCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 402),
281
-	$alias_product_perentity . '.accountancy_code_buy' => array('label' => "ProductAccountancyBuyCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 403),
282
-	$alias_product_perentity . '.accountancy_code_buy_intra' => array('label' => "ProductAccountancyBuyIntraCode", 'checked' => 0, 'enabled' => $isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 404),
283
-	$alias_product_perentity . '.accountancy_code_buy_export' => array('label' => "ProductAccountancyBuyExportCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 405),
278
+	$alias_product_perentity.'.accountancy_code_sell' => array('label' => "ProductAccountancySellCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 400),
279
+	$alias_product_perentity.'.accountancy_code_sell_intra' => array('label' => "ProductAccountancySellIntraCode", 'checked' => 0, 'enabled' => $isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 401),
280
+	$alias_product_perentity.'.accountancy_code_sell_export' => array('label' => "ProductAccountancySellExportCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 402),
281
+	$alias_product_perentity.'.accountancy_code_buy' => array('label' => "ProductAccountancyBuyCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 403),
282
+	$alias_product_perentity.'.accountancy_code_buy_intra' => array('label' => "ProductAccountancyBuyIntraCode", 'checked' => 0, 'enabled' => $isInEEC && !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 404),
283
+	$alias_product_perentity.'.accountancy_code_buy_export' => array('label' => "ProductAccountancyBuyExportCode", 'checked' => 0, 'enabled' => !getDolGlobalString('PRODUCT_DISABLE_ACCOUNTING'), 'position' => 405),
284 284
 	'p.datec' => array('label' => "DateCreation", 'checked' => 0, 'position' => 500),
285 285
 	'p.tms' => array('label' => "DateModificationShort", 'checked' => 0, 'position' => 500),
286 286
 	'p.tosell' => array('label' => $langs->transnoentitiesnoconv("Status").' ('.$langs->transnoentitiesnoconv("Sell").')', 'checked' => 1, 'position' => 1000),
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 
322 322
 $object->fields = dol_sort_array($object->fields, 'position');
323 323
 $arrayfields = dol_sort_array($arrayfields, 'position');
324
-'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';  // dol_sort_array looses type for Phan
324
+'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan
325 325
 
326 326
 // Security check
327 327
 if ($search_type == '0') {
@@ -493,10 +493,10 @@  discard block
 block discarded – undo
493 493
 
494 494
 $sql .= ' FROM '.MAIN_DB_PREFIX.'product as p';
495 495
 if (isModEnabled('workstation')) {
496
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "workstation_workstation as ws ON (p.fk_default_workstation = ws.rowid)";
496
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."workstation_workstation as ws ON (p.fk_default_workstation = ws.rowid)";
497 497
 }
498 498
 if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) {
499
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
499
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
500 500
 }
501 501
 if (!empty($extrafields->attributes[$object->table_element]['label']) && is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) {
502 502
 	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_extrafields as ef on (p.rowid = ef.fk_object)";
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 			if ($searchCategoryProductOperator == 0) {
596 596
 				$searchCategoryProductSqlList[] = " EXISTS (SELECT ck.fk_product FROM ".MAIN_DB_PREFIX."categorie_product as ck WHERE p.rowid = ck.fk_product AND ck.fk_categorie = ".((int) $searchCategoryProduct).")";
597 597
 			} else {
598
-				$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryProduct);
598
+				$listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryProduct);
599 599
 			}
600 600
 		}
601 601
 	}
@@ -625,22 +625,22 @@  discard block
 block discarded – undo
625 625
 	$sql .= " AND p.finished = ".((int) $search_finished);
626 626
 }
627 627
 if ($search_accountancy_code_sell) {
628
-	$sql .= natural_search($alias_product_perentity . '.accountancy_code_sell', clean_account($search_accountancy_code_sell));
628
+	$sql .= natural_search($alias_product_perentity.'.accountancy_code_sell', clean_account($search_accountancy_code_sell));
629 629
 }
630 630
 if ($search_accountancy_code_sell_intra) {
631
-	$sql .= natural_search($alias_product_perentity . '.accountancy_code_sell_intra', clean_account($search_accountancy_code_sell_intra));
631
+	$sql .= natural_search($alias_product_perentity.'.accountancy_code_sell_intra', clean_account($search_accountancy_code_sell_intra));
632 632
 }
633 633
 if ($search_accountancy_code_sell_export) {
634
-	$sql .= natural_search($alias_product_perentity . '.accountancy_code_sell_export', clean_account($search_accountancy_code_sell_export));
634
+	$sql .= natural_search($alias_product_perentity.'.accountancy_code_sell_export', clean_account($search_accountancy_code_sell_export));
635 635
 }
636 636
 if ($search_accountancy_code_buy) {
637
-	$sql .= natural_search($alias_product_perentity . '.accountancy_code_buy', clean_account($search_accountancy_code_buy));
637
+	$sql .= natural_search($alias_product_perentity.'.accountancy_code_buy', clean_account($search_accountancy_code_buy));
638 638
 }
639 639
 if ($search_accountancy_code_buy_intra) {
640
-	$sql .= natural_search($alias_product_perentity . '.accountancy_code_buy_intra', clean_account($search_accountancy_code_buy_intra));
640
+	$sql .= natural_search($alias_product_perentity.'.accountancy_code_buy_intra', clean_account($search_accountancy_code_buy_intra));
641 641
 }
642 642
 if ($search_accountancy_code_buy_export) {
643
-	$sql .= natural_search($alias_product_perentity . '.accountancy_code_buy_export', clean_account($search_accountancy_code_buy_export));
643
+	$sql .= natural_search($alias_product_perentity.'.accountancy_code_buy_export', clean_account($search_accountancy_code_buy_export));
644 644
 }
645 645
 if (getDolGlobalString('PRODUCT_USE_UNITS') && $search_units && $search_units != '-1') {
646 646
 	$sql .= natural_search('cu.rowid', $search_units);
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
 if (isModEnabled('category') && $user->hasRight($rightskey, 'creer')) {
873 873
 	$arrayofmassactions['preaffecttag'] = img_picto('', 'category', 'class="pictofixedwidth"').$langs->trans("AffectTag");
874 874
 }
875
-if (in_array($massaction, array('presend', 'predelete','preaffecttag', 'edit_extrafields', 'preupdateprice'))) {
875
+if (in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'edit_extrafields', 'preupdateprice'))) {
876 876
 	$arrayofmassactions = array();
877 877
 }
878 878
 if ($user->hasRight($rightskey, 'supprimer')) {
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
 }
986 986
 
987 987
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
988
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
988
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
989 989
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
990 990
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
991 991
 
@@ -1227,23 +1227,23 @@  discard block
 block discarded – undo
1227 1227
 	print '</td>';
1228 1228
 }
1229 1229
 // Accountancy code sell
1230
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['checked'])) {
1230
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['checked'])) {
1231 1231
 	print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_sell" value="'.dol_escape_htmltag($search_accountancy_code_sell).'"></td>';
1232 1232
 }
1233
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['checked'])) {
1233
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['checked'])) {
1234 1234
 	print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_sell_intra" value="'.dol_escape_htmltag($search_accountancy_code_sell_intra).'"></td>';
1235 1235
 }
1236
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['checked'])) {
1236
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['checked'])) {
1237 1237
 	print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_sell_export" value="'.dol_escape_htmltag($search_accountancy_code_sell_export).'"></td>';
1238 1238
 }
1239 1239
 // Accountancy code buy
1240
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['checked'])) {
1240
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['checked'])) {
1241 1241
 	print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_buy" value="'.dol_escape_htmltag($search_accountancy_code_buy).'"></td>';
1242 1242
 }
1243
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['checked'])) {
1243
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['checked'])) {
1244 1244
 	print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_buy_intra" value="'.dol_escape_htmltag($search_accountancy_code_buy_intra).'"></td>';
1245 1245
 }
1246
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['checked'])) {
1246
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['checked'])) {
1247 1247
 	print '<td class="liste_titre"><input class="flat maxwidth75" type="text" name="search_accountancy_code_buy_export" value="'.dol_escape_htmltag($search_accountancy_code_buy_export).'"></td>';
1248 1248
 }
1249 1249
 // Extra fields
@@ -1461,28 +1461,28 @@  discard block
 block discarded – undo
1461 1461
 	print_liste_field_titre($arrayfields['p.fk_state']['label'], $_SERVER["PHP_SELF"], "p.fk_state", "", $param, '', $sortfield, $sortorder);
1462 1462
 	$totalarray['nbfield']++;
1463 1463
 }
1464
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['checked'])) {
1465
-	print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_sell", "", $param, '', $sortfield, $sortorder);
1464
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['checked'])) {
1465
+	print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_sell", "", $param, '', $sortfield, $sortorder);
1466 1466
 	$totalarray['nbfield']++;
1467 1467
 }
1468
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['checked'])) {
1469
-	print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_sell_intra", "", $param, '', $sortfield, $sortorder);
1468
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['checked'])) {
1469
+	print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_sell_intra", "", $param, '', $sortfield, $sortorder);
1470 1470
 	$totalarray['nbfield']++;
1471 1471
 }
1472
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['checked'])) {
1473
-	print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_sell_export", "", $param, '', $sortfield, $sortorder);
1472
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['checked'])) {
1473
+	print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_sell_export", "", $param, '', $sortfield, $sortorder);
1474 1474
 	$totalarray['nbfield']++;
1475 1475
 }
1476
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['checked'])) {
1477
-	print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_buy", "", $param, '', $sortfield, $sortorder);
1476
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['checked'])) {
1477
+	print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_buy", "", $param, '', $sortfield, $sortorder);
1478 1478
 	$totalarray['nbfield']++;
1479 1479
 }
1480
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['checked'])) {
1481
-	print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_buy_intra", "", $param, '', $sortfield, $sortorder);
1480
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['checked'])) {
1481
+	print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_buy_intra", "", $param, '', $sortfield, $sortorder);
1482 1482
 	$totalarray['nbfield']++;
1483 1483
 }
1484
-if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['checked'])) {
1485
-	print_liste_field_titre($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity . ".accountancy_code_buy_export", "", $param, '', $sortfield, $sortorder);
1484
+if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['checked'])) {
1485
+	print_liste_field_titre($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['label'], $_SERVER["PHP_SELF"], $alias_product_perentity.".accountancy_code_buy_export", "", $param, '', $sortfield, $sortorder);
1486 1486
 	$totalarray['nbfield']++;
1487 1487
 }
1488 1488
 // Extra fields
@@ -1691,7 +1691,7 @@  discard block
 block discarded – undo
1691 1691
 				}
1692 1692
 			}
1693 1693
 
1694
-			print '<td class="center">' . $product_thumbnail_html . '</td>';
1694
+			print '<td class="center">'.$product_thumbnail_html.'</td>';
1695 1695
 			if (!$i) {
1696 1696
 				$totalarray['nbfield']++;
1697 1697
 			}
@@ -1958,10 +1958,10 @@  discard block
 block discarded – undo
1958 1958
 
1959 1959
 		// Multiprices
1960 1960
 		if (getDolGlobalString('PRODUIT_MULTIPRICES')) {
1961
-			if (! isset($productpricescache)) {
1961
+			if (!isset($productpricescache)) {
1962 1962
 				$productpricescache = array();
1963 1963
 			}
1964
-			if (! isset($productpricescache[$obj->rowid])) {
1964
+			if (!isset($productpricescache[$obj->rowid])) {
1965 1965
 				$productpricescache[$obj->rowid] = array();
1966 1966
 			}
1967 1967
 
@@ -2176,38 +2176,38 @@  discard block
 block discarded – undo
2176 2176
 			}
2177 2177
 		}
2178 2178
 		// Accountancy code sell
2179
-		if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell']['checked'])) {
2179
+		if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell']['checked'])) {
2180 2180
 			print '<td>'.length_accountg($product_static->accountancy_code_sell).'</td>';
2181 2181
 			if (!$i) {
2182 2182
 				$totalarray['nbfield']++;
2183 2183
 			}
2184 2184
 		}
2185
-		if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_intra']['checked'])) {
2185
+		if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_intra']['checked'])) {
2186 2186
 			print '<td>'.length_accountg($product_static->accountancy_code_sell_intra).'</td>';
2187 2187
 			if (!$i) {
2188 2188
 				$totalarray['nbfield']++;
2189 2189
 			}
2190 2190
 		}
2191
-		if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_sell_export']['checked'])) {
2191
+		if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_sell_export']['checked'])) {
2192 2192
 			print '<td>'.length_accountg($product_static->accountancy_code_sell_export).'</td>';
2193 2193
 			if (!$i) {
2194 2194
 				$totalarray['nbfield']++;
2195 2195
 			}
2196 2196
 		}
2197 2197
 		// Accountancy code buy
2198
-		if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy']['checked'])) {
2198
+		if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy']['checked'])) {
2199 2199
 			print '<td>'.length_accountg($product_static->accountancy_code_buy).'</td>';
2200 2200
 			if (!$i) {
2201 2201
 				$totalarray['nbfield']++;
2202 2202
 			}
2203 2203
 		}
2204
-		if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_intra']['checked'])) {
2204
+		if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_intra']['checked'])) {
2205 2205
 			print '<td>'.length_accountg($product_static->accountancy_code_buy_intra).'</td>';
2206 2206
 			if (!$i) {
2207 2207
 				$totalarray['nbfield']++;
2208 2208
 			}
2209 2209
 		}
2210
-		if (!empty($arrayfields[$alias_product_perentity . '.accountancy_code_buy_export']['checked'])) {
2210
+		if (!empty($arrayfields[$alias_product_perentity.'.accountancy_code_buy_export']['checked'])) {
2211 2211
 			print '<td>'.length_accountg($product_static->accountancy_code_buy_export).'</td>';
2212 2212
 			if (!$i) {
2213 2213
 				$totalarray['nbfield']++;
Please login to merge, or discard this patch.
htdocs/adherents/subscription.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
 if (empty($reshook) && $action == 'setsocid' && $permissiontoaddmember) {
181 181
 	$error = 0;
182 182
 	if (GETPOSTINT('socid') != $object->socid) {    // If link differs from currently in database
183
-		$sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "adherent";
184
-		$sql .= " WHERE fk_soc = " . ((int) GETPOSTINT('socid'));
183
+		$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."adherent";
184
+		$sql .= " WHERE fk_soc = ".((int) GETPOSTINT('socid'));
185 185
 		$resql = $db->query($sql);
186 186
 		if ($resql) {
187 187
 			$obj = $db->fetch_object($resql);
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 //include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
467 467
 
468 468
 
469
-if (! ($object->id > 0)) {
469
+if (!($object->id > 0)) {
470 470
 	$langs->load("errors");
471 471
 	print $langs->trans("ErrorRecordNotFound");
472 472
 }
@@ -977,7 +977,7 @@  discard block
 block discarded – undo
977 977
 	}
978 978
 	if (!$datefrom) {
979 979
 		// Guess the subscription start date
980
-		$datefrom = $object->datevalid; 	// By default, the subscription start date is the payment date
980
+		$datefrom = $object->datevalid; // By default, the subscription start date is the payment date
981 981
 		if (getDolGlobalString('MEMBER_SUBSCRIPTION_START_AFTER')) {
982 982
 			$datefrom = dol_time_plus_duree($now, (int) substr(getDolGlobalString('MEMBER_SUBSCRIPTION_START_AFTER'), 0, -1), substr(getDolGlobalString('MEMBER_SUBSCRIPTION_START_AFTER'), -1));
983 983
 		} elseif ($object->datefin > 0 && dol_time_plus_duree($object->datefin, $defaultdelay, $defaultdelayunit) > $now) {
@@ -1015,7 +1015,7 @@  discard block
 block discarded – undo
1015 1015
 
1016 1016
 	if ($adht->subscription) {
1017 1017
 		// Amount
1018
-		print '<tr><td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="subscription" size="6" value="'.(GETPOSTISSET('subscription') ? GETPOST('subscription') : price($adht->amount, 0, '', 0)).'"> '.$langs->trans("Currency".$conf->currency) .'</td></tr>';
1018
+		print '<tr><td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="subscription" size="6" value="'.(GETPOSTISSET('subscription') ? GETPOST('subscription') : price($adht->amount, 0, '', 0)).'"> '.$langs->trans("Currency".$conf->currency).'</td></tr>';
1019 1019
 
1020 1020
 		// Label
1021 1021
 		print '<tr><td>'.$langs->trans("Label").'</td>';
Please login to merge, or discard this patch.