mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Adjustments for payments
This commit is contained in:
parent
40385a1cd7
commit
c0ea157ab6
@ -56,7 +56,7 @@ class CleanStaleInvoiceOrder implements ShouldQueue
|
|||||||
Invoice::query()
|
Invoice::query()
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->where('status_id', Invoice::STATUS_SENT)
|
->where('status_id', Invoice::STATUS_SENT)
|
||||||
->where('created_at', '<', now()->subHours(2))
|
->whereBetween('created_at', [now()->subHours(1), now()->subMinutes(10)])
|
||||||
->where('balance', '>', 0)
|
->where('balance', '>', 0)
|
||||||
->cursor()
|
->cursor()
|
||||||
->each(function ($invoice){
|
->each(function ($invoice){
|
||||||
@ -77,7 +77,7 @@ class CleanStaleInvoiceOrder implements ShouldQueue
|
|||||||
Invoice::query()
|
Invoice::query()
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->where('is_proforma', 1)
|
->where('is_proforma', 1)
|
||||||
->where('created_at', '<', now()->subHour())
|
->whereBetween('created_at', [now()->subHours(1), now()->subMinutes(10)])
|
||||||
->cursor()
|
->cursor()
|
||||||
->each(function ($invoice) use ($repo) {
|
->each(function ($invoice) use ($repo) {
|
||||||
$invoice->is_proforma = false;
|
$invoice->is_proforma = false;
|
||||||
|
@ -190,7 +190,7 @@ class InstantPayment
|
|||||||
|
|
||||||
/* Schedule a job to check the gateway fees for this invoice*/
|
/* Schedule a job to check the gateway fees for this invoice*/
|
||||||
if (Ninja::isHosted()) {
|
if (Ninja::isHosted()) {
|
||||||
CheckGatewayFee::dispatch($first_invoice->id, $client->company->db)->delay(600);
|
CheckGatewayFee::dispatch($first_invoice->id, $client->company->db)->delay(800);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($gateway) {
|
if ($gateway) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user