1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Do not store pending transactions

This commit is contained in:
David Bomba 2023-02-13 08:31:17 +11:00
parent 928cf33031
commit bfea83c8fd

View File

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