Merge branch 'edge' of github.com:webnotes/erpnext into webshop

This commit is contained in:
Anand Doshi
2013-05-27 19:29:43 +05:30
3 changed files with 40 additions and 26 deletions

View File

@@ -306,7 +306,7 @@ class DocType(BuyingController):
against_accounts.append(stock_not_billed_account)
elif not item.expense_head:
msgprint(_("""Expense account is mandatory for item: """) + item.item_code,
msgprint(_("""Expense account is mandatory for item: """) + (item.item_code or item.item_name),
raise_exception=1)
elif item.expense_head not in against_accounts: