Do not store pending transactions
This commit is contained in:
parent
928cf33031
commit
bfea83c8fd
1 changed files with 4 additions and 0 deletions
|
|
@ -127,6 +127,10 @@ class IncomeTransformer implements BankRevenueInterface
|
|||
|
||||
foreach($transaction->transaction as $transaction)
|
||||
{
|
||||
//do not store duplicate / pending transactions
|
||||
if(property_exists($transaction,'status') && $transaction->status == 'PENDING')
|
||||
continue;
|
||||
|
||||
$data[] = $this->transformTransaction($transaction);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue