diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 7187c5771d9..b48c95edfb6 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -3069,7 +3069,8 @@ if ($action == 'create')
print '';
// Margin Infos
- if (! empty($conf->margin->enabled)) {
+ if (! empty($conf->margin->enabled))
+ {
print '
';
$object->displayMarginInfos($object->statut > 0);
}
diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index 22db24d2920..0bee62d4f12 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -1099,18 +1099,14 @@ else
*/
$productstatic=new Product($db);
+
+ $usemargins=0;
+ if (! empty($conf->margin->enabled) && ! empty($object->element) && in_array($object->element,array('facture','propal','commande'))) $usemargins=1;
+
// Title line for service
- //print '
| '; - //print $langs->trans("ServiceNb",$cursorline).' | '; - - // print ''; - - print ' |