From fc38f259b6060fdf94244d827ea783b93948df3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Fri, 10 Sep 2021 11:21:11 +0300 Subject: [PATCH] override source for recurring --- app/Console/Commands/RecurringCheck.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Console/Commands/RecurringCheck.php b/app/Console/Commands/RecurringCheck.php index 2ea7704ce..df5c9f305 100644 --- a/app/Console/Commands/RecurringCheck.php +++ b/app/Console/Commands/RecurringCheck.php @@ -193,6 +193,7 @@ class RecurringCheck extends Command $clone->parent_id = $model->id; $clone->$date_field = $schedule_date->format('Y-m-d'); $clone->due_at = $schedule_date->copy()->addDays($diff_days)->format('Y-m-d'); + $clone->created_from = 'core::recurring'; $clone->save(); return $clone; @@ -214,6 +215,7 @@ class RecurringCheck extends Command $clone->parent_id = $model->id; $clone->paid_at = $schedule_date->format('Y-m-d'); + $clone->created_from = 'core::recurring'; $clone->save(); return $clone;