diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php
index a382568a81d..de787373cdf 100644
--- a/htdocs/fourn/commande/fiche.php
+++ b/htdocs/fourn/commande/fiche.php
@@ -226,7 +226,7 @@ if ($_GET["id"] > 0)
$h = 0;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$commande->id;
- $head[$h][1] = $langs->trans("Order").": $commande->ref";
+ $head[$h][1] = $langs->trans("OrderCard");
$a = $h;
$h++;
@@ -235,10 +235,11 @@ if ($_GET["id"] > 0)
$h++;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/history.php?id='.$commande->id;
- $head[$h][1] = $langs->trans("History");
+ $head[$h][1] = $langs->trans("OrderFollow");
$h++;
- dolibarr_fiche_head($head, $a, $soc->nom);
+ $title=$langs->trans("Order").": $commande->ref";
+ dolibarr_fiche_head($head, $a, $title);
/*
* Confirmation de la suppression de la commande
@@ -297,211 +298,187 @@ if ($_GET["id"] > 0)
"Envoi de la commande","Etes-vous sűr de vouloir confirmer cette commande en date du ".strftime("%d/%m/%Y",$date_com)." ?","confirm_commande");
print '
';
}
- /*
- * Commande
- */
- print '
';
- print "| ".$langs->trans("Supplier")." | ";
- print '';
- print ''.$soc->nom.' | ';
-
- print '';
- print ' ';
- print $commande->statuts[$commande->statut];
- print " |
";
- if ($commande->methode_commande_id > 0)
- {
- print '| '.$langs->trans("Date").' | ';
-
- if ($commande->date_commande)
- {
- print dolibarr_print_date($commande->date_commande,"%A %d %B %Y")."\n";
- }
-
- print ' | ';
- if ($commande->methode_commande)
- {
- print "Méthode : " .$commande->methode_commande;
- }
- print " |
";
- }
-
- print '| '.$langs->trans("Author").' | '.$author->fullname.' | ';
- print '';
- print " |
";
-
- // Ligne de 3 colonnes
- print '| '.$langs->trans("AmountHT").' | ';
- print ''.price($commande->total_ht).' | ';
- print ''.$langs->trans("Currency".$conf->monnaie).' | |
';
- print '| '.$langs->trans("VAT").' | '.price($commande->total_tva).' | ';
- print ''.$langs->trans("Currency".$conf->monnaie).' | |
';
+ /*
+ * Commande
+ */
+ print '';
+ print '| '.$langs->trans("Supplier")." | ";
+ print '';
+ print ''.$soc->nom.' | ';
+ print '
';
+
+ print '';
+ print '| '.$langs->trans("Status").' | ';
+ print '';
+ print ' ';
+ print $commande->statuts[$commande->statut];
+ print " |
";
+
+ if ($commande->methode_commande_id > 0)
+ {
+ print '| '.$langs->trans("Date").' | ';
+
+ if ($commande->date_commande)
+ {
+ print dolibarr_print_date($commande->date_commande,"%A %d %B %Y")."\n";
+ }
+
+ print ' | ';
+ if ($commande->methode_commande)
+ {
+ print "Méthode : " .$commande->methode_commande;
+ }
+ print " |
";
+ }
+
+ // Auteur
+ print '| '.$langs->trans("Author").' | '.$author->fullname.' | ';
+ print '';
+ print " |
";
- print '| '.$langs->trans("TotalTTC").' | '.price($commande->total_ttc).' | ';
- print ''.$langs->trans("Currency".$conf->monnaie).' | |
';
+ // Ligne de 3 colonnes
+ print '| '.$langs->trans("AmountHT").' | ';
+ print ''.price($commande->total_ht).' | ';
+ print ''.$langs->trans("Currency".$conf->monnaie).' | |
';
+ print '| '.$langs->trans("AmountVAT").' | '.price($commande->total_tva).' | ';
+ print ''.$langs->trans("Currency".$conf->monnaie).' | |
';
+
+ print '| '.$langs->trans("AmountTTC").' | '.price($commande->total_ttc).' | ';
+ print ''.$langs->trans("Currency".$conf->monnaie).' | |
';
+
+ if ($commande->note)
+ {
+ print '| '.$langs->trans("Note").' | '.nl2br($commande->note)." |
";
+ }
+
+ print "
";
- if ($commande->note)
- {
- print '| '.$langs->trans("Note").' | '.nl2br($commande->note)." |
";
- }
-
- print "
";
-
- /*
- * Lignes de commandes
- *
- */
- print '';
@@ -525,7 +502,7 @@ if ($_GET["id"] > 0)
{
print '
'.$langs->trans("ApproveOrder").'';
- print '
'.$langs->trans("RefuseOrder").'';
+ print '
'.$langs->trans("RefuseOrder").'';
}
}
@@ -533,7 +510,7 @@ if ($_GET["id"] > 0)
{
if ($user->rights->fournisseur->commande->approuver)
{
- print '
'.$langs->trans("RefuseOrder").'';
+ print '
'.$langs->trans("RefuseOrder").'';
}
}
diff --git a/htdocs/fourn/commande/history.php b/htdocs/fourn/commande/history.php
index 2cdc2d38f19..a39711b69d9 100644
--- a/htdocs/fourn/commande/history.php
+++ b/htdocs/fourn/commande/history.php
@@ -64,7 +64,7 @@ if ($_GET["id"] > 0)
$h = 0;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$commande->id;
- $head[$h][1] = $langs->trans("Order").": $commande->ref";
+ $head[$h][1] = $langs->trans("OrderCard");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/note.php?id='.$commande->id;
@@ -72,12 +72,13 @@ if ($_GET["id"] > 0)
$h++;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/history.php?id='.$commande->id;
- $head[$h][1] = $langs->trans("History");
+ $head[$h][1] = $langs->trans("OrderFollow");
$a = $h;
$h++;
- dolibarr_fiche_head($head, $a, $soc->nom);
+ $title=$langs->trans("Order").": $commande->ref";
+ dolibarr_fiche_head($head, $a, $title);
/*
@@ -85,11 +86,12 @@ if ($_GET["id"] > 0)
*/
print '
';
- print "| ".$langs->trans("Supplier")." | ";
- print '';
+ print ' |
| '.$langs->trans("Supplier")." | ";
+ print '';
print ''.$soc->nom.' | ';
+ print '
';
- print '';
+ print ' | | '.$langs->trans("Status").' | ';
print ' ';
print $commande->statuts[$commande->statut];
print " |
";
@@ -102,9 +104,9 @@ if ($_GET["id"] > 0)
print "";
}
+ // Auteur
print '| '.$langs->trans("Author").' | '.$author->fullname.' | ';
-
- print ' |
';
+ print ' | ';
print "
\n";
@@ -133,7 +135,7 @@ if ($_GET["id"] > 0)
$obj = $db->fetch_object($resql);
print "
";
- print '| '.strftime("%a %d %B %Y %H:%M:%S",$obj->dl)." | \n";
+ print ''.dolibarr_print_date($obj->dl,"%a %d %b %Y %H:%M:%S")." | \n";
print ' ';
diff --git a/htdocs/fourn/commande/note.php b/htdocs/fourn/commande/note.php
index bc4c899d50e..27a5b2cff3f 100644
--- a/htdocs/fourn/commande/note.php
+++ b/htdocs/fourn/commande/note.php
@@ -76,7 +76,7 @@ if ($_GET["id"] > 0)
$h = 0;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$commande->id;
- $head[$h][1] = $langs->trans("Order").": $commande->ref";
+ $head[$h][1] = $langs->trans("OrderCard");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/note.php?id='.$commande->id;
@@ -85,10 +85,11 @@ if ($_GET["id"] > 0)
$h++;
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/history.php?id='.$commande->id;
- $head[$h][1] = $langs->trans("History");
+ $head[$h][1] = $langs->trans("OrderFollow");
$h++;
- dolibarr_fiche_head($head, $a, $soc->nom);
+ $title=$langs->trans("Order").": $commande->ref";
+ dolibarr_fiche_head($head, $a, $title);
/*
@@ -98,11 +99,14 @@ if ($_GET["id"] > 0)
print '';
print '';
- print "| ".$langs->trans("Supplier")." | ";
- print '';
+ print ' | | '.$langs->trans("Supplier").' | ';
+ print '';
print ''.$soc->nom.' | ';
+ print ' ';
- print '';
+ print ' | ';
+ print '| '.$langs->trans("Status").' | ';
+ print '';
print ' ';
print $commande->statuts[$commande->statut];
print " | ";
@@ -124,8 +128,10 @@ if ($_GET["id"] > 0)
}
print "";
}
+
+ // Auteur
print '| '.$langs->trans("Author").' | '.$author->fullname.' | ';
- print '';
+ print ' | ';
print " | ";
// Ligne de 3 colonnes
@@ -134,15 +140,15 @@ if ($_GET["id"] > 0)
print ''.$langs->trans("Currency".$conf->monnaie).' | ';
print ' | ';
- print '| '.$langs->trans("VAT").' | '.price($commande->total_tva).' | ';
+ print ' | '.$langs->trans("AmountVAT").' | '.price($commande->total_tva).' | ';
print ''.$langs->trans("Currency".$conf->monnaie).' | | ';
- print '| '.$langs->trans("TotalTTC").' | '.price($commande->total_ttc).' | ';
+ print ' | '.$langs->trans("AmountTTC").' | '.price($commande->total_ttc).' | ';
print ''.$langs->trans("Currency".$conf->monnaie).' | | ';
if ($user->rights->fournisseur->commande->creer)
{
- print '| '.$langs->trans("Note").' | | ";
+ print '| '.$langs->trans("Note").' | | ";
print ' | ';
}
else
diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php
index 9e194576b39..14b53e3a151 100644
--- a/htdocs/fourn/product/fiche.php
+++ b/htdocs/fourn/product/fiche.php
@@ -143,7 +143,6 @@ if ($_POST["action"] == 'add_fourn' && $_POST["cancel"] <> $langs->trans("Cancel
if ($product->add_fournisseur($user, $_POST["id_fourn"], $_POST["ref_fourn"]) > 0)
{
$action = '';
- $mesg = $langs->trans("SupplierAdded");
}
else
{
@@ -425,7 +424,6 @@ else
print '';
}
print " \n";
-
// Liste des fournisseurs
print '';
@@ -466,10 +464,10 @@ else
print '| '.$objp->quantity.' | ';
$i++;
}
- $db->free();
- }
+ $db->free();
+ }
print ' ';
- print " \n";
+ print "\n";
/*
@@ -515,9 +513,7 @@ else
}
/*
- *
* Fiche en mode edition
- *
*/
if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer)
{
@@ -525,7 +521,7 @@ else
print_fiche_titre('Edition de la fiche '.$types[$product->type].' : '.$product->ref, "");
if ($mesg) {
- print '
'.$mesg.' ';
+ print '
'.$mesg.' ';
}
print " |
';
- if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
+ if ($product->type == 0 && $conf->stock->enabled)
{
print "
".'| Seuil stock | ';
print '';
@@ -573,6 +569,8 @@ else
}
+
+
/* ************************************************************************** */
/* */
/* Barre d'action */
@@ -619,5 +617,5 @@ else
$db->close();
-llxFooter("Dernière modification $Date$ révision $Revision$");
+llxFooter('$Date$ - $Revision$');
?>
diff --git a/htdocs/langs/en_US/orders.lang b/htdocs/langs/en_US/orders.lang
index 31490c43684..d3f6eeeb77d 100755
--- a/htdocs/langs/en_US/orders.lang
+++ b/htdocs/langs/en_US/orders.lang
@@ -2,6 +2,7 @@
OrdersArea=Orders area
Order=Order
Orders=Orders
+OrderFollow=Follow up
OrderDate=Date commande
NewOrder=New order
SupplierOrder=Supplier order
diff --git a/htdocs/langs/fr_FR/orders.lang b/htdocs/langs/fr_FR/orders.lang
index 52582d9c837..7110c4f753c 100755
--- a/htdocs/langs/fr_FR/orders.lang
+++ b/htdocs/langs/fr_FR/orders.lang
@@ -2,6 +2,7 @@
OrdersArea=Espace commandes
Order=Commande
Orders=Commandes
+OrderFollow=Suivi
OrderDate=Date commande
NewOrder=Nouvelle commande
SupplierOrder=Commande fournisseur
|