diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 531b9910119..9a9a5fff484 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -3738,6 +3738,7 @@ class Commande extends CommonOrder if (empty($donotshowbilled)) { $billedtext .= ($billed ? ' - '.$langs->transnoentitiesnoconv("Billed") : ''); } + $billedtextlong = ($billed ? ' - '.$langs->transnoentitiesnoconv("Billed") : ''); $labelTooltip = ''; @@ -3750,11 +3751,11 @@ class Commande extends CommonOrder $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderDraftShort'); $statusType = 'status0'; } elseif ($status == self::STATUS_VALIDATED) { - $labelStatus = $langs->transnoentitiesnoconv('StatusOrderValidated').$billedtext; + $labelStatus = $langs->transnoentitiesnoconv('StatusOrderValidated').$billedtextlong; $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderValidatedShort').$billedtext; $statusType = 'status1'; } elseif ($status == self::STATUS_SHIPMENTONPROCESS) { - $labelStatus = $langs->transnoentitiesnoconv('StatusOrderSent').$billedtext; + $labelStatus = $langs->transnoentitiesnoconv('StatusOrderSent').$billedtextlong; $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderSentShort').$billedtext; $labelTooltip = $langs->transnoentitiesnoconv("StatusOrderSent"); if (!empty($this->delivery_date)) { @@ -3762,7 +3763,7 @@ class Commande extends CommonOrder } $statusType = 'status4'; } elseif ($status == self::STATUS_CLOSED) { - $labelStatus = $langs->transnoentitiesnoconv('StatusOrderDelivered').$billedtext; + $labelStatus = $langs->transnoentitiesnoconv('StatusOrderDelivered').$billedtextlong; $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderDeliveredShort').$billedtext; $statusType = 'status6'; } else {