Skip to content

Commit

Permalink
fix: do not throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanket322 committed Jul 10, 2024
1 parent 98426e9 commit 308697f
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 308697f

Please sign in to comment.