fix: gst_state_number for address with Unregistered GST (#16798)

This commit is contained in:
rushin29 2019-03-15 15:28:50 +05:30 committed by Deepesh Garg
parent ef74e94374
commit 08a209bc52

View File

@ -9,6 +9,8 @@ from erpnext.hr.utils import get_salary_assignment
from erpnext.hr.doctype.salary_structure.salary_structure import make_salary_slip
def validate_gstin_for_india(doc, method):
if hasattr(doc, 'gst_state') and doc.gst_state:
doc.gst_state_number = state_numbers[doc.gst_state]
if not hasattr(doc, 'gstin') or not doc.gstin:
return