Completed
Branch develop (ff0eea)
by
unknown
12:43
created
htdocs/bom/class/api_boms.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -476,7 +476,7 @@
 block discarded – undo
476 476
 			return array(
477 477
 				'success' => array(
478 478
 					'code' => 200,
479
-					'message' => 'line ' .$lineid. ' deleted'
479
+					'message' => 'line '.$lineid.' deleted'
480 480
 				)
481 481
 			);
482 482
 		} else {
Please login to merge, or discard this patch.
htdocs/fourn/facture/paiement.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -310,14 +310,14 @@  discard block
 block discarded – undo
310 310
 
311 311
 			// Creation of payment line
312 312
 			$paiement = new PaiementFourn($db);
313
-			$paiement->datepaye     = $datepaye;
313
+			$paiement->datepaye = $datepaye;
314 314
 
315 315
 			$correctedAmounts = [];
316 316
 			foreach ($amounts as $key => $value) {
317 317
 				$correctedAmounts[$key] = (float) $value;
318 318
 			}
319 319
 
320
-			$paiement->amounts      = $correctedAmounts; // Array of amounts
320
+			$paiement->amounts = $correctedAmounts; // Array of amounts
321 321
 			$paiement->multicurrency_amounts = $multicurrency_amounts;
322 322
 			$paiement->multicurrency_code = $multicurrency_code; // Array with all currency of payments dispatching
323 323
 			$paiement->multicurrency_tx = $multicurrency_tx; // Array with all currency tx of payments dispatching
@@ -608,8 +608,8 @@  discard block
 block discarded – undo
608 608
 						$total = 0;
609 609
 						$total_ttc = 0;
610 610
 						$totalrecu = 0;
611
-						$totalrecucreditnote = 0;	// PHP Warning:  Undefined variable $totalrecucreditnote
612
-						$totalrecudeposits = 0;		// PHP Warning:  Undefined variable $totalrecudeposits
611
+						$totalrecucreditnote = 0; // PHP Warning:  Undefined variable $totalrecucreditnote
612
+						$totalrecudeposits = 0; // PHP Warning:  Undefined variable $totalrecudeposits
613 613
 						while ($i < $num) {
614 614
 							$objp = $db->fetch_object($resql);
615 615
 
Please login to merge, or discard this patch.
htdocs/compta/facture/list.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
 			if ($searchCategoryProductOperator == 0) {
894 894
 				$searchCategoryProductSqlList[] = " EXISTS (SELECT ck.fk_product FROM ".MAIN_DB_PREFIX."categorie_product as ck, ".MAIN_DB_PREFIX."facturedet as fd WHERE fd.fk_facture = f.rowid AND fd.fk_product = ck.fk_product AND ck.fk_categorie = ".((int) $searchCategoryProduct).")";
895 895
 			} else {
896
-				$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryProduct);
896
+				$listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryProduct);
897 897
 			}
898 898
 		}
899 899
 	}
@@ -923,7 +923,7 @@  discard block
 block discarded – undo
923 923
 			if ($searchCategoryCustomerOperator == 0) {
924 924
 				$searchCategoryCustomerSqlList[] = " EXISTS (SELECT ck.fk_soc FROM ".MAIN_DB_PREFIX."categorie_societe as ck WHERE s.rowid = ck.fk_soc AND ck.fk_categorie = ".((int) $searchCategoryCustomer).")";
925 925
 			} else {
926
-				$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryCustomer);
926
+				$listofcategoryid .= ($listofcategoryid ? ', ' : '').((int) $searchCategoryCustomer);
927 927
 			}
928 928
 		}
929 929
 	}
@@ -1905,8 +1905,8 @@  discard block
 block discarded – undo
1905 1905
 	$totalarray['val'] = array();
1906 1906
 	$totalarray['val']['f.total_ht'] = 0;
1907 1907
 	$totalarray['val']['f.total_tva'] = 0;
1908
-	$totalarray['val']['f.total_localtax1']=0;
1909
-	$totalarray['val']['f.total_localtax1']=0;
1908
+	$totalarray['val']['f.total_localtax1'] = 0;
1909
+	$totalarray['val']['f.total_localtax1'] = 0;
1910 1910
 	$totalarray['val']['f.total_ttc'] = 0;
1911 1911
 	$totalarray['val']['totalam'] = 0;
1912 1912
 	$totalarray['val']['rtp'] = 0;
@@ -1934,7 +1934,7 @@  discard block
 block discarded – undo
1934 1934
 
1935 1935
 		$facturestatic->id = $obj->id;
1936 1936
 		$facturestatic->ref = $obj->ref;
1937
-		$facturestatic->ref_client = $obj->ref_client;		// deprecated
1937
+		$facturestatic->ref_client = $obj->ref_client; // deprecated
1938 1938
 		$facturestatic->ref_customer = $obj->ref_client;
1939 1939
 		$facturestatic->type = $obj->type;
1940 1940
 		$facturestatic->subtype = $obj->subtype;
@@ -1946,7 +1946,7 @@  discard block
 block discarded – undo
1946 1946
 		$facturestatic->multicurrency_total_ht = $obj->multicurrency_total_ht;
1947 1947
 		$facturestatic->multicurrency_total_tva = $obj->multicurrency_total_vat;
1948 1948
 		$facturestatic->multicurrency_total_ttc = $obj->multicurrency_total_ttc;
1949
-		$facturestatic->statut = $obj->fk_statut;	// deprecated
1949
+		$facturestatic->statut = $obj->fk_statut; // deprecated
1950 1950
 		$facturestatic->status = $obj->fk_statut;
1951 1951
 		$facturestatic->close_code = $obj->close_code;
1952 1952
 		$facturestatic->total_ttc = $obj->total_ttc;
@@ -2422,7 +2422,7 @@  discard block
 block discarded – undo
2422 2422
 			$userstatic->lastname = $obj->lastname;
2423 2423
 			$userstatic->firstname = $obj->firstname;
2424 2424
 			$userstatic->email = $obj->user_email;
2425
-			$userstatic->statut = $obj->user_statut;	// deprecated
2425
+			$userstatic->statut = $obj->user_statut; // deprecated
2426 2426
 			$userstatic->status = $obj->user_statut;
2427 2427
 			$userstatic->entity = $obj->entity;
2428 2428
 			$userstatic->photo = $obj->photo;
@@ -2465,7 +2465,7 @@  discard block
 block discarded – undo
2465 2465
 							$userstatic->lastname = $val['lastname'];
2466 2466
 							$userstatic->firstname = $val['firstname'];
2467 2467
 							$userstatic->email = $val['email'];
2468
-							$userstatic->statut = $val['statut'];	// deprecated
2468
+							$userstatic->statut = $val['statut']; // deprecated
2469 2469
 							$userstatic->status = $val['statut'];
2470 2470
 							$userstatic->entity = $val['entity'];
2471 2471
 							$userstatic->photo = $val['photo'];
Please login to merge, or discard this patch.
htdocs/comm/mailing/card.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -292,15 +292,15 @@  discard block
 block discarded – undo
292 292
 								$substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN'), 2);
293 293
 								$substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN'), 2);
294 294
 							} else {
295
-								$substitutionarray['__SECUREKEYPAYMENT_MEMBER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'member'.$obj->source_id, 2);
296
-								$substitutionarray['__SECUREKEYPAYMENT_DONATION__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'donation'.$obj->source_id, 2);
297
-								$substitutionarray['__SECUREKEYPAYMENT_ORDER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'order'.$obj->source_id, 2);
298
-								$substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'invoice'.$obj->source_id, 2);
299
-								$substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN') . 'contractline'.$obj->source_id, 2);
295
+								$substitutionarray['__SECUREKEYPAYMENT_MEMBER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'member'.$obj->source_id, 2);
296
+								$substitutionarray['__SECUREKEYPAYMENT_DONATION__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'donation'.$obj->source_id, 2);
297
+								$substitutionarray['__SECUREKEYPAYMENT_ORDER__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'order'.$obj->source_id, 2);
298
+								$substitutionarray['__SECUREKEYPAYMENT_INVOICE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'invoice'.$obj->source_id, 2);
299
+								$substitutionarray['__SECUREKEYPAYMENT_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYMENT_SECURITY_TOKEN').'contractline'.$obj->source_id, 2);
300 300
 							}
301 301
 						}
302 302
 						if (getDolGlobalString('MEMBER_ENABLE_PUBLIC')) {
303
-							$substitutionarray['__PUBLICLINK_NEWMEMBERFORM__'] = '<a target="_blank" rel="noopener noreferrer" href="'.DOL_MAIN_URL_ROOT.'/public/members/new.php'.((isModEnabled('multicompany')) ? '?entity='.$conf->entity : '').'">'.$langs->trans('BlankSubscriptionForm'). '</a>';
303
+							$substitutionarray['__PUBLICLINK_NEWMEMBERFORM__'] = '<a target="_blank" rel="noopener noreferrer" href="'.DOL_MAIN_URL_ROOT.'/public/members/new.php'.((isModEnabled('multicompany')) ? '?entity='.$conf->entity : '').'">'.$langs->trans('BlankSubscriptionForm').'</a>';
304 304
 						}
305 305
 						/* For backward compatibility, deprecated */
306 306
 						if (isModEnabled('paypal') && getDolGlobalString('PAYPAL_SECURITY_TOKEN')) {
@@ -309,25 +309,25 @@  discard block
 block discarded – undo
309 309
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
310 310
 								$substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), 2);
311 311
 							} else {
312
-								$substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'membersubscription'.$obj->source_id, 2);
312
+								$substitutionarray['__SECUREKEYPAYPAL_MEMBER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'membersubscription'.$obj->source_id, 2);
313 313
 							}
314 314
 
315 315
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
316 316
 								$substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), 2);
317 317
 							} else {
318
-								$substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'order'.$obj->source_id, 2);
318
+								$substitutionarray['__SECUREKEYPAYPAL_ORDER__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'order'.$obj->source_id, 2);
319 319
 							}
320 320
 
321 321
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
322 322
 								$substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), 2);
323 323
 							} else {
324
-								$substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'invoice'.$obj->source_id, 2);
324
+								$substitutionarray['__SECUREKEYPAYPAL_INVOICE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'invoice'.$obj->source_id, 2);
325 325
 							}
326 326
 
327 327
 							if (!getDolGlobalString('PAYPAL_SECURITY_TOKEN_UNIQUE')) {
328 328
 								$substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN'), 2);
329 329
 							} else {
330
-								$substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN') . 'contractline'.$obj->source_id, 2);
330
+								$substitutionarray['__SECUREKEYPAYPAL_CONTRACTLINE__'] = dol_hash(getDolGlobalString('PAYPAL_SECURITY_TOKEN').'contractline'.$obj->source_id, 2);
331 331
 							}
332 332
 						}
333 333
 						//$substitutionisok=true;
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
 	}
469 469
 
470 470
 	// Action send test emailing
471
-	if ($action == 'send' && ! $cancel) {
471
+	if ($action == 'send' && !$cancel) {
472 472
 		$error = 0;
473 473
 
474 474
 		$upload_dir = $conf->mailing->dir_output."/".get_exdir($object->id, 2, 0, 1, $object, 'mailing');
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
 	if ($action == 'add') {
547 547
 		$mesgs = array();
548 548
 
549
-		$object->messtype       = (string) GETPOST("messtype");
549
+		$object->messtype = (string) GETPOST("messtype");
550 550
 		if ($object->messtype == 'sms') {
551 551
 			$object->email_from     = (string) GETPOST("from_phone", 'alphawithlgt'); // Must allow 'name <email>'
552 552
 		} else {
@@ -883,7 +883,7 @@  discard block
 block discarded – undo
883 883
 			print $form->formconfirm($_SERVER["PHP_SELF"]."?id=".$object->id.(!empty($urlfrom) ? '&urlfrom='.urlencode($urlfrom) : ''), $langs->trans("DeleteMailing"), $langs->trans("ConfirmDeleteMailing"), "confirm_delete", '', '', 1);
884 884
 		}
885 885
 
886
-		if ($action != 'edit' && $action != 'edittxt' &&$action != 'edithtml') {
886
+		if ($action != 'edit' && $action != 'edittxt' && $action != 'edithtml') {
887 887
 			print dol_get_fiche_head($head, 'card', $langs->trans("Mailing"), -1, 'email');
888 888
 
889 889
 			/*
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
 				$formmail = new FormMail($db);
1191 1191
 				$formmail->fromname = $object->email_from;
1192 1192
 				$formmail->frommail = $object->email_from;
1193
-				$formmail->withsubstit =0;
1193
+				$formmail->withsubstit = 0;
1194 1194
 				$formmail->withfrom = 0;
1195 1195
 				$formmail->withto = $user->email ? $user->email : 1;
1196 1196
 				$formmail->withtocc = 0;
@@ -1463,7 +1463,7 @@  discard block
 block discarded – undo
1463 1463
 				$maxfilesizearray = getMaxFileSizeArray();
1464 1464
 				$maxmin = $maxfilesizearray['maxmin'];
1465 1465
 				if ($maxmin > 0) {
1466
-					$out .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
1466
+					$out .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
1467 1467
 				}
1468 1468
 				$out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="'.$langs->trans("Upload").'" />';
1469 1469
 				$out .= ' ';
Please login to merge, or discard this patch.
htdocs/don/stats/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
 dol_mkdir($dir);
75 75
 
76
-$stats = new DonationStats($db, $socid, '',  ($userid > 0 ? $userid : 0), ($typent_id > 0 ? $typent_id : 0), ($status > 0 ? $status : 4));
76
+$stats = new DonationStats($db, $socid, '', ($userid > 0 ? $userid : 0), ($typent_id > 0 ? $typent_id : 0), ($status > 0 ? $status : 4));
77 77
 
78 78
 if (is_array($custcats) && !empty($custcats)) {
79 79
 	$stats->from .= ' LEFT JOIN '.MAIN_DB_PREFIX.'categorie_societe as cat ON (d.fk_soc = cat.fk_soc)';
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
 $mesg = $px2->isGraphKo();
120 120
 if (!$mesg) {
121 121
 	$px2->SetData($data);
122
-	$i=$startyear;$legend=array();
122
+	$i = $startyear; $legend = array();
123 123
 	while ($i <= $endyear) {
124
-		$legend[]=$i;
124
+		$legend[] = $i;
125 125
 		$i++;
126 126
 	}
127 127
 	$px2->SetLegend($legend);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	$px2->SetYLabel($langs->trans("Amount"));
133 133
 	$px2->SetShading(3);
134 134
 	$px2->SetHorizTickIncrement(1);
135
-	$px2->mode='depth';
135
+	$px2->mode = 'depth';
136 136
 	$px2->SetTitle($langs->trans("AmountTotal"));
137 137
 
138 138
 	$px2->draw($filenameamount, $fileurlamount);
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 	print '<td class="right">'.$val['nb'].'</td>';
296 296
 	print '<td class="right opacitylow" style="'.($greennb ? 'color: green;' : 'color: red;').'">'.(!empty($val['nb_diff']) && $val['nb_diff'] < 0 ? '' : '+').round(!empty($val['nb_diff']) ? $val['nb_diff'] : 0).'%</td>';
297 297
 	print '<td class="right"><span class="amount">'.price(price2num($val['total'], 'MT'), 1).'</span></td>';
298
-	print '<td class="right opacitylow" style="'.($greentotal ? 'color: green;' : 'color: red;').'">'.( !empty($val['total_diff']) && $val['total_diff'] < 0 ? '' : '+').round(!empty($val['total_diff']) ? $val['total_diff'] : 0).'%</td>';
298
+	print '<td class="right opacitylow" style="'.($greentotal ? 'color: green;' : 'color: red;').'">'.(!empty($val['total_diff']) && $val['total_diff'] < 0 ? '' : '+').round(!empty($val['total_diff']) ? $val['total_diff'] : 0).'%</td>';
299 299
 	print '<td class="right"><span class="amount">'.price(price2num($val['avg'], 'MT'), 1).'</span></td>';
300 300
 	print '<td class="right opacitylow" style="'.($greenavg ? 'color: green;' : 'color: red;').'">'.(!empty($val['avg_diff']) && $val['avg_diff'] < 0 ? '' : '+').round(!empty($val['avg_diff']) ? $val['avg_diff'] : 0).'%</td>';
301 301
 	print '</tr>';
Please login to merge, or discard this patch.
htdocs/fichinter/class/fichinterrec.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -306,13 +306,13 @@  discard block
 block discarded – undo
306 306
 
307 307
 				$this->id = $rowid;
308 308
 				$this->title = $obj->title;
309
-				$this->ref                  = $obj->title;
309
+				$this->ref = $obj->title;
310 310
 				$this->description = $obj->description;
311 311
 				$this->datec				= $obj->datec;
312 312
 				$this->duration = $obj->duree;
313 313
 				$this->socid				= $obj->fk_soc;
314 314
 				$this->status = 0;
315
-				$this->statut = 0;	// deprecated
315
+				$this->statut = 0; // deprecated
316 316
 				$this->fk_project			= $obj->fk_projet;
317 317
 				$this->fk_contrat			= $obj->fk_contrat;
318 318
 				$this->note_private = $obj->note_private;
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
 			$result .= $link.$this->ref.$linkend;
659 659
 		}
660 660
 		global $action;
661
-		$hookmanager->initHooks(array($this->element . 'dao'));
661
+		$hookmanager->initHooks(array($this->element.'dao'));
662 662
 		$parameters = array('id'=>$this->id, 'getnomurl' => &$result);
663 663
 		$reshook = $hookmanager->executeHooks('getNomUrl', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
664 664
 		if ($reshook > 0) {
Please login to merge, or discard this patch.
htdocs/mrp/class/mo.class.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 		'import_key' => array('type'=>'varchar(14)', 'label'=>'ImportId', 'enabled'=>1, 'visible'=>-2, 'position'=>1000, 'notnull'=>-1,),
120 120
 		'model_pdf' =>array('type'=>'varchar(255)', 'label'=>'Model pdf', 'enabled'=>1, 'visible'=>0, 'position'=>1010),
121 121
 		'status' => array('type'=>'integer', 'label'=>'Status', 'enabled'=>1, 'visible'=>2, 'position'=>1000, 'default'=>0, 'notnull'=>1, 'index'=>1, 'arrayofkeyval'=>array('0'=>'Draft', '1'=>'Validated', '2'=>'InProgress', '3'=>'StatusMOProduced', '9'=>'Canceled')),
122
-		'fk_parent_line' => array('type'=>'integer:MoLine:mrp/class/mo.class.php', 'label'=>'ParentMo', 'enabled'=>1, 'visible'=>0, 'position'=>1020, 'default'=>0, 'notnull'=>0, 'index'=>1,'showoncombobox'=>0),
122
+		'fk_parent_line' => array('type'=>'integer:MoLine:mrp/class/mo.class.php', 'label'=>'ParentMo', 'enabled'=>1, 'visible'=>0, 'position'=>1020, 'default'=>0, 'notnull'=>0, 'index'=>1, 'showoncombobox'=>0),
123 123
 	);
124 124
 	public $rowid;
125 125
 	public $entity;
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 		}
329 329
 
330 330
 		if (!$error) {
331
-			$result = $this->createProduction($user, $notrigger);	// Insert lines from BOM
331
+			$result = $this->createProduction($user, $notrigger); // Insert lines from BOM
332 332
 			if ($result <= 0) {
333 333
 				$error++;
334 334
 			}
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
 		$oldQty = $this->oldQty;
809 809
 		$newQty = $this->qty;
810 810
 		if ($newQty != $oldQty && !empty($this->oldQty)) {
811
-			$sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "mrp_production WHERE fk_mo = " . (int) $this->id;
811
+			$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."mrp_production WHERE fk_mo = ".(int) $this->id;
812 812
 			$resql = $this->db->query($sql);
813 813
 			if ($resql) {
814 814
 				while ($obj = $this->db->fetch_object($resql)) {
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
 			return -2;
897 897
 		}
898 898
 		$productstatic = new Product($this->db);
899
-		$arrayoflines = $this->fetchLinesLinked('consumed', $idline);	// Get lines consumed under the one to delete
899
+		$arrayoflines = $this->fetchLinesLinked('consumed', $idline); // Get lines consumed under the one to delete
900 900
 
901 901
 		$result = 0;
902 902
 
@@ -999,7 +999,7 @@  discard block
 block discarded – undo
999 999
 		if (getDolGlobalString('MRP_MO_ADDON')) {
1000 1000
 			$mybool = false;
1001 1001
 
1002
-			$file = getDolGlobalString('MRP_MO_ADDON') . ".php";
1002
+			$file = getDolGlobalString('MRP_MO_ADDON').".php";
1003 1003
 			$classname = getDolGlobalString('MRP_MO_ADDON');
1004 1004
 
1005 1005
 			// Include file with class
@@ -1272,8 +1272,8 @@  discard block
 block discarded – undo
1272 1272
 			return 1;
1273 1273
 		}
1274 1274
 
1275
-		require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
1276
-		require_once DOL_DOCUMENT_ROOT . '/product/stock/class/mouvementstock.class.php';
1275
+		require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
1276
+		require_once DOL_DOCUMENT_ROOT.'/product/stock/class/mouvementstock.class.php';
1277 1277
 		$error = 0;
1278 1278
 		$langs->load('stocks');
1279 1279
 
@@ -1395,13 +1395,13 @@  discard block
 block discarded – undo
1395 1395
 			$datas['qty'] = '<br><b>'.$langs->trans('QtyToProduce').':</b> '.$this->qty;
1396 1396
 		}
1397 1397
 		if (!$nofetch && isset($this->fk_product)) {
1398
-			require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
1398
+			require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
1399 1399
 			$product = new Product($this->db);
1400 1400
 			$product->fetch($this->fk_product);
1401 1401
 			$datas['product'] = '<br><b>'.$langs->trans('Product').':</b> '.$product->getNomUrl(1, '', 0, -1, 1);
1402 1402
 		}
1403 1403
 		if (!$nofetch && isset($this->fk_warehouse)) {
1404
-			require_once DOL_DOCUMENT_ROOT . '/product/stock/class/entrepot.class.php';
1404
+			require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';
1405 1405
 			$warehouse = new Entrepot($this->db);
1406 1406
 			$warehouse->fetch($this->fk_warehouse);
1407 1407
 			$datas['warehouse'] = '<br><b>'.$langs->trans('WarehouseForProduction').':</b> '.$warehouse->getNomUrl(1, '', 0, 1);
@@ -1813,7 +1813,7 @@  discard block
 block discarded – undo
1813 1813
 		$this->tpl['disable_stock_change'] = $line->disable_stock_change;
1814 1814
 		$this->tpl['efficiency'] = $line->efficiency;
1815 1815
 
1816
-		global $conf;	// used into template
1816
+		global $conf; // used into template
1817 1817
 		$res = include DOL_DOCUMENT_ROOT.'/mrp/tpl/originproductline.tpl.php';
1818 1818
 	}
1819 1819
 
@@ -1844,9 +1844,9 @@  discard block
 block discarded – undo
1844 1844
 		$error = 0;
1845 1845
 
1846 1846
 		$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."mrp_mo as mo_child";
1847
-		$sql.= " WHERE fk_parent_line IN ";
1848
-		$sql.= " (SELECT rowid FROM ".MAIN_DB_PREFIX."mrp_production as line_parent";
1849
-		$sql.= " WHERE fk_mo=".((int) $this->id).")";
1847
+		$sql .= " WHERE fk_parent_line IN ";
1848
+		$sql .= " (SELECT rowid FROM ".MAIN_DB_PREFIX."mrp_production as line_parent";
1849
+		$sql .= " WHERE fk_mo=".((int) $this->id).")";
1850 1850
 
1851 1851
 		$resql = $this->db->query($sql);
1852 1852
 
@@ -1930,8 +1930,8 @@  discard block
 block discarded – undo
1930 1930
 		$error = 0;
1931 1931
 
1932 1932
 		$sql = "SELECT lineparent.fk_mo as id_moparent FROM ".MAIN_DB_PREFIX."mrp_mo as mo";
1933
-		$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."mrp_production lineparent ON mo.fk_parent_line = lineparent.rowid";
1934
-		$sql.= " WHERE mo.rowid = ".((int) $this->id);
1933
+		$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."mrp_production lineparent ON mo.fk_parent_line = lineparent.rowid";
1934
+		$sql .= " WHERE mo.rowid = ".((int) $this->id);
1935 1935
 
1936 1936
 		$resql = $this->db->query($sql);
1937 1937
 
Please login to merge, or discard this patch.
htdocs/mrp/mo_production.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 		$also_cancel_consumed_and_produced_lines = (GETPOST('alsoCancelConsumedAndProducedLines', 'alpha') ? 1 : 0);
134 134
 		$result = $object->cancel($user, 0, $also_cancel_consumed_and_produced_lines);
135 135
 		if ($result > 0) {
136
-			header("Location: " . DOL_URL_ROOT.'/mrp/mo_card.php?id=' . $object->id);
136
+			header("Location: ".DOL_URL_ROOT.'/mrp/mo_card.php?id='.$object->id);
137 137
 			exit;
138 138
 		} else {
139 139
 			$action = '';
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 		$also_cancel_consumed_and_produced_lines = (GETPOST('alsoCancelConsumedAndProducedLines', 'alpha') ? 1 : 0);
144 144
 		$result = $object->delete($user, 0, $also_cancel_consumed_and_produced_lines);
145 145
 		if ($result > 0) {
146
-			header("Location: " . $backurlforlist);
146
+			header("Location: ".$backurlforlist);
147 147
 			exit;
148 148
 		} else {
149 149
 			$action = '';
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
 				'value' => !getDolGlobalString('MO_ALSO_CANCEL_CONSUMED_AND_PRODUCED_LINES_BY_DEFAULT') ? 0 : 1
604 604
 			),
605 605
 		);
606
-		$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"] . '?id=' . $object->id, $langs->trans('CancelMo'), $langs->trans('ConfirmCancelMo'), 'confirm_cancel', $formquestion, 0, 1);
606
+		$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('CancelMo'), $langs->trans('ConfirmCancelMo'), 'confirm_cancel', $formquestion, 0, 1);
607 607
 	}
608 608
 
609 609
 	// Call Hook formConfirm
@@ -841,7 +841,7 @@  discard block
 block discarded – undo
841 841
 		print '<td class="right">'.$langs->trans("Qty").'</td>';
842 842
 		// Unit
843 843
 		if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
844
-			print '<td class="right">' . $langs->trans("Unit") . '</td>';
844
+			print '<td class="right">'.$langs->trans("Unit").'</td>';
845 845
 		}
846 846
 		// Cost price
847 847
 		if ($permissiontoupdatecost && getDolGlobalString('MRP_SHOW_COST_FOR_CONSUMPTION')) {
@@ -958,7 +958,7 @@  discard block
 block discarded – undo
958 958
 
959 959
 		// Lines to consume
960 960
 
961
-		$bomcostupdated = 0;	// We will recalculate the unitary cost to produce a product using the real "products to consume into MO"
961
+		$bomcostupdated = 0; // We will recalculate the unitary cost to produce a product using the real "products to consume into MO"
962 962
 
963 963
 		if (!empty($object->lines)) {
964 964
 			$nblinetoconsume = 0;
@@ -989,8 +989,8 @@  discard block
 block discarded – undo
989 989
 								$costprice = 0;
990 990
 							}
991 991
 						}
992
-						$linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT');	// price for line for all quantities
993
-						$bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU');	// same but with full accuracy
992
+						$linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT'); // price for line for all quantities
993
+						$bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU'); // same but with full accuracy
994 994
 					}
995 995
 
996 996
 					$bomcostupdated = price2num($bomcostupdated, 'MU');
@@ -1010,23 +1010,23 @@  discard block
 block discarded – undo
1010 1010
 								$alreadyconsumed += $line2['qty'];
1011 1011
 							}
1012 1012
 						}
1013
-						$suffix = '_' . $line->id;
1014
-						print '<!-- Line to dispatch ' . $suffix . ' -->' . "\n";
1013
+						$suffix = '_'.$line->id;
1014
+						print '<!-- Line to dispatch '.$suffix.' -->'."\n";
1015 1015
 						// hidden fields for js function
1016
-						print '<input id="qty_ordered' . $suffix . '" type="hidden" value="' . $line->qty . '">';
1016
+						print '<input id="qty_ordered'.$suffix.'" type="hidden" value="'.$line->qty.'">';
1017 1017
 						// Duration - Time spent
1018
-						print '<input id="qty_dispatched' . $suffix . '" type="hidden" value="' . $alreadyconsumed . '">';
1018
+						print '<input id="qty_dispatched'.$suffix.'" type="hidden" value="'.$alreadyconsumed.'">';
1019 1019
 						print '<tr>';
1020
-						print '<input name="lineid" type="hidden" value="' . $line->id . '">';
1020
+						print '<input name="lineid" type="hidden" value="'.$line->id.'">';
1021 1021
 
1022 1022
 						// Product
1023
-						print '<td>' . $tmpproduct->getNomUrl(1);
1024
-						print '<br><div class="opacitymedium small tdoverflowmax150" title="' . dol_escape_htmltag($tmpproduct->label) . '">' . $tmpproduct->label . '</span>';
1023
+						print '<td>'.$tmpproduct->getNomUrl(1);
1024
+						print '<br><div class="opacitymedium small tdoverflowmax150" title="'.dol_escape_htmltag($tmpproduct->label).'">'.$tmpproduct->label.'</span>';
1025 1025
 						print '</td>';
1026 1026
 
1027 1027
 						// Qty
1028 1028
 						print '<td class="right nowraponall">';
1029
-						print '<input class="width40" name="qty_lineProduce" value="'. $line->qty.'">';
1029
+						print '<input class="width40" name="qty_lineProduce" value="'.$line->qty.'">';
1030 1030
 						print '</td>';
1031 1031
 						// Unit
1032 1032
 						if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
@@ -1036,7 +1036,7 @@  discard block
 block discarded – undo
1036 1036
 						}
1037 1037
 						// Qty consumed
1038 1038
 						print '<td class="right">';
1039
-						print ' ' . price2num($alreadyconsumed, 'MS');
1039
+						print ' '.price2num($alreadyconsumed, 'MS');
1040 1040
 						print '</td>';
1041 1041
 						// Entrepot
1042 1042
 						print '<td class="right">';
@@ -1047,7 +1047,7 @@  discard block
 block discarded – undo
1047 1047
 							if ($tmpproduct->stock_reel < ($line->qty - $alreadyconsumed)) {
1048 1048
 								print img_warning($langs->trans('StockTooLow')).' ';
1049 1049
 							}
1050
-							print '<span class="left">'. $tmpproduct->stock_reel  .' </span>';
1050
+							print '<span class="left">'.$tmpproduct->stock_reel.' </span>';
1051 1051
 						}
1052 1052
 						print '</td>';
1053 1053
 
@@ -1059,8 +1059,8 @@  discard block
 block discarded – undo
1059 1059
 
1060 1060
 						// Action delete line
1061 1061
 						print '<td colspan="2">';
1062
-						print '<input type="submit" class="button buttongen button-add small nominwidth" name="save" value="' . $langs->trans("Save") . '">';
1063
-						print '<input type="submit" class="button buttongen button-cancel small nominwidth" name="cancel" value="' . $langs->trans("Cancel") . '">';
1062
+						print '<input type="submit" class="button buttongen button-add small nominwidth" name="save" value="'.$langs->trans("Save").'">';
1063
+						print '<input type="submit" class="button buttongen button-cancel small nominwidth" name="cancel" value="'.$langs->trans("Cancel").'">';
1064 1064
 						print '</td>';
1065 1065
 
1066 1066
 						// Action delete line
@@ -1081,28 +1081,28 @@  discard block
 block discarded – undo
1081 1081
 							}
1082 1082
 						}
1083 1083
 					} else {
1084
-						$suffix = '_' . $line->id;
1085
-						print '<!-- Line to dispatch ' . $suffix . ' -->' . "\n";
1084
+						$suffix = '_'.$line->id;
1085
+						print '<!-- Line to dispatch '.$suffix.' -->'."\n";
1086 1086
 						// hidden fields for js function
1087
-						print '<input id="qty_ordered' . $suffix . '" type="hidden" value="' . $line->qty . '">';
1088
-						print '<input id="qty_dispatched' . $suffix . '" type="hidden" value="' . $alreadyconsumed . '">';
1087
+						print '<input id="qty_ordered'.$suffix.'" type="hidden" value="'.$line->qty.'">';
1088
+						print '<input id="qty_dispatched'.$suffix.'" type="hidden" value="'.$alreadyconsumed.'">';
1089 1089
 
1090
-						print '<tr data-line-id="' . $line->id . '">';
1090
+						print '<tr data-line-id="'.$line->id.'">';
1091 1091
 						// Product
1092
-						print '<td>' . $tmpproduct->getNomUrl(1);
1093
-						print '<br><div class="opacitymedium small tdoverflowmax150" title="' . dol_escape_htmltag($tmpproduct->label) . '">' . $tmpproduct->label . '</div>';
1092
+						print '<td>'.$tmpproduct->getNomUrl(1);
1093
+						print '<br><div class="opacitymedium small tdoverflowmax150" title="'.dol_escape_htmltag($tmpproduct->label).'">'.$tmpproduct->label.'</div>';
1094 1094
 						print '</td>';
1095 1095
 						// Qty
1096 1096
 						print '<td class="right nowraponall">';
1097 1097
 						$help = '';
1098 1098
 						$picto = 'help';
1099 1099
 						if ($line->qty_frozen) {
1100
-							$help = ($help ? '<br>' : '') . '<strong>' . $langs->trans("QuantityFrozen") . '</strong>: ' . yn(1) . ' (' . $langs->trans("QuantityConsumedInvariable") . ')';
1101
-							print $form->textwithpicto('', $help, -1, 'lock') . ' ';
1100
+							$help = ($help ? '<br>' : '').'<strong>'.$langs->trans("QuantityFrozen").'</strong>: '.yn(1).' ('.$langs->trans("QuantityConsumedInvariable").')';
1101
+							print $form->textwithpicto('', $help, -1, 'lock').' ';
1102 1102
 						}
1103 1103
 						if ($line->disable_stock_change) {
1104
-							$help = ($help ? '<br>' : '') . '<strong>' . $langs->trans("DisableStockChange") . '</strong>: ' . yn(1) . ' (' . (($tmpproduct->type == Product::TYPE_SERVICE && !getDolGlobalString('STOCK_SUPPORTS_SERVICES')) ? $langs->trans("NoStockChangeOnServices") : $langs->trans("DisableStockChangeHelp")) . ')';
1105
-							print $form->textwithpicto('', $help, -1, 'help') . ' ';
1104
+							$help = ($help ? '<br>' : '').'<strong>'.$langs->trans("DisableStockChange").'</strong>: '.yn(1).' ('.(($tmpproduct->type == Product::TYPE_SERVICE && !getDolGlobalString('STOCK_SUPPORTS_SERVICES')) ? $langs->trans("NoStockChangeOnServices") : $langs->trans("DisableStockChangeHelp")).')';
1105
+							print $form->textwithpicto('', $help, -1, 'help').' ';
1106 1106
 						}
1107 1107
 						print price2num($line->qty, 'MS');
1108 1108
 						print '</td>';
@@ -1123,9 +1123,9 @@  discard block
 block discarded – undo
1123 1123
 						if ($alreadyconsumed) {
1124 1124
 							print '<script>';
1125 1125
 							print 'jQuery(document).ready(function() {
1126
-								jQuery("#expandtoproduce' . $line->id . '").click(function() {
1127
-									console.log("Expand mrp_production line ' . $line->id . '");
1128
-									jQuery(".expanddetail' . $line->id . '").toggle();';
1126
+								jQuery("#expandtoproduce' . $line->id.'").click(function() {
1127
+									console.log("Expand mrp_production line ' . $line->id.'");
1128
+									jQuery(".expanddetail' . $line->id.'").toggle();';
1129 1129
 							if ($nblinetoconsume == $nblinetoconsumecursor) {    // If it is the last line
1130 1130
 								print 'if (jQuery("#tablelines").hasClass("nobottom")) { jQuery("#tablelines").removeClass("nobottom"); } else { jQuery("#tablelines").addClass("nobottom"); }';
1131 1131
 							}
@@ -1134,9 +1134,9 @@  discard block
 block discarded – undo
1134 1134
 							});';
1135 1135
 							print '</script>';
1136 1136
 							if (empty($conf->use_javascript_ajax)) {
1137
-								print '<a href="' . $_SERVER["PHP_SELF"] . '?collapse=' . $collapse . ',' . $line->id . '">';
1137
+								print '<a href="'.$_SERVER["PHP_SELF"].'?collapse='.$collapse.','.$line->id.'">';
1138 1138
 							}
1139
-							print img_picto($langs->trans("ShowDetails"), "chevron-down", 'id="expandtoproduce' . $line->id . '"');
1139
+							print img_picto($langs->trans("ShowDetails"), "chevron-down", 'id="expandtoproduce'.$line->id.'"');
1140 1140
 							if (empty($conf->use_javascript_ajax)) {
1141 1141
 								print '</a>';
1142 1142
 							}
@@ -1145,12 +1145,12 @@  discard block
 block discarded – undo
1145 1145
 								print '<script>jQuery("#tablelines").removeClass("nobottom");</script>';
1146 1146
 							}
1147 1147
 						}
1148
-						print ' ' . price2num($alreadyconsumed, 'MS');
1148
+						print ' '.price2num($alreadyconsumed, 'MS');
1149 1149
 						print '</td>';
1150 1150
 						// Warehouse and/or workstation
1151 1151
 						print '<td>';
1152 1152
 						if (getDolGlobalString('STOCK_CONSUMPTION_FROM_MANUFACTURING_WAREHOUSE') && $tmpwarehouse->id > 0) {
1153
-							print img_picto('', $tmpwarehouse->picto) . " " . $tmpwarehouse->label;
1153
+							print img_picto('', $tmpwarehouse->picto)." ".$tmpwarehouse->label;
1154 1154
 						}
1155 1155
 						if (isModEnabled('workstation') && $line->fk_default_workstation > 0) {
1156 1156
 							$tmpworkstation = new Workstation($db);
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
 							print '<td class="nowraponall right">';
1164 1164
 							if (!getDolGlobalString('STOCK_SUPPORTS_SERVICES') && $tmpproduct->type != Product::TYPE_SERVICE) {
1165 1165
 								if (!$line->disable_stock_change && $tmpproduct->stock_reel < ($line->qty - $alreadyconsumed)) {
1166
-									print img_warning($langs->trans('StockTooLow')) . ' ';
1166
+									print img_warning($langs->trans('StockTooLow')).' ';
1167 1167
 								}
1168 1168
 								if (!getDolGlobalString('STOCK_CONSUMPTION_FROM_MANUFACTURING_WAREHOUSE') || empty($tmpwarehouse->id)) {
1169 1169
 									print price2num($tmpproduct->stock_reel, 'MS'); // Available
@@ -1193,9 +1193,9 @@  discard block
 block discarded – undo
1193 1193
 
1194 1194
 						// Action Edit line
1195 1195
 						if ($object->status == Mo::STATUS_DRAFT) {
1196
-							$href = $_SERVER["PHP_SELF"] . '?id=' . ((int) $object->id) . '&action=editline&token=' . newToken() . '&lineid=' . ((int) $line->id);
1196
+							$href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=editline&token='.newToken().'&lineid='.((int) $line->id);
1197 1197
 							print '<td class="center">';
1198
-							print '<a class="reposition" href="' . $href . '">';
1198
+							print '<a class="reposition" href="'.$href.'">';
1199 1199
 							print img_picto($langs->trans('TooltipEditAndRevertStockMovement'), 'edit');
1200 1200
 							print '</a>';
1201 1201
 							print '</td>';
@@ -1203,9 +1203,9 @@  discard block
 block discarded – undo
1203 1203
 
1204 1204
 						// Action delete line
1205 1205
 						if ($permissiontodelete) {
1206
-							$href = $_SERVER["PHP_SELF"] . '?id=' . ((int) $object->id) . '&action=deleteline&token=' . newToken() . '&lineid=' . ((int) $line->id);
1206
+							$href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=deleteline&token='.newToken().'&lineid='.((int) $line->id);
1207 1207
 							print '<td class="center">';
1208
-							print '<a class="reposition" href="' . $href . '">';
1208
+							print '<a class="reposition" href="'.$href.'">';
1209 1209
 							print img_picto($langs->trans('TooltipDeleteAndRevertStockMovement'), 'delete');
1210 1210
 							print '</a>';
1211 1211
 							print '</td>';
@@ -1278,9 +1278,9 @@  discard block
 block discarded – undo
1278 1278
 
1279 1279
 						// Action Edit line
1280 1280
 						if ($object->status == Mo::STATUS_DRAFT) {
1281
-							$href = $_SERVER["PHP_SELF"] . '?id=' . ((int) $object->id) . '&action=editline&token=' . newToken() . '&lineid=' . ((int) $line2['rowid']);
1281
+							$href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=editline&token='.newToken().'&lineid='.((int) $line2['rowid']);
1282 1282
 							print '<td class="center">';
1283
-							print '<a class="reposition" href="' . $href . '">';
1283
+							print '<a class="reposition" href="'.$href.'">';
1284 1284
 							print img_picto($langs->trans('TooltipEditAndRevertStockMovement'), 'edit');
1285 1285
 							print '</a>';
1286 1286
 							print '</td>';
@@ -1320,7 +1320,7 @@  discard block
 block discarded – undo
1320 1320
 						print '<input type="hidden" name="product-'.$line->id.'-'.$i.'" value="'.$line->fk_product.'">';
1321 1321
 
1322 1322
 						// Qty
1323
-						print '<td class="right"><input type="text" class="width50 right" id="qtytoconsume-' . $line->id . '-' . $i . '" name="qty-' . $line->id . '-' . $i . '" value="' . $preselected . '" ' . $disable . '></td>';
1323
+						print '<td class="right"><input type="text" class="width50 right" id="qtytoconsume-'.$line->id.'-'.$i.'" name="qty-'.$line->id.'-'.$i.'" value="'.$preselected.'" '.$disable.'></td>';
1324 1324
 
1325 1325
 						// Unit
1326 1326
 						if (getDolGlobalInt('PRODUCT_USE_UNITS')) {
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
 
1835 1835
 					$.ajax({
1836 1836
 						type: "POST",
1837
-						url: "<?php echo DOL_URL_ROOT . '/mrp/ajax/interface.php'; ?>",
1837
+						url: "<?php echo DOL_URL_ROOT.'/mrp/ajax/interface.php'; ?>",
1838 1838
 						data: {
1839 1839
 							action: "updateselectbatchbywarehouse",
1840 1840
 							permissiontoproduce: <?php echo $permissiontoproduce ?>,
@@ -1895,7 +1895,7 @@  discard block
 block discarded – undo
1895 1895
 
1896 1896
 					$.ajax({
1897 1897
 						type: "POST",
1898
-						url: "<?php echo DOL_URL_ROOT . '/mrp/ajax/interface.php'; ?>",
1898
+						url: "<?php echo DOL_URL_ROOT.'/mrp/ajax/interface.php'; ?>",
1899 1899
 						data: {
1900 1900
 							action: "updateselectwarehousebybatch",
1901 1901
 							permissiontoproduce: <?php echo $permissiontoproduce ?>,
Please login to merge, or discard this patch.
test/phpunit/BuildDocTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  *      			See also PdfDocTest to test methods
27 27
  */
28 28
 
29
-global $conf,$user,$langs,$db;
29
+global $conf, $user, $langs, $db;
30 30
 //define('TEST_DB_FORCE_TYPE','mysql');	// This is to force using mysql driver
31 31
 //require_once 'PHPUnit/Autoload.php';
32 32
 require_once dirname(__FILE__).'/../../htdocs/master.inc.php';
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 */
86 86
 	public static function setUpBeforeClass(): void
87 87
 	{
88
-		global $conf,$user,$langs,$db;
88
+		global $conf, $user, $langs, $db;
89 89
 
90 90
 		if (!isModEnabled('supplier')) {
91 91
 			print __METHOD__." supplier module not enabled\n";
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 */
136 136
 	public function testFactureBuild()
137 137
 	{
138
-		global $conf,$user,$langs,$db;
138
+		global $conf, $user, $langs, $db;
139 139
 		$conf = $this->savconf;
140 140
 		$user = $this->savuser;
141 141
 		$langs = $this->savlangs;
@@ -231,13 +231,13 @@  discard block
 block discarded – undo
231 231
 	*/
232 232
 	public function testFactureFournisseurBuild()
233 233
 	{
234
-		global $conf,$user,$langs,$db;
234
+		global $conf, $user, $langs, $db;
235 235
 		$conf = $this->savconf;
236 236
 		$user = $this->savuser;
237 237
 		$langs = $this->savlangs;
238 238
 		$db = $this->savdb;
239 239
 
240
-		$conf->fournisseur->facture->dir_output .= '/temp';	// To not poluate the existing dir_output dir
240
+		$conf->fournisseur->facture->dir_output .= '/temp'; // To not poluate the existing dir_output dir
241 241
 		$localobject = new FactureFournisseur($db);
242 242
 		$localobject->initAsSpecimen();
243 243
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 	 */
259 259
 	public function testCommandeBuild()
260 260
 	{
261
-		global $conf,$user,$langs,$db;
261
+		global $conf, $user, $langs, $db;
262 262
 		$conf = $this->savconf;
263 263
 		$user = $this->savuser;
264 264
 		$langs = $this->savlangs;
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 	 */
287 287
 	public function testCommandeFournisseurBuild()
288 288
 	{
289
-		global $conf,$user,$langs,$db;
289
+		global $conf, $user, $langs, $db;
290 290
 		$conf = $this->savconf;
291 291
 		$user = $this->savuser;
292 292
 		$langs = $this->savlangs;
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	 */
314 314
 	public function testPropalBuild()
315 315
 	{
316
-		global $conf,$user,$langs,$db;
316
+		global $conf, $user, $langs, $db;
317 317
 		$conf = $this->savconf;
318 318
 		$user = $this->savuser;
319 319
 		$langs = $this->savlangs;
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 	 */
341 341
 	public function testProjectBuild()
342 342
 	{
343
-		global $conf,$user,$langs,$db;
343
+		global $conf, $user, $langs, $db;
344 344
 		$conf = $this->savconf;
345 345
 		$user = $this->savuser;
346 346
 		$langs = $this->savlangs;
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 	 */
367 367
 	public function testFichinterBuild()
368 368
 	{
369
-		global $conf,$user,$langs,$db;
369
+		global $conf, $user, $langs, $db;
370 370
 		$conf = $this->savconf;
371 371
 		$user = $this->savuser;
372 372
 		$langs = $this->savlangs;
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
 	 */
394 394
 	public function testExpeditionBuild()
395 395
 	{
396
-		global $conf,$user,$langs,$db;
396
+		global $conf, $user, $langs, $db;
397 397
 		$conf = $this->savconf;
398 398
 		$user = $this->savuser;
399 399
 		$langs = $this->savlangs;
Please login to merge, or discard this patch.