mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bank Transactions updates for auto sync dates
This commit is contained in:
parent
f1ab3845eb
commit
c1075c174c
@ -26,6 +26,7 @@ use Illuminate\Foundation\Events\Dispatchable;
|
|||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use Illuminate\Queue\Middleware\WithoutOverlapping;
|
use Illuminate\Queue\Middleware\WithoutOverlapping;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
use Illuminate\Support\Carbon;
|
||||||
|
|
||||||
class ProcessBankTransactionsYodlee implements ShouldQueue
|
class ProcessBankTransactionsYodlee implements ShouldQueue
|
||||||
{
|
{
|
||||||
@ -71,8 +72,8 @@ class ProcessBankTransactionsYodlee implements ShouldQueue
|
|||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
//Loop through everything until we are up to date
|
//Loop through everything until we are up to date - improve handling of delayed accounts
|
||||||
$this->from_date = $this->from_date ?: '2021-01-01';
|
$this->from_date = $this->from_date ? Carbon::parse($this->from_date)->subWeeks(2)->format('Y-m-d') : '2021-01-01';
|
||||||
|
|
||||||
nlog("Yodlee: Processing transactions for account: {$this->bank_integration->account->key}");
|
nlog("Yodlee: Processing transactions for account: {$this->bank_integration->account->key}");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user