Skip to content

Commit

Permalink
Merge branch 'v12-pre-release' into version-12
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil28297 committed Dec 20, 2019
2 parents 98ddbf0 + f9ac8f6 commit 782f45a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from erpnext.hooks import regional_overrides
from frappe.utils import getdate

__version__ = '12.3.0'
__version__ = '12.3.1'

def get_default_company(user=None):
'''Get default company for user'''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def execute():
tax_category = inter_state_category.name

for doctype in ('Sales Taxes and Charges Template', 'Purchase Taxes and Charges Template'):
if not frappe.get_meta(doctype).has_field('is_inter_state'): continue

template = frappe.db.get_value(doctype, {'is_inter_state': 1, 'disabled': 0}, ['name'])
if template:
frappe.db.set_value(doctype, template, 'tax_category', tax_category)
Expand Down

0 comments on commit 782f45a

Please sign in to comment.