mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -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()
|
Invoice::query()
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->where('is_proforma', 1)
|
->where('is_proforma', 1)
|
||||||
->whereBetween('created_at', [now()->subHours(1), now()->subMinutes(10)])
|
->where('created_at', '<', now()->subHour())
|
||||||
->cursor()
|
->cursor()
|
||||||
->each(function ($invoice) use ($repo) {
|
->each(function ($invoice) use ($repo) {
|
||||||
$invoice->is_proforma = false;
|
$invoice->is_proforma = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user