Feature/exit menu item#28
Merged
Merged
Conversation
Settled-pool exit formula, propose→cohort-approve workflow, inactive status, exit_settlement transaction type, derived social-contribution reserve. Approved design pending implementation plan. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- #1 conservation: settle min(share, C-L), not nominal share, so the fund's books balance and refund shortfalls redistribute fairly - #2 outstanding loans: eligibility gate (C >= L) + net loan into settlement + close loan on approval - #3 staleness defined as locked != recomputed (catches member adds) - #4 floor exit share at 0; #5 verify disjoint P sources; #6 final exiter absorbs rounding residual Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 TDD tasks: pure exit-math module, migration 048 (table, exit_settlement type, RLS, basis/ledger/reserve views, atomic cohort-approval fn), transaction-groups, server actions, member card, admin exits page, reserve tile, nav. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…omment Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add exit_settlement to TRANSACTION_TYPES in constants.ts; add exits section key with label, description, type mapping, and Okabe-Ito sky-blue (#56B4E9) to SECTION_BAR_COLOR in transaction-groups.ts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ove cohort, reject, relock
…rrative display Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Missing member_exit_basis / social_contribution_reserve / member_exits (migration 048 not applied) no longer 500s the dashboard or admin page; PostgREST PGRST205 is treated as 'feature not provisioned' (null/0/[]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…xit, proposeExitForMember)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…eetings Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
On full prepayment the remaining scheduled/overdue installments were flipped to 'waived', which misrepresents installments the member actually settled in cash, and the loan stayed 'active' with a zero balance. Now the full-prepay branch: - completes any partially-paid rows from the advance (principal_paid = principal_due, status='paid') so they stop reporting a dangling balance, - deletes the never-paid scheduled/overdue rows (no payment junction rows, so the ON DELETE RESTRICT FK does not block them), - marks the loan paid. Partial prepayment is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
No description provided.