[PR #6533] Fix LHV bank adapter not being loaded due to filename mismatch #6584

Closed
opened 2026-02-28 21:30:20 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6533

State: closed
Merged: Yes


Summary

The LHV bank adapter (lhv-lhvbee22.js) was not being loaded because bank-factory.js filters for files containing underscores:

.filter(filename => filename.includes('_') && filename.endsWith('.js'));

This caused all LHV transactions to fall back to the generic IntegrationBank handler, which doesn't extract payee names from card transaction remittance info. As a result, card payments showed the full remittance string as the payee instead of the extracted merchant name.

Changes

  • Rename lhv-lhvbee22.jslhv_lhvbee22.js to match the naming convention used by all other bank adapters
  • Update the corresponding test file and import statement

Test plan

  • Verified the bank factory now loads lhv_lhvbee22.js (43 banks loaded including LHV)
  • Verified no other references to the old filename exist
  • Run existing LHV bank adapter tests
  • Manual testing in a local production environment

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Fixed an issue where card payment payee names displayed the full remittance string instead of the extracted merchant name.
  • Tests

    • Updated test import path resolution.

✏️ Tip: You can customize this high-level summary in your review settings.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6533 **State:** closed **Merged:** Yes --- ## Summary The LHV bank adapter (`lhv-lhvbee22.js`) was not being loaded because `bank-factory.js` filters for files containing underscores: ```javascript .filter(filename => filename.includes('_') && filename.endsWith('.js')); ``` This caused all LHV transactions to fall back to the generic `IntegrationBank` handler, which doesn't extract payee names from card transaction remittance info. As a result, card payments showed the full remittance string as the payee instead of the extracted merchant name. ## Changes - Rename `lhv-lhvbee22.js` → `lhv_lhvbee22.js` to match the naming convention used by all other bank adapters - Update the corresponding test file and import statement ## Test plan - [x] Verified the bank factory now loads `lhv_lhvbee22.js` (43 banks loaded including LHV) - [x] Verified no other references to the old filename exist - [x] Run existing LHV bank adapter tests - [x] Manual testing in a local production environment 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed an issue where card payment payee names displayed the full remittance string instead of the extracted merchant name. * **Tests** * Updated test import path resolution. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
GiteaMirror added the pull-request label 2026-02-28 21:30:20 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6584