update email template
This commit is contained in:
@@ -36,7 +36,9 @@ class CheckOverdueInvoices extends Command
|
||||
}
|
||||
|
||||
$invoices = Invoice::query()
|
||||
->with('order:id,status')
|
||||
// customer_id must be selected too: OrderObserver::updated() reads it when
|
||||
// logging the status change below, and a NULL there violates log.customer_id NOT NULL.
|
||||
->with('order:id,status,customer_id')
|
||||
->whereNotNull('due_date')
|
||||
->whereDate('due_date', '<', $today)
|
||||
->whereIn('status', [InvoiceStatus::UNPAID->value, InvoiceStatus::OVERDUE->value])
|
||||
|
||||
Reference in New Issue
Block a user