Skip to content

Commit

Permalink
Merge pull request #2386 from Sanket322/item_tax_template
Browse files Browse the repository at this point in the history
fix: during validation of item tax template do not throw an error
  • Loading branch information
vorasmit committed Jul 11, 2024
2 parents 98426e9 + 308697f commit 3d518d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions india_compliance/gst_india/overrides/item_tax_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ def get_accounts_with_negative_rate(company):
- Include all Purchase RCM accounts based on how taxes and charges template is created
"""
negative_rate_accounts = list(
get_gst_accounts_by_type(company, "Sales Reverse Charge").values()
get_gst_accounts_by_type(company, "Sales Reverse Charge", throw=False).values()
)
purchase_rcm_accounts = list(
get_gst_accounts_by_type(company, "Purchase Reverse Charge").values()
get_gst_accounts_by_type(
company, "Purchase Reverse Charge", throw=False
).values()
)

if not purchase_rcm_accounts:
Expand Down

0 comments on commit 3d518d7

Please sign in to comment.