Skip to content

Commit

Permalink
fix: do not throw error
Browse files Browse the repository at this point in the history
(cherry picked from commit 308697f)
  • Loading branch information
Sanket322 authored and mergify[bot] committed Jul 11, 2024
1 parent b5ab2bb commit 2f42620
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 2f42620

Please sign in to comment.