mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 17:02:34 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user