[PR #2706] [MERGED] [Feature] CAMT.053 import (new version) #23074

Closed
opened 2026-04-16 17:12:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2706
Author: @bfritscher
Created: 5/4/2024
Status: Merged
Merged: 5/9/2024
Merged by: @youngcw

Base: masterHead: feat-camt053


📝 Commits (4)

  • c8f9078 Implement CAMT.053 transactions importer with a file parser and enable xml filetype in dialogs
  • f577131 add release notes
  • 43a9a28 fix types and lint
  • 44f0ea5 Merge branch 'master' into feat-camt053

📊 Changes

8 files changed (+894 additions, -32 deletions)

View changed files

📝 packages/desktop-client/src/components/accounts/Account.jsx (+1 -1)
📝 packages/desktop-client/src/components/modals/ImportTransactions.jsx (+36 -31)
packages/loot-core/src/mocks/files/camt/camt.053.xml (+465 -0)
📝 packages/loot-core/src/server/accounts/__snapshots__/parse-file.test.ts.snap (+187 -0)
📝 packages/loot-core/src/server/accounts/parse-file.test.ts (+12 -0)
📝 packages/loot-core/src/server/accounts/parse-file.ts (+22 -0)
packages/loot-core/src/server/accounts/xmlcamt2json.ts (+165 -0)
upcoming-release-notes/2706.md (+6 -0)

📄 Description

This PR introduces add the ability to import CAMT.053 based XML files into Actual.
This should solve the camt part of #513
It replaces PR #740 which seems abandoned.

The xml2js parser is used, as it is already utliszed by the ofx parser.

As it only looks for Ntry attributes it also works for variation like CAMT.052 and CAMT.054.

The code changes include:

  • XML extension has been added to the File upload buttons
  • ImportTransactions Dialog has been adapted to only show reconciliation checkbox for CAMT file type
  • A new parser has been added, with a test file.

Test file: "packages/loot-core/src/mocks/files/camt/camt.053.xml"
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/2706 **Author:** [@bfritscher](https://github.com/bfritscher) **Created:** 5/4/2024 **Status:** ✅ Merged **Merged:** 5/9/2024 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `feat-camt053` --- ### 📝 Commits (4) - [`c8f9078`](https://github.com/actualbudget/actual/commit/c8f90784909c897bce24f3e015b9b90b31598fd3) Implement CAMT.053 transactions importer with a file parser and enable xml filetype in dialogs - [`f577131`](https://github.com/actualbudget/actual/commit/f5771316a82b3c77edb52b29f16774d15560afd8) add release notes - [`43a9a28`](https://github.com/actualbudget/actual/commit/43a9a286285c7879025f5d7de2018644c88831dd) fix types and lint - [`44f0ea5`](https://github.com/actualbudget/actual/commit/44f0ea52000164adebb9e6710234bc40d9bb0632) Merge branch 'master' into feat-camt053 ### 📊 Changes **8 files changed** (+894 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/accounts/Account.jsx` (+1 -1) 📝 `packages/desktop-client/src/components/modals/ImportTransactions.jsx` (+36 -31) ➕ `packages/loot-core/src/mocks/files/camt/camt.053.xml` (+465 -0) 📝 `packages/loot-core/src/server/accounts/__snapshots__/parse-file.test.ts.snap` (+187 -0) 📝 `packages/loot-core/src/server/accounts/parse-file.test.ts` (+12 -0) 📝 `packages/loot-core/src/server/accounts/parse-file.ts` (+22 -0) ➕ `packages/loot-core/src/server/accounts/xmlcamt2json.ts` (+165 -0) ➕ `upcoming-release-notes/2706.md` (+6 -0) </details> ### 📄 Description This PR introduces add the ability to import CAMT.053 based XML files into Actual. This should solve the camt part of #513 It replaces PR #740 which seems abandoned. The xml2js parser is used, as it is already utliszed by the ofx parser. As it only looks for Ntry attributes it also works for variation like CAMT.052 and CAMT.054. The code changes include: - XML extension has been added to the File upload buttons - ImportTransactions Dialog has been adapted to only show reconciliation checkbox for CAMT file type - A new parser has been added, with a test file. Test file: "packages/loot-core/src/mocks/files/camt/camt.053.xml" ![image](https://github.com/actualbudget/actual/assets/338973/aac95131-2dc4-4287-9ee4-4f10b82f3b86) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 17:12:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#23074