Skip to content

Commit

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

fix: avoid setting invalid place of supply (backport #1639)
  • Loading branch information
mergify[bot] authored Jan 29, 2024
2 parents 654bb19 + 4a6c257 commit cf1a37d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion india_compliance/gst_india/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ def get_place_of_supply(party_details, doctype):
party_details.customer_address,
("gst_state_number", "gst_state"),
)
return f"{gst_state_number}-{gst_state}"
if gst_state_number and gst_state:
return f"{gst_state_number}-{gst_state}"

party_gstin = party_details.billing_address_gstin or party_details.company_gstin
else:
Expand Down

0 comments on commit cf1a37d

Please sign in to comment.