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:
parent
448385ceb2
commit
efb87f011c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue