diff --git a/htdocs/commande/apercu.php b/htdocs/commande/apercu.php index 62e028e2470..96a388d0bb6 100644 --- a/htdocs/commande/apercu.php +++ b/htdocs/commande/apercu.php @@ -252,7 +252,7 @@ if ($_GET["id"] > 0) { // Statut print ''.$langs->trans("Status").''; - print "".$commande->statuts[$commande->statut]."\n"; + print "".$commande->getLibStatut(4)."\n"; print ''; // Date diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 8d05748577a..23efefa841c 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -1308,7 +1308,7 @@ class Commande */ function getLibStatut($mode) { - return $this->LibStatut($this->statut); + return $this->LibStatut($this->statut,$mode); } /** diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 6dd69a3b703..3d6674183db 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2005 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * Copyright (C) 2005 Marc Barilley / Ocebo * Copyright (C) 2005-2006 Regis Houssin * Copyright (C) 2006 Andre Cianfarani @@ -666,8 +666,9 @@ else print ''.$soc->nom.''; print ''; + // Statut print ''.$langs->trans('Status').''; - print ''.$commande->statuts[$commande->statut].''; + print ''.$commande->getLibStatut(4).''; print ''; print ''.$langs->trans('Date').''; @@ -1006,11 +1007,7 @@ else { print '
'; - if ($conf->expedition->enabled && $commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer) - { - print ''.$langs->trans('Send').''; - } - + // Valid if ($commande->statut == 0) { if ($user->rights->commande->valider) @@ -1019,6 +1016,18 @@ else } } + // Build PDF + if ($user->rights->commande->creer) + { + print ''.$langs->trans("BuildPDF").''; + } + + // Ship + if ($conf->expedition->enabled && $commande->statut > 0 && $commande->statut < 3 && $user->rights->expedition->creer) + { + print ''.$langs->trans('ShipProduct').''; + } + if ($commande->statut == 1 || $commande->statut == 2) { if ($user->rights->commande->creer) @@ -1027,11 +1036,6 @@ else } } - if ($commande->statut == 0 && $user->rights->commande->supprimer) - { - print ''.$langs->trans('Delete').''; - } - if ($commande->statut == 1) { $nb_expedition = $commande->nb_expedition(); @@ -1040,12 +1044,12 @@ else print ''.$langs->trans('CancelOrder').''; } } - // Build PDF - if ($user->rights->commande->creer) - { - print ''.$langs->trans("BuildPDF").''; - } + if ($commande->statut == 0 && $user->rights->commande->supprimer) + { + print ''.$langs->trans('Delete').''; + } + print '
'; } print '
'; diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index bcae1c24ab6..7ed0d4b5f4d 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -185,7 +185,7 @@ if ($resql) print strftime('%B',$objp->date_commande).''; print ' '; print strftime('%Y',$objp->date_commande).''; - print ''.$generic_commande->status_label_short[$objp->fk_statut].''; + print ''.$generic_commande->LibStatut($objp->fk_statut,5).''; print ''; $total = $total + $objp->price; $subtotal = $subtotal + $objp->price; diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index 60c34a5cebd..0060322b24f 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -137,7 +137,7 @@ if ($_GET["id"] > 0) print ''; // Ref - print ''; + print ''; print ''; print ''; - // Société - print ''; - print ''; - print ''; - - $nbrow=3; - // Ref commande client print ''; + $nbrow=3; print ''; print ''; - + + // Société + print ''; + print ''; + print ''; + + // Statut print ''; - print ''; + print ''; print ''; + // Date print ''; print ''; print ''; diff --git a/htdocs/langs/en_US/orders.lang b/htdocs/langs/en_US/orders.lang index 2a26d207340..6f71b67ebde 100755 --- a/htdocs/langs/en_US/orders.lang +++ b/htdocs/langs/en_US/orders.lang @@ -22,6 +22,7 @@ MenuOrdersToBill=Orders to bill SearchOrder=Search order Sending=Sending Sendings=Sendings +ShipProduct=Ship product VAT=VAT Discount=Discount CreateOrder=Create Order diff --git a/htdocs/langs/fr_FR/orders.lang b/htdocs/langs/fr_FR/orders.lang index 8583c3e2063..d4aabe6984a 100755 --- a/htdocs/langs/fr_FR/orders.lang +++ b/htdocs/langs/fr_FR/orders.lang @@ -22,6 +22,7 @@ SearchOrder=Rechercher une commande MenuOrdersToBill=Commandes à facturer Sending=Expédition Sendings=Expéditions +ShipProduct=Expédier produit VAT=TVA Discount=Remise CreateOrder=Créer Commande
'.$langs->trans('Ref').'
'.$langs->trans('Ref').''.$commande->ref.''.$langs->trans('Source').' : ' . $commande->sources[$commande->source] ; if ($commande->source == 0) @@ -149,32 +149,33 @@ if ($_GET["id"] > 0) } print '
'.$langs->trans('Customer').''; - print ''.$soc->nom.'
'; print ''; print '
'; - print $langs->trans('RefCdeClient').''; + print $langs->trans('RefCustomer').''; print '
'; print '
'; print $commande->ref_client; print ''.$langs->trans('Note').' :
'; print nl2br($commande->note); print '
'.$langs->trans('Customer').''; + print ''.$soc->nom.'
'.$langs->trans('Status').''.$commande->statuts[$commande->statut].''.$commande->getLibStatut(4).'
'.$langs->trans('Date').''.dolibarr_print_date($commande->date,'%A %d %B %Y').'