Merge pull request #19186 from ptibogxiv/patch-448

Fix excluded member display in takepos
This commit is contained in:
Laurent Destailleur 2021-10-31 18:04:19 +01:00 committed by GitHub
commit cb648705ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1159,7 +1159,7 @@ $( document ).ready(function() {
$result = $adh->fetch('', '', $invoice->socid);
if ($result > 0) {
$adh->ref = $adh->getFullName($langs);
if (empty($adh->statut)) {
if (empty($adh->statut) || $adh->statut == Adherent::STATUS_EXCLUDED ) {
$s .= "<s>";
}
$s .= $adh->getFullName($langs);
@ -1175,7 +1175,7 @@ $( document ).ready(function() {
$s .= " ".img_warning($langs->trans("Late")); // displays delay Pictogram only if not a draft and not terminated
}
}
if (empty($adh->statut)) {
if (empty($adh->statut) || $adh->statut == Adherent::STATUS_EXCLUDED) {
$s .= "</s>";
}
} else {