Merge pull request #35788 from Easya-Solutions/18_allow_credit_invoice_on_situation

FIX : remove useless condition to create credit on situation invoice …
This commit is contained in:
Eric - CAP-REL 2025-12-04 09:56:30 +01:00 committed by GitHub
commit 2ebdcfda5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()