Skip to content

Commit

Permalink
override source for recurring
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Sep 10, 2021
1 parent 78eeb8c commit fc38f25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Console/Commands/RecurringCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ protected function getDocumentClone($model, $schedule_date)
$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;
Expand All @@ -214,6 +215,7 @@ protected function getTransactionClone($model, $schedule_date)

$clone->parent_id = $model->id;
$clone->paid_at = $schedule_date->format('Y-m-d');
$clone->created_from = 'core::recurring';
$clone->save();

return $clone;
Expand Down

0 comments on commit fc38f25

Please sign in to comment.