Browse Source
Merge pull request #24172 from deepeshgarg007/ttax_category_typo
fix: Typo in tax category doctype query
develop
Deepesh Garg
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
erpnext/regional/india/utils.py
|
|
@ -53,7 +53,7 @@ def validate_gstin_for_india(doc, method): |
|
|
|
.format(doc.gst_state_number)) |
|
|
|
|
|
|
|
def validate_tax_category(doc, method): |
|
|
|
if doc.get('gst_state') and frappe.db.get_value('Tax category', {'gst_state': doc.gst_state, 'is_inter_state': doc.is_inter_state}): |
|
|
|
if doc.get('gst_state') and frappe.db.get_value('Tax Category', {'gst_state': doc.gst_state, 'is_inter_state': doc.is_inter_state}): |
|
|
|
if doc.is_inter_state: |
|
|
|
frappe.throw(_("Inter State tax category for GST State {0} already exists").format(doc.gst_state)) |
|
|
|
else: |
|
|
|