Skip to content

Commit

Permalink
Merge pull request #27755 from frappe/mergify/bp/develop/pr-27712
Browse files Browse the repository at this point in the history
fix(India): Internal transfer check fix (backport #27712)
  • Loading branch information
deepeshgarg007 authored Oct 4, 2021
2 parents ab2adf0 + da47fe2 commit d9599a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/regional/india/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ def is_internal_transfer(party_details, doctype):
elif doctype in ("Purchase Invoice", "Purchase Order", "Purchase Receipt"):
destination_gstin = party_details.supplier_gstin

if not destination_gstin or party_details.gstin:
return False

if party_details.gstin == destination_gstin:
return True
else:
Expand Down

0 comments on commit d9599a6

Please sign in to comment.