-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show correct payee for scheduled transactions on budgeted accounts page #1379
Show correct payee for scheduled transactions on budgeted accounts page #1379
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller
Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
This seems to be due to this condition: actual/packages/desktop-client/src/components/transactions/TransactionsTable.js Lines 394 to 398 in 9c527e3
I'm a bit confused by this comment though. From what I can tell payees whose accounts are tombstoned will not be returned by the backend and so should never show up here, so is this just remains from when that might've once not been the case? |
Signed-off-by: Johannes Löthberg <[email protected]>
90872ce
to
f9b2718
Compare
Since, as per my previous comment, the check seems to have been unnecessary since before the code was released as open source, I decided to just remove it. |
I see roughly what needs to be done to fix it, but it seems to be a bit more complicated than I originally thought because the status needs to also be updated in both transactions when you link and unlink the transactions to the schedule, hmm. |
@MatissJanis Okay, so I think the best way to implement this is in But there doesn't seem to be a way to get a specific transaction by ID in the frontend, so do I need to add an e.g. |
@kyrias I think that would significantly impact performance for budgets with many schedules. I actually think this might be a deeper issue in Actual. When we "post" a scheduled transfer transaction it seems that only 1x of the 2x transactions has "schedule id" set. I wonder why that is.. and if we could change it to set the schedule id on both of the transactions. |
@MatissJanis That's what I did at first and is easy enough to do, but there are more complicated additional things to consider of we do that:
|
Good observations. So this is definitely a bigger issue that will be more complex to fix properly. I don't want it to block merging this PR, so I created a separate issue here: #1506 Feel free to work on it if you like to (would definitely be nice), but don't feel obliged. :) Thanks again! |
…dgeted accounts page (actualbudget#1379)" This partially reverts commit ba6eb26 which was an incorrect fix for the issue as it regresses transfer transactions. The `getPayeePretty` change was still correct however so I've left it in.
…ge (actualbudget#1379) Signed-off-by: Johannes Löthberg <[email protected]>
Previously the "budgeted accounts" page would show the account in the payee column for scheduled transactions. I'm not sure if this is the correct fix since I'm a bit confused by the exact intent with the various variables that appear to be used for multiple things, but this appears to at least fix the issue.
One weird thing I noticed is that scheduled transactions also show up on the "off budget accounts" page but they don't show up on the "all accounts" page.
Resolves #1333. Resolves #1026.