mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for recurring invoice due date
This commit is contained in:
parent
091e3ed1b2
commit
b62a2c3428
@ -1043,7 +1043,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
$dueDay = $lastDayOfMonth;
|
$dueDay = $lastDayOfMonth;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($currentDay > $dueDay) {
|
if ($currentDay >= $dueDay) {
|
||||||
// Wait until next month
|
// Wait until next month
|
||||||
// We don't need to handle the December->January wraparaound, since PHP handles month 13 as January of next year
|
// We don't need to handle the December->January wraparaound, since PHP handles month 13 as January of next year
|
||||||
$dueMonth++;
|
$dueMonth++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user