Set reminders on migrating companies

This commit is contained in:
David Bomba 2023-08-08 20:50:21 +10:00
parent 91d39aab82
commit 0eac6589ce

View File

@ -136,7 +136,7 @@ class InvoiceMigrationRepository extends BaseRepository
$state['finished_amount'] = $model->amount;
$model = $model->service()->applyNumber()->save();
$model = $model->service()->applyNumber()->setReminder()->save();
if ($class->name == Invoice::class || $class->name == RecurringInvoice::class) {
if (($state['finished_amount'] != $state['starting_amount']) && ($model->status_id != Invoice::STATUS_DRAFT)) {