Skip to content

Commit

Permalink
Merge pull request #42101 from frappe/mergify/bp/version-15/pr-41962
Browse files Browse the repository at this point in the history
fix: expense account from item group not fetched (backport #41957) (backport #41962)
  • Loading branch information
rohitwaghchaure authored Jun 29, 2024
2 parents c47dcc0 + d310074 commit 0df706f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/stock_entry/stock_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,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"),
}
)

Expand Down

0 comments on commit 0df706f

Please sign in to comment.