mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 04:59:18 +00:00
Merge branch 'master' of github.com:webnotes/erpnext into unicode
This commit is contained in:
@@ -76,6 +76,10 @@ class DocType:
|
|||||||
elif par and not self.doc.is_pl_account:
|
elif par and not self.doc.is_pl_account:
|
||||||
self.doc.is_pl_account = par[0][2]
|
self.doc.is_pl_account = par[0][2]
|
||||||
self.doc.debit_or_credit = par[0][3]
|
self.doc.debit_or_credit = par[0][3]
|
||||||
|
elif self.doc.account_name not in ['Income','Source of Funds (Liabilities)',\
|
||||||
|
'Expenses','Application of Funds (Assets)']:
|
||||||
|
msgprint("Parent Account is mandatory", raise_exception=1)
|
||||||
|
|
||||||
|
|
||||||
# Account name must be unique
|
# Account name must be unique
|
||||||
def validate_duplicate_account(self):
|
def validate_duplicate_account(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user