Przeglądaj źródła

wip fix daily schedule increment

3.x
Andrew Wallo 9 miesięcy temu
rodzic
commit
977fbcf973
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

+ 1
- 1
app/Models/Accounting/RecurringInvoice.php Wyświetl plik

@@ -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
 

Ładowanie…
Anuluj
Zapisz