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…
Reference in New Issue