mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix cost center
This commit is contained in:
@@ -55,7 +55,7 @@ class DocType:
|
|||||||
webnotes.utils.nestedset.update_nsm(self)
|
webnotes.utils.nestedset.update_nsm(self)
|
||||||
|
|
||||||
def check_if_child_exists(self):
|
def check_if_child_exists(self):
|
||||||
return sql("select name from `tabCost Center` where parent_cost_center = %s and docstatus != 2", self.doc.name, debug=1)
|
return sql("select name from `tabCost Center` where parent_cost_center = %s and docstatus != 2", self.doc.name, debug=0)
|
||||||
|
|
||||||
# On Trash
|
# On Trash
|
||||||
# --------
|
# --------
|
||||||
|
|||||||
Reference in New Issue
Block a user