From ff04bf63460e4e185d61680bd913ba7a1c07c12c Mon Sep 17 00:00:00 2001 From: bobzz-zone Date: Wed, 5 Aug 2015 11:28:11 +0700 Subject: [PATCH] Update stock_entry.py fixed for null expense account --- erpnext/stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 051d9fcbd8..ea5c3747eb 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -100,7 +100,7 @@ class StockEntry(StockController): if f in ["stock_uom", "conversion_factor"] or not item.get(f): item.set(f, item_details.get(f)) - if self.difference_account: + if self.difference_account and item.expense_account=="": item.expense_account = self.difference_account if not item.transfer_qty: