fix: cannot submit e-invoice if legal name not found

This commit is contained in:
Saqib 2020-12-31 13:26:05 +05:30 committed by GitHub
parent f57089532a
commit 2b67d57480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ def get_party_details(address_name):
gstin = address.get('gstin')
gstin_details = get_gstin_details(gstin)
legal_name = gstin_details.get('LegalName')
legal_name = gstin_details.get('LegalName') or gstin_details.get('TradeName')
location = gstin_details.get('AddrLoc') or address.get('city')
state_code = gstin_details.get('StateCode')
pincode = gstin_details.get('AddrPncd')