-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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: item wise tax details and net amounts #43372
base: develop
Are you sure you want to change the base?
fix: item wise tax details and net amounts #43372
Conversation
bab5d93
to
21d8234
Compare
In order for this to be merge-able with confidence for migration purposes, we first need a
There is currently no reasonable way (I tried to find one for 2 hours, already) to recalculate item-wise net amounts into the |
BREAKING: If you previously relied on the undue rounding of the tax amount within the item wise tax detail, revise your code and config.
d0947ad
to
158e1f5
Compare
This is also a requirement for the UN/CEFACT Cross Industry Invoice, not only UBL. Btw, the India Compliance app already calculates net amounts per Item (in case that is helpful here). |
Net Amount Field Addition for Tax Doctype
This pull request introduces a new "Net Amount" field to various tax-related doctypes in ERPNext, enhancing the granularity of tax calculations and reporting.
Changes Overview
Added "Net Amount" and "Base Net Amount" fields to:
Updated the
calculate_taxes_and_totals
class to incorporate the new net amount fields in tax calculations.Modified the
get_current_tax_amount
method toget_current_tax_and_net_amount
, now returning both net and tax amounts.Adjusted the item-wise tax calculation to include net amount information.
Key Updates
Impact
This change will provide users with more detailed tax information, allowing for:
Testing Recommendations
This update significantly improves the granularity and accuracy of tax-related information in ERPNext, providing users with more detailed financial insights. Additionally, it enhances compatibility with UBL2.1 (Universal Business Language) electronic documents, allowing for more precise representation of net amounts and tax calculations in standardized e-invoicing formats. This improvement facilitates better interoperability with various e-invoicing systems and ensures compliance with digital reporting requirements in jurisdictions that mandate UBL2.1 format for electronic invoices.
Migration Recommendations
cc/ @barredterra