Repository navigation
Add a super statement form for Australian super funds - #17
Open
GrantCharge wants to merge 1 commit into
Open
GrantCharge wants to merge 1 commit into
GrantCharge wants to merge 1 commit into
Conversation
Super statements are yearly summaries, so the PDF importer can't read them. Australians can now type in a fund's closing balance and before-tax contributions. A new fund becomes a manual investment account. A later statement adds one ignored entry that moves the balance to the new closing figure. Contributions are saved under the statement's tax year. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Australians get a new Add a super statement card on Accounts, Add accounts. It shows only when the profile country is Australia.
The form asks for:
Why
A super fund's annual statement is a summary table, not dated rows. The PDF importer can't read it. Before this, the only way in was a bank account with a typed transaction.
How it works
type: investment,subtype: superannuationandcurrent_balanceset to the closing balance.balance()iscurrent_balanceminus the sum of amounts (migration 0031). So a rise of X is an amount of -X. The row isignored: true, so it doesn't count as income or spending.user_metadata.contributed["super:<tax year>"]. The Contributions card already reads this key. A past year's figure is kept but doesn't change this year's cap. The form says so.super|smsf. This is the same matchinvest.tsuses.No database changes. No AI path changes. Advice stays country based: the card uses
countryOfand shows forAUonly.Files
src/lib/super-statement.ts: pure tax-year and balance helperssrc/lib/super-statement.test.ts: run withnode src/lib/super-statement.test.tssrc/components/SuperStatement.tsx: the formsrc/components/AddAccounts.tsxandsrc/app/(app)/accounts/add/page.tsx: show the cardChecks
npx tsc --noEmit: passesnpm run lint: no errors. The 6 warnings were already on main.node src/lib/super-statement.test.ts: passesNot yet tried in a running app. Please try it once with an AU profile. Add a fund. Then add a second statement for it and check the balance moves to the new closing figure.
🤖 Generated with Claude Code