mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
First 2 digit validation would disregard NA values
This commit is contained in:
@@ -17,7 +17,7 @@ def validate_gstin_for_india(doc, method):
|
|||||||
if doc.state in states:
|
if doc.state in states:
|
||||||
doc.gst_state = doc.state
|
doc.gst_state = doc.state
|
||||||
|
|
||||||
if doc.gst_state:
|
if doc.gst_state and doc.gstin != "NA":
|
||||||
doc.gst_state_number = state_numbers[doc.gst_state]
|
doc.gst_state_number = state_numbers[doc.gst_state]
|
||||||
if doc.gst_state_number != doc.gstin[:2]:
|
if doc.gst_state_number != doc.gstin[:2]:
|
||||||
frappe.throw(_("First 2 digits of GSTIN should match with State number {0}")
|
frappe.throw(_("First 2 digits of GSTIN should match with State number {0}")
|
||||||
|
|||||||
Reference in New Issue
Block a user