diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 8164a3b5e97..bd8928b4748 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -553,7 +553,7 @@ else
{
print '
';
}
diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php
index d6ebed0ca46..56947ec29d2 100644
--- a/htdocs/compta/commande/fiche.php
+++ b/htdocs/compta/commande/fiche.php
@@ -123,7 +123,7 @@ if ($_GET["id"] > 0)
print '| '.$langs->trans("Ref")." | ";
print ''.$commande->ref.' | ';
- print ''.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ;
+ print ' | '.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ;
if ($commande->source == 0)
{
/* Propale */
@@ -139,25 +139,38 @@ if ($_GET["id"] > 0)
print ''.$soc->nom.' | ';
print '
';
+ $nbrow=7;
+ if ($conf->projet->enabled) $nbrow++;
+
+ // Ref cde client
+ print '';
+ print '| ';
+ print $langs->trans('RefCdeClient').' | ';
+ print ' | ';
+ print ' ';
+ print ' | ';
+ print $commande->ref_client;
+ print ' | ';
+ print ''.$langs->trans('Note').' : ';
+ if ($commande->brouillon == 1 && $user->rights->commande->creer)
+ {
+ print '';
+ }
+ else
+ {
+ print nl2br($commande->note);
+ }
+ print ' | ';
+ print '
';
+
// Statut
print '| '.$langs->trans("Status").' | ';
print "".$commande->statuts[$commande->statut]." | \n";
- $nbrow=6;
- if ($conf->projet->enabled) $nbrow++;
- print ''.$langs->trans("Note").' : ';
- if ($commande->brouillon == 1 && $user->rights->commande->creer)
- {
- print '';
- }
- else
- {
- print nl2br($commande->note);
- }
- print ' |
';
+ print '';
// Date
print '| '.$langs->trans("Date").' | ';
@@ -193,25 +206,31 @@ if ($_GET["id"] > 0)
print '
';
// Lignes de 3 colonnes
- print '| '.$langs->trans("AmountHT").' | ';
- print ''.price($commande->total_ht).' | ';
- print ''.$langs->trans("Currency".$conf->monnaie).' |
';
-
+
+ // Discount
print '| '.$langs->trans("GlobalDiscount").' | ';
print $commande->remise_percent.'% | ';
print ' |
';
- print '| '.$langs->trans("VAT").' | '.price($commande->total_tva).' | ';
+ // Total HT
+ print '
| '.$langs->trans("TotalHT").' | ';
+ print ''.price($commande->total_ht).' | ';
print ''.$langs->trans("Currency".$conf->monnaie).' |
';
+
+ // Total VAT
+ print '| '.$langs->trans("TotalVAT").' | '.price($commande->total_tva).' | ';
+ print ''.$langs->trans("Currency".$conf->monnaie).' |
';
+
+ // Total TTC
print '| '.$langs->trans("TotalTTC").' | '.price($commande->total_ttc).' | ';
print ''.$langs->trans("Currency".$conf->monnaie).' |
';
- print '
';
+ print '';
/*
- * Lignes de commandes
- *
- */
+ * Lignes de commandes
+ *
+ */
$sql = 'SELECT l.fk_product, l.description, l.price, l.qty, l.rowid, l.tva_tx, l.remise_percent, l.subprice,';
$sql.= ' p.label as product, p.ref, p.fk_product_type, p.rowid as prodid';
$sql.= ' FROM '.MAIN_DB_PREFIX."commandedet as l";
@@ -225,6 +244,7 @@ if ($_GET["id"] > 0)
$num = $db->num_rows($resql);
$i = 0; $total = 0;
+ if ($num) print '
';
print '';
if ($num)
{
diff --git a/htdocs/langs/fr_FR/orders.lang b/htdocs/langs/fr_FR/orders.lang
index f94a75af314..52582d9c837 100755
--- a/htdocs/langs/fr_FR/orders.lang
+++ b/htdocs/langs/fr_FR/orders.lang
@@ -49,7 +49,7 @@ ComptaCard=Fiche compta
DraftOrders=Commandes brouillons
RelatedOrders=Commandes rattachées
OnProcessOrders=Commandes en cours de traitement
-RefCdeClient=Ref. commande client
+RefCdeClient=Réf. commande client
# Sources
OrderSource0=Proposition commerciale
OrderSource1=Internet