diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index beb9cab5c47..cb0ab675301 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1147,7 +1147,7 @@ if ($_GET['propalid'] > 0)
// Icone d'edition et suppression
if ($propal->statut == 0 && $user->rights->propale->creer)
{
- print '
';
+ print ' | ';
if (($objp->info_bits & 2) == 2)
{
// Ligne remise prédéfinie, on permet pas modif
@@ -1159,30 +1159,34 @@ if ($_GET['propalid'] > 0)
print '';
}
print ' | ';
+ print '';
if ($conf->global->PRODUIT_CONFIRM_DELETE_LINE)
{
- print ' | id.'&action=delete_product_line&ligne='.$objp->rowid.'">';
+ print 'id.'&action=delete_product_line&ligne='.$objp->rowid.'">';
}
else
{
- print ' | id.'&action=del_ligne&ligne='.$objp->rowid.'">';
+ print 'id.'&action=del_ligne&ligne='.$objp->rowid.'">';
}
print img_delete();
print ' | ';
- print '';
- if ($i > 0)
+ if ($num > 1)
{
- print 'id.'&action=up&rowid='.$objp->rowid.'">';
- print img_up();
- print '';
+ print ' | ';
+ if ($i > 0)
+ {
+ print 'id.'&action=up&rowid='.$objp->rowid.'">';
+ print img_up();
+ print '';
+ }
+ if ($i < $num-1)
+ {
+ print 'id.'&action=down&rowid='.$objp->rowid.'">';
+ print img_down();
+ print '';
+ }
+ print ' | ';
}
- if ($i < $num-1)
- {
- print 'id.'&action=down&rowid='.$objp->rowid.'">';
- print img_down();
- print '';
- }
- print '';
}
else
{
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 41502604376..05ed204ab9b 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -1308,11 +1308,19 @@ else
{
print '';
print ''; // ancre pour retourner sur la ligne
- print '';
- if ($objp->fk_product_type==1) print img_object($langs->trans('ShowService'),'service');
- else print img_object($langs->trans('ShowProduct'),'product');
- print ' '.$objp->ref.'';
- print ' - '.nl2br(stripslashes($objp->product));
+ $text = '';
+ if ($objp->fk_product_type==1) $text.= img_object($langs->trans('ShowService'),'service');
+ else $text.= img_object($langs->trans('ShowProduct'),'product');
+ $text.= ' '.$objp->ref.'';
+ $text.= ' - '.nl2br(stripslashes($objp->product));
+ if ($conf->global->PRODUIT_DESC_IN_FORM)
+ {
+ print $text;
+ }
+ else
+ {
+ print $html->textwithtooltip($text,$objp->description,4,'','',$i,$objp->ref.' - '.nl2br(stripslashes($objp->product)));
+ }
print_date_range($objp->date_start,$objp->date_end);
if ($conf->global->PRODUIT_DESC_IN_FORM)
@@ -1381,33 +1389,46 @@ else
// Icone d'edition et suppression
if ($commande->statut == 0 && $user->rights->commande->creer)
{
- print ' | rowid.'#'.$objp->rowid.'">';
- print img_edit();
- print ' | ';
- if ($conf->global->PRODUIT_CONFIRM_DELETE_LINE)
+ print '';
+ if (($objp->info_bits & 2) == 2)
{
- print ' | rowid.'">';
+ // Ligne remise prédéfinie, on permet pas modif
}
else
{
- print ' | rowid.'">';
- }
- print img_delete();
- print ' | ';
- print '';
- if ($i > 0)
- {
- print 'id.'&action=up&rowid='.$objp->rowid.'">';
- print img_up();
- print '';
- }
- if ($i < $num-1)
- {
- print 'id.'&action=down&rowid='.$objp->rowid.'">';
- print img_down();
+ print 'rowid.'#'.$objp->rowid.'">';
+ print img_edit();
print '';
}
print ' | ';
+ print '';
+ if ($conf->global->PRODUIT_CONFIRM_DELETE_LINE)
+ {
+ print 'rowid.'">';
+ }
+ else
+ {
+ print 'rowid.'">';
+ }
+ print img_delete();
+ print ' | ';
+ if ($num > 1)
+ {
+ print '';
+ if ($i > 0)
+ {
+ print 'id.'&action=up&rowid='.$objp->rowid.'">';
+ print img_up();
+ print '';
+ }
+ if ($i < $num-1)
+ {
+ print 'id.'&action=down&rowid='.$objp->rowid.'">';
+ print img_down();
+ print '';
+ }
+ print ' | ';
+ }
}
else
{
diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index dce9ba2d1b3..69a4d59f821 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -2226,11 +2226,19 @@ else
{
print '';
print ''; // ancre pour retourner sur la ligne
- print '';
- if ($objp->fk_product_type==1) print img_object($langs->trans('ShowService'),'service');
- else print img_object($langs->trans('ShowProduct'),'product');
- print ' '.$objp->ref.'';
- print ' - '.nl2br(stripslashes($objp->product));
+ $text = '';
+ if ($objp->fk_product_type==1) $text.= img_object($langs->trans('ShowService'),'service');
+ else $text.= img_object($langs->trans('ShowProduct'),'product');
+ $text.= ' '.$objp->ref.'';
+ $text.= ' - '.nl2br(stripslashes($objp->product));
+ if ($conf->global->PRODUIT_DESC_IN_FORM)
+ {
+ print $text;
+ }
+ else
+ {
+ print $html->textwithtooltip($text,$objp->description,4,'','',$i,$objp->ref.' - '.nl2br(stripslashes($objp->product)));
+ }
print_date_range($objp->date_start,$objp->date_end);
if ($conf->global->PRODUIT_DESC_IN_FORM)
@@ -2299,7 +2307,7 @@ else
// Icone d'edition et suppression
if ($fac->statut == 0 && $user->rights->facture->creer)
{
- print ' | ';
+ print ' | ';
if (($objp->info_bits & 2) == 2)
{
// Ligne remise prédéfinie, on permet pas modif
@@ -2311,30 +2319,34 @@ else
print '';
}
print ' | ';
+ print '';
if ($conf->global->PRODUIT_CONFIRM_DELETE_LINE)
{
- print ' | id.'&action=delete_product_line&rowid='.$objp->rowid.'">';
+ print 'id.'&action=delete_product_line&rowid='.$objp->rowid.'">';
}
else
{
- print ' | id.'&action=deleteline&rowid='.$objp->rowid.'">';
+ print 'id.'&action=deleteline&rowid='.$objp->rowid.'">';
}
print img_delete();
print ' | ';
- print '';
- if ($i > 0)
+ if ($num_lignes > 1)
{
- print 'id.'&action=up&rowid='.$objp->rowid.'">';
- print img_up();
- print '';
+ print ' | ';
+ if ($i > 0)
+ {
+ print 'id.'&action=up&rowid='.$objp->rowid.'">';
+ print img_up();
+ print '';
+ }
+ if ($i < $num_lignes-1)
+ {
+ print 'id.'&action=down&rowid='.$objp->rowid.'">';
+ print img_down();
+ print '';
+ }
+ print ' | ';
}
- if ($i < $num_lignes-1)
- {
- print 'id.'&action=down&rowid='.$objp->rowid.'">';
- print img_down();
- print '';
- }
- print '';
}
else
{