Skip to content

Commit

Permalink
Merge pull request #41957 from rohitwaghchaure/fixed-17237
Browse files Browse the repository at this point in the history
fix: expense account from item group not fetched
  • Loading branch information
rohitwaghchaure committed Jun 20, 2024
2 parents ef744c1 + 86ebe58 commit 306ab45
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 @@ -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"),
}
)

Expand Down

0 comments on commit 306ab45

Please sign in to comment.