| '.$langs->trans('Date').' | ';
@@ -500,13 +503,16 @@ else
*/
if ($_GET['action'] == 'annuler')
{
- $html->form_confirm('fiche.php?id='.$id, $langs->trans('Cancel'), $langs->trans('ConfirmCancel'), 'confirm_cancel');
+ $html->form_confirm('fiche.php?id='.$id, $langs->trans('Cancel'), $langs->trans('ConfirmCancelOrder'), 'confirm_cancel');
print ' ';
}
/*
* Commande
*/
+ $nbrow=8;
+ if ($conf->projet->enabled) $nbrow++;
+
print '';
// Ref
@@ -522,19 +528,10 @@ else
}
print '';
- // Société
- print '| '.$langs->trans('Customer').' | ';
- print '';
- print ''.$soc->nom.' | ';
- print ' ';
-
- $nbrow=7;
- if ($conf->projet->enabled) $nbrow++;
-
// Ref commande client
print '';
print '| ';
- print $langs->trans('RefCdeClient').' | ';
+ print $langs->trans('RefCustomer').' | ';
print ' | ';
if ($_GET['action'] != 'refcdeclient') print ''.img_edit($langs->trans('Edit')).' | ';
print ' ';
@@ -568,6 +565,12 @@ else
print ' | ';
print ' ';
+ // Société
+ print '| '.$langs->trans('Customer').' | ';
+ print '';
+ print ''.$soc->nom.' | ';
+ print ' ';
+
print '| '.$langs->trans('Status').' | ';
print ''.$commande->statuts[$commande->statut].' | ';
print ' ';
@@ -597,10 +600,6 @@ else
}
print '';
}
- else
- {
- print '| | | ';
- }
// Lignes de 3 colonnes
diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php
index 56947ec29d2..54efa592fcf 100644
--- a/htdocs/compta/commande/fiche.php
+++ b/htdocs/compta/commande/fiche.php
@@ -119,54 +119,58 @@ if ($_GET["id"] > 0)
/*
* Commande
*/
+
+ $nbrow=8;
+ if ($conf->projet->enabled) $nbrow++;
+
print '';
+ // Reference
print '| '.$langs->trans("Ref")." | ";
print ''.$commande->ref.' | ';
print ''.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ;
if ($commande->source == 0)
{
- /* Propale */
+ // Propale
$propal = new Propal($db);
$propal->fetch($commande->propale_id);
print ' -> '.$propal->ref.'';
}
print " | ";
+ // Ref cde client
+ print '';
+ print '| ';
+ print $langs->trans('RefCustomer').' | ';
+ print ' | ';
+ 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 ' ';
+
// Client
print "| ".$langs->trans("Customer")." | ";
- print '';
- print ''.$soc->nom.' | ';
+ print '';
+ print ''.$soc->nom.'';
+ print ' | ';
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";
@@ -178,9 +182,9 @@ if ($_GET["id"] > 0)
print ' ';
// Projet
- print '';
if ($conf->projet->enabled)
{
+ print ' ';
$langs->load("projects");
print '';
print '| ';
@@ -198,12 +202,8 @@ if ($_GET["id"] > 0)
$html->form_project($_SERVER["PHP_SELF"]."?id=$commande->id",$commande->fk_soc,$commande->projetid,"none");
}
print " | ";
+ print ' ';
}
- else
- {
- print ' | | ';
- }
- print '';
// Lignes de 3 colonnes
diff --git a/htdocs/langs/en_US/orders.lang b/htdocs/langs/en_US/orders.lang
index 8bd5f843f26..500f62c1852 100755
--- a/htdocs/langs/en_US/orders.lang
+++ b/htdocs/langs/en_US/orders.lang
@@ -50,6 +50,7 @@ ComptaCard=Accountancy card
DraftOrders=Draft orders
RelatedOrders=Related orders
OnProcessOrders=On process orders
+RefCustomer=Ref. customer
RefCdeClient=Ref. customer order
RefCdeClientShort=Ref. cust. order
# Sources
diff --git a/htdocs/langs/fr_FR/orders.lang b/htdocs/langs/fr_FR/orders.lang
index 12f626c84e2..eedaf4d1d81 100755
--- a/htdocs/langs/fr_FR/orders.lang
+++ b/htdocs/langs/fr_FR/orders.lang
@@ -50,6 +50,7 @@ ComptaCard=Fiche compta
DraftOrders=Commandes brouillons
RelatedOrders=Commandes rattachées
OnProcessOrders=Commandes en cours de traitement
+RefCustomer=Réf. client
RefCdeClient=Réf. commande client
RefCdeClientShort=Réf. com. client
# Sources
| |