Completed
Branch develop (c08a90)
by
unknown
18:22
created
htdocs/compta/prelevement/class/rejetprelevement.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
 			// Make a negative payment
179 179
 			// Amount must be an array (id of invoice -> amount)
180 180
 			$pai->amounts = array();
181
-			$pai->amounts[$facs[$i][0]] = price2num($amountrejected * -1);		// The payment must be negative because it is a refund
181
+			$pai->amounts[$facs[$i][0]] = price2num($amountrejected * -1); // The payment must be negative because it is a refund
182 182
 
183 183
 			$pai->datepaye = $date_rejet;
184 184
 			$pai->paiementid = 3; // type of payment: withdrawal
Please login to merge, or discard this patch.
htdocs/eventorganization/conferenceorbooth_list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
 // Default sort order (if not yet defined by previous GETPOST)
87 87
 if (!$sortfield) {
88
-	reset($object->fields);					// Reset is required to avoid key() to return null.
88
+	reset($object->fields); // Reset is required to avoid key() to return null.
89 89
 	$sortfield = "t.".key($object->fields); // Set here default search field. By default 1st field in definition.
90 90
 }
91 91
 if (!$sortorder) {
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
 	}
296 296
 
297 297
 	$help_url = "EN:Module_Projects|FR:Module_Projets|ES:Módulo_Proyectos";
298
-	$title = $langs->trans("Project") . ' - ' . $langs->trans("EventOrganizationConfOrBoothes") . ' - ' . $project->ref . ' ' . $project->name;
298
+	$title = $langs->trans("Project").' - '.$langs->trans("EventOrganizationConfOrBoothes").' - '.$project->ref.' '.$project->name;
299 299
 	if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/projectnameonly/', getDolGlobalString('MAIN_HTML_TITLE')) && $project->name) {
300
-		$title = $project->ref . ' ' . $project->name . ' - ' . $langs->trans("ListOfConferencesOrBooths");
300
+		$title = $project->ref.' '.$project->name.' - '.$langs->trans("ListOfConferencesOrBooths");
301 301
 	}
302 302
 }
303 303
 
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
 	} elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
920 920
 		$cssforfield .= ($cssforfield ? ' ' : '').'right';
921 921
 	}
922
-	$cssforfield = preg_replace('/small\s*/', '', $cssforfield);	// the 'small' css must not be used for the title label
922
+	$cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
923 923
 	if (!empty($arrayfields['t.'.$key]['checked'])) {
924 924
 		print getTitleFieldOfList($arrayfields['t.'.$key]['label'], 0, $_SERVER['PHP_SELF'], 't.'.$key, '', $param, ($cssforfield ? 'class="'.$cssforfield.'"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield.' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist']))."\n";
925 925
 		$totalarray['nbfield']++;
Please login to merge, or discard this patch.
htdocs/core/class/html.formsetup.class.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -164,12 +164,12 @@  discard block
 block discarded – undo
164 164
 			$out .= $this->htmlBeforeOutputForm;
165 165
 
166 166
 			if ($editMode) {
167
-				$out .= '<form ' . self::generateAttributesStringFromArray($this->formAttributes) . ' >';
167
+				$out .= '<form '.self::generateAttributesStringFromArray($this->formAttributes).' >';
168 168
 
169 169
 				// generate hidden values from $this->formHiddenInputs
170 170
 				if (!empty($this->formHiddenInputs) && is_array($this->formHiddenInputs)) {
171 171
 					foreach ($this->formHiddenInputs as $hiddenKey => $hiddenValue) {
172
-						$out .= '<input type="hidden" name="'.dol_escape_htmltag($hiddenKey).'" value="' . dol_escape_htmltag($hiddenValue) . '">';
172
+						$out .= '<input type="hidden" name="'.dol_escape_htmltag($hiddenKey).'" value="'.dol_escape_htmltag($hiddenValue).'">';
173 173
 					}
174 174
 				}
175 175
 			}
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 			} elseif ($editMode) {
189 189
 				$out .= '<div class="form-setup-button-container center">'; // Todo : remove .center by adding style to form-setup-button-container css class in all themes
190 190
 				$out .= $this->htmlOutputMoreButton;
191
-				$out .= '<input class="button button-save" type="submit" value="' . $this->langs->trans("Save") . '">'; // Todo fix dolibarr style for <button and use <button instead of input
191
+				$out .= '<input class="button button-save" type="submit" value="'.$this->langs->trans("Save").'">'; // Todo fix dolibarr style for <button and use <button instead of input
192 192
 				/*$out .= ' &nbsp;&nbsp; ';
193 193
 				$out .= '<a class="button button-cancel" type="submit" href="' . $this->formAttributes['action'] . '">'.$this->langs->trans('Cancel').'</a>';
194 194
 				*/
@@ -232,8 +232,8 @@  discard block
 block discarded – undo
232 232
 			if (empty($hideTitle)) {
233 233
 				$out .= '<thead>';
234 234
 				$out .= '<tr class="liste_titre">';
235
-				$out .= '	<td>' . $this->langs->trans("Parameter") . '</td>';
236
-				$out .= '	<td>' . $this->langs->trans("Value") . '</td>';
235
+				$out .= '	<td>'.$this->langs->trans("Parameter").'</td>';
236
+				$out .= '	<td>'.$this->langs->trans("Value").'</td>';
237 237
 				$out .= '</tr>';
238 238
 				$out .= '</thead>';
239 239
 			}
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
 		if (!empty($this->helpText)) {
826 826
 			return $this->helpText;
827 827
 		}
828
-		return (($this->langs->trans($this->confKey . 'Tooltip') != $this->confKey . 'Tooltip') ? $this->langs->trans($this->confKey . 'Tooltip') : '');
828
+		return (($this->langs->trans($this->confKey.'Tooltip') != $this->confKey.'Tooltip') ? $this->langs->trans($this->confKey.'Tooltip') : '');
829 829
 	}
830 830
 
831 831
 	/**
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
 
843 843
 		// if conf defined on entity 0, prepend a picto to indicate it will apply across all entities
844 844
 		if (isModEnabled('multicompany') && $this->entity == 0) {
845
-			$out = img_picto($this->langs->trans('AllEntities'), 'fa-globe-americas em088 opacityhigh') . '&nbsp;' . $out;
845
+			$out = img_picto($this->langs->trans('AllEntities'), 'fa-globe-americas em088 opacityhigh').'&nbsp;'.$out;
846 846
 		}
847 847
 
848 848
 		return $out;
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
 		} elseif ($this->type == 'html') {
891 891
 			$out .= $this->generateInputFieldHtml();
892 892
 		} elseif ($this->type == 'color') {
893
-			$out .=  $this->generateInputFieldColor();
893
+			$out .= $this->generateInputFieldColor();
894 894
 		} elseif ($this->type == 'yesno') {
895 895
 			if (!empty($conf->use_javascript_ajax)) {
896 896
 				$out .= ajax_constantonoff($this->confKey);
@@ -948,7 +948,7 @@  discard block
 block discarded – undo
948 948
 	 */
949 949
 	public function generateInputFieldTextarea()
950 950
 	{
951
-		$out = '<textarea class="flat" name="'.$this->confKey.'" id="'.$this->confKey.'" cols="50" rows="5" wrap="soft">' . "\n";
951
+		$out = '<textarea class="flat" name="'.$this->confKey.'" id="'.$this->confKey.'" cols="50" rows="5" wrap="soft">'."\n";
952 952
 		$out .= dol_htmlentities($this->fieldValue);
953 953
 		$out .= "</textarea>\n";
954 954
 		return $out;
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
 	public function generateInputFieldHtml()
963 963
 	{
964 964
 		global $conf;
965
-		require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
965
+		require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
966 966
 		$doleditor = new DolEditor($this->confKey, $this->fieldValue, '', 160, 'dolibarr_notes', '', false, false, isModEnabled('fckeditor'), ROWS_5, '90%');
967 967
 		return $doleditor->Create(1);
968 968
 	}
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
 
1001 1001
 		$out = '';
1002 1002
 		if (preg_match('/emailtemplate:/', $this->type)) {
1003
-			include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php';
1003
+			include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
1004 1004
 			$formmail = new FormMail($this->db);
1005 1005
 
1006 1006
 			$tmp = explode(':', $this->type);
@@ -1010,10 +1010,10 @@  discard block
 block discarded – undo
1010 1010
 				foreach ($formmail->lines_model as $modelMail) {
1011 1011
 					$moreonlabel = '';
1012 1012
 					if (!empty($arrayOfMessageName[$modelMail->label])) {
1013
-						$moreonlabel = ' <span class="opacitymedium">(' . $this->langs->trans("SeveralLangugeVariatFound") . ')</span>';
1013
+						$moreonlabel = ' <span class="opacitymedium">('.$this->langs->trans("SeveralLangugeVariatFound").')</span>';
1014 1014
 					}
1015 1015
 					// The 'label' is the key that is unique if we exclude the language
1016
-					$arrayOfMessageName[$modelMail->id] = $this->langs->trans(preg_replace('/\(|\)/', '', $modelMail->label)) . $moreonlabel;
1016
+					$arrayOfMessageName[$modelMail->id] = $this->langs->trans(preg_replace('/\(|\)/', '', $modelMail->label)).$moreonlabel;
1017 1017
 				}
1018 1018
 			}
1019 1019
 			$out .= $this->form->selectarray($this->confKey, $arrayOfMessageName, $this->fieldValue, 'None', 0, 0, '', 0, 0, 0, '', '', 1);
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
 			$min = $genhandler->length;
1070 1070
 			$max = $genhandler->length2;
1071 1071
 		}
1072
-		$out = '<input required="required" type="password" class="flat" id="'.$this->confKey.'" name="'.$this->confKey.'" value="'.(GETPOST($this->confKey, 'alpha') ? GETPOST($this->confKey, 'alpha') : $this->fieldValue).'" minlength="' . $min . '" maxlength="' . $max . '">';
1072
+		$out = '<input required="required" type="password" class="flat" id="'.$this->confKey.'" name="'.$this->confKey.'" value="'.(GETPOST($this->confKey, 'alpha') ? GETPOST($this->confKey, 'alpha') : $this->fieldValue).'" minlength="'.$min.'" maxlength="'.$max.'">';
1073 1073
 		return $out;
1074 1074
 	}
1075 1075
 
@@ -1187,9 +1187,9 @@  discard block
 block discarded – undo
1187 1187
 		} elseif ($this->type == 'selectUser') {
1188 1188
 			$out .= $this->generateOutputFieldSelectUser();
1189 1189
 		} elseif ($this->type == 'html') {
1190
-			$out .=  $this->fieldValue;
1190
+			$out .= $this->fieldValue;
1191 1191
 		} elseif ($this->type == 'color') {
1192
-			$out .=  $this->generateOutputFieldColor();
1192
+			$out .= $this->generateOutputFieldColor();
1193 1193
 		} elseif ($this->type == 'yesno') {
1194 1194
 			if (!empty($conf->use_javascript_ajax)) {
1195 1195
 				$out .= ajax_constantonoff($this->confKey, array(), $this->entity); // TODO possibility to add $input parameter
@@ -1202,7 +1202,7 @@  discard block
 block discarded – undo
1202 1202
 			}
1203 1203
 		} elseif (preg_match('/emailtemplate:/', $this->type)) {
1204 1204
 			if ($this->fieldValue > 0) {
1205
-				include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php';
1205
+				include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
1206 1206
 				$formmail = new FormMail($this->db);
1207 1207
 
1208 1208
 				$tmp = explode(':', $this->type);
@@ -1223,9 +1223,9 @@  discard block
 block discarded – undo
1223 1223
 			$ways = $c->print_all_ways(' &gt;&gt; ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
1224 1224
 			$toprint = array();
1225 1225
 			foreach ($ways as $way) {
1226
-				$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '</li>';
1226
+				$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"'.($c->color ? ' style="background: #'.$c->color.';"' : ' style="background: #bbb"').'>'.$way.'</li>';
1227 1227
 			}
1228
-			$out .= '<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">' . implode(' ', $toprint) . '</ul></div>';
1228
+			$out .= '<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">'.implode(' ', $toprint).'</ul></div>';
1229 1229
 		} elseif (preg_match('/thirdparty_type/', $this->type)) {
1230 1230
 			if ($this->fieldValue == 2) {
1231 1231
 				$out .= $this->langs->trans("Prospect");
@@ -1343,7 +1343,7 @@  discard block
 block discarded – undo
1343 1343
 		$outPut = '';
1344 1344
 		$user = new User($this->db);
1345 1345
 		$user->fetch($this->fieldValue);
1346
-		$outPut = $user->firstname . " "  . $user->lastname;
1346
+		$outPut = $user->firstname." ".$user->lastname;
1347 1347
 		return $outPut;
1348 1348
 	}
1349 1349
 
Please login to merge, or discard this patch.
htdocs/accountancy/supplier/list.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 $mesCasesCochees = GETPOST('toselect', 'array');
56 56
 
57 57
 // Search Getpost
58
-$search_lineid = GETPOST('search_lineid', 'alpha');		// Can be '> 100'
58
+$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100'
59 59
 $search_societe = GETPOST('search_societe', 'alpha');
60 60
 $search_ref = GETPOST('search_ref', 'alpha');
61 61
 $search_ref_supplier = GETPOST('search_ref_supplier', 'alpha');
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 $search_date_endday = GETPOSTINT('search_date_endday');
72 72
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
73 73
 $search_date_endyear = GETPOSTINT('search_date_endyear');
74
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);	// Use tzserver
74
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
75 75
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
76 76
 $search_country = GETPOST('search_country', 'alpha');
77 77
 $search_tvaintra = GETPOST('search_tvaintra', 'alpha');
@@ -274,20 +274,20 @@  discard block
 block discarded – undo
274 274
 $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as f";
275 275
 $sql .= " INNER JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = f.fk_soc";
276 276
 if (getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED')) {
277
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity);
277
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity);
278 278
 }
279 279
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_country as co ON co.rowid = s.fk_pays ";
280 280
 $sql .= " INNER JOIN ".MAIN_DB_PREFIX."facture_fourn_det as l ON f.rowid = l.fk_facture_fourn";
281 281
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = l.fk_product";
282 282
 if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) {
283
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
283
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
284 284
 }
285 285
 $alias_societe_perentity = !getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED') ? "s" : "spe";
286 286
 $alias_product_perentity = !getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED') ? "p" : "ppe";
287
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa  ON " . $alias_product_perentity . ".accountancy_code_buy = aa.account_number         AND aa.active = 1  AND aa.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa.entity = ".$conf->entity;
288
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa2 ON " . $alias_product_perentity . ".accountancy_code_buy_intra = aa2.account_number  AND aa2.active = 1 AND aa2.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa2.entity = ".$conf->entity;
289
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa3 ON " . $alias_product_perentity . ".accountancy_code_buy_export = aa3.account_number AND aa3.active = 1 AND aa3.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa3.entity = ".$conf->entity;
290
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa4 ON " . $alias_societe_perentity . ".accountancy_code_buy = aa4.account_number        AND aa4.active = 1 AND aa4.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa4.entity = ".$conf->entity;
287
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa  ON ".$alias_product_perentity.".accountancy_code_buy = aa.account_number         AND aa.active = 1  AND aa.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa.entity = ".$conf->entity;
288
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa2 ON ".$alias_product_perentity.".accountancy_code_buy_intra = aa2.account_number  AND aa2.active = 1 AND aa2.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa2.entity = ".$conf->entity;
289
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa3 ON ".$alias_product_perentity.".accountancy_code_buy_export = aa3.account_number AND aa3.active = 1 AND aa3.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa3.entity = ".$conf->entity;
290
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa4 ON ".$alias_societe_perentity.".accountancy_code_buy = aa4.account_number        AND aa4.active = 1 AND aa4.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa4.entity = ".$conf->entity;
291 291
 $sql .= " WHERE f.fk_statut > 0 AND l.fk_code_ventilation <= 0";
292 292
 $sql .= " AND l.product_type <= 2";
293 293
 // Add search filter like
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 		$thirdpartystatic->email = $objp->email;
582 582
 		$thirdpartystatic->country_code = $objp->country_code;
583 583
 		$thirdpartystatic->tva_intra = $objp->tva_intra;
584
-		$thirdpartystatic->code_compta_product = $objp->company_code_buy;		// The accounting account for product stored on thirdparty object (for level3 suggestion)
584
+		$thirdpartystatic->code_compta_product = $objp->company_code_buy; // The accounting account for product stored on thirdparty object (for level3 suggestion)
585 585
 
586 586
 		$product_static->ref = $objp->product_ref;
587 587
 		$product_static->id = $objp->product_id;
Please login to merge, or discard this patch.
htdocs/accountancy/supplier/lines.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 $changeaccount = GETPOST('changeaccount');
47 47
 // Search Getpost
48 48
 $search_societe = GETPOST('search_societe', 'alpha');
49
-$search_lineid = GETPOST('search_lineid', 'alpha');		// Can be '> 100'
49
+$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100'
50 50
 $search_ref = GETPOST('search_ref', 'alpha');
51 51
 $search_invoice = GETPOST('search_invoice', 'alpha');
52 52
 //$search_ref_supplier = GETPOST('search_ref_supplier', 'alpha');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 $search_date_endday = GETPOSTINT('search_date_endday');
62 62
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
63 63
 $search_date_endyear = GETPOSTINT('search_date_endyear');
64
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);	// Use tzserver
64
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
65 65
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
66 66
 $search_country = GETPOST('search_country', 'alpha');
67 67
 $search_tvaintra = GETPOST('search_tvaintra', 'alpha');
@@ -228,13 +228,13 @@  discard block
 block discarded – undo
228 228
 $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn_det as l";
229 229
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = l.fk_product";
230 230
 if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) {
231
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
231
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
232 232
 }
233 233
 $sql .= " INNER JOIN ".MAIN_DB_PREFIX."accounting_account as aa ON aa.rowid = l.fk_code_ventilation";
234 234
 $sql .= " INNER JOIN ".MAIN_DB_PREFIX."facture_fourn as f ON f.rowid = l.fk_facture_fourn";
235 235
 $sql .= " INNER JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = f.fk_soc";
236 236
 if (getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED')) {
237
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity);
237
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity);
238 238
 }
239 239
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_country as co ON co.rowid = s.fk_pays ";
240 240
 $sql .= " WHERE f.rowid = l.fk_facture_fourn and f.fk_statut >= 1 AND l.fk_code_ventilation <> 0 ";
Please login to merge, or discard this patch.
htdocs/accountancy/expensereport/lines.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 $account_parent = GETPOST('account_parent');
43 43
 $changeaccount = GETPOST('changeaccount');
44 44
 // Search Getpost
45
-$search_lineid = GETPOST('search_lineid', 'alpha');	// Can be '> 100'
45
+$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100'
46 46
 $search_login = GETPOST('search_login', 'alpha');
47 47
 $search_expensereport = GETPOST('search_expensereport', 'alpha');
48 48
 $search_label = GETPOST('search_label', 'alpha');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 $search_date_endday = GETPOSTINT('search_date_endday');
57 57
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
58 58
 $search_date_endyear = GETPOSTINT('search_date_endyear');
59
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);	// Use tzserver
59
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
60 60
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
61 61
 
62 62
 // Load variable for pagination
Please login to merge, or discard this patch.
htdocs/accountancy/customer/list.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
 // Search Getpost
57 57
 $search_societe = GETPOST('search_societe', 'alpha');
58
-$search_lineid = GETPOST('search_lineid', 'alpha');		// Can be '> 100'
58
+$search_lineid = GETPOST('search_lineid', 'alpha'); // Can be '> 100'
59 59
 $search_ref = GETPOST('search_ref', 'alpha');
60 60
 $search_invoice = GETPOST('search_invoice', 'alpha');
61 61
 $search_label = GETPOST('search_label', 'alpha');
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 $search_date_endday = GETPOSTINT('search_date_endday');
70 70
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
71 71
 $search_date_endyear = GETPOSTINT('search_date_endyear');
72
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);	// Use tzserver
72
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
73 73
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
74 74
 $search_country = GETPOST('search_country', 'alpha');
75 75
 $search_tvaintra = GETPOST('search_tvaintra', 'alpha');
@@ -272,20 +272,20 @@  discard block
 block discarded – undo
272 272
 $sql .= " FROM ".MAIN_DB_PREFIX."facture as f";
273 273
 $sql .= " INNER JOIN ".MAIN_DB_PREFIX."societe as s ON s.rowid = f.fk_soc";
274 274
 if (getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED')) {
275
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = " . ((int) $conf->entity);
275
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_perentity as spe ON spe.fk_soc = s.rowid AND spe.entity = ".((int) $conf->entity);
276 276
 }
277 277
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_country as co ON co.rowid = s.fk_pays ";
278 278
 $sql .= " INNER JOIN ".MAIN_DB_PREFIX."facturedet as l ON f.rowid = l.fk_facture";
279 279
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON p.rowid = l.fk_product";
280 280
 if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) {
281
-	$sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity);
281
+	$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = ".((int) $conf->entity);
282 282
 }
283 283
 $alias_societe_perentity = !getDolGlobalString('MAIN_COMPANY_PERENTITY_SHARED') ? "s" : "spe";
284 284
 $alias_product_perentity = !getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED') ? "p" : "ppe";
285
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa  ON " . $alias_product_perentity . ".accountancy_code_sell = aa.account_number         AND aa.active = 1  AND aa.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa.entity = ".$conf->entity;
286
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa2 ON " . $alias_product_perentity . ".accountancy_code_sell_intra = aa2.account_number  AND aa2.active = 1 AND aa2.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa2.entity = ".$conf->entity;
287
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa3 ON " . $alias_product_perentity . ".accountancy_code_sell_export = aa3.account_number AND aa3.active = 1 AND aa3.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa3.entity = ".$conf->entity;
288
-$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa4 ON " . $alias_societe_perentity . ".accountancy_code_sell = aa4.account_number        AND aa4.active = 1 AND aa4.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa4.entity = ".$conf->entity;
285
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa  ON ".$alias_product_perentity.".accountancy_code_sell = aa.account_number         AND aa.active = 1  AND aa.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa.entity = ".$conf->entity;
286
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa2 ON ".$alias_product_perentity.".accountancy_code_sell_intra = aa2.account_number  AND aa2.active = 1 AND aa2.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa2.entity = ".$conf->entity;
287
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa3 ON ".$alias_product_perentity.".accountancy_code_sell_export = aa3.account_number AND aa3.active = 1 AND aa3.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa3.entity = ".$conf->entity;
288
+$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."accounting_account as aa4 ON ".$alias_societe_perentity.".accountancy_code_sell = aa4.account_number        AND aa4.active = 1 AND aa4.fk_pcg_version = '".$db->escape($chartaccountcode)."' AND aa4.entity = ".$conf->entity;
289 289
 
290 290
 $sql .= " WHERE f.fk_statut > 0 AND l.fk_code_ventilation <= 0";
291 291
 $sql .= " AND l.product_type <= 2";
@@ -564,14 +564,14 @@  discard block
 block discarded – undo
564 564
 		$thirdpartystatic->client = $objp->client;
565 565
 		$thirdpartystatic->fournisseur = $objp->fournisseur;
566 566
 		$thirdpartystatic->code_client = $objp->code_client;
567
-		$thirdpartystatic->code_compta = $objp->code_compta_client;		// For backward compatibility
567
+		$thirdpartystatic->code_compta = $objp->code_compta_client; // For backward compatibility
568 568
 		$thirdpartystatic->code_compta_client = $objp->code_compta_client;
569 569
 		$thirdpartystatic->code_fournisseur = $objp->code_fournisseur;
570 570
 		$thirdpartystatic->code_compta_fournisseur = $objp->code_compta_fournisseur;
571 571
 		$thirdpartystatic->email = $objp->email;
572 572
 		$thirdpartystatic->country_code = $objp->country_code;
573 573
 		$thirdpartystatic->tva_intra = $objp->tva_intra;
574
-		$thirdpartystatic->code_compta_product = $objp->company_code_sell;		// The accounting account for product stored on thirdparty object (for level3 suggestion)
574
+		$thirdpartystatic->code_compta_product = $objp->company_code_sell; // The accounting account for product stored on thirdparty object (for level3 suggestion)
575 575
 
576 576
 		$product_static->ref = $objp->product_ref;
577 577
 		$product_static->id = $objp->product_id;
Please login to merge, or discard this patch.
htdocs/core/tpl/advtarget.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 } else {
113 113
 	$cust_code_str = null;
114 114
 }
115
-print '</td><td><input type="text" name="cust_code"'.($cust_code_str!=null?' value="'.$cust_code_str:'').'"/></td><td>'."\n";
115
+print '</td><td><input type="text" name="cust_code"'.($cust_code_str != null ? ' value="'.$cust_code_str : '').'"/></td><td>'."\n";
116 116
 print $form->textwithpicto('', $langs->trans("AdvTgtSearchTextHelp"), 1, 'help');
117 117
 print '</td></tr>'."\n";
118 118
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	$socstatic = new Societe($db);
289 289
 	$elementtype = $socstatic->table_element;
290 290
 	// fetch optionals attributes and labels
291
-	require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php';
291
+	require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
292 292
 	$extrafields = new ExtraFields($db);
293 293
 	$extrafields->fetch_name_optionals_label($elementtype);
294 294
 	foreach ($extrafields->attributes[$elementtype]['label'] as $key => $val) {
Please login to merge, or discard this patch.
htdocs/expensereport/list.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 
83 83
 
84 84
 // Load variable for pagination
85
-$limit 		= GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
85
+$limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
86 86
 $sortfield	= GETPOST('sortfield', 'aZ09comma');
87 87
 $sortorder	= GETPOST('sortorder', 'aZ09comma');
88
-$page 		= GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOSTINT("page");
88
+$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOSTINT("page");
89 89
 if (empty($page) || $page == -1) {
90 90
 	$page = 0;
91 91
 }     // If $page is not defined, or '' or -1
@@ -100,34 +100,34 @@  discard block
 block discarded – undo
100 100
 }
101 101
 
102 102
 
103
-$sall			= trim((GETPOST('search_all', 'alphanohtml') != '') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
103
+$sall = trim((GETPOST('search_all', 'alphanohtml') != '') ? GETPOST('search_all', 'alphanohtml') : GETPOST('sall', 'alphanohtml'));
104 104
 
105 105
 $search_ref			= GETPOST('search_ref', 'alpha');
106 106
 $search_user		= GETPOST('search_user', 'intcomma');
107
-$search_amount_ht	= GETPOST('search_amount_ht', 'alpha');
107
+$search_amount_ht = GETPOST('search_amount_ht', 'alpha');
108 108
 $search_amount_vat	= GETPOST('search_amount_vat', 'alpha');
109 109
 $search_amount_ttc	= GETPOST('search_amount_ttc', 'alpha');
110
-$search_status		= (GETPOST('search_status', 'intcomma') != '' ? GETPOST('search_status', 'intcomma') : GETPOST('statut', 'intcomma'));
110
+$search_status = (GETPOST('search_status', 'intcomma') != '' ? GETPOST('search_status', 'intcomma') : GETPOST('statut', 'intcomma'));
111 111
 
112
-$search_date_startday		= GETPOSTINT('search_date_startday');
112
+$search_date_startday = GETPOSTINT('search_date_startday');
113 113
 $search_date_startmonth		= GETPOSTINT('search_date_startmonth');
114
-$search_date_startyear		= GETPOSTINT('search_date_startyear');
114
+$search_date_startyear = GETPOSTINT('search_date_startyear');
115 115
 $search_date_startendday	= GETPOSTINT('search_date_startendday');
116
-$search_date_startendmonth	= GETPOSTINT('search_date_startendmonth');
117
-$search_date_startendyear	= GETPOSTINT('search_date_startendyear');
118
-$search_date_start			= dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);	// Use tzserver
116
+$search_date_startendmonth = GETPOSTINT('search_date_startendmonth');
117
+$search_date_startendyear = GETPOSTINT('search_date_startendyear');
118
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
119 119
 $search_date_startend		= dol_mktime(23, 59, 59, $search_date_startendmonth, $search_date_startendday, $search_date_startendyear);
120 120
 
121 121
 $search_date_endday			= GETPOSTINT('search_date_endday');
122 122
 $search_date_endmonth		= GETPOSTINT('search_date_endmonth');
123 123
 $search_date_endyear		= GETPOSTINT('search_date_endyear');
124
-$search_date_endendday		= GETPOSTINT('search_date_endendday');
124
+$search_date_endendday = GETPOSTINT('search_date_endendday');
125 125
 $search_date_endendmonth	= GETPOSTINT('search_date_endendmonth');
126 126
 $search_date_endendyear		= GETPOSTINT('search_date_endendyear');
127
-$search_date_end			= dol_mktime(0, 0, 0, $search_date_endmonth, $search_date_endday, $search_date_endyear);	// Use tzserver
128
-$search_date_endend			= dol_mktime(23, 59, 59, $search_date_endendmonth, $search_date_endendday, $search_date_endendyear);
127
+$search_date_end = dol_mktime(0, 0, 0, $search_date_endmonth, $search_date_endday, $search_date_endyear); // Use tzserver
128
+$search_date_endend = dol_mktime(23, 59, 59, $search_date_endendmonth, $search_date_endendday, $search_date_endendyear);
129 129
 
130
-$optioncss    = GETPOST('optioncss', 'alpha');
130
+$optioncss = GETPOST('optioncss', 'alpha');
131 131
 
132 132
 if ($search_status == '') {
133 133
 	$search_status = -1;
Please login to merge, or discard this patch.