-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Net amount calculated incorrectly #44219
Comments
Investigating... At least
With a new logger the issue becomes clearer:
|
this clarification is a human precondition to being able to fix frappe#44219
this clarification is a human precondition to being able to fix frappe#44219
this clarification is a human precondition to being able to fix frappe#44219
this clarification is a human precondition to being able to fix frappe#44219
this clarification is a human precondition to being able to fix frappe#44219
@blaggacao as far as I can tell, this issue is still unresolved: |
Hm, that is strange, indeed. There's an edge case that I had noted when the Account coincides in which case the attribution wasn't done correctly, but for different accounts this should have worked. Just to confirm: this is the value after (re-)saving? Or maybe a temporary client-js calculated value? |
Yes, that's after saving and reloading. The tax accounts are different from each other. |
@barredterra I noticed that an Item, even if it only is eligible for Based on the presence of the key, they are ("correctly") summed into the net amount, later on. If of any help, we could test the value for The same pattern is seen in the backend debug logs after save.
|
There is no way to set a tax as not applicable, apart from setting it to zero. So the dict should likely only contain accounts where the applicable rate is not 0 for the respective item. |
That in turn is unfortunately not possible, because
I looked into the DE setup and it was genuinely news to me that the system could be used in such a way, but I can see how this is a useful feature to filter taxes based on the document's general tax template. This feature also seems to be the true semantic meaning behind disabling the Account setting "append item taxes to tax table". Since it is, in essence an overlay data structure that was chosen to implement the feature, I'd suggest to modify the tax templates tables to add a check which signifies a nil value — potentially visible only if the respective accounting setting is disabled. When taxes from such templates are then assembled, this checkmark could cause them to be represented properly as |
Information about bug
On a Sales Invoice containing items with different tax rates, the tax net amount is not calculated correctly.
Item Tax Template "7 %":
Item Tax Template "19 %":
Sales Invoice:
Expected: The net amount per tax row is displayed as 100.
Actual: The net amount per tax row is displayed as 200.
Module
accounts
Version
develop
Installation method
None
Relevant log output / Stack trace / Full Error Message.
Likely introduced by #43372
The text was updated successfully, but these errors were encountered: