mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:54:29 -04:00
Minor fixes for bank transaction processing
This commit is contained in:
parent
712424491f
commit
c6e249bb67
@ -127,9 +127,12 @@ class IncomeTransformer implements BankRevenueInterface
|
||||
|
||||
foreach ($transaction->transaction as $transaction) {
|
||||
//do not store duplicate / pending transactions
|
||||
if (property_exists($transaction, 'status') && $transaction->status == 'PENDING') {
|
||||
if (property_exists($transaction, 'status') && $transaction->status == 'PENDING')
|
||||
continue;
|
||||
|
||||
//some object do no store amounts ignore these
|
||||
if(!property_exists($transaction, 'amount'))
|
||||
continue;
|
||||
}
|
||||
|
||||
$data[] = $this->transformTransaction($transaction);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user