diff --git a/src/Services/PayPalNvpFetchService.php b/src/Services/PayPalNvpFetchService.php index 06c09ef..b1c39ca 100644 --- a/src/Services/PayPalNvpFetchService.php +++ b/src/Services/PayPalNvpFetchService.php @@ -181,7 +181,7 @@ class PayPalNvpFetchService { // Regel 1: Authorization → ignoriert $auths = Database::fetchAll( - "SELECT id FROM bank_transactions bt + "SELECT bt.id FROM bank_transactions bt JOIN bank_import_batches bib ON bt.batch_id = bib.id WHERE bib.source_id = ? AND bt.vorgang = 'Authorization' AND bt.status = 'offen'", [$this->sourceId]