Bläddra i källkod

wip fix daily schedule increment

3.x
Andrew Wallo 1 år sedan
förälder
incheckning
977fbcf973
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

+ 1
- 1
app/Models/Accounting/RecurringInvoice.php Visa fil

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
 

Laddar…
Avbryt
Spara