fix(India): Internal transfer check fix

(cherry picked from commit f0af24fc6d26040fa34fd7248bf38301897d9ca1)
This commit is contained in:
Deepesh Garg 2021-09-30 13:28:53 +05:30 committed by mergify-bot
parent ab2adf01c5
commit da47fe2cfb

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: