Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
remove non-booked transactions from import
Browse files Browse the repository at this point in the history
  • Loading branch information
DennaGherlyn committed Jan 16, 2025
1 parent 45d53ff commit 05fee9c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app-gocardless/banks/ssk_dusseldorf_dussdeddxxx.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ export default {
institutionIds: ['SSK_DUSSELDORF_DUSSDEDDXXX'],

normalizeTransaction(transaction, _booked) {
// If the transaction is not booked yet by the bank, don't import it.
// Reason being that the transaction doesn't have the information yet
// to make the payee and notes field be of any use. It's filled with

Check failure on line 12 in src/app-gocardless/banks/ssk_dusseldorf_dussdeddxxx.js

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
// a placeholder text and wouldn't be corrected on the next sync.
if (!_booked) {
return null;
}

// Prioritize unstructured information, falling back to structured formats
let remittanceInformationUnstructured =
transaction.remittanceInformationUnstructured ??
Expand Down

0 comments on commit 05fee9c

Please sign in to comment.