diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php
index e1b221a1ea6..0b50bcf8e9a 100644
--- a/htdocs/mrp/mo_production.php
+++ b/htdocs/mrp/mo_production.php
@@ -706,7 +706,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print '
';
print '| '.$langs->trans("Product").' | ';
print ''.$langs->trans("Qty").' | ';
- if ($permissiontoupdatecost) print ''.$langs->trans("UnitCost").' | ';
+ if ($permissiontoupdatecost) {
+ print ''.$langs->trans("UnitCost").' | ';
+ }
print ''.$langs->trans("QtyAlreadyConsumed").' | ';
print '';
if ($collapse || in_array($action, array('consumeorproduce', 'consumeandproduceall'))) {
@@ -729,7 +731,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print $form->select_produits('', 'productidtoadd', '', 0, 0, -1, 2, '', 0, array(), 0, '1', 0, 'maxwidth300');
print ' | ';
print ' | ';
- if ($permissiontoupdatecost) print ' | ';
+ if ($permissiontoupdatecost) {
+ print ' | ';
+ }
print ' | ';
print '';
print '';
@@ -765,7 +769,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
if (empty($costprice)) {
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.product.class.php';
$productFournisseur = new ProductFournisseur($db);
- if ($productFournisseur->find_min_price_product_fournisseur($line->fk_product) > 0){
+ if ($productFournisseur->find_min_price_product_fournisseur($line->fk_product) > 0) {
$costprice = $productFournisseur->fourn_unitprice;
} else {
$costprice = 0;
@@ -853,7 +857,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print ' | ';
print ' | ';
print ''.$line2['qty'].' | ';
- if ($permissiontoupdatecost) print ' | ';
+ if ($permissiontoupdatecost) {
+ print ' | ';
+ }
print '';
if ($line2['fk_warehouse'] > 0) {
$result = $tmpwarehouse->fetch($line2['fk_warehouse']);
@@ -882,7 +888,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
$preselected = 0;
}
print ' | | ';
- if ($permissiontoupdatecost) print ' | ';
+ if ($permissiontoupdatecost) {
+ print ' | ';
+ }
print ' | ';
print '';
if ($tmpproduct->type == Product::TYPE_PRODUCT || !empty($conf->global->STOCK_SUPPORTS_SERVICES)) {
@@ -1035,7 +1043,9 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
print ' | ';
print ' | ';
print ''.$line2['qty'].' | ';
- if ($permissiontoupdatecost) print ' | ';
+ if ($permissiontoupdatecost) {
+ print ' | ';
+ }
print '';
if ($line2['fk_warehouse'] > 0) {
$result = $tmpwarehouse->fetch($line2['fk_warehouse']);
|