mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 23:44:28 -04:00
Adjustments for clean proforma invoices
This commit is contained in:
parent
bb6075e6ef
commit
0ad5836a2f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user