mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-08 17:35:08 +00:00
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com> fix: do not overwrite expense account in stock entry (#53658)
This commit is contained in:
@@ -655,9 +655,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":
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user