# Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt

from __future__ import unicode_literals
import frappe
from erpbee.setup.doctype.company.company import install_country_fixtures

def execute():
	frappe.reload_doc("accounts", "doctype", "account")
	frappe.reload_doc("accounts", "doctype", "payment_schedule")
	for d in frappe.get_all('Company',
		filters={'country': ('in', ['Saudi Arabia', 'United Arab Emirates'])}):
		install_country_fixtures(d.name)