1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #6092 from turbo124/v5-develop

Log Reminders
This commit is contained in:
David Bomba 2021-06-21 17:15:17 +10:00 committed by GitHub
commit 690f1ff9f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,8 @@ class ReminderJob implements ShouldQueue
private function processReminders()
{
nlog("Sending invoice reminders " . now()->format('Y-m-d h:i:s'));
Invoice::whereDate('next_send_date', '<=', now())
->where('is_deleted', 0)
->whereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL])