From 7488cf1ce1989a49ecd177eab939bfc958810d77 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 28 Oct 2016 18:01:43 +0530 Subject: [PATCH] [Fix] country wise tax, country name issue --- erpnext/setup/setup_wizard/data/country_wise_tax.json | 2 +- erpnext/setup/setup_wizard/setup_wizard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/setup/setup_wizard/data/country_wise_tax.json b/erpnext/setup/setup_wizard/data/country_wise_tax.json index 06f7f0908b..780b88fa5f 100644 --- a/erpnext/setup/setup_wizard/data/country_wise_tax.json +++ b/erpnext/setup/setup_wizard/data/country_wise_tax.json @@ -1039,7 +1039,7 @@ } }, - "Russia": { + "Russian Federation": { "Russia VAT 18%": { "account_name": "VAT 18%", "tax_rate": 18.00, diff --git a/erpnext/setup/setup_wizard/setup_wizard.py b/erpnext/setup/setup_wizard/setup_wizard.py index 7c65f88965..66000cdc97 100644 --- a/erpnext/setup/setup_wizard/setup_wizard.py +++ b/erpnext/setup/setup_wizard/setup_wizard.py @@ -247,7 +247,7 @@ def get_fy_details(fy_start_date, fy_end_date): def create_sales_tax(args): country_wise_tax = get_country_wise_tax(args.get("country")) - if len(country_wise_tax)>0: + if country_wise_tax and len(country_wise_tax) > 0: for sales_tax, tax_data in country_wise_tax.items(): make_tax_account_and_template(args.get("company_name").strip(), tax_data.get('account_name'), tax_data.get('tax_rate'), sales_tax)