mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for csv inget
This commit is contained in:
parent
3466d53845
commit
40055a0095
@ -56,10 +56,10 @@ class BankTransformer extends BaseTransformer
|
||||
private function calculateType($transaction)
|
||||
{
|
||||
|
||||
if(array_key_exists('bank.base_type', $transaction) && $transaction['bank.base_type'] == 'CREDIT')
|
||||
if(array_key_exists('bank.base_type', $transaction) && ($transaction['bank.base_type'] == 'CREDIT') || strtolower($transaction['bank.base_type']) == 'deposit')
|
||||
return 'CREDIT';
|
||||
|
||||
if(array_key_exists('bank.base_type', $transaction) && $transaction['bank.base_type'] == 'DEBIT')
|
||||
if(array_key_exists('bank.base_type', $transaction) && ($transaction['bank.base_type'] == 'DEBIT') || strtolower($transaction['bank.bank_type']) == 'withdrawal')
|
||||
return 'DEBIT';
|
||||
|
||||
if(array_key_exists('bank.category_id', $transaction))
|
||||
|
@ -83,8 +83,8 @@ class CSVIngest implements ShouldQueue
|
||||
|
||||
$this->checkContacts();
|
||||
|
||||
if(Ninja::isHosted())
|
||||
app('queue.worker')->shouldQuit = 1;
|
||||
// if(Ninja::isHosted())
|
||||
// app('queue.worker')->shouldQuit = 1;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user