From 7a22616d71553e040cbfab9bce9d612781590788 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 11 Jun 2013 16:05:56 +0530 Subject: [PATCH] [cleanup] GL Control, Multi Ledger Report Detail, Trend Analyzer Control --- .../gl_control/locale/_messages_doc.json | 4 - .../doctype/gl_control/locale/ar-doc.json | 4 - .../doctype/gl_control/locale/de-doc.json | 4 - .../doctype/gl_control/locale/es-doc.json | 4 - .../doctype/gl_control/locale/fr-doc.json | 4 - .../doctype/gl_control/locale/hi-doc.json | 4 - .../doctype/gl_control/locale/hr-doc.json | 4 - .../doctype/gl_control/locale/nl-doc.json | 4 - .../doctype/gl_control/locale/pt-BR-doc.json | 4 - .../doctype/gl_control/locale/pt-doc.json | 4 - .../doctype/gl_control/locale/th-doc.json | 4 - .../multi_ledger_report_detail/__init__.py | 1 - .../locale/_messages_doc.json | 5 - .../locale/ar-doc.json | 5 - .../locale/de-doc.json | 5 - .../locale/es-doc.json | 5 - .../locale/fr-doc.json | 5 - .../locale/hi-doc.json | 5 - .../locale/hr-doc.json | 5 - .../locale/nl-doc.json | 5 - .../locale/pt-BR-doc.json | 5 - .../locale/pt-doc.json | 5 - .../locale/sr-doc.json | 5 - .../locale/ta-doc.json | 5 - .../locale/th-doc.json | 5 - .../multi_ledger_report_detail.py | 22 ---- .../multi_ledger_report_detail.txt | 37 ------ .../trend_analyzer_control/__init__.py | 1 - .../locale/_messages_doc.json | 4 - .../trend_analyzer_control/locale/ar-doc.json | 4 - .../trend_analyzer_control/locale/de-doc.json | 4 - .../trend_analyzer_control/locale/es-doc.json | 4 - .../trend_analyzer_control/locale/fr-doc.json | 4 - .../trend_analyzer_control/locale/hi-doc.json | 4 - .../trend_analyzer_control/locale/hr-doc.json | 4 - .../trend_analyzer_control/locale/nl-doc.json | 4 - .../locale/pt-BR-doc.json | 4 - .../trend_analyzer_control/locale/pt-doc.json | 4 - .../trend_analyzer_control/locale/sr-doc.json | 4 - .../trend_analyzer_control/locale/ta-doc.json | 4 - .../trend_analyzer_control/locale/th-doc.json | 4 - .../trend_analyzer_control.py | 115 ------------------ .../trend_analyzer_control.txt | 23 ---- 43 files changed, 360 deletions(-) delete mode 100644 accounts/doctype/gl_control/locale/_messages_doc.json delete mode 100644 accounts/doctype/gl_control/locale/ar-doc.json delete mode 100644 accounts/doctype/gl_control/locale/de-doc.json delete mode 100644 accounts/doctype/gl_control/locale/es-doc.json delete mode 100644 accounts/doctype/gl_control/locale/fr-doc.json delete mode 100644 accounts/doctype/gl_control/locale/hi-doc.json delete mode 100644 accounts/doctype/gl_control/locale/hr-doc.json delete mode 100644 accounts/doctype/gl_control/locale/nl-doc.json delete mode 100644 accounts/doctype/gl_control/locale/pt-BR-doc.json delete mode 100644 accounts/doctype/gl_control/locale/pt-doc.json delete mode 100644 accounts/doctype/gl_control/locale/th-doc.json delete mode 100755 accounts/doctype/multi_ledger_report_detail/__init__.py delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/_messages_doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/ar-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/de-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/es-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/fr-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/hi-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/hr-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/nl-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/pt-BR-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/pt-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/sr-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/ta-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/locale/th-doc.json delete mode 100644 accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.py delete mode 100755 accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.txt delete mode 100755 accounts/doctype/trend_analyzer_control/__init__.py delete mode 100644 accounts/doctype/trend_analyzer_control/locale/_messages_doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/ar-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/de-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/es-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/fr-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/hi-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/hr-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/nl-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/pt-BR-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/pt-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/sr-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/ta-doc.json delete mode 100644 accounts/doctype/trend_analyzer_control/locale/th-doc.json delete mode 100755 accounts/doctype/trend_analyzer_control/trend_analyzer_control.py delete mode 100755 accounts/doctype/trend_analyzer_control/trend_analyzer_control.txt diff --git a/accounts/doctype/gl_control/locale/_messages_doc.json b/accounts/doctype/gl_control/locale/_messages_doc.json deleted file mode 100644 index e7bfed9bec..0000000000 --- a/accounts/doctype/gl_control/locale/_messages_doc.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "GL Control", - "Accounts" -] \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/ar-doc.json b/accounts/doctype/gl_control/locale/ar-doc.json deleted file mode 100644 index 779b94f3a0..0000000000 --- a/accounts/doctype/gl_control/locale/ar-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u062d\u0633\u0627\u0628\u0627\u062a", - "GL Control": "GL \u0627\u0644\u062a\u062d\u0643\u0645" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/de-doc.json b/accounts/doctype/gl_control/locale/de-doc.json deleted file mode 100644 index 39eaf86a5e..0000000000 --- a/accounts/doctype/gl_control/locale/de-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Konten", - "GL Control": "GL Steuerung" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/es-doc.json b/accounts/doctype/gl_control/locale/es-doc.json deleted file mode 100644 index f7a8eeecfc..0000000000 --- a/accounts/doctype/gl_control/locale/es-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Cuentas", - "GL Control": "GL control" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/fr-doc.json b/accounts/doctype/gl_control/locale/fr-doc.json deleted file mode 100644 index a7d3b17235..0000000000 --- a/accounts/doctype/gl_control/locale/fr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Comptes", - "GL Control": "GL contr\u00f4le" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/hi-doc.json b/accounts/doctype/gl_control/locale/hi-doc.json deleted file mode 100644 index ab677fae45..0000000000 --- a/accounts/doctype/gl_control/locale/hi-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u0932\u0947\u0916\u093e", - "GL Control": "\u091c\u0940\u090f\u0932 \u0928\u093f\u092f\u0902\u0924\u094d\u0930\u0923" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/hr-doc.json b/accounts/doctype/gl_control/locale/hr-doc.json deleted file mode 100644 index fd9e5bfd09..0000000000 --- a/accounts/doctype/gl_control/locale/hr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Ra\u010duni", - "GL Control": "GL kontrola" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/nl-doc.json b/accounts/doctype/gl_control/locale/nl-doc.json deleted file mode 100644 index af964d5dd9..0000000000 --- a/accounts/doctype/gl_control/locale/nl-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Accounts", - "GL Control": "GL Controle" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/pt-BR-doc.json b/accounts/doctype/gl_control/locale/pt-BR-doc.json deleted file mode 100644 index bac28e175c..0000000000 --- a/accounts/doctype/gl_control/locale/pt-BR-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Contas", - "GL Control": "GL Controle" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/pt-doc.json b/accounts/doctype/gl_control/locale/pt-doc.json deleted file mode 100644 index bac28e175c..0000000000 --- a/accounts/doctype/gl_control/locale/pt-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Contas", - "GL Control": "GL Controle" -} \ No newline at end of file diff --git a/accounts/doctype/gl_control/locale/th-doc.json b/accounts/doctype/gl_control/locale/th-doc.json deleted file mode 100644 index 74d66fdbbe..0000000000 --- a/accounts/doctype/gl_control/locale/th-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u0e1a\u0e31\u0e0d\u0e0a\u0e35", - "GL Control": "\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21 GL" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/__init__.py b/accounts/doctype/multi_ledger_report_detail/__init__.py deleted file mode 100755 index baffc48825..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/accounts/doctype/multi_ledger_report_detail/locale/_messages_doc.json b/accounts/doctype/multi_ledger_report_detail/locale/_messages_doc.json deleted file mode 100644 index ee7393edbd..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/_messages_doc.json +++ /dev/null @@ -1,5 +0,0 @@ -[ - "Multi Ledger Report Detail", - "Account", - "Accounts" -] \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/ar-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/ar-doc.json deleted file mode 100644 index 2317a7ae79..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/ar-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "\u062d\u0633\u0627\u0628", - "Accounts": "\u062d\u0633\u0627\u0628\u0627\u062a", - "Multi Ledger Report Detail": "\u0645\u0648\u0636\u0648\u0639 \u062a\u0642\u0631\u064a\u0631 \u062a\u0641\u0635\u064a\u0644\u064a \u0644\u064a\u062f\u062c\u0631" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/de-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/de-doc.json deleted file mode 100644 index c7f03178a5..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/de-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "Konto", - "Accounts": "Konten", - "Multi Ledger Report Detail": "Multi Ledger Detail Report" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/es-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/es-doc.json deleted file mode 100644 index be093b63fa..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/es-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "Cuenta", - "Accounts": "Cuentas", - "Multi Ledger Report Detail": "M\u00faltiples Ledger Informe detallado" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/fr-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/fr-doc.json deleted file mode 100644 index 78f209fa34..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/fr-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "Compte", - "Accounts": "Comptes", - "Multi Ledger Report Detail": "Multi D\u00e9tail Rapport Ledger" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/hi-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/hi-doc.json deleted file mode 100644 index 9ee1fecd70..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/hi-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "\u0916\u093e\u0924\u093e", - "Accounts": "\u0932\u0947\u0916\u093e", - "Multi Ledger Report Detail": "\u092e\u0932\u094d\u091f\u0940 \u0932\u0947\u091c\u0930 \u0930\u093f\u092a\u094b\u0930\u094d\u091f \u0935\u093f\u0938\u094d\u0924\u093e\u0930" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/hr-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/hr-doc.json deleted file mode 100644 index 76c520c0ec..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/hr-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "Ra\u010dun", - "Accounts": "Ra\u010duni", - "Multi Ledger Report Detail": "Multi knjiga Izvje\u0161\u0107e Detalj" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/nl-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/nl-doc.json deleted file mode 100644 index 8526cabdfa..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/nl-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "Rekening", - "Accounts": "Accounts", - "Multi Ledger Report Detail": "Multi Ledger Report Detail" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/pt-BR-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/pt-BR-doc.json deleted file mode 100644 index 3ddf7bae0b..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/pt-BR-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "Conta", - "Accounts": "Contas", - "Multi Ledger Report Detail": "Detalhe do Relat\u00f3rio de m\u00faltiplos Livros-Raz\u00e3o" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/pt-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/pt-doc.json deleted file mode 100644 index e50bcdb3fa..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/pt-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "Conta", - "Accounts": "Contas", - "Multi Ledger Report Detail": "Detalhes do Relat\u00f3rio de multi Ledger" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/sr-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/sr-doc.json deleted file mode 100644 index 6998aece69..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/sr-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "\u0420\u0430\u0447\u0443\u043d", - "Accounts": "\u0420\u0430\u0447\u0443\u043d\u0438", - "Multi Ledger Report Detail": "\u041c\u0443\u043b\u0442\u0438 \u041b\u0435\u045f\u0435\u0440 \u0418\u0437\u0432\u0435\u0448\u0442\u0430\u0458 \u0414\u0435\u0442\u0430\u0459" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/ta-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/ta-doc.json deleted file mode 100644 index d7ff26cadf..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/ta-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "\u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bc1", - "Accounts": "\u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bc1\u0b95\u0bb3\u0bcd", - "Multi Ledger Report Detail": "\u0baa\u0bb2 \u0bb2\u0bc6\u0b9f\u0bcd\u0b9c\u0bb0\u0bcd \u0b85\u0bb1\u0bbf\u0b95\u0bcd\u0b95\u0bc8 \u0bb5\u0bbf\u0bb0\u0bbf\u0bb5\u0bbe\u0b95" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/locale/th-doc.json b/accounts/doctype/multi_ledger_report_detail/locale/th-doc.json deleted file mode 100644 index b4d286967a..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/locale/th-doc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Account": "\u0e1a\u0e31\u0e0d\u0e0a\u0e35", - "Accounts": "\u0e1a\u0e31\u0e0d\u0e0a\u0e35", - "Multi Ledger Report Detail": "\u0e2b\u0e25\u0e32\u0e22\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e32\u0e22\u0e07\u0e32\u0e19\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e41\u0e22\u0e01\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17" -} \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.py b/accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.py +++ /dev/null @@ -1,22 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.txt b/accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.txt deleted file mode 100755 index 46563ddac1..0000000000 --- a/accounts/doctype/multi_ledger_report_detail/multi_ledger_report_detail.txt +++ /dev/null @@ -1,37 +0,0 @@ -[ - { - "creation": "2013-02-22 01:27:39", - "docstatus": 0, - "modified": "2013-03-07 07:03:26", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "doctype": "DocType", - "istable": 1, - "module": "Accounts", - "name": "__common__" - }, - { - "doctype": "DocField", - "fieldname": "account", - "fieldtype": "Link", - "label": "Account", - "name": "__common__", - "options": "Account", - "parent": "Multi Ledger Report Detail", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0, - "print_width": "300px", - "reqd": 1, - "width": "300px" - }, - { - "doctype": "DocType", - "name": "Multi Ledger Report Detail" - }, - { - "doctype": "DocField" - } -] \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/__init__.py b/accounts/doctype/trend_analyzer_control/__init__.py deleted file mode 100755 index baffc48825..0000000000 --- a/accounts/doctype/trend_analyzer_control/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/accounts/doctype/trend_analyzer_control/locale/_messages_doc.json b/accounts/doctype/trend_analyzer_control/locale/_messages_doc.json deleted file mode 100644 index 9a2dc73232..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/_messages_doc.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "Trend Analyzer Control", - "Accounts" -] \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/ar-doc.json b/accounts/doctype/trend_analyzer_control/locale/ar-doc.json deleted file mode 100644 index d60829282e..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/ar-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u062d\u0633\u0627\u0628\u0627\u062a", - "Trend Analyzer Control": "\u0627\u0644\u0627\u062a\u062c\u0627\u0647 \u0645\u062d\u0644\u0644 \u0627\u0644\u062a\u062d\u0643\u0645" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/de-doc.json b/accounts/doctype/trend_analyzer_control/locale/de-doc.json deleted file mode 100644 index ef575dd584..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/de-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Konten", - "Trend Analyzer Control": "Trend Analyzer Steuerung" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/es-doc.json b/accounts/doctype/trend_analyzer_control/locale/es-doc.json deleted file mode 100644 index d06a5360bf..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/es-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Cuentas", - "Trend Analyzer Control": "Trend Control Analizador" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/fr-doc.json b/accounts/doctype/trend_analyzer_control/locale/fr-doc.json deleted file mode 100644 index 12fe511662..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/fr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Comptes", - "Trend Analyzer Control": "Contr\u00f4le Analyseur de tendance" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/hi-doc.json b/accounts/doctype/trend_analyzer_control/locale/hi-doc.json deleted file mode 100644 index e2c7f0830b..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/hi-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u0932\u0947\u0916\u093e", - "Trend Analyzer Control": "\u0930\u0941\u091d\u093e\u0928 \u0935\u093f\u0936\u094d\u0932\u0947\u0937\u0915 \u0928\u093f\u092f\u0902\u0924\u094d\u0930\u0923" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/hr-doc.json b/accounts/doctype/trend_analyzer_control/locale/hr-doc.json deleted file mode 100644 index 18ecc7304c..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/hr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Ra\u010duni", - "Trend Analyzer Control": "Trend Analyzer kontrola" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/nl-doc.json b/accounts/doctype/trend_analyzer_control/locale/nl-doc.json deleted file mode 100644 index 60c027457e..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/nl-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Accounts", - "Trend Analyzer Control": "Trendanalyse Controle" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/pt-BR-doc.json b/accounts/doctype/trend_analyzer_control/locale/pt-BR-doc.json deleted file mode 100644 index 9f99885f99..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/pt-BR-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Contas", - "Trend Analyzer Control": "Controle do Analisador de tend\u00eancia" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/pt-doc.json b/accounts/doctype/trend_analyzer_control/locale/pt-doc.json deleted file mode 100644 index ee95c400fc..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/pt-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "Contas", - "Trend Analyzer Control": "Controlo Analyzer tend\u00eancia" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/sr-doc.json b/accounts/doctype/trend_analyzer_control/locale/sr-doc.json deleted file mode 100644 index 06ee34cf86..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/sr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u0420\u0430\u0447\u0443\u043d\u0438", - "Trend Analyzer Control": "\u0422\u0440\u0435\u043d\u0434 \u0410\u043d\u0430\u043b\u0438\u0437\u0435\u0440 \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0430" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/ta-doc.json b/accounts/doctype/trend_analyzer_control/locale/ta-doc.json deleted file mode 100644 index eea8f0e5c7..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/ta-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bc1\u0b95\u0bb3\u0bcd", - "Trend Analyzer Control": "\u0baa\u0bc7\u0bbe\u0b95\u0bcd\u0b95\u0bc1 \u0baa\u0b95\u0bc1\u0baa\u0bcd\u0baa\u0bbe\u0baf\u0bcd\u0bb5\u0bbf \u0b95\u0b9f\u0bcd\u0b9f\u0bc1\u0baa\u0bcd\u0baa\u0bbe\u0b9f\u0bc1" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/locale/th-doc.json b/accounts/doctype/trend_analyzer_control/locale/th-doc.json deleted file mode 100644 index 23eaa1a863..0000000000 --- a/accounts/doctype/trend_analyzer_control/locale/th-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Accounts": "\u0e1a\u0e31\u0e0d\u0e0a\u0e35", - "Trend Analyzer Control": "\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e27\u0e34\u0e40\u0e04\u0e23\u0e32\u0e30\u0e2b\u0e4c\u0e41\u0e19\u0e27\u0e42\u0e19\u0e49\u0e21" -} \ No newline at end of file diff --git a/accounts/doctype/trend_analyzer_control/trend_analyzer_control.py b/accounts/doctype/trend_analyzer_control/trend_analyzer_control.py deleted file mode 100755 index 8c9f227886..0000000000 --- a/accounts/doctype/trend_analyzer_control/trend_analyzer_control.py +++ /dev/null @@ -1,115 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -from webnotes.utils import add_days, add_months, cint, cstr -from webnotes.model import db_exists -from webnotes.model.bean import copy_doclist - -sql = webnotes.conn.sql - - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl - - - # Define Globals - # --------------- - def define_globals(self, trans, fiscal_year): - self.month_name = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] - - if trans == 'Purchase Receipt' or trans == 'Delivery Note' or trans == 'Purchase Invoice' or trans == 'Sales Invoice': - self.trans_date = 'posting_date' - else: - self.trans_date = 'transaction_date' - - ysd = sql("select year_start_date from `tabFiscal Year` where name = %s",fiscal_year)[0][0] - self.year_start_date = ysd.strftime('%Y-%m-%d') - self.start_month = cint(self.year_start_date.split('-')[1]) - - - # Get Column Names and Query for Annual Trend - # --------------------------------------------- - def get_annual_trend_details(self, fiscal_year): - col_names = [fiscal_year+' (Qty)', fiscal_year+' (Amt)'] - query_val = 'SUM(t2.qty) ,SUM(t2.amount),' - return col_names, query_val - - - # Get Column Names and Query for Half Yearly Trend - # -------------------------------------------------- - def get_half_yearly_trend_details(self): - first_half_start = self.year_start_date - first_half_end = add_days(add_months(first_half_start,6),-1) - second_half_start = add_days(first_half_end,1) - second_half_end = add_days(add_months(second_half_start,6),-1) - - col_names = ['First Half (Qty)', 'First Half (Amt)', 'Second Half (Qty)', 'Second Half (Amt)'] - - query_val = 'SUM(CASE WHEN t1.'+self.trans_date+' BETWEEN "'+first_half_start+'" AND "'+first_half_end+'" THEN t2.qty ELSE NULL END), SUM(CASE WHEN t1.'+self.trans_date+' BETWEEN "'+first_half_start+'" AND "'+first_half_end+'" THEN t2.amount ELSE NULL END), SUM(CASE WHEN t1.'+self.trans_date+' BETWEEN "'+second_half_start+'" AND "'+second_half_end+'" THEN t2.qty ELSE NULL END), SUM(CASE WHEN t1.'+self.trans_date+' BETWEEN "'+second_half_start+'" AND "'+second_half_end+'" THEN t2.amount ELSE NULL END),' - - return col_names, query_val - - - # Get Column Names and Query for Quarterly Trend - # ------------------------------------------------ - def get_quarterly_trend_details(self): - first_qsd, second_qsd, third_qsd, fourth_qsd = self.year_start_date, add_months(self.year_start_date,3), add_months(self.year_start_date,6), add_months(self.year_start_date,9) - - first_qed, second_qed, third_qed, fourth_qed = add_days(add_months(first_qsd,3),-1), add_days(add_months(second_qsd,3),-1), add_days(add_months(third_qsd,3),-1), add_days(add_months(fourth_qsd,3),-1) - - col_names = ['Q1 (Qty)','Q1 (Amt)','Q2 (Qty)','Q2 (Amt)','Q3 (Qty)','Q3 (Amt)','Q4 (Qty)','Q4 (Amt)'] - query_val = '' - bet_dates = [[first_qsd,first_qed],[second_qsd,second_qed],[third_qsd,third_qed],[fourth_qsd,fourth_qed]] - - for d in bet_dates: - query_val += 'SUM(CASE WHEN t1.'+self.trans_date+' BETWEEN "'+d[0]+'" AND "'+d[1]+'" THEN t2.qty ELSE NULL END), SUM(CASE WHEN t1.'+self.trans_date+' BETWEEN "'+d[0]+'" AND "'+d[1]+'" THEN t2.amount ELSE NULL END),' - - return col_names, query_val - - - # Get Column Names and Query for Monthly Trend - # ----------------------------------------------- - def get_monthly_trend_details(self): - col_names, query_val = [], '' - for i in range(self.start_month-1, len(self.month_name)): - col_names.append(self.month_name[i]+' (Qty)') - col_names.append(self.month_name[i]+' (Amt)') - query_val += 'SUM(CASE WHEN MONTH(t1.'+self.trans_date+') = '+cstr(i+1)+' THEN t2.qty ELSE NULL END), SUM(CASE WHEN MONTH(t1.'+self.trans_date+') = '+cstr(i+1)+' THEN t2.amount ELSE NULL END),' - - for i in range(0, self.start_month-1): - col_names.append(self.month_name[i]+' (Qty)') - col_names.append(self.month_name[i]+' (Amt)') - query_val += 'SUM(CASE WHEN MONTH(t1.'+self.trans_date+') = '+cstr(i+1)+' THEN t2.qty ELSE NULL END), SUM(CASE WHEN MONTH(t1.'+self.trans_date+') = '+cstr(i+1)+' THEN t2.amount ELSE NULL END),' - - return col_names, query_val - - - # Get Single Year Trend's Query and Columns - # ------------------------------------------- - def get_single_year_query_value(self, fiscal_year, period, trans, trans_det): - self.define_globals(trans, fiscal_year) - if period == 'Annual': - return self.get_annual_trend_details(fiscal_year) - elif period == 'Half Yearly': - return self.get_half_yearly_trend_details() - elif period == 'Quarterly': - return self.get_quarterly_trend_details() - elif period == 'Monthly': - return self.get_monthly_trend_details() diff --git a/accounts/doctype/trend_analyzer_control/trend_analyzer_control.txt b/accounts/doctype/trend_analyzer_control/trend_analyzer_control.txt deleted file mode 100755 index 67c91ee29e..0000000000 --- a/accounts/doctype/trend_analyzer_control/trend_analyzer_control.txt +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "creation": "2012-03-27 14:35:49", - "docstatus": 0, - "modified": "2012-03-27 14:35:49", - "modified_by": "Administrator", - "owner": "saumil@webnotestech.com" - }, - { - "doctype": "DocType", - "in_create": 1, - "issingle": 1, - "module": "Accounts", - "name": "__common__", - "read_only": 1, - "section_style": "Simple", - "version": 11 - }, - { - "doctype": "DocType", - "name": "Trend Analyzer Control" - } -] \ No newline at end of file