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

fix: add net income to equity account set #223

Merged
merged 2 commits into from
Jul 30, 2024
Merged

Conversation

vindard
Copy link
Contributor

@vindard vindard commented Jul 29, 2024

Description

This PR fixes the issue with adding Revenue and Expense accounts twice to Chart of Accounts via "Net Income in Equity". It creates a separate duplicate account set for equity for the chart of accounts.

This isn't ideal since we'd need to add all related children accounts/acocunt-sets to both Equity account sets.

DAG problem described in GaloyMoney/cala#176

vindard added 2 commits July 29, 2024 11:42
This allows us to nest Net Income under Equity in the balance sheet
without duplicating account in the Chart of Accounts acocunt set.
@vindard vindard requested a review from nicolasburtey July 30, 2024 14:41
@vindard vindard merged commit 3ff6896 into main Jul 30, 2024
5 checks passed
thevaibhav-dixit pushed a commit that referenced this pull request Jul 30, 2024
* refactor: rename retained_earnings to net_income, nest in P&L

* refactor: add separate 'equity_for_chart_of_accounts' set to fix DAG

This allows us to nest Net Income under Equity in the balance sheet
without duplicating account in the Chart of Accounts acocunt set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants