From 2f55b4ce908a24242e6525e1625ae363c506d40d Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Tue, 4 Mar 2025 21:04:40 +0400 Subject: [PATCH] Deleted code for adding currency --- az_locale/install.py | 1 - az_locale/setup/setup_currency.py | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 az_locale/setup/setup_currency.py diff --git a/az_locale/install.py b/az_locale/install.py index 4019001..1035d1c 100644 --- a/az_locale/install.py +++ b/az_locale/install.py @@ -7,4 +7,3 @@ def after_install(): update_country_info() # Обновляем страны setup_locale() # Добавляем файлы локализации update_languages() # Добавляем азербайджанский язык - # setup_currency() # Добавляем валюту AZN diff --git a/az_locale/setup/setup_currency.py b/az_locale/setup/setup_currency.py deleted file mode 100644 index c9a73df..0000000 --- a/az_locale/setup/setup_currency.py +++ /dev/null @@ -1,20 +0,0 @@ -import frappe - -def setup_currency(): - if not frappe.db.exists("Currency", "AZN"): - currency = frappe.get_doc({ - "doctype": "Currency", - "currency_name": "Azerbaijani Manat", - "symbol": "₼", - "fraction": "Qəpik", - "fraction_units": 100, - "smallest_currency_fraction_value": 0.01, - "number_format": "#,###.##", - "enabled": 1, - "name": "AZN" - }) - currency.insert(ignore_permissions=True) - frappe.db.commit() - print("✅ Валюта AZN успешно добавлена!") - else: - print("⚠️ Валюта AZN уже существует!")