diff --git a/app/Services/Invoice/TriggeredActions.php b/app/Services/Invoice/TriggeredActions.php index c40fca791e..25d33aafd0 100644 --- a/app/Services/Invoice/TriggeredActions.php +++ b/app/Services/Invoice/TriggeredActions.php @@ -44,7 +44,7 @@ class TriggeredActions extends AbstractService { if($this->request->has('auto_bill')) { - + $this->invoice->service()->autoBill()->save(); } if($this->request->has('paid') && (bool)$this->request->input('paid') !== false) { diff --git a/app/Utils/Traits/MakesReminders.php b/app/Utils/Traits/MakesReminders.php index f2af721d15..1da4e1c8de 100644 --- a/app/Utils/Traits/MakesReminders.php +++ b/app/Utils/Traits/MakesReminders.php @@ -193,17 +193,17 @@ trait MakesReminders $client->getSetting('schedule_reminder1'), $client->getSetting('num_days_reminder1') )) { - return 'template1'; + return 'reminder1'; } elseif ($client->getSetting('enable_reminder2') !== false && $this->inReminderWindow( $client->getSetting('schedule_reminder2'), $client->getSetting('num_days_reminder2') )) { - return 'template2'; + return 'reminder2'; } elseif ($client->getSetting('enable_reminder3') !== false && $this->inReminderWindow( $client->getSetting('schedule_reminder3'), $client->getSetting('num_days_reminder3') )) { - return 'template3'; + return 'reminder3'; } else { return 'invoice'; }