fix: GSTIN validation msg fix
This commit is contained in:
parent
b455318f01
commit
62fbf37eb4
@ -72,8 +72,8 @@ def validate_gstin_check_digit(gstin, label='GSTIN'):
|
|||||||
total += digit
|
total += digit
|
||||||
factor = 2 if factor == 1 else 1
|
factor = 2 if factor == 1 else 1
|
||||||
if gstin[-1] != code_point_chars[((mod - (total % mod)) % mod)]:
|
if gstin[-1] != code_point_chars[((mod - (total % mod)) % mod)]:
|
||||||
frappe.throw(_("Invalid {0}! The check digit validation has failed. " +
|
frappe.throw(_("""Invalid {0}! The check digit validation has failed.
|
||||||
"Please ensure you've typed the {0} correctly.".format(label)))
|
Please ensure you've typed the {0} correctly.""".format(label)))
|
||||||
|
|
||||||
def get_itemised_tax_breakup_header(item_doctype, tax_accounts):
|
def get_itemised_tax_breakup_header(item_doctype, tax_accounts):
|
||||||
if frappe.get_meta(item_doctype).has_field('gst_hsn_code'):
|
if frappe.get_meta(item_doctype).has_field('gst_hsn_code'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user