2
0
forked from Wavyzz/dolibarr

Complete work on dol_banner on contracts

This commit is contained in:
Laurent Destailleur
2016-12-04 13:30:17 +01:00
parent 211436b436
commit 788cbf9a01
10 changed files with 97 additions and 92 deletions

View File

@@ -1061,9 +1061,10 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
if (empty($tmptxt) || $tmptxt == $object->getLibStatut(3) || $conf->browser->layout=='phone') $tmptxt=$object->getLibStatut(5, $object->totalpaye);
$morehtmlstatus.=$tmptxt;
}
elseif ($object->element == 'facturerec')
elseif ($object->element == 'contrat')
{
$morehtmlstatus.='<!-- No status for recurring invoice -->';
if ($object->statut==0) $morehtmlstatus.=$object->getLibStatut(2);
else $morehtmlstatus.=$object->getLibStatut(4);
}
else { // Generic case
$tmptxt=$object->getLibStatut(6);