Browse Source

wip fix daily schedule increment

3.x
Andrew Wallo 9 months ago
parent
commit
977fbcf973
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

+ 1
- 1
app/Models/Accounting/RecurringInvoice.php View File

283
         }
283
         }
284
 
284
 
285
         $nextDate = match (true) {
285
         $nextDate = match (true) {
286
-            $this->frequency->isDaily() => $lastDate->addDay(),
286
+            $this->frequency->isDaily() => $lastDate->copy()->addDay(),
287
 
287
 
288
             $this->frequency->isWeekly() => $this->calculateNextWeeklyDate($lastDate),
288
             $this->frequency->isWeekly() => $this->calculateNextWeeklyDate($lastDate),
289
 
289
 

Loading…
Cancel
Save