blob: 839c4ad84a1783a949c2ed69a011186c1456760b [file] [log] [blame]
Anand Doshid57e7932015-02-24 12:24:53 +05301from __future__ import unicode_literals
Anand Doshif5794f12014-03-03 15:05:28 +05302from frappe import _
Tyler Mattesonafc55ca2018-12-10 07:33:19 -05003import frappe
4
Anand Doshif5794f12014-03-03 15:05:28 +05305
Anand Doshi08ef4672014-05-08 11:43:18 +05306def get_data():
Tyler Mattesonafc55ca2018-12-10 07:33:19 -05007 config = [
Anand Doshi08ef4672014-05-08 11:43:18 +05308 {
Michelle Alva6abb63b2019-07-15 14:00:00 +05309 "label": _("Accounts Receivable"),
Anand Doshi08ef4672014-05-08 11:43:18 +053010 "items": [
11 {
12 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +053013 "name": "Sales Invoice",
14 "description": _("Bills raised to Customers."),
Prateeksha Singh063af4e2019-02-06 17:02:41 +053015 "onboard": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053016 },
17 {
18 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053019 "name": "Customer",
20 "description": _("Customer database."),
21 "onboard": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053022 },
23 {
24 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +053025 "name": "Payment Entry",
26 "description": _("Bank/Cash transactions against party or for internal transfer")
27 },
28 {
29 "type": "doctype",
30 "name": "Payment Request",
31 "description": _("Payment Request"),
32 },
33 {
34 "type": "report",
35 "name": "Accounts Receivable",
36 "doctype": "Sales Invoice",
37 "is_query_report": True
38 },
39 {
40 "type": "report",
41 "name": "Accounts Receivable Summary",
42 "doctype": "Sales Invoice",
43 "is_query_report": True
44 },
45 {
46 "type": "report",
47 "name": "Sales Register",
48 "doctype": "Sales Invoice",
49 "is_query_report": True
50 },
51 {
52 "type": "report",
53 "name": "Item-wise Sales Register",
54 "is_query_report": True,
55 "doctype": "Sales Invoice"
56 },
57 {
58 "type": "report",
59 "name": "Ordered Items To Be Billed",
60 "is_query_report": True,
61 "doctype": "Sales Invoice"
62 },
63 {
64 "type": "report",
65 "name": "Delivered Items To Be Billed",
66 "is_query_report": True,
67 "doctype": "Sales Invoice"
68 },
69 ]
70 },
71 {
72 "label": _("Accounts Payable"),
73 "items": [
74 {
75 "type": "doctype",
76 "name": "Purchase Invoice",
77 "description": _("Bills raised by Suppliers."),
78 "onboard": 1
79 },
80 {
81 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053082 "name": "Supplier",
83 "description": _("Supplier database."),
84 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053085 },
86 {
Nabin Haite4bbb692016-07-04 16:16:24 +053087 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +053088 "name": "Payment Entry",
89 "description": _("Bank/Cash transactions against party or for internal transfer")
90 },
91 {
92 "type": "report",
93 "name": "Accounts Payable",
94 "doctype": "Purchase Invoice",
95 "is_query_report": True
96 },
97 {
98 "type": "report",
99 "name": "Accounts Payable Summary",
100 "doctype": "Purchase Invoice",
101 "is_query_report": True
102 },
103 {
104 "type": "report",
105 "name": "Purchase Register",
106 "doctype": "Purchase Invoice",
107 "is_query_report": True
108 },
109 {
110 "type": "report",
111 "name": "Item-wise Purchase Register",
112 "is_query_report": True,
113 "doctype": "Purchase Invoice"
114 },
115 {
116 "type": "report",
117 "name": "Purchase Order Items To Be Billed",
118 "is_query_report": True,
119 "doctype": "Purchase Invoice"
120 },
121 {
122 "type": "report",
123 "name": "Received Items To Be Billed",
124 "is_query_report": True,
125 "doctype": "Purchase Invoice"
126 },
127 ]
128 },
129 {
130 "label": _("Accounting Masters"),
131 "items": [
132 {
133 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530134 "name": "Company",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530135 "description": _("Company (not Customer or Supplier) master."),
136 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530137 },
138 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530139 "type": "doctype",
140 "name": "Account",
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530141 "icon": "fa fa-sitemap",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530142 "label": _("Chart of Accounts"),
Prateeksha Singh34234072019-02-07 09:18:24 +0530143 "route": "#Tree/Account",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530144 "description": _("Tree of financial accounts."),
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530145 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530146 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530147 {
148 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530149 "name": "Accounts Settings",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530150 },
151 {
152 "type": "doctype",
153 "name": "Fiscal Year",
154 "description": _("Financial / accounting year.")
155 },
156 {
157 "type": "doctype",
deepeshgarg007705c03c2019-05-17 10:23:00 +0530158 "name": "Accounting Dimension",
deepeshgarg007705c03c2019-05-17 10:23:00 +0530159 },
Faris Ansari2ab8d3e2019-06-26 13:32:41 +0530160 {
161 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530162 "name": "Finance Book",
Faris Ansari2ab8d3e2019-06-26 13:32:41 +0530163 },
164 {
165 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530166 "name": "Accounting Period",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530167 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530168 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530169 "type": "doctype",
170 "name": "Payment Term",
171 "description": _("Payment Terms based on conditions")
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530172 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530173 ]
174 },
175 {
176 "label": _("Banking and Payments"),
177 "items": [
178 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530179 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530180 "label": _("Match Payments with Invoices"),
181 "name": "Payment Reconciliation",
182 "description": _("Match non-linked Invoices and Payments.")
Prateeksha Singh34234072019-02-07 09:18:24 +0530183 },
184 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530185 "type": "doctype",
Saqib Ansarib2a84fe2020-04-06 16:32:33 +0530186 "label": _("Update Bank Clearance Dates"),
187 "name": "Bank Clearance",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530188 "description": _("Update bank payment dates with journals.")
189 },
190 {
191 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530192 "label": _("Invoice Discounting"),
193 "name": "Invoice Discounting",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530194 },
195 {
196 "type": "report",
197 "name": "Bank Reconciliation Statement",
198 "is_query_report": True,
199 "doctype": "Journal Entry"
Anurag Mishra935517d2019-11-29 18:08:42 +0530200 },{
201 "type": "page",
202 "name": "bank-reconciliation",
203 "label": _("Bank Reconciliation"),
204 "icon": "fa fa-bar-chart"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530205 },
206 {
207 "type": "report",
208 "name": "Bank Clearance Summary",
209 "is_query_report": True,
210 "doctype": "Journal Entry"
211 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530212 {
213 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530214 "name": "Bank Guarantee"
215 },
216 {
217 "type": "doctype",
218 "name": "Cheque Print Template",
219 "description": _("Setup cheque dimensions for printing")
220 },
221 ]
222 },
223 {
224 "label": _("General Ledger"),
225 "items": [
226 {
227 "type": "doctype",
228 "name": "Journal Entry",
229 "description": _("Accounting journal entries.")
230 },
231 {
232 "type": "report",
233 "name": "General Ledger",
234 "doctype": "GL Entry",
235 "is_query_report": True,
236 },
237 {
238 "type": "report",
239 "name": "Customer Ledger Summary",
240 "doctype": "Sales Invoice",
241 "is_query_report": True,
242 },
243 {
244 "type": "report",
245 "name": "Supplier Ledger Summary",
246 "doctype": "Sales Invoice",
247 "is_query_report": True,
Mangesh-Khairnar2f7861a2020-05-02 20:09:33 +0530248 },
249 {
250 "type": "doctype",
251 "name": "Process Deferred Accounting"
Michelle Alva6abb63b2019-07-15 14:00:00 +0530252 }
253 ]
254 },
255 {
256 "label": _("Taxes"),
257 "items": [
258 {
259 "type": "doctype",
260 "name": "Sales Taxes and Charges Template",
261 "description": _("Tax template for selling transactions.")
262 },
263 {
264 "type": "doctype",
265 "name": "Purchase Taxes and Charges Template",
266 "description": _("Tax template for buying transactions.")
267 },
268 {
269 "type": "doctype",
270 "name": "Item Tax Template",
271 "description": _("Tax template for item tax rates.")
272 },
273 {
274 "type": "doctype",
275 "name": "Tax Category",
276 "description": _("Tax Category for overriding tax rates.")
277 },
278 {
279 "type": "doctype",
280 "name": "Tax Rule",
281 "description": _("Tax Rule for transactions.")
282 },
283 {
284 "type": "doctype",
285 "name": "Tax Withholding Category",
286 "description": _("Tax Withholding rates to be applied on transactions.")
Ishan Loya09fe8e02017-04-25 14:26:33 +0530287 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530288 ]
289 },
290 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530291 "label": _("Cost Center and Budgeting"),
292 "items": [
293 {
294 "type": "doctype",
295 "name": "Cost Center",
296 "icon": "fa fa-sitemap",
297 "label": _("Chart of Cost Centers"),
298 "route": "#Tree/Cost Center",
299 "description": _("Tree of financial Cost Centers."),
300 },
301 {
302 "type": "doctype",
303 "name": "Budget",
304 "description": _("Define budget for a financial year.")
305 },
306 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530307 "type": "doctype",
308 "name": "Accounting Dimension",
309 },
310 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530311 "type": "report",
312 "name": "Budget Variance Report",
313 "is_query_report": True,
314 "doctype": "Cost Center"
315 },
316 {
317 "type": "doctype",
318 "name": "Monthly Distribution",
319 "description": _("Seasonality for setting budgets, targets etc.")
320 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530321 ]
322 },
323 {
324 "label": _("Financial Statements"),
325 "items": [
326 {
327 "type": "report",
328 "name": "Trial Balance",
329 "doctype": "GL Entry",
330 "is_query_report": True,
331 },
332 {
333 "type": "report",
334 "name": "Profit and Loss Statement",
335 "doctype": "GL Entry",
336 "is_query_report": True
337 },
338 {
339 "type": "report",
340 "name": "Balance Sheet",
341 "doctype": "GL Entry",
342 "is_query_report": True
343 },
344 {
345 "type": "report",
346 "name": "Cash Flow",
347 "doctype": "GL Entry",
348 "is_query_report": True
349 },
350 {
351 "type": "report",
352 "name": "Consolidated Financial Statement",
353 "doctype": "GL Entry",
354 "is_query_report": True
355 },
356 ]
357 },
358 {
359 "label": _("Opening and Closing"),
360 "items": [
361 {
362 "type": "doctype",
363 "name": "Opening Invoice Creation Tool",
364 },
365 {
366 "type": "doctype",
367 "name": "Chart of Accounts Importer",
368 },
Prateeksha Singh34234072019-02-07 09:18:24 +0530369 {
370 "type": "doctype",
371 "name": "Period Closing Voucher",
372 "description": _("Close Balance Sheet and book Profit or Loss.")
373 },
374 ]
Michelle Alva6abb63b2019-07-15 14:00:00 +0530375
Prateeksha Singh34234072019-02-07 09:18:24 +0530376 },
377 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530378 "label": _("Multi Currency"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530379 "items": [
380 {
381 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530382 "name": "Currency",
383 "description": _("Enable / disable currencies.")
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500384 },
385 {
386 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530387 "name": "Currency Exchange",
388 "description": _("Currency exchange rate master.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530389 },
390 {
391 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530392 "name": "Exchange Rate Revaluation",
393 "description": _("Exchange Rate Revaluation master.")
394 },
395 ]
396 },
397 {
398 "label": _("Settings"),
399 "icon": "fa fa-cog",
400 "items": [
401 {
402 "type": "doctype",
403 "name": "Payment Gateway Account",
404 "description": _("Setup Gateway accounts.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530405 },
406 {
407 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530408 "name": "Terms and Conditions",
409 "label": _("Terms and Conditions Template"),
410 "description": _("Template of terms or contract.")
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500411 },
412 {
413 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530414 "name": "Mode of Payment",
415 "description": _("e.g. Bank, Cash, Credit Card")
Zarrar2cadb1e2018-08-06 14:46:16 +0530416 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530417 ]
418 },
419 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530420 "label": _("Subscription Management"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530421 "items": [
422 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530423 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530424 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530425 },
426 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530427 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530428 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530429 },
430 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500431 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530432 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530433 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530434 {
435 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530436 "name": "Subscription Settings"
437 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530438 ]
439 },
440 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530441 "label": _("Bank Statement"),
442 "items": [
443 {
444 "type": "doctype",
445 "label": _("Bank"),
446 "name": "Bank",
447 },
448 {
449 "type": "doctype",
450 "label": _("Bank Account"),
451 "name": "Bank Account",
452 },
453 {
454 "type": "doctype",
455 "name": "Bank Statement Transaction Entry",
456 },
457 {
458 "type": "doctype",
459 "label": _("Bank Statement Settings"),
460 "name": "Bank Statement Settings",
461 },
462 ]
463 },
464 {
465 "label": _("Profitability"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530466 "items": [
467 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530468 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530469 "name": "Gross Profit",
470 "doctype": "Sales Invoice",
471 "is_query_report": True
472 },
473 {
474 "type": "report",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530475 "name": "Profitability Analysis",
476 "doctype": "GL Entry",
Anand Doshi08ef4672014-05-08 11:43:18 +0530477 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530478 },
479 {
480 "type": "report",
481 "name": "Sales Invoice Trends",
482 "is_query_report": True,
483 "doctype": "Sales Invoice"
484 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500485 {
486 "type": "report",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530487 "name": "Purchase Invoice Trends",
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500488 "is_query_report": True,
489 "doctype": "Purchase Invoice"
490 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530491 ]
492 },
493 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530494 "label": _("Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530495 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530496 "items": [
497 {
498 "type": "report",
499 "name": "Trial Balance for Party",
500 "doctype": "GL Entry",
501 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530502 },
503 {
504 "type": "report",
505 "name": "Payment Period Based On Invoice Date",
506 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530507 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530508 },
509 {
510 "type": "report",
511 "name": "Sales Partners Commission",
512 "is_query_report": True,
513 "doctype": "Sales Invoice"
514 },
515 {
516 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530517 "is_query_report": True,
518 "name": "Customer Credit Balance",
519 "doctype": "Customer"
520 },
pawane61a2752017-11-02 17:53:24 +0530521 {
522 "type": "report",
523 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530524 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530525 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530526 },
527 {
528 "type": "report",
529 "is_query_report": True,
530 "name": "Address And Contacts",
531 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530532 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530533 ]
534 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530535 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530536 "label": _("Share Management"),
537 "icon": "fa fa-microchip ",
538 "items": [
539 {
540 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500541 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530542 "description": _("List of available Shareholders with folio numbers")
543 },
544 {
545 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500546 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530547 "description": _("List of all share transactions"),
548 },
549 {
550 "type": "report",
551 "name": "Share Ledger",
552 "doctype": "Share Transfer",
553 "is_query_report": True
554 },
555 {
556 "type": "report",
557 "name": "Share Balance",
558 "doctype": "Share Transfer",
559 "is_query_report": True
560 }
561 ]
562 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530563
Anand Doshi08ef4672014-05-08 11:43:18 +0530564 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530565
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500566 gst = {
567 "label": _("Goods and Services Tax (GST India)"),
568 "items": [
569 {
570 "type": "doctype",
571 "name": "GST Settings",
572 },
573 {
574 "type": "doctype",
575 "name": "GST HSN Code",
576 },
577 {
578 "type": "report",
579 "name": "GSTR-1",
580 "is_query_report": True
581 },
582 {
583 "type": "report",
584 "name": "GSTR-2",
585 "is_query_report": True
586 },
587 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530588 "type": "doctype",
589 "name": "GSTR 3B Report",
590 },
591 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500592 "type": "report",
593 "name": "GST Sales Register",
594 "is_query_report": True
595 },
596 {
597 "type": "report",
598 "name": "GST Purchase Register",
599 "is_query_report": True
600 },
601 {
602 "type": "report",
603 "name": "GST Itemised Sales Register",
604 "is_query_report": True
605 },
606 {
607 "type": "report",
608 "name": "GST Itemised Purchase Register",
609 "is_query_report": True
610 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530611 {
612 "type": "doctype",
613 "name": "C-Form",
614 "description": _("C-Form records"),
615 "country": "India"
616 },
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500617 ]
618 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530619
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530620
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500621 countries = frappe.get_all("Company", fields="country")
622 countries = [country["country"] for country in countries]
623 if "India" in countries:
Michelle Alva6abb63b2019-07-15 14:00:00 +0530624 config.insert(9, gst)
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500625 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500626 return config