Purchase receipt to purchase invoice item

This commit is contained in:
Nabin Hait
2014-05-01 17:42:21 +05:30
parent 292a254bc1
commit d341254786
3 changed files with 23 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ class StockController(AccountsController):
def check_expense_account(self, item):
if not item.get("expense_account"):
frappe.throw(_("Expense or Difference account is mandatory for Item {0} as there is difference in value").format(item.item_code))
frappe.throw(_("Expense or Difference account is mandatory for Item {0} as it impacts overall stock value").format(item.item_code))
if item.get("expense_account") and not item.get("cost_center"):
frappe.throw(_("""Cost Center is mandatory for Item {0}""").format(item.get("item_code")))