浏览代码

wip fix daily schedule increment

3.x
Andrew Wallo 9 个月前
父节点
当前提交
977fbcf973
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      app/Models/Accounting/RecurringInvoice.php

+ 1
- 1
app/Models/Accounting/RecurringInvoice.php 查看文件

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

正在加载...
取消
保存