Explorar el Código

wip fix daily schedule increment

3.x
Andrew Wallo hace 9 meses
padre
commit
977fbcf973
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

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

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

Loading…
Cancelar
Guardar