blob: ab75f211c049b5201912234a58193dc40675da36 [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",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530186 "label": _("Update Bank Transaction Dates"),
187 "name": "Bank Reconciliation",
188 "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"
200 },
201 {
202 "type": "report",
203 "name": "Bank Clearance Summary",
204 "is_query_report": True,
205 "doctype": "Journal Entry"
206 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530207 {
208 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530209 "name": "Bank Guarantee"
210 },
211 {
212 "type": "doctype",
213 "name": "Cheque Print Template",
214 "description": _("Setup cheque dimensions for printing")
215 },
216 ]
217 },
218 {
219 "label": _("General Ledger"),
220 "items": [
221 {
222 "type": "doctype",
223 "name": "Journal Entry",
224 "description": _("Accounting journal entries.")
225 },
226 {
227 "type": "report",
228 "name": "General Ledger",
229 "doctype": "GL Entry",
230 "is_query_report": True,
231 },
232 {
233 "type": "report",
234 "name": "Customer Ledger Summary",
235 "doctype": "Sales Invoice",
236 "is_query_report": True,
237 },
238 {
239 "type": "report",
240 "name": "Supplier Ledger Summary",
241 "doctype": "Sales Invoice",
242 "is_query_report": True,
243 }
244 ]
245 },
246 {
247 "label": _("Taxes"),
248 "items": [
249 {
250 "type": "doctype",
251 "name": "Sales Taxes and Charges Template",
252 "description": _("Tax template for selling transactions.")
253 },
254 {
255 "type": "doctype",
256 "name": "Purchase Taxes and Charges Template",
257 "description": _("Tax template for buying transactions.")
258 },
259 {
260 "type": "doctype",
261 "name": "Item Tax Template",
262 "description": _("Tax template for item tax rates.")
263 },
264 {
265 "type": "doctype",
266 "name": "Tax Category",
267 "description": _("Tax Category for overriding tax rates.")
268 },
269 {
270 "type": "doctype",
271 "name": "Tax Rule",
272 "description": _("Tax Rule for transactions.")
273 },
274 {
275 "type": "doctype",
276 "name": "Tax Withholding Category",
277 "description": _("Tax Withholding rates to be applied on transactions.")
Ishan Loya09fe8e02017-04-25 14:26:33 +0530278 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530279 ]
280 },
281 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530282 "label": _("Cost Center and Budgeting"),
283 "items": [
284 {
285 "type": "doctype",
286 "name": "Cost Center",
287 "icon": "fa fa-sitemap",
288 "label": _("Chart of Cost Centers"),
289 "route": "#Tree/Cost Center",
290 "description": _("Tree of financial Cost Centers."),
291 },
292 {
293 "type": "doctype",
294 "name": "Budget",
295 "description": _("Define budget for a financial year.")
296 },
297 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530298 "type": "doctype",
299 "name": "Accounting Dimension",
300 },
301 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530302 "type": "report",
303 "name": "Budget Variance Report",
304 "is_query_report": True,
305 "doctype": "Cost Center"
306 },
307 {
308 "type": "doctype",
309 "name": "Monthly Distribution",
310 "description": _("Seasonality for setting budgets, targets etc.")
311 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530312 ]
313 },
314 {
315 "label": _("Financial Statements"),
316 "items": [
317 {
318 "type": "report",
319 "name": "Trial Balance",
320 "doctype": "GL Entry",
321 "is_query_report": True,
322 },
323 {
324 "type": "report",
325 "name": "Profit and Loss Statement",
326 "doctype": "GL Entry",
327 "is_query_report": True
328 },
329 {
330 "type": "report",
331 "name": "Balance Sheet",
332 "doctype": "GL Entry",
333 "is_query_report": True
334 },
335 {
336 "type": "report",
337 "name": "Cash Flow",
338 "doctype": "GL Entry",
339 "is_query_report": True
340 },
341 {
342 "type": "report",
343 "name": "Consolidated Financial Statement",
344 "doctype": "GL Entry",
345 "is_query_report": True
346 },
347 ]
348 },
349 {
350 "label": _("Opening and Closing"),
351 "items": [
352 {
353 "type": "doctype",
354 "name": "Opening Invoice Creation Tool",
355 },
356 {
357 "type": "doctype",
358 "name": "Chart of Accounts Importer",
359 },
Prateeksha Singh34234072019-02-07 09:18:24 +0530360 {
361 "type": "doctype",
362 "name": "Period Closing Voucher",
363 "description": _("Close Balance Sheet and book Profit or Loss.")
364 },
365 ]
Michelle Alva6abb63b2019-07-15 14:00:00 +0530366
Prateeksha Singh34234072019-02-07 09:18:24 +0530367 },
368 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530369 "label": _("Multi Currency"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530370 "items": [
371 {
372 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530373 "name": "Currency",
374 "description": _("Enable / disable currencies.")
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500375 },
376 {
377 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530378 "name": "Currency Exchange",
379 "description": _("Currency exchange rate master.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530380 },
381 {
382 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530383 "name": "Exchange Rate Revaluation",
384 "description": _("Exchange Rate Revaluation master.")
385 },
386 ]
387 },
388 {
389 "label": _("Settings"),
390 "icon": "fa fa-cog",
391 "items": [
392 {
393 "type": "doctype",
394 "name": "Payment Gateway Account",
395 "description": _("Setup Gateway accounts.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530396 },
397 {
398 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530399 "name": "Terms and Conditions",
400 "label": _("Terms and Conditions Template"),
401 "description": _("Template of terms or contract.")
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500402 },
403 {
404 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530405 "name": "Mode of Payment",
406 "description": _("e.g. Bank, Cash, Credit Card")
Zarrar2cadb1e2018-08-06 14:46:16 +0530407 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530408 ]
409 },
410 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530411 "label": _("Subscription Management"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530412 "items": [
413 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530414 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530415 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530416 },
417 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530418 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530419 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530420 },
421 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500422 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530423 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530424 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530425 {
426 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530427 "name": "Subscription Settings"
428 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530429 ]
430 },
431 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530432 "label": _("Bank Statement"),
433 "items": [
434 {
435 "type": "doctype",
436 "label": _("Bank"),
437 "name": "Bank",
438 },
439 {
440 "type": "doctype",
441 "label": _("Bank Account"),
442 "name": "Bank Account",
443 },
444 {
445 "type": "doctype",
446 "name": "Bank Statement Transaction Entry",
447 },
448 {
449 "type": "doctype",
450 "label": _("Bank Statement Settings"),
451 "name": "Bank Statement Settings",
452 },
453 ]
454 },
455 {
456 "label": _("Profitability"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530457 "items": [
458 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530459 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530460 "name": "Gross Profit",
461 "doctype": "Sales Invoice",
462 "is_query_report": True
463 },
464 {
465 "type": "report",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530466 "name": "Profitability Analysis",
467 "doctype": "GL Entry",
Anand Doshi08ef4672014-05-08 11:43:18 +0530468 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530469 },
470 {
471 "type": "report",
472 "name": "Sales Invoice Trends",
473 "is_query_report": True,
474 "doctype": "Sales Invoice"
475 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500476 {
477 "type": "report",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530478 "name": "Purchase Invoice Trends",
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500479 "is_query_report": True,
480 "doctype": "Purchase Invoice"
481 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530482 ]
483 },
484 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530485 "label": _("Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530486 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530487 "items": [
488 {
489 "type": "report",
490 "name": "Trial Balance for Party",
491 "doctype": "GL Entry",
492 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530493 },
494 {
495 "type": "report",
496 "name": "Payment Period Based On Invoice Date",
497 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530498 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530499 },
500 {
501 "type": "report",
502 "name": "Sales Partners Commission",
503 "is_query_report": True,
504 "doctype": "Sales Invoice"
505 },
506 {
507 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530508 "is_query_report": True,
509 "name": "Customer Credit Balance",
510 "doctype": "Customer"
511 },
pawane61a2752017-11-02 17:53:24 +0530512 {
513 "type": "report",
514 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530515 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530516 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530517 },
518 {
519 "type": "report",
520 "is_query_report": True,
521 "name": "Address And Contacts",
522 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530523 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530524 ]
525 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530526 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530527 "label": _("Share Management"),
528 "icon": "fa fa-microchip ",
529 "items": [
530 {
531 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500532 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530533 "description": _("List of available Shareholders with folio numbers")
534 },
535 {
536 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500537 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530538 "description": _("List of all share transactions"),
539 },
540 {
541 "type": "report",
542 "name": "Share Ledger",
543 "doctype": "Share Transfer",
544 "is_query_report": True
545 },
546 {
547 "type": "report",
548 "name": "Share Balance",
549 "doctype": "Share Transfer",
550 "is_query_report": True
551 }
552 ]
553 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530554
Anand Doshi08ef4672014-05-08 11:43:18 +0530555 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530556
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500557 gst = {
558 "label": _("Goods and Services Tax (GST India)"),
559 "items": [
560 {
561 "type": "doctype",
562 "name": "GST Settings",
563 },
564 {
565 "type": "doctype",
566 "name": "GST HSN Code",
567 },
568 {
569 "type": "report",
570 "name": "GSTR-1",
571 "is_query_report": True
572 },
573 {
574 "type": "report",
575 "name": "GSTR-2",
576 "is_query_report": True
577 },
578 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530579 "type": "doctype",
580 "name": "GSTR 3B Report",
581 },
582 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500583 "type": "report",
584 "name": "GST Sales Register",
585 "is_query_report": True
586 },
587 {
588 "type": "report",
589 "name": "GST Purchase Register",
590 "is_query_report": True
591 },
592 {
593 "type": "report",
594 "name": "GST Itemised Sales Register",
595 "is_query_report": True
596 },
597 {
598 "type": "report",
599 "name": "GST Itemised Purchase Register",
600 "is_query_report": True
601 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530602 {
603 "type": "doctype",
604 "name": "C-Form",
605 "description": _("C-Form records"),
606 "country": "India"
607 },
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500608 ]
609 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530610
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530611
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500612 countries = frappe.get_all("Company", fields="country")
613 countries = [country["country"] for country in countries]
614 if "India" in countries:
Michelle Alva6abb63b2019-07-15 14:00:00 +0530615 config.insert(9, gst)
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500616 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500617 return config