actualbudget / actualbudget/actual

[Bug]: Calling API updateTransaction for a sub-transaction clears the category & amount

Open
#5,012 0 comments 0 reactions 0 assignees View on GitHub
API
Dominant language
TypeScript
Stars
28.7k
Forks
3k
Avg merge
2d 11h
Merged PRs (30d)
65

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.