Skip to content

Commit

Permalink
fix: expense account from item group not fetched (backport #41957) (#…
Browse files Browse the repository at this point in the history
…41962)

fix: expense account from item group not fetched

(cherry picked from commit 86ebe58)

Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Jun 29, 2024
1 parent 1f3374f commit 760b2e2
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 760b2e2

Please sign in to comment.