mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 06:45:11 +00:00
refactor(company): don't force set service expense account on save
This commit is contained in:
@@ -683,21 +683,6 @@ class Company(NestedSet):
|
||||
|
||||
self.db_set("disposal_account", disposal_acct)
|
||||
|
||||
if not self.service_expense_account:
|
||||
service_expense_acct = frappe.db.get_value(
|
||||
"Account",
|
||||
{
|
||||
"account_name": _("Marketing Expenses"),
|
||||
"company": self.name,
|
||||
"is_group": 0,
|
||||
"root_type": "Expense",
|
||||
},
|
||||
"name",
|
||||
)
|
||||
|
||||
if service_expense_acct:
|
||||
self.db_set("service_expense_account", service_expense_acct)
|
||||
|
||||
def _set_default_account(self, fieldname, account_type):
|
||||
if self.get(fieldname):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user