Skip to content
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

Add option to make a transfer from two selected transactions #2398

Merged
merged 3 commits into from
Mar 3, 2024

Conversation

twk3
Copy link
Contributor

@twk3 twk3 commented Feb 26, 2024

Summary

Add an option in the selected transactions menu in mutli-account budget pages (all accounts, for budget/etc), that allows you to relate two transactions across accounts as a transfer.

Feature

Feature: #1891

Details

  • Transactions amount must match
  • Transactions must be from different acounts
  • Split transactions not eligible

Workflows

Single account pages don't show the option at all in the selection menu:

SingleAccountSelectTransactionsTooltip

Multi account pages always show the option in the selection menu, but disabled when the selections are not valid for the transfer action:

MultiAccountSingleTransactionTooltip

For valid selections the action is enabled in the selection tooltip:

MultiAccountValidTransferTooltip

Final PR Tasks

- Transactions amount must match
- Transactions must be from different acounts
- Split transactions not eligible
@trafico-bot trafico-bot bot added the 🚧 WIP label Feb 26, 2024
Copy link

netlify bot commented Feb 26, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 6a3f3ad
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/65dd2bc7339d0900083caa65
😎 Deploy Preview https://deploy-preview-2398.demo.actualbudget.org/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Feb 26, 2024

Bundle Stats — desktop-client

Hey 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

Files count Total bundle size % Changed
10 4.46 MB → 4.46 MB (+2.6 kB) +0.06%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/client/transfer.ts 🆕 +457 B 0 B → 457 B
src/components/transactions/SelectedTransactions.jsx 📈 +766 B (+15.62%) 4.79 kB → 5.54 kB
src/components/accounts/Account.jsx 📈 +1.2 kB (+2.97%) 40.41 kB → 41.6 kB
src/components/accounts/Header.jsx 📈 +117 B (+0.83%) 13.72 kB → 13.84 kB
src/components/table.tsx 📈 +97 B (+0.40%) 23.9 kB → 24 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/wide.js 267.47 kB → 269.97 kB (+2.51 kB) +0.94%
static/js/index.js 2.74 MB → 2.74 MB (+97 B) +0.00%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/ButtonLink.js 379 B 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/narrow.js 79.85 kB 0%
static/js/BalanceTooltip.js 6.06 kB 0%
static/js/AppliedFilters.js 20.35 kB 0%
static/js/ReportRouter.js 1.2 MB 0%

Copy link
Contributor

github-actions bot commented Feb 26, 2024

Bundle Stats — loot-core

Hey 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

Files count Total bundle size % Changed
1 1.2 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.2 MB 0%

@twk3 twk3 changed the title WIP:Adds option to make a transfer from two selected transactions Add option to make a transfer from two selected transactions Feb 27, 2024
@carkom
Copy link
Contributor

carkom commented Feb 27, 2024

You're my hero, I've wanted this function for ages. Thanks!

@twk3 twk3 linked an issue Mar 3, 2024 that may be closed by this pull request
2 tasks
@twk3 twk3 merged commit 6626164 into master Mar 3, 2024
19 checks passed
@twk3 twk3 deleted the twk3/make-transfers branch March 3, 2024 21:34
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved labels Mar 3, 2024
@yoyotogblo
Copy link
Contributor

This is awesome... Thanks for this!

The next useful feature would be to match transactions. So if the transaction in one account is correctly to as a transfer, and the other isn't, you can go to the account with both transactions and match it up and it'd always use the transfer transaction for the match details (similar to how YNAB does it).

FlorianLang06 pushed a commit to FlorianLang06/actual that referenced this pull request Mar 7, 2024
…udget#2398)

* Adds option to make a transfer from two selected transactions

- Transactions amount must match
- Transactions must be from different accounts
- Split transactions not eligible
twk3 added a commit to actualbudget/docs that referenced this pull request Mar 23, 2024
@carkom carkom mentioned this pull request May 8, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] "Link as Transfer" Option with 2 Selected Transactions
4 participants