Update erpnext/accounts/doctype/cost_center/cost_center.py

This commit is contained in:
Nabin Hait 2012-08-14 16:42:30 +05:30
parent 0851b4b397
commit 7e555e9f78

View File

@ -73,7 +73,7 @@ class DocType(DocTypeNestedSet):
def validate_budget_details(self):
check_acc_list = []
for d in getlist(self.doclist, 'budget_details'):
if doc.group_or_ledger=="Group":
if self.doc.group_or_ledger=="Group":
msgprint("Budget cannot be set for Group Cost Centers", raise_exception=1)
if [d.account, d.fiscal_year] in check_acc_list: