Skip to content

Commit

Permalink
fix: Unable to import COA through importer
Browse files Browse the repository at this point in the history
(cherry picked from commit 3b66920)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Dec 17, 2022
1 parent 6c63965 commit f8c09ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ def set_default_accounts(company):
"default_payable_account": frappe.db.get_value(
"Account", {"company": company.name, "account_type": "Payable", "is_group": 0}
),
"default_provisional_account": frappe.db.get_value(
"Account",
{"company": company.name, "account_type": "Service Received But Not Billed", "is_group": 0},
),
}
)

Expand Down
3 changes: 0 additions & 3 deletions erpnext/setup/doctype/company/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ def validate_abbr(self):

self.abbr = self.abbr.strip()

# if self.get('__islocal') and len(self.abbr) > 5:
# frappe.throw(_("Abbreviation cannot have more than 5 characters"))

if not self.abbr.strip():
frappe.throw(_("Abbreviation is mandatory"))

Expand Down

0 comments on commit f8c09ee

Please sign in to comment.