Procházet zdrojové kódy

wip fix daily schedule increment

3.x
Andrew Wallo před 9 měsíci
rodič
revize
977fbcf973
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

+ 1
- 1
app/Models/Accounting/RecurringInvoice.php Zobrazit soubor

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

Načítá se…
Zrušit
Uložit