Просмотр исходного кода

wip fix daily schedule increment

3.x
Andrew Wallo 1 год назад
Родитель
Сommit
977fbcf973
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

+ 1
- 1
app/Models/Accounting/RecurringInvoice.php Просмотреть файл

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
 

Загрузка…
Отмена
Сохранить