Update livraison.class.php

for correct display object link in card other object (shipping)
This commit is contained in:
oscim 2019-09-22 11:34:28 +02:00 committed by GitHub
parent b30c55a2ee
commit 14c98bea15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -844,6 +844,12 @@ class Livraison extends CommonObject
elseif ($statut==0) return $langs->trans($this->statuts[$statut]);
elseif ($statut==1) return $langs->trans($this->statuts[$statut]);
}
elseif ($mode == 3)
{
if ($statut==-1) return img_picto($langs->trans('StatusDeliveryCanceled'),'statut5');
if ($statut==0) return img_picto($langs->trans('StatusDeliveryDraft'),'statut0');
if ($statut==1) return img_picto($langs->trans('StatusDeliveryValidated'),'statut4');
}
elseif ($mode == 4)
{
if ($statut==-1) return img_picto($langs->trans('StatusDeliveryCanceled'), 'statut5').' '.$langs->trans('StatusDeliveryCanceled');