Uniformize code

This commit is contained in:
Laurent Destailleur
2016-09-21 01:25:34 +02:00
parent b5dad8cfbf
commit 133657a8c7
6 changed files with 482 additions and 407 deletions

View File

@@ -986,6 +986,12 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
$morehtmlright.=$object->getLibStatut(5,1);
}
}
elseif ($object->element == 'facture')
{
$tmptxt=$object->getLibStatut(6, $object->totalpaye);
if (empty($tmptxt) || $tmptxt == $object->getLibStatut(3)) $tmptxt=$object->getLibStatut(5, $object->totalpaye);
$morehtmlright.=$tmptxt;
}
else {
$tmptxt=$object->getLibStatut(6);
if (empty($tmptxt) || $tmptxt == $object->getLibStatut(3)) $tmptxt=$object->getLibStatut(5);