mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
chore: Handle edge cases
This commit is contained in:
@@ -415,6 +415,8 @@ class Company(NestedSet):
|
|||||||
|
|
||||||
if income_account:
|
if income_account:
|
||||||
income_account = income_account[0]
|
income_account = income_account[0]
|
||||||
|
else:
|
||||||
|
income_account = None
|
||||||
|
|
||||||
self.db_set("default_income_account", income_account)
|
self.db_set("default_income_account", income_account)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user