From 40fffc0f4dc3994f635d7652d905fd583b9a3014 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 26 Nov 2014 15:43:27 +0530 Subject: [PATCH] fixes during testing version 5 --- 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 36a10958f8..a9a670dedd 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -103,7 +103,7 @@ class StockEntry(StockController): for f in ("uom", "stock_uom", "description", "item_name", "expense_account", "cost_center", "conversion_factor"): - if not item.get(f): + if f not in ["expense_account", "cost_center"] or not item.get(f): item.set(f, item_details.get(f)) if not item.transfer_qty: