mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Merge pull request #42101 from frappe/mergify/bp/version-15/pr-41962
fix: expense account from item group not fetched (backport #41957) (backport #41962)
This commit is contained in:
@@ -1627,7 +1627,7 @@ class StockEntry(StockController):
|
|||||||
"has_serial_no": item.has_serial_no,
|
"has_serial_no": item.has_serial_no,
|
||||||
"has_batch_no": item.has_batch_no,
|
"has_batch_no": item.has_batch_no,
|
||||||
"sample_quantity": item.sample_quantity,
|
"sample_quantity": item.sample_quantity,
|
||||||
"expense_account": item.expense_account,
|
"expense_account": item.expense_account or item_group_defaults.get("expense_account"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user