mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 10:54:30 -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) {
|
foreach ($transaction->transaction as $transaction) {
|
||||||
//do not store duplicate / pending transactions
|
//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;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
$data[] = $this->transformTransaction($transaction);
|
$data[] = $this->transformTransaction($transaction);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user