Merge branch 'staging-fixes' into company_address

This commit is contained in:
Nabin Hait
2019-01-16 17:51:49 +05:30
committed by GitHub
16 changed files with 314 additions and 679 deletions

View File

@@ -11,7 +11,7 @@ def validate_gstin_for_india(doc, method):
if not hasattr(doc, 'gstin'):
return
doc.gstin = doc.gstin.upper().strip()
doc.gstin = doc.gstin.upper().strip() if doc.gstin else ""
if not doc.gstin or doc.gstin == 'NA':
return