Minor fixes for bank transaction processing

This commit is contained in:
David Bomba 2023-06-25 14:34:50 +10:00
parent 712424491f
commit c6e249bb67

View File

@ -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);
}