mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Cleanup
This commit is contained in:
parent
0eb7c730d8
commit
212c5706b3
@ -62,8 +62,8 @@ class ProcessBankTransactions implements ShouldQueue
|
||||
{
|
||||
|
||||
set_time_limit(0);
|
||||
//Loop through everything until we are up to date
|
||||
|
||||
//Loop through everything until we are up to date
|
||||
$this->from_date = $this->from_date ?: '2020-01-01';
|
||||
|
||||
do{
|
||||
@ -96,8 +96,6 @@ class ProcessBankTransactions implements ShouldQueue
|
||||
//Get int count
|
||||
$count = $transaction_count->transaction->TOTAL->count;
|
||||
|
||||
nlog("Number of transactions = {$count} - bank integration id = {$this->bank_integration->id} - bank account id = {$this->bank_integration->bank_account_id} - from {$this->from_date}");
|
||||
|
||||
//get transactions array
|
||||
$transactions = $yodlee->getTransactions($data);
|
||||
|
||||
@ -106,7 +104,6 @@ class ProcessBankTransactions implements ShouldQueue
|
||||
|
||||
$this->bank_integration->from_date = now();
|
||||
$this->bank_integration->save();
|
||||
nlog("the bank integration from_date being set to: {$this->bank_integration->from_date}");
|
||||
$this->stop_loop = false;
|
||||
return;
|
||||
}
|
||||
@ -151,7 +148,6 @@ class ProcessBankTransactions implements ShouldQueue
|
||||
$this->bank_integration->from_date = now();
|
||||
$this->bank_integration->save();
|
||||
|
||||
nlog("stopping while loop");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -69,8 +69,6 @@ class BankTransactionSync implements ShouldQueue
|
||||
|
||||
$account->bank_integrations->each(function ($bank_integration) use ($account){
|
||||
|
||||
nlog("Account = {$account->id} - {$bank_integration->id}");
|
||||
|
||||
ProcessBankTransactions::dispatchSync($account->bank_integration_account_id, $bank_integration);
|
||||
|
||||
});
|
||||
|
@ -91,6 +91,9 @@ class CreditCard implements MethodInterface
|
||||
$gateway_response = \json_decode($request->gateway_response);
|
||||
|
||||
$customerRequest = $this->checkout->getCustomer();
|
||||
|
||||
nlog($customerRequest);
|
||||
|
||||
$request = $this->bootRequest($gateway_response->token);
|
||||
$request->capture = false;
|
||||
$request->reference = '$1 payment for authorization.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user