Skip to content

Commit

Permalink
Merge pull request #1737 from resilient-tech/mergify/bp/version-14-ho…
Browse files Browse the repository at this point in the history
…tfix/pr-1735

fix: itc is eligible for export with place of supply 96 and 97 (backport #1735)
  • Loading branch information
mergify[bot] authored Feb 23, 2024
2 parents 6c4018d + 202fcd7 commit 9926129
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion india_compliance/gst_india/overrides/ineligible_itc.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ def update_item_gl_entries(self, item):
self.reverse_stock_adjustment_entry(item)

def is_eligibility_restricted_due_to_pos(self):
return self.doc.place_of_supply[:2] != self.doc.company_gstin[:2]
return (
self.doc.place_of_supply not in ["96-Other Countries", "97-Other Territory"]
and self.doc.place_of_supply[:2] != self.doc.company_gstin[:2]
)

def get_against_account(self, item):
if item.is_fixed_asset:
Expand Down
5 changes: 4 additions & 1 deletion india_compliance/gst_india/overrides/purchase_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ def set_ineligibility_reason(doc):
doc.ineligibility_reason = "Ineligible As Per Section 17(5)"
break

if doc.place_of_supply[:2] != doc.company_gstin[:2]:
if (
doc.place_of_supply not in ["96-Other Countries", "97-Other Territory"]
and doc.place_of_supply[:2] != doc.company_gstin[:2]
):
doc.ineligibility_reason = "ITC restricted due to PoS rules"

if doc.ineligibility_reason:
Expand Down

0 comments on commit 9926129

Please sign in to comment.