mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
mandatory validation in cost center
This commit is contained in:
@@ -53,7 +53,7 @@ class DocType:
|
|||||||
if not self.doc.group_or_ledger:
|
if not self.doc.group_or_ledger:
|
||||||
msgprint("Please select Group or Ledger value", raise_exception=1)
|
msgprint("Please select Group or Ledger value", raise_exception=1)
|
||||||
|
|
||||||
if self.doc.cost_center_name != 'Root' and not self.parent_cost_center:
|
if self.doc.cost_center_name != 'Root' and not self.doc.parent_cost_center:
|
||||||
msgprint("Please enter parent cost center", raise_exception=1)
|
msgprint("Please enter parent cost center", raise_exception=1)
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user