From 8ddf9f6075e12b7754248741bd549092bb2b22d0 Mon Sep 17 00:00:00 2001 From: tnegre Date: Thu, 16 Oct 2025 11:41:52 +0200 Subject: [PATCH] FIX : remove useless condition to create credit on situation invoice (#35786) --- htdocs/compta/facture/card.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 39c271ea0ca..007e2c89d2d 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()