-
Notifications
You must be signed in to change notification settings - Fork 9.9k
fix: only show net balance as opening in general ledger #50782
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
base: develop
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThe change modifies the Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.json(1 hunks)erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py(0 hunks)erpnext/accounts/report/general_ledger/general_ledger.js(0 hunks)erpnext/accounts/report/general_ledger/general_ledger.py(2 hunks)
💤 Files with no reviewable changes (2)
- erpnext/accounts/report/general_ledger/general_ledger.js
- erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.py
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-09-26T08:52:41.228Z
Learnt from: diptanilsaha
Repo: frappe/erpnext PR: 49712
File: erpnext/accounts/report/financial_statements.py:531-539
Timestamp: 2025-09-26T08:52:41.228Z
Learning: The Account Closing Balance doctype includes debit_in_reporting_currency and credit_in_reporting_currency fields, making it compatible with reporting currency queries in financial statements.
Applied to files:
erpnext/accounts/report/general_ledger/general_ledger.py
📚 Learning: 2025-08-29T12:08:57.357Z
Learnt from: diptanilsaha
Repo: frappe/erpnext PR: 49373
File: erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts_accounts_receivable.html:86-96
Timestamp: 2025-08-29T12:08:57.357Z
Learning: In the Process Statement of Accounts accounts receivable template, the summary table that appears when show_future_payments is enabled correctly includes an "Age" column header that displays aggregate age metrics alongside the aging bucket totals. This alignment is intentional and should not be removed.
Applied to files:
erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: Python Unit Tests (4)
- GitHub Check: Python Unit Tests (3)
- GitHub Check: Python Unit Tests (2)
- GitHub Check: Python Unit Tests (1)
- GitHub Check: Patch Test
- GitHub Check: Summary
🔇 Additional comments (2)
erpnext/accounts/doctype/process_statement_of_accounts/process_statement_of_accounts.json (1)
412-412: LGTM! DocType metadata updated correctly.The timestamp reflects the removal of the
show_net_values_in_party_accountfield, which aligns with the PR objective to always show net balance as opening balance instead of allowing selective display of totals.erpnext/accounts/report/general_ledger/general_ledger.py (1)
511-526: Unable to verify codebase due to infrastructure limitations.The repository cloning is failing in the sandbox environment, preventing verification of:
- The actual code at lines 511-526 matching the provided snippet
- References to
show_net_values_in_party_accountthat may have been removed- Downstream code paths that might depend on gross debit/credit values
- Related tests for general ledger opening/closing balances
The review comment's analysis of the net value calculation logic (debit - credit, sign-based field assignment, zeroing opposite field) is mathematically sound, but cannot be verified against the actual codebase state. Manual verification is recommended to confirm:
- No remaining references to the removed flag
- Tests pass with this breaking change
- Downstream reports/integrations don't break
2494ee4 to
b7c7e07
Compare
Issue
Fixes
Before
After
TODOs for later