\n";
if ($_GET["action"] == '')
{
- if ($product->type == 0 && $user->rights->produit->commander && $num_fournisseur == 1)
+ if ($product->type == 0 && $user->rights->produit->commander && $num_fournisseur == 1)
{
- print '
'.$langs->trans("Order").'';
+ print '
';
+ print $langs->trans("Order").'';
}
- if ( $user->rights->produit->creer)
+
+ if ( $user->rights->produit->creer && $product->isproduct)
{
- print '
'.$langs->trans("UpdatePrice").'';
+ print '
';
+ print $langs->trans("AddPhoto").'';
}
- if ( $user->rights->produit->creer)
+
+ if ( $user->rights->produit->creer)
{
- print '
'.$langs->trans("Edit").'';
+ print '
';
+ print $langs->trans("UpdatePrice").'';
}
- if ($product->type == 0 && $conf->stock->enabled)
+
+ if ( $user->rights->produit->creer)
{
- print '
'.$langs->trans("CorrectStock").'';
+ print '
'.$langs->trans("Edit").'';
+ }
+
+ if ($product->type == 0 && $conf->stock->enabled)
+ {
+ print '
'.$langs->trans("CorrectStock").'';
}
}
@@ -689,25 +724,25 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
}
print '';
- print '
';
+ print ' | ';
- $otherprop = $propal->liste_array(1, '<>'.$user->id);
- if (sizeof($otherprop))
- {
- print '';
- }
- print ' | ';
+ $otherprop = $propal->liste_array(1, '<>'.$user->id);
+ if (sizeof($otherprop))
+ {
+ print '
';
+ }
+ print '';
print '';
}
@@ -762,7 +797,7 @@ if ($_GET["id"] && $_GET["action"] == '' && $product->envente)
dolibarr_print_error($db);
}
print '
';
- // \todo Ajouter liste des factures autres
+ // \todo Ajouter liste des factures autres
print ' | ';
}
}