Skip to content
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: tax rate being overridden in case of 0.00 #27660

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

rtdany10
Copy link
Contributor

@rtdany10 rtdany10 commented Sep 26, 2021

In expense claim, tax rate could be different for different expenses.
Therefore, rate is kept as 0.00 and tax amount entered manually in the tax table.
But fetch functionality overrides the tax rate (upon saving) and mess up the amount.

This PR removes the fetch functionality of the rate column.
#no-docs Please backport to v13 and v12 as well.

Tax rate could be different for different expenses.
Therefore, rate is kept as 0.00 and tax amount entered manually. 
But fetching used to override the rate(upon saving) and mess up the amount.
@rtdany10
Copy link
Contributor Author

Introducing an expense tax template (like in case of items in invoices) would be a better way to handle taxes.
Thoughts?

@codecov
Copy link

codecov bot commented Sep 29, 2021

Codecov Report

Merging #27660 (2b4959f) into develop (f8c1c73) will increase coverage by 0.07%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop   #27660      +/-   ##
===========================================
+ Coverage    54.49%   54.56%   +0.07%     
===========================================
  Files         1333     1333              
  Lines        70736    70737       +1     
===========================================
+ Hits         38545    38596      +51     
+ Misses       32191    32141      -50     
Impacted Files Coverage Δ
erpnext/utilities/product.py 15.94% <0.00%> (-34.79%) ⬇️
...wise_balance_history/batch_wise_balance_history.py 69.49% <0.00%> (-22.04%) ⬇️
erpnext/shopping_cart/product_info.py 32.35% <0.00%> (-20.59%) ⬇️
...e/asset_value_adjustment/asset_value_adjustment.py 87.80% <0.00%> (-3.66%) ⬇️
...xt/accounts/doctype/journal_entry/journal_entry.py 68.22% <0.00%> (-2.56%) ⬇️
...e/shopping_cart_settings/shopping_cart_settings.py 66.03% <0.00%> (-1.89%) ⬇️
erpnext/shopping_cart/product_query.py 61.19% <0.00%> (-1.50%) ⬇️
...next/accounts/doctype/subscription/subscription.py 81.55% <0.00%> (-0.58%) ⬇️
erpnext/hr/utils.py 72.80% <0.00%> (-0.44%) ⬇️
erpnext/portal/product_configurator/utils.py 33.06% <0.00%> (-0.41%) ⬇️
... and 27 more

@deepeshgarg007 deepeshgarg007 merged commit aa06980 into frappe:develop Oct 5, 2021
@rtdany10
Copy link
Contributor Author

rtdany10 commented Oct 5, 2021

@Mergifyio backport version-12-hotfix version-13-hotfix

@mergify
Copy link
Contributor

mergify bot commented Oct 5, 2021

Command backport version-12-hotfix version-13-hotfix: success

Backports have been created

marination added a commit that referenced this pull request Oct 5, 2021
…-27660

fix: tax rate being overridden in case of 0.00 (backport #27660)
@rtdany10 rtdany10 deleted the patch-8 branch October 11, 2021 07:55
@deepeshgarg007
Copy link
Member

@rtdany10 In this the modified timestamp wasn't changed so the changes didn't apply on migrate, can raise a PR to fix this

@rtdany10
Copy link
Contributor Author

rtdany10 commented Oct 23, 2021

@rtdany10 In this the modified timestamp wasn't changed so the changes didn't apply on migrate, can raise a PR to fix this

My bad, will raise a PR. Thanks!

asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
fix: tax rate being overridden in case of 0.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants