Ver código fonte

wip fix daily schedule increment

3.x
Andrew Wallo 9 meses atrás
pai
commit
977fbcf973
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

+ 1
- 1
app/Models/Accounting/RecurringInvoice.php Ver arquivo

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

Carregando…
Cancelar
Salvar