override source for recurring
This commit is contained in:
parent
78eeb8cb6f
commit
fc38f259b6
@ -193,6 +193,7 @@ class RecurringCheck extends Command
|
|||||||
$clone->parent_id = $model->id;
|
$clone->parent_id = $model->id;
|
||||||
$clone->$date_field = $schedule_date->format('Y-m-d');
|
$clone->$date_field = $schedule_date->format('Y-m-d');
|
||||||
$clone->due_at = $schedule_date->copy()->addDays($diff_days)->format('Y-m-d');
|
$clone->due_at = $schedule_date->copy()->addDays($diff_days)->format('Y-m-d');
|
||||||
|
$clone->created_from = 'core::recurring';
|
||||||
$clone->save();
|
$clone->save();
|
||||||
|
|
||||||
return $clone;
|
return $clone;
|
||||||
@ -214,6 +215,7 @@ class RecurringCheck extends Command
|
|||||||
|
|
||||||
$clone->parent_id = $model->id;
|
$clone->parent_id = $model->id;
|
||||||
$clone->paid_at = $schedule_date->format('Y-m-d');
|
$clone->paid_at = $schedule_date->format('Y-m-d');
|
||||||
|
$clone->created_from = 'core::recurring';
|
||||||
$clone->save();
|
$clone->save();
|
||||||
|
|
||||||
return $clone;
|
return $clone;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user