Merge pull request #27755 from frappe/mergify/bp/develop/pr-27712

fix(India): Internal transfer check fix (backport #27712)
This commit is contained in:
Deepesh Garg 2021-10-04 11:01:19 +05:30 committed by GitHub
commit d9599a6a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: