Update company.py

This commit is contained in:
Nabin Hait
2016-05-20 15:47:56 +05:30
parent 6558e1dd80
commit 04f3286c04

View File

@@ -103,9 +103,9 @@ class Company(Document):
create_charts(self.chart_of_accounts, self.name) create_charts(self.chart_of_accounts, self.name)
frappe.db.set(self, "default_receivable_account", frappe.db.get_value("Account", frappe.db.set(self, "default_receivable_account", frappe.db.get_value("Account",
{"company": self.name, "account_type": "Receivable"})) {"company": self.name, "account_type": "Receivable", "is_group": 0}))
frappe.db.set(self, "default_payable_account", frappe.db.get_value("Account", frappe.db.set(self, "default_payable_account", frappe.db.get_value("Account",
{"company": self.name, "account_type": "Payable"})) {"company": self.name, "account_type": "Payable", "is_group": 0}))
def set_default_accounts(self): def set_default_accounts(self):
self._set_default_account("default_cash_account", "Cash") self._set_default_account("default_cash_account", "Cash")