actualbudget / actual

A local-first personal finance app
https://actualbudget.org
MIT License
12.51k stars 954 forks source link

Add getAccountBalance() API. #2930

Open psybers opened 1 week ago

psybers commented 1 week ago

Closes #2189 by adding a getAccountBalance() API function that takes the account ID as first argument, and an optional date cutoff (for finding balances on previous days).

netlify[bot] commented 1 week ago

Deploy Preview for actualbudget ready!

Name Link
Latest commit aba231bdafc2b48087297028f45d1f5cd2232f54
Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/66789aabbddcdd0009d55711
Deploy Preview https://deploy-preview-2930.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.

github-actions[bot] commented 1 week ago

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
9 4.76 MB → 4.76 MB (+3 B) +0.00%
Changeset File | Δ | Size ---- | - | ---- `src/components/settings/Encryption.tsx` | 📈 +3 B (+0.07%) | 3.95 kB → 3.95 kB
View detailed bundle breakdown
**Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 3.02 MB → 3.02 MB (+3 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/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 122.29 kB | 0% static/js/narrow.js | 75.73 kB | 0% static/js/usePreviewTransactions.js | 790 B | 0% static/js/AppliedFilters.js | 27.22 kB | 0% static/js/wide.js | 266.96 kB | 0% static/js/ReportRouter.js | 1.23 MB | 0%
github-actions[bot] commented 1 week ago

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.13 MB → 1.13 MB (+343 B) +0.03%
Changeset File | Δ | Size ---- | - | ---- `packages/api/methods.ts` | 📈 +138 B (+1.02%) | 13.19 kB → 13.33 kB `packages/loot-core/src/server/api.ts` | 📈 +194 B (+1.02%) | 18.56 kB → 18.75 kB `packages/loot-core/src/server/main.ts` | 📈 +367 B (+0.59%) | 60.27 kB → 60.63 kB
View detailed bundle breakdown
**Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.js | 1.13 MB → 1.13 MB (+343 B) | +0.03% **Smaller** No assets were smaller **Unchanged** No assets were unchanged