Repository navigation
feat(ledger): record_ownership_change - #277
Merged
Merged
Conversation
The parent buying more of a member from its outside owners, staying on full consolidation: the share from a month and the price paid. Regenerated against robosystems #1921; `ownership_change` joins the adjustment kinds, and the schema snapshot takes allocationShare's description from #1919. The twin of typescript-client #293. Claude-Session: https://claude.ai/code/session_01VPxBBHkqhwkZ6Eq8EXSBR6
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.
Summary
record_ownership_changefor robosystems #1921: the parent buying more of a member from its outside owners, staying on full consolidation.Changes
record_ownership_change(graph_id, entity_id=, period=, ownership_pct=, consideration=, basis=):entity_id,period(the first month the new share holds),ownership_pct,considerationin cents andbasis. Returns the share before and after, the book value and earnings moved, the equity adjustment, and the drafted entry.RecordOwnershipChangeRequest,OwnershipChangeResponse, andownership_changeamong the adjustment kinds. All additive.Release
Generated tier plus one facade method: a client minor. It waits on the robosystems release that carries #1921 (migration 0062); until then the operation does not exist on the server. The twin of typescript-client #293.
Testing
tests/test_ledger_client.py:record_ownership_changesends the body. Ruff, basedpyright and the suite (726) pass; the schema snapshot also takesallocationShare's description from #1919. Regenerated against the local API on #1921's branch.🤖 Generated with Claude Code
https://claude.ai/code/session_01VPxBBHkqhwkZ6Eq8EXSBR6