fix: minor fixes
This commit is contained in:
@@ -237,6 +237,7 @@ def get_accounting_dimensions(as_list=True, filters=None):
|
|||||||
|
|
||||||
def get_checks_for_pl_and_bs_accounts():
|
def get_checks_for_pl_and_bs_accounts():
|
||||||
if frappe.flags.accounting_dimensions_details is None:
|
if frappe.flags.accounting_dimensions_details is None:
|
||||||
|
# nosemgrep
|
||||||
frappe.flags.accounting_dimensions_details = frappe.db.sql(
|
frappe.flags.accounting_dimensions_details = frappe.db.sql(
|
||||||
"""SELECT p.label, p.disabled, p.fieldname, c.default_dimension, c.company, c.mandatory_for_pl, c.mandatory_for_bs
|
"""SELECT p.label, p.disabled, p.fieldname, c.default_dimension, c.company, c.mandatory_for_pl, c.mandatory_for_bs
|
||||||
FROM `tabAccounting Dimension`p ,`tabAccounting Dimension Detail` c
|
FROM `tabAccounting Dimension`p ,`tabAccounting Dimension Detail` c
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ class TestAccountingDimension(unittest.TestCase):
|
|||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
disable_dimension()
|
disable_dimension()
|
||||||
|
frappe.flags.accounting_dimensions_details = None
|
||||||
|
|
||||||
|
|
||||||
def create_dimension():
|
def create_dimension():
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class AccountingDimensionFilter(Document):
|
|||||||
|
|
||||||
def get_dimension_filter_map():
|
def get_dimension_filter_map():
|
||||||
if not frappe.flags.get("dimension_filter_map"):
|
if not frappe.flags.get("dimension_filter_map"):
|
||||||
|
# nosemgrep
|
||||||
filters = frappe.db.sql(
|
filters = frappe.db.sql(
|
||||||
"""
|
"""
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user