mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
[fix] Set GST State code based on state, even if GSTIN not mentioned (#11755)
This commit is contained in:
@@ -20,7 +20,7 @@ def validate_gstin_for_india(doc, method):
|
|||||||
|
|
||||||
if doc.gst_state:
|
if doc.gst_state:
|
||||||
doc.gst_state_number = state_numbers[doc.gst_state]
|
doc.gst_state_number = state_numbers[doc.gst_state]
|
||||||
if doc.gstin != "NA" and doc.gst_state_number != doc.gstin[:2]:
|
if doc.gstin and doc.gstin != "NA" and 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}")
|
||||||
.format(doc.gst_state_number))
|
.format(doc.gst_state_number))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user