Fix for recurring invoice due date
This commit is contained in:
parent
46ea8a40ca
commit
61d559875b
1 changed files with 1 additions and 1 deletions
|
|
@ -1036,7 +1036,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||
$dueDay = $lastDayOfMonth;
|
||||
}
|
||||
|
||||
if ($currentDay > $dueDay) {
|
||||
if ($currentDay >= $dueDay) {
|
||||
// Wait until next month
|
||||
// We don't need to handle the December->January wraparaound, since PHP handles month 13 as January of next year
|
||||
$dueMonth++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue