blob: a84f13ababc3fcddebb0b2b8e82124f6fd2f4dc6 [file] [log] [blame]
Deepesh Gargd1d0a502020-02-26 10:44:24 +05301from __future__ import unicode_literals
2from frappe import _
3import frappe
4
5
6def get_data():
7 return [
8 {
9 "label": _("Loan"),
10 "items": [
11 {
12 "type": "doctype",
13 "name": "Loan Type",
14 "description": _("Loan Type for interest and penalty rates"),
15 },
16 {
17 "type": "doctype",
18 "name": "Loan Application",
19 "description": _("Loan Applications from customers and employees."),
20 },
21 {
22 "type": "doctype",
23 "name": "Loan",
24 "description": _("Loans provided to customers and employees."),
25 },
26
27 ]
28 },
29 {
30 "label": _("Loan Security"),
31 "items": [
32 {
33 "type": "doctype",
34 "name": "Loan Security Type",
35 },
36 {
37 "type": "doctype",
38 "name": "Loan Security Price",
39 },
40 {
41 "type": "doctype",
42 "name": "Loan Security",
43 },
44 {
45 "type": "doctype",
46 "name": "Loan Security Pledge",
47 },
48 {
49 "type": "doctype",
50 "name": "Loan Security Unpledge",
51 },
52 {
53 "type": "doctype",
54 "name": "Loan Security Shortfall",
55 },
56 ]
57 },
58 {
59 "label": _("Disbursement and Repayment"),
60 "items": [
61 {
62 "type": "doctype",
63 "name": "Loan Disbursement",
64 },
65 {
66 "type": "doctype",
67 "name": "Loan Repayment",
68 },
69 {
70 "type": "doctype",
71 "name": "Loan Interest Accrual"
72 }
73 ]
74 },
75 {
76 "label": _("Loan Processes"),
77 "items": [
78 {
79 "type": "doctype",
80 "name": "Process Loan Security Shortfall",
81 },
82 {
83 "type": "doctype",
84 "name": "Process Loan Interest Accrual",
85 }
86 ]
87 },
88 {
89 "label": _("Reports"),
90 "items": [
91 {
92 "type": "report",
93 "is_query_report": True,
94 "name": "Loan Repayment and Closure",
95 "route": "#query-report/Loan Repayment and Closure",
96 "doctype": "Loan Repayment",
97 },
98 {
99 "type": "report",
100 "is_query_report": True,
101 "name": "Loan Security Status",
102 "route": "#query-report/Loan Security Status",
103 "doctype": "Loan Security Pledge",
104 }
105 ]
106 }
107 ]