-
Notifications
You must be signed in to change notification settings - Fork 10.1k
fix(tds): correct tax logic for customer #51412
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 changes modify tax withholding entry handling to make the add/deduct behavior configurable per party type. A dynamic Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-12-23T11:28:49.128ZApplied to files:
📚 Learning: 2025-12-16T05:33:58.723ZApplied to files:
📚 Learning: 2025-12-23T15:00:20.490ZApplied to files:
⏰ 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)
🔇 Additional comments (4)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #51412 +/- ##
========================================
Coverage 79.04% 79.05%
========================================
Files 1179 1179
Lines 121265 121269 +4
========================================
+ Hits 95853 95865 +12
+ Misses 25412 25404 -8
🚀 New features to boost your workflow:
|
|
Can't reproduce. Any other scenario? |
Have you tested it on the Sales Invoice? |
|
There is no add_deduct_tax field in Sales Invoice tax |
|
That was the issue. erpnext/erpnext/controllers/taxes_and_totals.py Lines 506 to 508 in dd94e51
|
The Issue
Problem: The existing tax row not have correct add_deduct_tax because it is not present in Sales Taxes and Charges causing error to be raised.