From b62a2c3428d8a1e2faf31d1361142672af95d2d8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 1 Jun 2017 19:25:49 +0300 Subject: [PATCH] Fix for recurring invoice due date --- app/Models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index a1538f5ae8eb..dd477149b094 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -1043,7 +1043,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++;