From 8b9a6815476b35fa008707a3146d4a8960fe1143 Mon Sep 17 00:00:00 2001 From: mahsem <137205921+mahsem@users.noreply.github.com> Date: Wed, 11 Dec 2024 16:16:38 +0100 Subject: [PATCH 1/2] fix: update Swedish tax templates --- .../setup_wizard/data/country_wise_tax.json | 198 +++++++++++++++++- 1 file changed, 194 insertions(+), 4 deletions(-) diff --git a/erpnext/setup/setup_wizard/data/country_wise_tax.json b/erpnext/setup/setup_wizard/data/country_wise_tax.json index f2955195fa18..68bf487bbf9a 100644 --- a/erpnext/setup/setup_wizard/data/country_wise_tax.json +++ b/erpnext/setup/setup_wizard/data/country_wise_tax.json @@ -4500,10 +4500,200 @@ }, "Sweden": { - "Sweden Tax": { - "account_name": "VAT", - "tax_rate": 25.00 - } + "tax_categories": [], + "chart_of_accounts": { + "*": { + "sales_tax_templates": [ + { + "title": "Försäljning Moms 25%", + "is_default": 1, + "taxes": [ + { + "account_head": { + "account_name": "Utgående moms, 25 %", + "account_number": "2610", + "tax_rate": 25.00 + }, + "description": "Moms 25%", + "rate": 25.00 + } + ] + }, + { + "title": "Försäljning Moms 12%", + "is_default": 0, + "taxes": [ + { + "account_head": { + "account_name": "Utgående moms, 12 %", + "account_number": "2620", + "tax_rate": 12.00 + }, + "description": "Moms 12%", + "rate": 12.00 + } + ] + }, + { + "title": "Försäljning Moms 6%", + "is_default": 0, + "taxes": [ + { + "account_head": { + "account_name": "Utgående moms, 6 %", + "account_number": "2630", + "tax_rate": 6.00 + }, + "description": "Moms 6%", + "rate": 6.00 + } + ] + }, + { + "title": "Försäljning Moms 0%", + "is_default": 0, + "taxes": [ + { + "account_head": { + "account_name": "Utgående moms, 6 %", + "account_number": "2630", + "tax_rate": 0.00 + }, + "description": "Moms 0%", + "rate": 0.00 + } + ] + } + ], + "purchase_tax_templates": [ + { + "title": "Inköp Moms 25%", + "is_default": 1, + "taxes": [ + { + "account_head": { + "account_name": "Ingående moms", + "account_number": "2640", + "root_type": "Liability", + "tax_rate": 25.00 + }, + "description": "Moms 25%", + "rate": 25.00 + } + ] + }, + { + "title": "Inköp Moms 12%", + "is_default": 0, + "taxes": [ + { + "account_head": { + "account_name": "Ingående moms", + "account_number": "2640", + "root_type": "Liability", + "tax_rate": 12.00 + }, + "description": "Moms 12%", + "rate": 12.00 + } + ] + }, + { + "title": "Inköp Moms 6%", + "is_default": 0, + "taxes": [ + { + "account_head": { + "account_name": "Ingående moms", + "account_number": "2640", + "root_type": "Liability", + "tax_rate": 6.00 + }, + "description": "Moms 6%", + "rate": 6.00 + } + ] + }, + { + "title": "Inköp Moms 0%", + "is_default": 0, + "taxes": [ + { + "account_head": { + "account_name": "Ingående moms", + "account_number": "2640", + "root_type": "Liability", + "tax_rate": 0.00 + }, + "description": "Moms 0%", + "rate": 0.00 + } + ] + } + ], + "item_tax_templates": [ + { + "title": "Artikel Moms 25%", + "taxes": [ + { + "tax_type": { + "account_name": "Utgående moms, 25 %", + "account_number": "2610", + "root_type": "Liability", + "tax_rate": 25.00 + }, + "description": "Moms 25%", + "tax_rate": 25.00 + } + ] + }, + { + "title": "Artikel Moms 12%", + "taxes": [ + { + "tax_type": { + "account_name": "Utgående moms, 12 %", + "account_number": "2620", + "root_type": "Liability", + "tax_rate": 12.00 + }, + "description": "Moms 12%", + "tax_rate": 12.00 + } + ] + }, + { + "title": "Artikel Moms 6%", + "taxes": [ + { + "tax_type": { + "account_name": "Utgående moms, 6 %", + "account_number": "2630", + "root_type": "Liability", + "tax_rate": 6.00 + }, + "description": "Moms 6%", + "tax_rate": 6.00 + } + ] + }, + { + "title": "Artikel Moms 0%", + "taxes": [ + { + "tax_type": { + "account_name": "Utgående moms, 0 %", + "account_number": "2611", + "root_type": "Liability", + "tax_rate": 0.00 + }, + "description": "Moms 0%", + "tax_rate": 0.00 + } + ] + } + ] + }, "Switzerland": { From c3f8f56761162e6c851cc380d62b27e1fc59188a Mon Sep 17 00:00:00 2001 From: mahsem <137205921+mahsem@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:01:24 +0100 Subject: [PATCH 2/2] fix: add missing brackets --- erpnext/setup/setup_wizard/data/country_wise_tax.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/setup/setup_wizard/data/country_wise_tax.json b/erpnext/setup/setup_wizard/data/country_wise_tax.json index 68bf487bbf9a..0c9da608c10e 100644 --- a/erpnext/setup/setup_wizard/data/country_wise_tax.json +++ b/erpnext/setup/setup_wizard/data/country_wise_tax.json @@ -4693,7 +4693,8 @@ ] } ] - + } + } }, "Switzerland": {