fix: precision issue causing reconciliation error#54043
fix: precision issue causing reconciliation error#54043rtdany10 wants to merge 2 commits intofrappe:developfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughModified the Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py`:
- Around line 805-808: The conditional in payment_reconciliation.py inside the
Payment Reconciliation logic (the flt(...) < 0 check using frappe.db.get_value
on inv.voucher_type/inv.voucher_no and allocated_amount_precision) is not
ruff-formatted; run the project's formatter (ruff/black as configured) or
manually reformat that multi-line if expression so its parentheses and
indentation match the repository's formatter output (align function arguments
and closing paren correctly) and commit the change so CI passes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: 68e053ff-012a-4279-9f35-f4fe2950b63f
📒 Files selected for processing (1)
erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py
erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #54043 +/- ##
========================================
Coverage 79.07% 79.07%
========================================
Files 1159 1159
Lines 124854 124878 +24
========================================
+ Hits 98724 98748 +24
Misses 26130 26130
🚀 New features to boost your workflow:
|
Ref: https://support.frappe.io/helpdesk/my-tickets/63672