blob: bfa716240081d22db7fa02a268724b7f48c8ac5b [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 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +05309 "label": _("Billing"),
Anand Doshi08ef4672014-05-08 11:43:18 +053010 "items": [
11 {
12 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053013 "name": "Sales Invoice",
14 "description": _("Bills raised to Customers.")
15 },
16 {
17 "type": "doctype",
18 "name": "Purchase Invoice",
19 "description": _("Bills raised by Suppliers.")
20 },
21 {
22 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053023 "name": "Payment Request",
24 "description": _("Payment Request")
25 },
26 {
Nabin Haite4bbb692016-07-04 16:16:24 +053027 "type": "doctype",
28 "name": "Payment Entry",
29 "description": _("Bank/Cash transactions against party or for internal transfer")
Tyler Mattesonafc55ca2018-12-10 07:33:19 -050030 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053031 ]
32
33 },
34 {
35 "label": _("Company and Accounts"),
36 "items": [
37 {
38 "type": "doctype",
39 "name": "Company",
40 "description": _("Company (not Customer or Supplier) master.")
41 },
42 {
43 "type": "doctype",
44 "name": "Journal Entry",
45 "description": _("Accounting journal entries.")
46 },
47 {
Saurabh52ec0ed2016-07-05 18:02:38 +053048 "type": "doctype",
49 "name": "Account",
Rushabh Mehta2167ff52016-12-07 11:08:48 +053050 "icon": "fa fa-sitemap",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053051 "label": _("Chart of Accounts"),
Saurabh17022732016-06-21 13:19:17 +053052 "route": "Tree/Account",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053053 "description": _("Tree of financial accounts."),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053054 },
55 {
56 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -050057 "name": "General Ledger",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053058 "doctype": "GL Entry",
59 "is_query_report": True,
60 },
61 ]
62 },
63 {
64 "label": _("Masters"),
65 "items": [
66 {
67 "type": "doctype",
Anand Doshi08ef4672014-05-08 11:43:18 +053068 "name": "Customer",
69 "description": _("Customer database.")
70 },
71 {
72 "type": "doctype",
73 "name": "Supplier",
74 "description": _("Supplier database.")
75 },
76 {
Saurabh3ba22672015-12-21 18:24:49 +053077 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053078 "name": "Item",
Nabin Hait9501a1e2016-03-30 15:06:19 +053079 }
Anand Doshi08ef4672014-05-08 11:43:18 +053080 ]
81 },
82 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053083 "label": _("Accounting Statements"),
Anand Doshi08ef4672014-05-08 11:43:18 +053084 "items": [
85 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053086 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -050087 "name": "Accounts Receivable",
88 "doctype": "Sales Invoice",
89 "is_query_report": True
90 },
91 {
92 "type": "report",
93 "name": "Accounts Payable",
94 "doctype": "Purchase Invoice",
95 "is_query_report": True
96 },
97 {
98 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053099 "name": "Trial Balance",
100 "doctype": "GL Entry",
101 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530102 },
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530103 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530104 "type": "report",
105 "name": "Balance Sheet",
106 "doctype": "GL Entry",
107 "is_query_report": True
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530108 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530109 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530110 "type": "report",
111 "name": "Cash Flow",
112 "doctype": "GL Entry",
113 "is_query_report": True
Anand Doshi08ef4672014-05-08 11:43:18 +0530114 },
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530115 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530116 "type": "report",
117 "name": "Profit and Loss Statement",
118 "doctype": "GL Entry",
119 "is_query_report": True
120 },
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530121 {
122 "type": "report",
123 "name": "Consolidated Financial Statement",
124 "doctype": "GL Entry",
125 "is_query_report": True
126 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530127 ]
128 },
129 {
130 "label": _("Banking and Payments"),
131 "items": [
132 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530133 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530134 "label": _("Update Bank Transaction Dates"),
135 "name": "Bank Reconciliation",
136 "description": _("Update bank payment dates with journals.")
137 },
138 {
139 "type": "doctype",
140 "label": _("Match Payments with Invoices"),
141 "name": "Payment Reconciliation",
142 "description": _("Match non-linked Invoices and Payments.")
143 },
144 {
145 "type": "report",
146 "name": "Bank Reconciliation Statement",
147 "is_query_report": True,
148 "doctype": "Journal Entry"
149 },
150 {
151 "type": "report",
152 "name": "Bank Clearance Summary",
153 "is_query_report": True,
154 "doctype": "Journal Entry"
155 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530156 {
157 "type": "doctype",
158 "name": "Bank Guarantee",
159 "doctype": "Bank Guarantee"
160 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530161 ]
162 },
163 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530164 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530165 "items": [
166 {
167 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530168 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530169 "description": _("Tax template for selling transactions.")
170 },
171 {
172 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530173 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530174 "description": _("Tax template for buying transactions.")
175 },
176 {
177 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530178 "name": "Tax Rule",
179 "description": _("Tax Rule for transactions.")
180 },
181 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530182 "type": "doctype",
183 "name": "Tax Withholding Category",
184 "description": _("Tax Withholding rates to be applied on transactions.")
185 },
186 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530187 "type": "report",
188 "name": "Sales Register",
189 "doctype": "Sales Invoice",
190 "is_query_report": True
191 },
192 {
193 "type": "report",
194 "name": "Purchase Register",
195 "doctype": "Purchase Invoice",
196 "is_query_report": True
197 },
198 ]
199 },
200 {
201 "label": _("Budget and Cost Center"),
202 "items": [
203 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530204 "type": "doctype",
205 "name": "Cost Center",
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530206 "icon": "fa fa-sitemap",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530207 "label": _("Chart of Cost Centers"),
Saurabhec8babe2016-06-21 15:55:54 +0530208 "route": "Tree/Cost Center",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530209 "description": _("Tree of financial Cost Centers."),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530210 },
211 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530212 "type": "doctype",
213 "name": "Budget",
214 "description": _("Define budget for a financial year.")
215 },
216 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530217 "type": "report",
218 "name": "Budget Variance Report",
219 "is_query_report": True,
220 "doctype": "Cost Center"
221 },
222 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500223 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530224 "name": "Monthly Distribution",
225 "description": _("Seasonality for setting budgets, targets etc.")
226 },
227 ]
228 },
229 {
230 "label": _("Tools"),
231 "items": [
232 {
233 "type": "doctype",
234 "name": "Period Closing Voucher",
235 "description": _("Close Balance Sheet and book Profit or Loss.")
236 },
Nabin Hait70f05df2016-04-25 18:49:17 +0530237 {
238 "type": "doctype",
Saurabh066ae8e2016-07-05 12:41:20 +0530239 "name": "Cheque Print Template",
240 "description": _("Setup cheque dimensions for printing")
241 },
Rushabh Mehtad3f5d092017-11-15 16:29:53 +0530242 {
243 "type": "doctype",
244 "name": "Opening Invoice Creation Tool",
245 "description": _("Make Opening Sales and Purchase Invoices")
246 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530247 ]
248 },
249 {
250 "label": _("Setup"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530251 "icon": "fa fa-cog",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530252 "items": [
253 {
254 "type": "doctype",
255 "name": "Accounts Settings",
256 "description": _("Default settings for accounting transactions.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530257 },
258 {
259 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530260 "name": "Fiscal Year",
261 "description": _("Financial / accounting year.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530262 },
263 {
264 "type": "doctype",
265 "name": "Currency",
266 "description": _("Enable / disable currencies.")
267 },
268 {
269 "type": "doctype",
270 "name": "Currency Exchange",
271 "description": _("Currency exchange rate master.")
272 },
273 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530274 "type": "doctype",
275 "name": "Payment Gateway Account",
276 "description": _("Setup Gateway accounts.")
277 },
278 {
279 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500280 "name": "Terms and Conditions",
Anand Doshi08ef4672014-05-08 11:43:18 +0530281 "label": _("Terms and Conditions Template"),
282 "description": _("Template of terms or contract.")
283 },
284 {
285 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500286 "name": "Mode of Payment",
Anand Doshi08ef4672014-05-08 11:43:18 +0530287 "description": _("e.g. Bank, Cash, Credit Card")
288 },
289 {
290 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500291 "name": "Auto Repeat",
292 "label": _("Auto Repeat"),
293 "description": _("To make recurring documents")
294 },
295 {
296 "type": "doctype",
297 "name": "C-Form",
Anand Doshi08ef4672014-05-08 11:43:18 +0530298 "description": _("C-Form records"),
299 "country": "India"
300 }
301 ]
302 },
303 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530304 "label": _("To Bill"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530305 "items": [
306 {
307 "type": "report",
Anand Doshi08ef4672014-05-08 11:43:18 +0530308 "name": "Ordered Items To Be Billed",
309 "is_query_report": True,
310 "doctype": "Sales Invoice"
311 },
312 {
313 "type": "report",
314 "name": "Delivered Items To Be Billed",
315 "is_query_report": True,
316 "doctype": "Sales Invoice"
317 },
318 {
319 "type": "report",
320 "name": "Purchase Order Items To Be Billed",
321 "is_query_report": True,
322 "doctype": "Purchase Invoice"
323 },
324 {
325 "type": "report",
326 "name": "Received Items To Be Billed",
327 "is_query_report": True,
328 "doctype": "Purchase Invoice"
329 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530330 ]
331
332 },
333 {
334 "label": _("Analytics"),
335 "items": [
336 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530337 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530338 "name": "Gross Profit",
339 "doctype": "Sales Invoice",
340 "is_query_report": True
341 },
342 {
343 "type": "report",
344 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530345 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530346 "doctype": "Purchase Invoice"
347 },
348 {
349 "type": "report",
350 "name": "Sales Invoice Trends",
351 "is_query_report": True,
352 "doctype": "Sales Invoice"
353 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500354 {
355 "type": "report",
356 "name": "Item-wise Sales Register",
357 "is_query_report": True,
358 "doctype": "Sales Invoice"
359 },
360 {
361 "type": "report",
362 "name": "Item-wise Purchase Register",
363 "is_query_report": True,
364 "doctype": "Purchase Invoice"
365 },
366 {
367 "type": "report",
368 "name": "Profitability Analysis",
369 "doctype": "GL Entry",
370 "is_query_report": True,
371 },
372 {
373 "type": "report",
374 "name": "Customer Ledger Summary",
375 "doctype": "Sales Invoice",
376 "is_query_report": True,
377 },
378 {
379 "type": "report",
380 "name": "Supplier Ledger Summary",
381 "doctype": "Sales Invoice",
382 "is_query_report": True,
383 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530384 ]
385 },
386 {
387 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530388 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530389 "items": [
390 {
391 "type": "report",
392 "name": "Trial Balance for Party",
393 "doctype": "GL Entry",
394 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530395 },
396 {
397 "type": "report",
398 "name": "Payment Period Based On Invoice Date",
399 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530400 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530401 },
402 {
403 "type": "report",
404 "name": "Sales Partners Commission",
405 "is_query_report": True,
406 "doctype": "Sales Invoice"
407 },
408 {
409 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530410 "name": "Accounts Receivable Summary",
411 "doctype": "Sales Invoice",
412 "is_query_report": True
413 },
414 {
415 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530416 "name": "Accounts Payable Summary",
417 "doctype": "Purchase Invoice",
418 "is_query_report": True
419 },
420 {
421 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530422 "is_query_report": True,
423 "name": "Customer Credit Balance",
424 "doctype": "Customer"
425 },
pawane61a2752017-11-02 17:53:24 +0530426 {
427 "type": "report",
428 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530429 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530430 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530431 },
432 {
433 "type": "report",
434 "is_query_report": True,
435 "name": "Address And Contacts",
436 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530437 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530438 ]
439 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530440 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530441 "label": _("Share Management"),
442 "icon": "fa fa-microchip ",
443 "items": [
444 {
445 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500446 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530447 "description": _("List of available Shareholders with folio numbers")
448 },
449 {
450 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500451 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530452 "description": _("List of all share transactions"),
453 },
454 {
455 "type": "report",
456 "name": "Share Ledger",
457 "doctype": "Share Transfer",
458 "is_query_report": True
459 },
460 {
461 "type": "report",
462 "name": "Share Balance",
463 "doctype": "Share Transfer",
464 "is_query_report": True
465 }
466 ]
467 },
468 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530469 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530470 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530471 "items": [
472 {
473 "type": "help",
474 "label": _("Chart of Accounts"),
475 "youtube_id": "DyR-DST-PyA"
476 },
477 {
478 "type": "help",
479 "label": _("Opening Accounting Balance"),
480 "youtube_id": "kdgM20Q-q68"
481 },
482 {
483 "type": "help",
484 "label": _("Setting up Taxes"),
485 "youtube_id": "nQ1zZdPgdaQ"
486 }
487 ]
488 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530489 ]
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500490 gst = {
491 "label": _("Goods and Services Tax (GST India)"),
492 "items": [
493 {
494 "type": "doctype",
495 "name": "GST Settings",
496 },
497 {
498 "type": "doctype",
499 "name": "GST HSN Code",
500 },
501 {
502 "type": "report",
503 "name": "GSTR-1",
504 "is_query_report": True
505 },
506 {
507 "type": "report",
508 "name": "GSTR-2",
509 "is_query_report": True
510 },
511 {
512 "type": "report",
513 "name": "GST Sales Register",
514 "is_query_report": True
515 },
516 {
517 "type": "report",
518 "name": "GST Purchase Register",
519 "is_query_report": True
520 },
521 {
522 "type": "report",
523 "name": "GST Itemised Sales Register",
524 "is_query_report": True
525 },
526 {
527 "type": "report",
528 "name": "GST Itemised Purchase Register",
529 "is_query_report": True
530 },
531 ]
532 }
533 retail = {
534 "label": _("Retail Operations"),
535 "items": [
536 {
537 "type": "page",
538 "name": "pos",
539 "label": _("POS"),
540 "description": _("Point of Sale")
541 },
542 {
543 "type": "doctype",
544 "name": "Cashier Closing",
545 "description": _("Cashier Closing")
546 },
547 {
548 "type": "doctype",
549 "name": "POS Settings",
550 "description": _("Setup mode of POS (Online / Offline)")
551 },
552 {
553 "type": "doctype",
554 "name": "POS Profile",
555 "label": _("Point-of-Sale Profile"),
556 "description": _("Setup default values for POS Invoices")
557 },
558 {
559 "type": "doctype",
560 "name": "Loyalty Program",
561 "label": _("Loyalty Program"),
562 "description": _("To make Customer based incentive schemes.")
563 },
564 {
565 "type": "doctype",
566 "name": "Loyalty Point Entry",
567 "label": _("Loyalty Point Entry"),
568 "description": _("To view logs of Loyalty Points assigned to a Customer.")
569 }
570 ]
571 }
572 subscriptions = {
573 "label": _("Subscription Management"),
574 "icon": "fa fa-microchip ",
575 "items": [
576 {
577 "type": "doctype",
578 "name": "Subscriber",
579 },
580 {
581 "type": "doctype",
582 "name": "Subscription Plan",
583 },
584 {
585 "type": "doctype",
586 "name": "Subscription"
587 },
588 {
589 "type": "doctype",
590 "name": "Subscription Settings"
591 }
592 ]
593 }
594 countries = frappe.get_all("Company", fields="country")
595 countries = [country["country"] for country in countries]
596 if "India" in countries:
597 config.insert(7, gst)
598 domains = frappe.get_active_domains()
599 if "Retail" in domains:
600 config.insert(2, retail)
601 else:
602 config.insert(7, retail)
603 if "Services" in domains:
604 config.insert(2, subscriptions)
605 else:
606 config.insert(7, subscriptions)
607 return config