Fix excluded member display in takepos

This commit is contained in:
ptibogxiv 2021-10-24 17:40:44 +02:00 committed by GitHub
parent 50df842417
commit 10d35ee4aa
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 = -2) {
$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 = -2) {
$s .= "</s>";
}
} else {