From dc9d2c3247ce793ea09b998fd2d0fd2235baac5f Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Tue, 8 Apr 2025 13:08:54 +0400 Subject: [PATCH] added chart of accounts --- az_locale/install.py | 4 +- az_locale/locale/az_chart_of_accounts.json | 1424 ++++++++++++++++++++ az_locale/locale/setup_chart.py | 29 + 3 files changed, 1456 insertions(+), 1 deletion(-) create mode 100644 az_locale/locale/az_chart_of_accounts.json create mode 100644 az_locale/locale/setup_chart.py diff --git a/az_locale/install.py b/az_locale/install.py index bf1bcac..03388c2 100644 --- a/az_locale/install.py +++ b/az_locale/install.py @@ -1,8 +1,10 @@ from az_locale.locale.setup_locale import setup_locale +from az_locale.locale.setup_chart import setup_chart from az_locale.locale.update_languages import update_languages from az_locale.locale.update_country import update_country def after_install(): - setup_locale() # Добавляем файлы локализации + setup_locale() + setup_chart() update_languages() update_country() diff --git a/az_locale/locale/az_chart_of_accounts.json b/az_locale/locale/az_chart_of_accounts.json new file mode 100644 index 0000000..933856e --- /dev/null +++ b/az_locale/locale/az_chart_of_accounts.json @@ -0,0 +1,1424 @@ +{ + "country_code": "az", + "name": "Azerbaijan", + "tree": { + "UZUNMÜDDƏTLİ AKTİVLƏR": { + "account_number": "1", + "root_type": "Asset", + "is_group": 1, + "Qeyri-maddi aktivlər": { + "account_number": "10", + "is_group": 1, + "Qeyri-maddi aktivlərin dəyəri": { + "account_number": "101", + "account_type": "Fixed Asset" + }, + "QMA-lar üzrə yığılmış amortizasiya və qiymətdəndüşmə zərərləri": { + "account_number": "102", + "account_type": "Accumulated Depreciation" + }, + "QMA-larla bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103", + "account_type": "Capital Work in Progress" + }, + "Təcrübə-konstruktor işlərinin dəyəri": { + "account_number": "101.1", + "account_type": "Fixed Asset" + }, + "Ticarət markalarının dəyəri": { + "account_number": "101.2", + "account_type": "Fixed Asset" + }, + "Proqram təminatının dəyəri": { + "account_number": "101.3", + "account_type": "Fixed Asset" + }, + "Patentlərin dəyəri": { + "account_number": "101.4", + "account_type": "Fixed Asset" + }, + "Müəllif hüquqlarının dəyəri": { + "account_number": "101.5", + "account_type": "Fixed Asset" + }, + "Lisenziyaların dəyəri": { + "account_number": "101.6", + "account_type": "Fixed Asset" + }, + "Qudvilin dəyəri": { + "account_number": "101.7", + "account_type": "Fixed Asset" + }, + "Digər qeyri-maddi aktivlərin dəyəri": { + "account_number": "101.8", + "account_type": "Fixed Asset" + }, + "QMA-lar üzrə yığılmış amortizasiya": { + "account_number": "102.1", + "account_type": "Accumulated Depreciation" + }, + "QMA-lar üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2", + "account_type": "Accumulated Depreciation" + }, + "Təcrübə-konstr. işləri üzrə yığılmış amortizasiya": { + "account_number": "102.1.1", + "account_type": "Accumulated Depreciation" + }, + "Ticarət markaları üzrə yığılmış amortizasiya": { + "account_number": "102.1.2", + "account_type": "Accumulated Depreciation" + }, + "Proqram təminatı üzrə yığılmış amortizasiya": { + "account_number": "102.1.3", + "account_type": "Accumulated Depreciation" + }, + "Patentlər üzrə yığılmış amortizasiya": { + "account_number": "102.1.4", + "account_type": "Accumulated Depreciation" + }, + "Müəllif hüquqları üzrə yığılmış amortizasiya": { + "account_number": "102.1.5", + "account_type": "Accumulated Depreciation" + }, + "Lisenziyalar üzrə yığılmış amortizasiya": { + "account_number": "102.1.6", + "account_type": "Accumulated Depreciation" + }, + "Digər QMA-lar üzrə yığılmış amortizasiya": { + "account_number": "102.1.7", + "account_type": "Accumulated Depreciation" + }, + "Təcrübə-konstr. işləri üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2.1", + "account_type": "Indirect Expense" + }, + "Ticarət markaları üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2.2", + "account_type": "Indirect Expense" + }, + "Proqram təminatı üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2.3", + "account_type": "Indirect Expense" + }, + "Patentlər üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2.4", + "account_type": "Indirect Expense" + }, + "Müəllif hüquqları üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2.5", + "account_type": "Indirect Expense" + }, + "Lisenziyalar üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2.6", + "account_type": "Indirect Expense" + }, + "Qudvilin qiymətdən düşmə zərərləri": { + "account_number": "102.2.7", + "account_type": "Indirect Expense" + }, + "Digər QMA-lar üzrə qiymətdən düşmə zərərləri": { + "account_number": "102.2.8", + "account_type": "Indirect Expense" + }, + "Təcrübə-konstruktor işləri ilə bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103.1", + "account_type": "Capital Work in Progress" + }, + "Ticarət markaları ilə bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103.2", + "account_type": "Capital Work in Progress" + }, + "Proqram təminatı ilə bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103.3", + "account_type": "Capital Work in Progress" + }, + "Patentlərlə bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103.4", + "account_type": "Capital Work in Progress" + }, + "Müəllif hüquqları ilə bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103.5", + "account_type": "Capital Work in Progress" + }, + "Lisenziyalarla bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103.6", + "account_type": "Capital Work in Progress" + }, + "Digər qeyri-maddi aktivlər ilə bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "103.7", + "account_type": "Capital Work in Progress" + } + }, + "Torpaq, tikili və avadanlıqlar": { + "account_number": "11", + "is_group": 1, + "Torpaq, tikili və avadanlıqların dəyəri": { + "account_number": "111", + "account_type": "Fixed Asset" + }, + "Torpağın dəyəri": { + "account_number": "111.1", + "account_type": "Fixed Asset" + }, + "Tikililərin dəyəri": { + "account_number": "111.2", + "account_type": "Fixed Asset" + }, + "Maşın və avadanlıqların dəyəri": { + "account_number": "111.3", + "account_type": "Fixed Asset" + }, + "Nəqliyyat vasitələrinin dəyəri": { + "account_number": "111.4", + "account_type": "Fixed Asset" + }, + "Digər torpaq, tikili və avadanlıqların dəyəri": { + "account_number": "111.5", + "account_type": "Fixed Asset" + }, + "TTA-lar üzrə yığılmış amortizasiya və qiymətdəndüşmə zərərləri": { + "account_number": "112", + "account_type": "Accumulated Depreciation" + }, + "Torpaq üzrə yığılmış amortizasiya": { + "account_number": "112.1.1", + "account_type": "Accumulated Depreciation" + }, + "Tikililər üzrə yığılmış amortizasiya": { + "account_number": "112.1.2", + "account_type": "Accumulated Depreciation" + }, + "Maşın və avadanlıqlar üzrə yığılmış amortizasiya": { + "account_number": "112.1.3", + "account_type": "Accumulated Depreciation" + }, + "Nəqliyyat vasitələri üzrə yığılmış amortizasiya": { + "account_number": "112.1.4", + "account_type": "Accumulated Depreciation" + }, + "Digər TTA-lar üzrə yığılmış amortizasiya": { + "account_number": "112.1.5", + "account_type": "Accumulated Depreciation" + }, + "TTA-lar üzrə qiymətdəndüşmə zərərləri": { + "account_number": "112.2", + "account_type": "Accumulated Depreciation" + }, + "Torpaq üzrə qiymətdəndüşmə zərərləri": { + "account_number": "112.2.1", + "account_type": "Indirect Expense" + }, + "Tikililər üzrə qiymətdəndüşmə zərərləri": { + "account_number": "112.2.2", + "account_type": "Indirect Expense" + }, + "Maşın və avadanlıqlar üzrə qiymətdəndüşmə zərərləri": { + "account_number": "112.2.3", + "account_type": "Indirect Expense" + }, + "Nəqliyyat vasitələri üzrə qiymətdəndüşmə zərərləri": { + "account_number": "112.2.4", + "account_type": "Indirect Expense" + }, + "Digər TTA-lar üzrə qiymətdəndüşmə zərərləri": { + "account_number": "112.2.5", + "account_type": "Indirect Expense" + }, + "TTA-larla bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "113", + "account_type": "Capital Work in Progress" + }, + "Təyinatı üzrə istismar edilməsi üçün əlavə məsrəflər tələb edən torpaq,TTA": { + "account_number": "113.1", + "account_type": "Capital Work in Progress" + }, + "Təyinatı üzrə istismara hazır olan torpaq, tikili və avadanlıqlar": { + "account_number": "113.2", + "account_type": "Capital Work in Progress" + }, + "Tikilməkdə (istehsalatda) olan torpaq, tikili və avadanlıqlar": { + "account_number": "113.3", + "account_type": "Capital Work in Progress" + } + }, + "İnvestisiya mülkiyyəti": { + "account_number": "12", + "is_group": 1, + "İnvestisiya mülkiyyətinin dəyəri": { + "account_number": "121", + "account_type": "Fixed Asset" + }, + "Torpağın dəyəri": { + "account_number": "121.1", + "account_type": "Fixed Asset" + }, + "Binaların dəyəri": { + "account_number": "121.2", + "account_type": "Fixed Asset" + }, + "İnvestisiya mülkiyyəti üzrə yığılmış amortizasiya və qiymətdəndüşmə zərərləri": { + "account_number": "122", + "account_type": "Accumulated Depreciation" + }, + "İnvestisiya mülkiyyəti ilə bağlı məsrəflərin kapitallaşdırılması": { + "account_number": "123", + "account_type": "Capital Work in Progress" + } + }, + "Bioloji aktivlər": { + "account_number": "13", + "is_group": 1, + "Bioloji aktivlərin dəyəri": { + "account_number": "131", + "account_type": "Fixed Asset" + }, + "Bitkilərin dəyəri": { + "account_number": "131.1", + "account_type": "Fixed Asset" + }, + "Heyvanların dəyəri": { + "account_number": "131.2", + "account_type": "Fixed Asset" + }, + "Bioloji aktivlər üzrə yığılmış amortizasiya və qiymətdəndüşmə zərərləri": { + "account_number": "132", + "account_type": "Accumulated Depreciation" + } + }, + "Təbii sərvətlər": { + "account_number": "14", + "is_group": 1, + "Təbii sərvətlərin (ehtiyatların) dəyəri": { + "account_number": "141", + "account_type": "Fixed Asset" + }, + "Təbii sərvətlərin (ehtiyatların) tükənməsi": { + "account_number": "142", + "account_type": "Accumulated Depreciation" + } + }, + "İştirak payı metodu ilə uçota alınmış investisiyalar": { + "account_number": "15", + "is_group": 1, + "Asılı müəssisələrə investisiyalar": { + "account_number": "151", + "account_type": "Fixed Asset" + }, + "Birgə müəssisələrə investisiyalar": { + "account_number": "152", + "account_type": "Fixed Asset" + }, + "Asılı və birgə müəssisələrə investisiyaların dəyərinin azalmasına görə düzəlişlər": { + "account_number": "153", + "account_type": "Accumulated Depreciation" + } + }, + "Təxirə salınmış vergi aktivləri": { + "account_number": "16", + "is_group": 1, + "Mənfəət vergisi üzrə təxirə salınmış vergi aktivləri": { + "account_number": "161", + "account_type": "Tax" + }, + "Digər təxirə salınmış vergi aktivləri": { + "account_number": "162", + "account_type": "Tax" + } + }, + "Uzunmüddətli debitor borcları": { + "account_number": "17", + "is_group": 1, + "Alıcıların və sifarişçilərin uzunmüddətli debitor borcları": { + "account_number": "171", + "account_type": "Receivable" + }, + "Törəmə (asılı) müəssisələrin uzunmüddətli debitor borcları": { + "account_number": "172", + "account_type": "Receivable" + }, + "Əsas idarəetmə heyətinin uzunmüddətli debitor borcları": { + "account_number": "173", + "account_type": "Receivable" + }, + "İcarə üzrə uzunmüddətli debitor borcları": { + "account_number": "174", + "account_type": "Receivable" + }, + "Maliyyə icarəsi üzrə uzunmüddətli debitor borcları": { + "account_number": "174.1", + "account_type": "Receivable" + }, + "Əməliyyat icarəsi üzrə uzunmüddətli debitor borcları": { + "account_number": "174.2", + "account_type": "Receivable" + }, + "Tikinti müqavilələri üzrə uzunmüddətli debitor borcları": { + "account_number": "175", + "account_type": "Receivable" + }, + "Faizlər üzrə uzunmüddətli debitor borcları": { + "account_number": "176", + "account_type": "Receivable" + }, + "Digər uzunmüddətli debitor borcları": { + "account_number": "177", + "account_type": "Receivable" + } + }, + "Sair uzunmüddətli maliyyə aktivləri": { + "account_number": "18", + "is_group": 1, + "Ödənişə qədər saxlanılan uzunmüddətli investisiyalar": { + "account_number": "181", + "account_type": "Fixed Asset" + }, + "Verilmiş uzunmüddətli borclar": { + "account_number": "182", + "account_type": "Receivable" + }, + "Digər uzunmüddətli investisiyalar": { + "account_number": "183", + "account_type": "Fixed Asset" + }, + "Sair uzunmüddətli maliyyə aktivlərinin dəyərinin azalmasına görə düzəlişlər": { + "account_number": "184", + "account_type": "Accumulated Depreciation" + } + }, + "Sair uzunmüddətli aktivlər": { + "account_number": "19", + "is_group": 1, + "Gələcək hesabat dövrlərinin xərcləri": { + "account_number": "191", + "account_type": "Fixed Asset" + }, + "Verilmiş uzunmüddətli avanslar": { + "account_number": "192", + "account_type": "Fixed Asset" + }, + "Digər uzunmüddətli aktivlər": { + "account_number": "193", + "account_type": "Fixed Asset" + } + } + + }, + "QISAMÜDDƏTLİ AKTİVLƏR": { + "account_number": "2", + "root_type": "Asset", + "is_group": 1, + "Ehtiyatlar": { + "account_number": "20", + "is_group": 1, + "Material ehtiyatları": { + "account_number": "201", + "account_type": "Stock" + }, + "Xammal və materiallar": { + "account_number": "201.1", + "account_type": "Stock" + }, + "Satın alınmış yarımfabrikatlar və komplektləşdirici məmulatlar, konstruksiyalar və detallar": { + "account_number": "201.2", + "account_type": "Stock" + }, + "Yanacaq": { + "account_number": "201.3", + "account_type": "Stock" + }, + "Tara və tara materialları": { + "account_number": "201.4", + "account_type": "Stock" + }, + "Ehtiyat hissələri": { + "account_number": "201.5", + "account_type": "Stock" + }, + "Sair materiallar": { + "account_number": "201.6", + "account_type": "Stock" + }, + "Emal üçün kənara verilmiş materiallar": { + "account_number": "201.7", + "account_type": "Stock" + }, + "İstehsalat (iş və xidmət) məsrəfləri": { + "account_number": "202", + "account_type": "Cost of Goods Sold" + }, + "İstehsalatda istifadə olunmuş əsas xammal": { + "account_number": "202.1", + "account_type": "Cost of Goods Sold" + }, + "İstehsalatda istifadə olunmuş əsas materiallar": { + "account_number": "202.2", + "account_type": "Cost of Goods Sold" + }, + "Əsas istehsalatla məşğul olan işçi heyətinə məsrəflər": { + "account_number": "202.3", + "account_type": "Cost of Goods Sold" + }, + "İstehsalat aktivlərinin amortizasiya məsrəfləri": { + "account_number": "202.4", + "account_type": "Cost of Goods Sold" + }, + "İstehsalatda istifadə olunmuş köməkçi xammal": { + "account_number": "202.5", + "account_type": "Cost of Goods Sold" + }, + "İstehsalatda istifadə olunmuş köməkçi materiallar": { + "account_number": "202.6", + "account_type": "Cost of Goods Sold" + }, + "Köməkçi istehsalatla məşğul olan işçi heyətinə məsrəflər": { + "account_number": "202.7", + "account_type": "Cost of Goods Sold" + }, + "Tikinti müqavilələri üzrə məsrəflər": { + "account_number": "203", + "account_type": "Cost of Goods Sold" + }, + "Hazır məhsul": { + "account_number": "204", + "account_type": "Stock" + }, + "Mallar": { + "account_number": "205", + "account_type": "Stock" + }, + "Anbarlarda olan mallar": { + "account_number": "205.1", + "account_type": "Stock" + }, + "Pərakəndə ticarətdə olan mallar": { + "account_number": "205.2", + "account_type": "Stock" + }, + "Dolu və boş taralar": { + "account_number": "205.3", + "account_type": "Stock" + }, + "Satınalınan məmulatlar": { + "account_number": "205.4", + "account_type": "Stock" + }, + "Kirayə əşyaları": { + "account_number": "205.5", + "account_type": "Stock" + }, + "Satış məqsədi ilə saxlanılan digər aktivlər": { + "account_number": "206", + "account_type": "Stock" + }, + "Digər ehtiyatlar": { + "account_number": "207", + "account_type": "Stock" + }, + "Ehtiyatların dəyərinin azalmasına görə düzəlişlər": { + "account_number": "208", + "account_type": "Stock Adjustment" + } + }, + "Qısamüddətli debitor borcları": { + "account_number": "21", + "is_group": 1, + "Alıcıların və sifarişçilərin qısamüddətli debitor borcları": { + "account_number": "211", + "account_type": "Receivable" + }, + "Törəmə (asılı) müəssisələrin qısamüddətli debitor borcları": { + "account_number": "212", + "account_type": "Receivable" + }, + "Əsas idarəetmə heyətinin qısamüddətli debitor borcları": { + "account_number": "213", + "account_type": "Receivable" + }, + "İcarə üzrə qısamüddətli debitor borcları": { + "account_number": "214", + "account_type": "Receivable" + }, + "Maliyyə icarəsi üzrə qısamüddətli debitor borcları": { + "account_number": "214.1", + "account_type": "Receivable" + }, + "Əməliyyat icarəsi üzrə qısamüddətli debitor borcları": { + "account_number": "214.2", + "account_type": "Receivable" + }, + "Tikinti müqavilələri üzrə qısamüddətli debitor borcları": { + "account_number": "215", + "account_type": "Receivable" + }, + "Faizlər üzrə qısamüddətli debitor borcları": { + "account_number": "216", + "account_type": "Receivable" + }, + "Digər qısamüddətli debitor borcları": { + "account_number": "217", + "account_type": "Receivable" + }, + "Şübhəli borclar üzrə düzəlişlər": { + "account_number": "218", + "account_type": "Accumulated Depreciation" + } + }, + "Pul vəsaitləri və onların ekvivalentləri": { + "account_number": "22", + "is_group": 1, + "Kassa": { + "account_number": "221", + "account_type": "Cash" + }, + "Yolda olan pul köçürmələri": { + "account_number": "222", + "account_type": "Cash" + }, + "Bank hesablaşma hesabları": { + "account_number": "223", + "account_type": "Bank" + }, + "Bank hesablaşma hesabları Manat": { + "account_number": "223.1", + "account_type": "Bank" + }, + "Bank hesablaşma hesabları ABŞ dolları": { + "account_number": "223.2", + "account_type": "Bank" + }, + "Bank hesablaşma hesabları Avro": { + "account_number": "223.3", + "account_type": "Bank" + }, + "Tələblərə əsasən açılan digər bank hesabları": { + "account_number": "224", + "account_type": "Bank" + }, + "Akkreditivlər": { + "account_number": "224.1", + "account_type": "Bank" + }, + "Plastik kartlar": { + "account_number": "224.2", + "account_type": "Bank" + }, + "Depozit hesablar": { + "account_number": "224.3", + "account_type": "Bank" + }, + "Pul vəsaitlərinin ekvivalentləri": { + "account_number": "225", + "account_type": "Cash" + } + }, + "Sair qısamüddətli maliyyə aktivləri": { + "account_number": "23", + "is_group": 1, + "Satış məqsədi ilə saxlanılan qısamüddətli investisiyalar": { + "account_number": "231", + "account_type": "Current Asset" + }, + "Ödənişə qədər saxlanılan qısamüddətli investisiyalar": { + "account_number": "232", + "account_type": "Current Asset" + }, + "Verilmiş qısamüddətli borclar": { + "account_number": "233", + "account_type": "Receivable" + }, + "Digər qısamüddətli investisiyalar": { + "account_number": "234", + "account_type": "Current Asset" + }, + "Sair qısamüddətli maliyyə aktivlərinin dəyərinin azalmasına görə düzəlişlər": { + "account_number": "235", + "account_type": "Accumulated Depreciation" + } + }, + "Sair qısamüddətli aktivlər": { + "account_number": "24", + "is_group": 1, + "Əvəzləşdirilən vergilər": { + "account_number": "241", + "account_type": "Tax" + }, + "Gələcək hesabat dövrünün xərcləri": { + "account_number": "242", + "account_type": "Current Asset" + }, + "Verilmiş qısamüddətli avanslar": { + "account_number": "243", + "account_type": "Current Asset" + }, + "Təhtəlhesab məbləğlər": { + "account_number": "244", + "account_type": "Current Asset" + }, + "Digər qısamüddətli aktivlər": { + "account_number": "245", + "account_type": "Current Asset" + } + } + }, + "KAPİTAL": { + "account_number": "3", + "root_type": "Equity", + "is_group": 1, + "Ödənilmiş nizamnamə (nominal) kapital": { + "account_number": "30", + "is_group": 1, + "Nizamnamə (nominal) kapitalı": { + "account_number": "301", + "account_type": "Equity" + }, + "Nizamnamə (nominal) kapitalın ödənilməmiş hissəsi": { + "account_number": "302", + "account_type": "Equity" + } + }, + "Emissiya gəliri": { + "account_number": "31", + "is_group": 1, + "Emissiya gəliri": { + "account_number": "311", + "account_type": "Equity" + }, + "Emissiya gəliri - Adi səhmlər": { + "account_number": "311.1", + "account_type": "Equity" + }, + "Emissiya gəliri - İmtiyazlı səhmlər": { + "account_number": "311.2", + "account_type": "Equity" + } + }, + "Geri alınmış kapital (səhmlər)": { + "account_number": "32", + "is_group": 1, + "Geri alınmış kapital (səhmlər)": { + "account_number": "321", + "account_type": "Equity" + } + }, + "Kapital ehtiyatları": { + "account_number": "33", + "is_group": 1, + "Yenidən qiymətləndirilmə üzrə ehtiyat": { + "account_number": "331", + "account_type": "Equity" + }, + "Məzənnə fərgləri üzrə ehtiyat": { + "account_number": "332", + "account_type": "Equity" + }, + "Qanunvericilik üzrə ehtiyat": { + "account_number": "333", + "account_type": "Equity" + }, + "Nizamnamə üzrə ehtiyat": { + "account_number": "334", + "account_type": "Equity" + }, + "Digər ehtiyatlar": { + "account_number": "335", + "account_type": "Equity" + } + }, + "Bölüşdürülməmiş mənfəət (ödənilməmiş zərər)": { + "account_number": "34", + "is_group": 1, + "Hesabat dövründə xalis mənfəət (zərər)": { + "account_number": "341", + "account_type": "Equity" + }, + "Mühasibat uçotu siyasətində dəyişikliklərlə bağlı mənfəət (zərər) üzrə düzəlişlər": { + "account_number": "342", + "account_type": "Equity" + }, + "Keçmiş illər üzrə bölüşdürülməmiş mənfəət (ödənilməmiş zərər)": { + "account_number": "343", + "account_type": "Equity" + }, + "Elan edilmiş dividentlər": { + "account_number": "344", + "account_type": "Equity" + } + } + }, + "UZUNMÜDDƏTLİ ÖHDƏLİKLƏR": { + "account_number": "4", + "root_type": "Liability", + "is_group": 1, + "Uzunmüddətli faiz xərcləri yaradan öhdəliklər": { + "account_number": "40", + "is_group": 1, + "Uzunmüddətli bank kreditləri": { + "account_number": "401", + "account_type": "Liability" + }, + "İşçilər üçün uzunmüddətli bank kreditləri": { + "account_number": "402", + "account_type": "Liability" + }, + "Kreditə (nisyə) satılmış mallara görə": { + "account_number": "402.1", + "account_type": "Liability" + }, + "Fərdi mənzil tikintisi": { + "account_number": "402.2", + "account_type": "Liability" + }, + "Bağ evlərinin tikintisi": { + "account_number": "402.3", + "account_type": "Liability" + }, + "Geri alınan məhdud tədavül müddətli imtiyazlı səhmlər (uzunmüddətli)": { + "account_number": "405", + "account_type": "Liability" + }, + "Maliyyə icarəsi üzrə uzunmüddətli öhdəliklər": { + "account_number": "406", + "account_type": "Liability" + }, + "Törəmə (asılı) müəssisələrə uzunmüddətli faiz xərcləri yaradan öhdəliklər": { + "account_number": "407", + "account_type": "Liability" + }, + "Digər uzunmüddətli faiz xərcləri yaradan öhdəliklər": { + "account_number": "408", + "account_type": "Liability" + } + }, + "Uzunmüddətli qiymətləndirilmiş öhdəliklər": { + "account_number": "41", + "is_group": 1, + "İşdən azad olma ilə bağlı uzunmüddətli müavinətlər və öhdəliklər": { + "account_number": "411", + "account_type": "Liability" + }, + "Uzunmüddətli zəmanət öhdəlikləri": { + "account_number": "412", + "account_type": "Liability" + }, + "Uzunmüddətli hüquqi öhdəliklər": { + "account_number": "413", + "account_type": "Liability" + }, + "Digər uzunmüddətli qiymətləndirilmiş öhdəliklər": { + "account_number": "414", + "account_type": "Liability" + }, + "Sığorta müqavilələri üzrə uzunmüddətli öhdəliklər": { + "account_number": "414.1", + "account_type": "Liability" + } + }, + "Təxirə salınmış vergi öhdəlikləri": { + "account_number": "42", + "is_group": 1, + "Mənfəət vergisi üzrə təxirə salınmış vergi öhdəlikləri": { + "account_number": "421", + "account_type": "Tax" + }, + "Digər təxirə salınmış vergi öhdəliklər": { + "account_number": "422", + "account_type": "Tax" + } + }, + "Uzunmüddətli kreditor borcları": { + "account_number": "43", + "is_group": 1, + "Malsatan və podratçılara uzunmüddətli kreditor borcları": { + "account_number": "431", + "account_type": "Payable" + }, + "Törəmə (asılı) cəmiyyətlərə uzunmüddətli kreditor borcları": { + "account_number": "432", + "account_type": "Payable" + }, + "Tikinti müqavilələri üzrə uzunmüddətli kreditor borcları": { + "account_number": "433", + "account_type": "Payable" + }, + "Faizlər üzrə uzunmüddətli kreditor borcları": { + "account_number": "434", + "account_type": "Payable" + }, + "Digər uzunmüddətli kreditor borcları": { + "account_number": "435", + "account_type": "Payable" + } + }, + "Sair uzunmüddətli öhdəliklər": { + "account_number": "44", + "is_group": 1, + "Uzunmüddətli pensiya öhdəlikləri": { + "account_number": "441", + "account_type": "Liability" + }, + "Gələcək hesabat dövrlərinin gəlirləri": { + "account_number": "442", + "account_type": "Liability" + }, + "Alınmış uzunmüddətli avanslar": { + "account_number": "443", + "account_type": "Liability" + }, + "Uzunmüddətli məqsədli maliyyələşmələr və daxilolmalar": { + "account_number": "444", + "account_type": "Liability" + }, + "Digər uzunmüddətli öhdəliklər": { + "account_number": "445", + "account_type": "Liability" + } + } + }, + "QISAMÜDDƏTLİ ÖHDƏLİKLƏR": { + "account_number": "5", + "root_type": "Liability", + "is_group": 1, + "Qısamüddətli faiz xərcləri yaradan öhdəliklər": { + "account_number": "50", + "is_group": 1, + "Qısamüddətli bank kreditləri": { + "account_number": "501", + "account_type": "Current Liability" + }, + "Bank overdraftı": { + "account_number": "501.1", + "account_type": "Current Liability" + }, + "İşçilər üçün qısamüddətli bank kreditləri": { + "account_number": "502", + "account_type": "Current Liability" + }, + "Qısamüddətli konvertasiya olunan istiqrazlar": { + "account_number": "503", + "account_type": "Current Liability" + }, + "Qısamüddətli borclar": { + "account_number": "504", + "account_type": "Current Liability" + }, + "Geri alınan məhdud tədavül müddətli imtiyazlı səhmlər (qısamüddətli)": { + "account_number": "505", + "account_type": "Current Liability" + }, + "Törəmə (asılı) müəssisələrə qısamüddətli faiz xərcləri yaradan öhdəliklər": { + "account_number": "506", + "account_type": "Current Liability" + }, + "Digər qısamüddətli faiz xərcləri yaradan öhdəliklər": { + "account_number": "507", + "account_type": "Current Liability" + } + }, + "Qısamüddətli qiymətləndirilmiş öhdəliklər": { + "account_number": "51", + "is_group": 1, + "İşdən azad olma ilə bağlı qısamüddətli müavinətlər və öhdəliklər": { + "account_number": "511", + "account_type": "Current Liability" + }, + "Qısamüddətli zəmanət öhdəlikləri": { + "account_number": "512", + "account_type": "Current Liability" + }, + "Qısamüddətli hüquqi öhdəliklər": { + "account_number": "513", + "account_type": "Current Liability" + }, + "Mənfəətdə iştirak planı və müavinət planları": { + "account_number": "514", + "account_type": "Current Liability" + }, + "Digər qısamüddətli qiymətləndirilmiş öhdəliklər": { + "account_number": "515", + "account_type": "Current Liability" + }, + "Sığorta müqavilələri üzrə qısamüddətli öhdəliklər": { + "account_number": "515.1", + "account_type": "Current Liability" + } + }, + "Vergi və sair məcburi ödənişlər üzrə öhdəliklər": { + "account_number": "52", + "is_group": 1, + "Vergi öhdəlikləri": { + "account_number": "521", + "account_type": "Tax" + }, + "Mənfəət vergisi": { + "account_number": "521.1", + "account_type": "Tax" + }, + "Gəlir vergisi": { + "account_number": "521.2", + "account_type": "Tax" + }, + "ƏDV": { + "account_number": "521.3", + "account_type": "Tax" + }, + "Aksiz": { + "account_number": "521.4", + "account_type": "Tax" + }, + "Əmlak vergisi": { + "account_number": "521.5", + "account_type": "Tax" + }, + "Torpaq vergisi": { + "account_number": "521.6", + "account_type": "Tax" + }, + "Yol vergisi": { + "account_number": "521.7", + "account_type": "Tax" + }, + "Mədən vergisi": { + "account_number": "521.8", + "account_type": "Tax" + }, + "Sadələşdirilmiş vergi": { + "account_number": "521.9", + "account_type": "Tax" + }, + "Maliyyə sanksiyaları": { + "account_number": "521.10", + "account_type": "Tax" + }, + "Sosial sığorta və təminat üzrə öhdəliklər": { + "account_number": "522", + "account_type": "Tax" + }, + "Digər məcburi ödənişlər üzrə öhdəliklər": { + "account_number": "523", + "account_type": "Tax" + } + }, + "Qısamüddətli kreditor borcları": { + "account_number": "53", + "is_group": 1, + "Malsatan və podratçılara qısamüddətli kreditor borcları": { + "account_number": "531", + "account_type": "Payable" + }, + "Törəmə (asılı) müəssisələrə qısamüddətli kreditor borcları": { + "account_number": "532", + "account_type": "Payable" + }, + "Əməyin ödənişi üzrə işçi heyətinə olan borclar": { + "account_number": "533", + "account_type": "Payable" + }, + "Dividendlərin ödənilməsi üzrə təsisçilərə kreditor borcları": { + "account_number": "534", + "account_type": "Payable" + }, + "Maliyyə icarəsi üzrə qısamüddətli kreditor borcları": { + "account_number": "535.1", + "account_type": "Payable" + }, + "Əməliyyat icarəsi üzrə qısamüddətli kreditor borcları": { + "account_number": "535.2", + "account_type": "Payable" + }, + "İcarə üzrə qısamüddətli kreditor borcları": { + "account_number": "535", + "account_type": "Payable" + }, + "Tikinti müqavilələri üzrə qısamüddətli kreditor borcları": { + "account_number": "536", + "account_type": "Payable" + }, + "Faizlər üzrə qısamüddətli kreditor borcları": { + "account_number": "537", + "account_type": "Payable" + }, + "Digər qısamüddətli kreditor borcları": { + "account_number": "538", + "account_type": "Payable" + } + }, + "Sair qısamüddətli öhdəliklər": { + "account_number": "54", + "is_group": 1, + "Qısamüddətli pensiya öhdəlikləri": { + "account_number": "541", + "account_type": "Current Liability" + }, + "Gələcək hesabat dövrünün gəlirləri": { + "account_number": "542", + "account_type": "Current Liability" + }, + "Alınmış qısamüddətli avanslar": { + "account_number": "543", + "account_type": "Current Liability" + }, + "Qisamüddətli məqsədli maliyyələşmələr və daxilolmalar": { + "account_number": "544", + "account_type": "Current Liability" + }, + "Digər qısamüddətli öhdəliklər": { + "account_number": "545", + "account_type": "Current Liability" + } + } + }, + "GƏLİRLƏR": { + "account_number": "6", + "root_type": "Income", + "is_group": 1, + "Əsas əməliyyat gəliri": { + "account_number": "60", + "is_group": 1, + "Satış": { + "account_number": "601", + "account_type": "Income Account" + }, + "Malların satışı": { + "account_number": "601.1", + "account_type": "Income Account" + }, + "Xidmətlərin göstərilməsi və işlərin görülməsi üzrə gəlir": { + "account_number": "601.2", + "account_type": "Income Account" + }, + "Tikinti müqavilələri üzrə gəlir": { + "account_number": "601.3", + "account_type": "Income Account" + }, + "Royalti gəliri": { + "account_number": "601.4", + "account_type": "Income Account" + }, + "Əməliyyat icarəsi üzrə gəlir": { + "account_number": "601.5", + "account_type": "Income Account" + }, + "Digər əməliyyat gəliri": { + "account_number": "601.6", + "account_type": "Income Account" + }, + "Satılmış malların qaytarılması və ucuzlaşdırılması": { + "account_number": "602", + "account_type": "Income Account" + }, + "Verilmiş güzəştlər": { + "account_number": "603", + "account_type": "Income Account" + } + }, + "Sair əməliyyat gəlirləri": { + "account_number": "61", + "is_group": 1, + "Sair əməliyyat gəlirləri": { + "account_number": "611", + "account_type": "Indirect Income" + }, + "Torpaq, tikili, avadanlıqların və digər uzunmüddətli aktivlərin satışından gəlirlər": { + "account_number": "611.1", + "account_type": "Indirect Income" + }, + "Yenidən qiymətləndirilmədən gəlirlər": { + "account_number": "611.2", + "account_type": "Indirect Income" + }, + "Əvəzsiz olaraq alınmış aktivlər": { + "account_number": "611.3", + "account_type": "Indirect Income" + }, + "Cərimələr və digər oxşar ödənişlər": { + "account_number": "611.4", + "account_type": "Indirect Income" + }, + "Keçmiş illər üzrə gəlirlər": { + "account_number": "611.5", + "account_type": "Indirect Income" + }, + "Ümidsiz borcların bərpası": { + "account_number": "611.6", + "account_type": "Indirect Income" + }, + "Silinmiş ehtiyatların bərpası": { + "account_number": "611.7", + "account_type": "Indirect Income" + }, + "Məzənnə fərqləri üzrə gəlirlər": { + "account_number": "611.8", + "account_type": "Indirect Income" + }, + "Aktivlərin qiymətdən düşməsi,üçüncü tərəfdən gözlənilən kompensasiya": { + "account_number": "611.9", + "account_type": "Indirect Income" + }, + "Digər əməliyyat gəlirləri": { + "account_number": "611.10", + "account_type": "Indirect Income" + } + }, + "Fəaliyyətin dayandırılmasından yaranan gəlirlər": { + "account_number": "62", + "is_group": 1, + "Fəaliyyətin dayandırılmasından yaranan gəlirlər": { + "account_number": "621", + "account_type": "Indirect Income" + } + }, + "Maliyyə gəlirləri": { + "account_number": "63", + "is_group": 1, + "Maliyyə gəlirləri": { + "account_number": "631", + "account_type": "Indirect Income" + }, + "Faiz gəliri": { + "account_number": "631.1", + "account_type": "Indirect Income" + }, + "Qiymətdən düşmüş borclar üzrə faiz gəlirləri": { + "account_number": "631.2", + "account_type": "Indirect Income" + }, + "Maliyyə icarəsi üzrə gəlir": { + "account_number": "631.3", + "account_type": "Indirect Income" + }, + "Faiz xərcləri yaradan öhdəliklər üzrə məzənnə gəliri": { + "account_number": "631.4", + "account_type": "Indirect Income" + }, + "Digər maliyyə gəlirləri": { + "account_number": "631.5", + "account_type": "Indirect Income" + } + }, + "Fövqəladə gəlirlər": { + "account_number": "64", + "is_group": 1, + "Fövqəladə gəlirlər": { + "account_number": "641", + "account_type": "Indirect Income" + } + } + }, + "XƏRCLƏR": { + "account_number": "7", + "root_type": "Expense", + "is_group": 1, + "Satışın maya dəyəri üzrə xərclər": { + "account_number": "70", + "is_group": 1, + "Satışın maya dəyəri üzrə xərclər": { + "account_number": "701", + "account_type": "Cost of Goods Sold" + }, + "Xammal": { + "account_number": "701.1", + "account_type": "Cost of Goods Sold" + }, + "Təkrar satış məqsədilə saxlanılan mallar": { + "account_number": "701.2", + "account_type": "Cost of Goods Sold" + }, + "İstehsal sahəsində çalışan işçilərin əmək haqqı xərcləri": { + "account_number": "701.3", + "account_type": "Cost of Goods Sold" + }, + "İstehsal aktivlərinin amortizasiyası": { + "account_number": "701.4", + "account_type": "Cost of Goods Sold" + }, + "Satışın digər maya dəyəri xərcləri": { + "account_number": "701.5", + "account_type": "Cost of Goods Sold" + } + }, + "Kommersiya xərcləri": { + "account_number": "71", + "is_group": 1, + "Kommersiya xərcləri": { + "account_number": "711", + "account_type": "Expense Account" + }, + "Müəssisənin kommersiya fəaliyyətində məşğul olan işçi heyəti üzrə xərclər": { + "account_number": "711.1", + "account_type": "Expense Account" + }, + "Kommersiya məqsədləri üçün istifadə edilən aktivlərin amortizasiya xərcləri": { + "account_number": "711.2", + "account_type": "Expense Account" + }, + "Digər kommersiya xərcləri": { + "account_number": "711.3", + "account_type": "Expense Account" + } + }, + "İnzibati xərclər": { + "account_number": "72", + "is_group": 1, + "İnzibati xərclər": { + "account_number": "721", + "account_type": "Expense Account" + }, + "İnzibati məqsədlər üçün istifadə olunmuş xammal və material xərcləri": { + "account_number": "721.1", + "account_type": "Expense Account" + }, + "İnzibati işçi heyəti üzrə xərclər": { + "account_number": "721.2", + "account_type": "Expense Account" + }, + "İnzibati işçi heyəti üzrə xərclərə görə hesabalanılan sosial sığorta ayırmaları": { + "account_number": "721.3", + "account_type": "Expense Account" + }, + "İnzibati məqsədlər üçün istifadə olunan aktivlərin amortizasiya xərcləri": { + "account_number": "721.4", + "account_type": "Expense Account" + }, + "İnzibati məqsədlərlə bağlı digər xərclər": { + "account_number": "721.5", + "account_type": "Expense Account" + } + }, + "Sair əməliyyat xərcləri": { + "account_number": "73", + "is_group": 1, + "Sair əməliyyat xərcləri": { + "account_number": "731", + "account_type": "Indirect Expense" + }, + "Torpaq, tikili, avadanlıqların və digər uzunmüddətli aktivlərin xaricolması üzrə xərclər": { + "account_number": "731.1", + "account_type": "Indirect Expense" + }, + "Yenidən qiymətləndirilmədən xərclər": { + "account_number": "731.2", + "account_type": "Indirect Expense" + }, + "Qiymətdən düşmə üzrə xərclər": { + "account_number": "731.3", + "account_type": "Indirect Expense" + }, + "Cərimələr və digər oxşar ödənişlər": { + "account_number": "731.4", + "account_type": "Indirect Expense" + }, + "Keçmiş illər üzrə xərclər": { + "account_number": "731.5", + "account_type": "Indirect Expense" + }, + "Şübhəli və ümidsiz borclar üzrə xərclər": { + "account_number": "731.6", + "account_type": "Indirect Expense" + }, + "Aktivlərin dəyərinin azalması üzrə düzəlişlər": { + "account_number": "731.7", + "account_type": "Indirect Expense" + }, + "Məzənnə xərcləri": { + "account_number": "731.8", + "account_type": "Indirect Expense" + }, + "Əvəzsiz olaraq verilmiş aktivlər": { + "account_number": "731.9", + "account_type": "Indirect Expense" + }, + "Digər əməliyyat xərcləri": { + "account_number": "731.10", + "account_type": "Indirect Expense" + } + }, + "Fəaliyyətin dayandırılmasından yaranan xərclər": { + "account_number": "74", + "is_group": 1, + "Fəaliyyətin dayandırılmasından yaranan xərclər": { + "account_number": "741", + "account_type": "Indirect Expense" + } + }, + "Maliyyə xərcləri": { + "account_number": "75", + "is_group": 1, + "Maliyyə xərcləri": { + "account_number": "751", + "account_type": "Indirect Expense" + }, + "Faiz xərcləri": { + "account_number": "751.1", + "account_type": "Indirect Expense" + }, + "Konvertasiya olunan istiqrazlar üzrə faiz xərcləri": { + "account_number": "751.2", + "account_type": "Indirect Expense" + }, + "Maliyyə icarəsi üzrə faiz xərcləri": { + "account_number": "751.3", + "account_type": "Indirect Expense" + }, + "Maliyyə alətlərinin ədalətli dəyərinin dəyişməsi üzrə xərclər": { + "account_number": "751.4", + "account_type": "Indirect Expense" + }, + "Faiz xərcləri yaradan öhdəliklər üzrə məzənnə xərcləri": { + "account_number": "751.5", + "account_type": "Indirect Expense" + }, + "Digər maliyyə xərcləri": { + "account_number": "751.6", + "account_type": "Indirect Expense" + } + }, + "Fövqəladə xərclər": { + "account_number": "76", + "is_group": 1, + "Fövqəladə xərclər": { + "account_number": "761", + "account_type": "Indirect Expense" + } + } + }, + "MƏNFƏƏTLƏR (ZƏRƏRLƏR)": { + "account_number": "8", + "root_type": "Income", + "is_group": 1, + "Ümumi mənfəət (zərər)": { + "account_number": "80", + "is_group": 1, + "Ümumi mənfəət (zərər)": { + "account_number": "801", + "account_type": "Income Account" + } + }, + "Asılı və birgə müəssisələrin mənfəətlərində (zərərlərində) pay": { + "account_number": "81", + "is_group": 1, + "Asılı və birgə müəssisələrin mənfəətlərində (zərərlərində) pay": { + "account_number": "811", + "account_type": "Indirect Income" + } + } + }, + "MƏNFƏƏT VERGİSİ": { + "account_number": "9", + "root_type": "Expense", + "is_group": 1, + "Mənfəət vergisi": { + "account_number": "90", + "is_group": 1, + "Cari mənfəət vergisi üzrə xərclər": { + "account_number": "901", + "account_type": "Tax" + }, + "Təxirə salınmış mənfəət vergisi üzrə xərclər": { + "account_number": "902", + "account_type": "Tax" + } + } + } + } +} diff --git a/az_locale/locale/setup_chart.py b/az_locale/locale/setup_chart.py new file mode 100644 index 0000000..9f6b0e6 --- /dev/null +++ b/az_locale/locale/setup_chart.py @@ -0,0 +1,29 @@ +import os +import shutil +from frappe.utils import get_bench_path + +def setup_chart(): + try: + bench_path = get_bench_path() + + # Пути назначения + erpnext_locale_path = os.path.join(bench_path, "apps", "erpnext", "erpnext", "accounts", "doctype", "account", "chart_of_accounts", "verified", "az_chart_of_accounts.json") + + # Создаём директорию, если она не существует + # os.makedirs(os.path.dirname(erpnext_locale_path), exist_ok=True) + + # Пути к файлам в кастомном приложении + app_path = os.path.join(bench_path, "apps", "az_locale", "az_locale", "locale") + source_erpnext = os.path.join(app_path, "az_chart_of_accounts.json") + + # Копируем файл для ERPNext + if os.path.exists(source_erpnext): + shutil.copy(source_erpnext, erpnext_locale_path) + print(f"План счетов успешно установлен в {erpnext_locale_path}") + return True + else: + print(f"Ошибка: Файл источника {source_erpnext} не найден") + return False + except Exception as e: + print(f"Произошла ошибка при установке плана счетов: {str(e)}") + return False \ No newline at end of file