FIX: Correct due date calculation for payment term 45J FDM on 15th (#36808)

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
This commit is contained in:
Zakaria Boushaba
2026-01-07 20:21:07 +01:00
committed by GitHub
parent 448385ceb2
commit efb87f011c

View File

@@ -1159,7 +1159,7 @@ abstract class CommonInvoice extends CommonObject
$diff = $date_piece - $date_lim_current;
if ($diff < 0) {
if ($diff <= 0) {
$datelim = $date_lim_current;
} else {
$datelim = $date_lim_next;