feat: added chart of accounts and tax template for australian localisation (#48208)

* Add Australian Localisation Setup

* feat: added chart of accounts and tax template for australian localisation

* chore: linter fix

---------

Co-authored-by: ruthra kumar <ruthra@erpnext.com>
This commit is contained in:
Jeba Jebas
2025-07-01 10:11:37 +05:30
committed by GitHub
parent 8ea9cb1d34
commit bb62a01c0d
3 changed files with 1052 additions and 4 deletions

View File

@@ -0,0 +1,86 @@
import frappe
from frappe.desk.page.setup_wizard.setup_wizard import make_records
def setup(company=None, patch=True):
pass
def update_regional_tax_settings(country=None, company=None):
# tax rules
records = [
{
"doctype": "Tax Rule",
"tax_type": "Purchase",
"purchase_tax_template": frappe.db.get_value(
"Purchase Taxes and Charges Template",
{"title": "AU Capital Purchase - GST", "company": company},
),
"use_for_shopping_cart": "1",
"tax_category": "Capital Goods Supplier",
"priority": "10",
"company": company,
},
{
"doctype": "Tax Rule",
"tax_type": "Purchase",
"purchase_tax_template": frappe.db.get_value(
"Purchase Taxes and Charges Template",
{"title": "Import & GST-Free Purchase", "company": company},
),
"use_for_shopping_cart": "1",
"tax_category": "Import / GST Free Supplier",
"priority": "20",
"company": company,
},
{
"doctype": "Tax Rule",
"tax_type": "Purchase",
"purchase_tax_template": frappe.db.get_value(
"Purchase Taxes and Charges Template",
{"title": "AU Non Capital Purchase - GST", "company": company},
),
"use_for_shopping_cart": "1",
"tax_category": "Domestic GST Supplier",
"priority": "30",
"company": company,
},
{
"doctype": "Tax Rule",
"tax_type": "Sales",
"sales_tax_template": frappe.db.get_value(
"Sales Taxes and Charges Template",
{"title": "AU Sales - GST", "company": company},
),
"use_for_shopping_cart": "1",
"tax_category": "Domestic GST Customer",
"priority": "30",
"company": company,
},
{
"doctype": "Tax Rule",
"tax_type": "Sales",
"sales_tax_template": frappe.db.get_value(
"Sales Taxes and Charges Template",
{"title": "Export Sales - GST Free", "company": company},
),
"use_for_shopping_cart": "1",
"tax_category": "Export Customer",
"priority": "20",
"company": company,
},
{
"doctype": "Tax Rule",
"tax_type": "Sales",
"sales_tax_template": frappe.db.get_value(
"Sales Taxes and Charges Template",
{"title": "AU Sales - GST Free", "company": company},
),
"use_for_shopping_cart": "1",
"tax_category": "GST Free Customer",
"priority": "10",
"company": company,
},
]
make_records(records)