Deleted code for adding currency

This commit is contained in:
Ali 2025-03-04 21:04:40 +04:00
parent ab7b346033
commit 2f55b4ce90
2 changed files with 0 additions and 21 deletions

View File

@ -7,4 +7,3 @@ def after_install():
update_country_info() # Обновляем страны update_country_info() # Обновляем страны
setup_locale() # Добавляем файлы локализации setup_locale() # Добавляем файлы локализации
update_languages() # Добавляем азербайджанский язык update_languages() # Добавляем азербайджанский язык
# setup_currency() # Добавляем валюту AZN

View File

@ -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 уже существует!")