mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-31 19:02:21 +02:00
fix: use stock adjustment account if no expense account
(cherry picked from commit b2e109318f)
This commit is contained in:
@@ -2042,7 +2042,7 @@ class StockEntry(StockController):
|
||||
to_warehouse = item.get("default_warehouse")
|
||||
|
||||
expense_account = item.get("expense_account")
|
||||
if self.purpose == "Manufacture" or not expense_account:
|
||||
if not expense_account:
|
||||
expense_account = frappe.get_cached_value("Company", self.company, "stock_adjustment_account")
|
||||
args = {
|
||||
"to_warehouse": to_warehouse,
|
||||
|
||||
Reference in New Issue
Block a user