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:
rohitwaghchaure
2024-06-29 21:47:42 +05:30
committed by GitHub

View File

@@ -1627,7 +1627,7 @@ class StockEntry(StockController):
"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"),
}
)