Adjustments for clean proforma invoices

This commit is contained in:
David Bomba 2024-07-31 07:46:23 +10:00
parent bb6075e6ef
commit 0ad5836a2f

View File

@ -78,7 +78,7 @@ class CleanStaleInvoiceOrder implements ShouldQueue
Invoice::query()
->withTrashed()
->where('is_proforma', 1)
->whereBetween('created_at', [now()->subHours(1), now()->subMinutes(10)])
->where('created_at', '<', now()->subHour())
->cursor()
->each(function ($invoice) use ($repo) {
$invoice->is_proforma = false;