From 61d559875b20603cc6c1953ab006f19b02040287 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 1 Jun 2017 19:26:06 +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 237280aa41..a46fb22eee 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -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++;