fix: do not overwrite expense account in stock entry (#53658)

This commit is contained in:
Mihir Kandoi
2026-03-20 13:32:32 +05:30
committed by GitHub
parent 8e17c722fb
commit fa35fbdb8e

View File

@@ -659,9 +659,6 @@ class StockEntry(StockController, SubcontractingInwardController):
if self.purpose == "Subcontracting Delivery":
item.expense_account = frappe.get_value("Company", self.company, "default_expense_account")
if self.purpose == "Manufacture":
item.set("expense_account", item_details.get("expense_account"))
def validate_fg_completed_qty(self):
if self.purpose != "Manufacture" or not self.from_bom:
return