Update invoice.php

This commit is contained in:
ptibogxiv 2020-08-29 13:36:52 +02:00 committed by GitHub
parent eecab28203
commit 6eeb1d3a96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -816,12 +816,10 @@ $( document ).ready(function() {
if ($result > 0) if ($result > 0)
{ {
$adh->ref = $adh->getFullName($langs); $adh->ref = $adh->getFullName($langs);
if (empty($adh->statut)) { $s .= "<s>"; }
$s .= $adh->getFullName($langs); $s .= $adh->getFullName($langs);
$s .= ' - '.$adh->type; $s .= ' - '.$adh->type;
if (empty($adh->statut) && $adh->datefin) { if ($adh->datefin)
$s .= '<br>'.$langs->trans("MemberStatusResiliated");
}
elseif ($adh->datefin)
{ {
$s .= '<br>'.$langs->trans("SubscriptionEndDate").': '.dol_print_date($adh->datefin, 'day'); $s .= '<br>'.$langs->trans("SubscriptionEndDate").': '.dol_print_date($adh->datefin, 'day');
if ($adh->hasDelay()) { if ($adh->hasDelay()) {
@ -831,6 +829,7 @@ $( document ).ready(function() {
$s .= '<br>'.$langs->trans("SubscriptionNotReceived"); $s .= '<br>'.$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 ($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 .= "</s>"; }
} else { } else {
$s .= '<br>'.$langs->trans("ThirdpartyNotLinkedToMember"); $s .= '<br>'.$langs->trans("ThirdpartyNotLinkedToMember");
} }