Removed demo company
This commit is contained in:
parent
38c2e67d38
commit
c5da0a090d
@ -48,9 +48,9 @@ def after_migrate():
|
||||
# create_project_templates()
|
||||
create_task_types()
|
||||
# create_tasks()
|
||||
create_bid_meeting_note_form_templates()
|
||||
create_accounts()
|
||||
create_companies()
|
||||
create_accounts()
|
||||
create_bid_meeting_note_form_templates()
|
||||
# init_stripe_accounts()
|
||||
|
||||
# update_address_fields()
|
||||
@ -876,17 +876,6 @@ def create_companies():
|
||||
'chart_of_accounts': 'Standard',
|
||||
'enable_perpetual_inventory': 1
|
||||
},
|
||||
{
|
||||
'company_name': 'sprinklersnorthwest (Demo)',
|
||||
'abbr': 'SD',
|
||||
'default_currency': 'USD',
|
||||
'country': 'United States',
|
||||
'is_group': 0,
|
||||
'parent_company': None,
|
||||
'create_chart_of_accounts_based_on': 'Standard Template',
|
||||
'chart_of_accounts': 'Standard',
|
||||
'enable_perpetual_inventory': 1
|
||||
},
|
||||
{
|
||||
'company_name': 'Lowe Fencing',
|
||||
'abbr': 'LF',
|
||||
@ -931,7 +920,7 @@ def create_companies():
|
||||
doc = frappe.get_doc(data)
|
||||
doc.insert(ignore_permissions=True)
|
||||
set_default_accounts(doc)
|
||||
|
||||
|
||||
def set_default_accounts(company_doc):
|
||||
"""Set default accounts for a company after creation."""
|
||||
abbr = company_doc.abbr
|
||||
@ -942,8 +931,8 @@ def set_default_accounts(company_doc):
|
||||
company_doc.default_expense_account = f"Cost of Goods Sold - {abbr}"
|
||||
company_doc.cost_center = f"Main - {abbr}"
|
||||
company_doc.save(ignore_permissions=True)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def create_accounts():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user