[GH-ISSUE #5012] [Bug]: Calling API updateTransaction for a sub-transaction clears the category & amount #51260

Open
opened 2026-04-30 17:16:57 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @derekantrican on GitHub (May 17, 2025).
Original GitHub issue: https://github.com/actualbudget/actual/issues/5012

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

If there is a split transaction like this:

Image

And the following code is run (where 'e070264d-98a9-4c91-b5e0-d4c1a63a219a' is the id of one of the sub transactions)

const api = require('@actual-app/api');
await api.updateTransaction('e070264d-98a9-4c91-b5e0-d4c1a63a219a', {notes: 'New notes'});

Then this will be the result:

Image

As you can see, the notes have been updated, but the category & amount has been cleared.

This does not happen for transactions that are not split.

How can we reproduce the issue?

Repro steps provided above

Where are you hosting Actual?

Other

What browsers are you seeing the problem on?

Chrome

Operating System

Windows 11

Originally created by @derekantrican on GitHub (May 17, 2025). Original GitHub issue: https://github.com/actualbudget/actual/issues/5012 ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? If there is a split transaction like this: ![Image](https://github.com/user-attachments/assets/5b2be712-03a9-4c79-b411-fdcf5bfc8baa) And the following code is run (where `'e070264d-98a9-4c91-b5e0-d4c1a63a219a'` is the id of one of the sub transactions) ``` const api = require('@actual-app/api'); await api.updateTransaction('e070264d-98a9-4c91-b5e0-d4c1a63a219a', {notes: 'New notes'}); ``` Then this will be the result: ![Image](https://github.com/user-attachments/assets/3f13dec5-6e96-4ae8-93a4-a11b36b37bf0) As you can see, the notes have been updated, but the category & amount has been cleared. This does not happen for transactions that are not split. ### How can we reproduce the issue? Repro steps provided above ### Where are you hosting Actual? Other ### What browsers are you seeing the problem on? Chrome ### Operating System Windows 11
GiteaMirror added the APIbug labels 2026-04-30 17:16:57 -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#51260