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)
|
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';
|
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';
|
return 'DEBIT';
|
||||||
|
|
||||||
if(array_key_exists('bank.category_id', $transaction))
|
if(array_key_exists('bank.category_id', $transaction))
|
||||||
|
@ -83,8 +83,8 @@ class CSVIngest implements ShouldQueue
|
|||||||
|
|
||||||
$this->checkContacts();
|
$this->checkContacts();
|
||||||
|
|
||||||
if(Ninja::isHosted())
|
// if(Ninja::isHosted())
|
||||||
app('queue.worker')->shouldQuit = 1;
|
// app('queue.worker')->shouldQuit = 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user