From 86ebe58231bf1a0271c9274a2b312bc533e1e5f3 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 20 Jun 2024 13:42:45 +0530 Subject: [PATCH] fix: expense account from item group not fetched --- 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 096fbe1f078e..47e6ba01132c 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -1650,7 +1650,7 @@ def get_item_details(self, args=None, for_update=False): "has_serial_no": item.has_serial_no, "has_batch_no": item.has_batch_no, "sample_quantity": item.sample_quantity, - "expense_account": item.expense_account, + "expense_account": item.expense_account or item_group_defaults.get("expense_account"), } )