[fix] [minor] get_items function fix
diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py
index 39c5b4d..7ec2ba3 100644
--- a/stock/doctype/stock_entry/stock_entry.py
+++ b/stock/doctype/stock_entry/stock_entry.py
@@ -609,6 +609,9 @@
def add_to_stock_entry_detail(self, item_dict, bom_no=None):
idx = 1
+ expense_account, cost_center = webnotes.conn.get_values("Company", self.doc.company, \
+ ["default_expense_account", "cost_center"])[0]
+
for d in item_dict:
se_child = addchild(self.doc, 'mtn_details', 'Stock Entry Detail',
self.doclist)
@@ -621,10 +624,8 @@
se_child.uom = item_dict[d]["stock_uom"]
se_child.stock_uom = item_dict[d]["stock_uom"]
se_child.qty = flt(item_dict[d]["qty"])
- se_child.expense_account = item_dict[d]["expense_account"] or \
- webnotes.conn.get_value("Company", self.doc.company, "default_expense_account")
- se_child.cost_center = item_dict[d]["cost_center"] or \
- webnotes.conn.get_value("Company", self.doc.company, "cost_center")
+ se_child.expense_account = item_dict[d]["expense_account"] or expense_account
+ se_child.cost_center = item_dict[d]["cost_center"] or cost_center
# in stock uom
se_child.transfer_qty = flt(item_dict[d]["qty"])
diff --git a/stock/page/stock_home/stock_home.js b/stock/page/stock_home/stock_home.js
index 713fe28..ecfc6fe 100644
--- a/stock/page/stock_home/stock_home.js
+++ b/stock/page/stock_home/stock_home.js
@@ -81,7 +81,7 @@
},
{
"doctype":"Item Price",
- "label": wn._("Price List"),
+ "label": wn._("Item Price"),
"description": wn._("Multiple Item prices.")
},
{