Pull stock entry difference account from company

This commit is contained in:
Nabin Hait 2014-05-06 11:57:33 +05:30
parent 4d911db902
commit cea4cd4e5f

View File

@ -351,8 +351,8 @@ class StockEntry(StockController):
'stock_uom' : item and item[0]['stock_uom'] or '',
'description' : item and item[0]['description'] or '',
'item_name' : item and item[0]['item_name'] or '',
'expense_account' : item and item[0]['expense_account'] or args.get("expense_account") \
or frappe.db.get_value("Company", args.get("company"), "default_expense_account"),
'expense_account' : args.get("expense_account") \
or frappe.db.get_value("Company", args.get("company"), "stock_adjustment_account"),
'cost_center' : item and item[0]['buying_cost_center'] or args.get("cost_center"),
'qty' : 0,
'transfer_qty' : 0,