diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index a25c809b551..8179b236158 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -817,6 +817,7 @@ $( document ).ready(function() { if ($result > 0) { $adh->ref = $adh->getFullName($langs); + if (empty($adh->statut)) { $s .= ""; } $s .= $adh->getFullName($langs); $s .= ' - '.$adh->type; if ($adh->datefin) @@ -829,6 +830,7 @@ $( document ).ready(function() { $s .= '
'.$langs->trans("SubscriptionNotReceived"); if ($adh->statut > 0) $s .= " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft and not terminated } + if (empty($adh->statut)) { $s .= "
"; } } else { $s .= '
'.$langs->trans("ThirdpartyNotLinkedToMember"); }