diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 9ce5fd95f98..217270ce6e1 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -5796,10 +5796,9 @@ if ($action == 'create') { } } - // For situation invoice with excess received + // For situation invoice if ($object->statut > Facture::STATUS_DRAFT && $object->type == Facture::TYPE_SITUATION - && ($object->total_ttc - $totalpaid - $totalcreditnotes - $totaldeposits) > 0 && $usercancreate && !$objectidnext && $object->is_last_in_cycle()