mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 06:32:40 +01:00
Auto pull transactions when linking accounts
This commit is contained in:
parent
dcce96be88
commit
f14e9c9948
@ -14,6 +14,7 @@ namespace App\Http\Controllers\Bank;
|
||||
use App\Helpers\Bank\Yodlee\Yodlee;
|
||||
use App\Http\Controllers\BaseController;
|
||||
use App\Http\Requests\Yodlee\YodleeAuthRequest;
|
||||
use App\Jobs\Bank\ProcessBankTransactions;
|
||||
use App\Models\BankIntegration;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@ -102,6 +103,15 @@ class YodleeController extends BaseController
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$company->account->bank_integrations->each(function ($bank_integration) use ($company){
|
||||
|
||||
ProcessBankTransactions::dispatch($company->account->bank_integration_account_id, $bank_integration);
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ class ProcessBankTransactions implements ShouldQueue
|
||||
set_time_limit(0);
|
||||
|
||||
//Loop through everything until we are up to date
|
||||
$this->from_date = $this->from_date ?: '2020-01-01';
|
||||
$this->from_date = $this->from_date ?: '2021-01-01';
|
||||
|
||||
do{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user