Fix dead code
This commit is contained in:
parent
0ef249ea52
commit
bad5daee13
@ -1170,40 +1170,6 @@ class Reception extends CommonObject
|
|||||||
if ($status == self::STATUS_CLOSED) $statusType = 'status6';
|
if ($status == self::STATUS_CLOSED) $statusType = 'status6';
|
||||||
|
|
||||||
return dolGetStatus($labelStatus, $labelStatusShort, '', $statusType, $mode);
|
return dolGetStatus($labelStatus, $labelStatusShort, '', $statusType, $mode);
|
||||||
|
|
||||||
// phpcs:enable
|
|
||||||
global $langs;
|
|
||||||
|
|
||||||
if ($mode==0)
|
|
||||||
{
|
|
||||||
if ($status==0) return $langs->trans($this->statuts[$status]);
|
|
||||||
elseif ($status==1) return $langs->trans($this->statuts[$status]);
|
|
||||||
elseif ($status==2) return $langs->trans($this->statuts[$status]);
|
|
||||||
}
|
|
||||||
elseif ($mode==1)
|
|
||||||
{
|
|
||||||
if ($status==0) return $langs->trans('StatusReceptionDraftShort');
|
|
||||||
elseif ($status==1) return $langs->trans('StatusReceptionValidatedShort');
|
|
||||||
elseif ($status==2) return $langs->trans('StatusReceptionProcessedShort');
|
|
||||||
}
|
|
||||||
elseif ($mode == 3)
|
|
||||||
{
|
|
||||||
if ($status==0) return img_picto($langs->trans($this->statuts[$status]), 'statut0');
|
|
||||||
elseif ($status==1) return img_picto($langs->trans($this->statuts[$status]), 'statut4');
|
|
||||||
elseif ($status==2) return img_picto($langs->trans('StatusReceptionProcessed'), 'statut6');
|
|
||||||
}
|
|
||||||
elseif ($mode == 4)
|
|
||||||
{
|
|
||||||
if ($status==0) return img_picto($langs->trans($this->statuts[$status]), 'statut0').' '.$langs->trans($this->statuts[$status]);
|
|
||||||
elseif ($status==1) return img_picto($langs->trans($this->statuts[$status]), 'statut4').' '.$langs->trans($this->statuts[$status]);
|
|
||||||
elseif ($status==2) return img_picto($langs->trans('StatusReceptionProcessed'), 'statut6').' '.$langs->trans('StatusReceptionProcessed');
|
|
||||||
}
|
|
||||||
elseif ($mode == 5)
|
|
||||||
{
|
|
||||||
if ($status==0) return $langs->trans('StatusReceptionDraftShort').' '.img_picto($langs->trans($this->statuts[$status]), 'statut0');
|
|
||||||
elseif ($status==1) return $langs->trans('StatusReceptionValidatedShort').' '.img_picto($langs->trans($this->statuts[$status]), 'statut4');
|
|
||||||
elseif ($status==2) return $langs->trans('StatusReceptionProcessedShort').' '.img_picto($langs->trans('StatusReceptionProcessedShort'), 'statut6');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user