blob: 15996c3a44b4a2365b383ff81b41c598c59a30e0 [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 },
354 ]
355 },
356 {
357 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530358 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530359 "items": [
360 {
361 "type": "report",
362 "name": "Trial Balance for Party",
363 "doctype": "GL Entry",
364 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530365 },
366 {
367 "type": "report",
Nabin Haitfd23fa72016-11-21 16:57:39 +0530368 "name": "Profitability Analysis",
369 "doctype": "GL Entry",
370 "is_query_report": True,
371 },
372 {
373 "type": "report",
Anand Doshi08ef4672014-05-08 11:43:18 +0530374 "name": "Payment Period Based On Invoice Date",
375 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530376 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530377 },
378 {
379 "type": "report",
380 "name": "Sales Partners Commission",
381 "is_query_report": True,
382 "doctype": "Sales Invoice"
383 },
384 {
385 "type": "report",
Anand Doshi08ef4672014-05-08 11:43:18 +0530386 "name": "Item-wise Sales Register",
387 "is_query_report": True,
388 "doctype": "Sales Invoice"
389 },
390 {
391 "type": "report",
392 "name": "Item-wise Purchase Register",
393 "is_query_report": True,
394 "doctype": "Purchase Invoice"
395 },
396 {
397 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530398 "name": "Accounts Receivable Summary",
399 "doctype": "Sales Invoice",
400 "is_query_report": True
401 },
402 {
403 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530404 "name": "Accounts Payable Summary",
405 "doctype": "Purchase Invoice",
406 "is_query_report": True
407 },
408 {
409 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530410 "is_query_report": True,
411 "name": "Customer Credit Balance",
412 "doctype": "Customer"
413 },
pawane61a2752017-11-02 17:53:24 +0530414 {
415 "type": "report",
416 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530417 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530418 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530419 },
420 {
421 "type": "report",
422 "is_query_report": True,
423 "name": "Address And Contacts",
424 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530425 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530426 ]
427 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530428 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530429 "label": _("Share Management"),
430 "icon": "fa fa-microchip ",
431 "items": [
432 {
433 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500434 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530435 "description": _("List of available Shareholders with folio numbers")
436 },
437 {
438 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500439 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530440 "description": _("List of all share transactions"),
441 },
442 {
443 "type": "report",
444 "name": "Share Ledger",
445 "doctype": "Share Transfer",
446 "is_query_report": True
447 },
448 {
449 "type": "report",
450 "name": "Share Balance",
451 "doctype": "Share Transfer",
452 "is_query_report": True
453 }
454 ]
455 },
456 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530457 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530458 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530459 "items": [
460 {
461 "type": "help",
462 "label": _("Chart of Accounts"),
463 "youtube_id": "DyR-DST-PyA"
464 },
465 {
466 "type": "help",
467 "label": _("Opening Accounting Balance"),
468 "youtube_id": "kdgM20Q-q68"
469 },
470 {
471 "type": "help",
472 "label": _("Setting up Taxes"),
473 "youtube_id": "nQ1zZdPgdaQ"
474 }
475 ]
476 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530477 ]
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500478 gst = {
479 "label": _("Goods and Services Tax (GST India)"),
480 "items": [
481 {
482 "type": "doctype",
483 "name": "GST Settings",
484 },
485 {
486 "type": "doctype",
487 "name": "GST HSN Code",
488 },
489 {
490 "type": "report",
491 "name": "GSTR-1",
492 "is_query_report": True
493 },
494 {
495 "type": "report",
496 "name": "GSTR-2",
497 "is_query_report": True
498 },
499 {
500 "type": "report",
501 "name": "GST Sales Register",
502 "is_query_report": True
503 },
504 {
505 "type": "report",
506 "name": "GST Purchase Register",
507 "is_query_report": True
508 },
509 {
510 "type": "report",
511 "name": "GST Itemised Sales Register",
512 "is_query_report": True
513 },
514 {
515 "type": "report",
516 "name": "GST Itemised Purchase Register",
517 "is_query_report": True
518 },
519 ]
520 }
521 retail = {
522 "label": _("Retail Operations"),
523 "items": [
524 {
525 "type": "page",
526 "name": "pos",
527 "label": _("POS"),
528 "description": _("Point of Sale")
529 },
530 {
531 "type": "doctype",
532 "name": "Cashier Closing",
533 "description": _("Cashier Closing")
534 },
535 {
536 "type": "doctype",
537 "name": "POS Settings",
538 "description": _("Setup mode of POS (Online / Offline)")
539 },
540 {
541 "type": "doctype",
542 "name": "POS Profile",
543 "label": _("Point-of-Sale Profile"),
544 "description": _("Setup default values for POS Invoices")
545 },
546 {
547 "type": "doctype",
548 "name": "Loyalty Program",
549 "label": _("Loyalty Program"),
550 "description": _("To make Customer based incentive schemes.")
551 },
552 {
553 "type": "doctype",
554 "name": "Loyalty Point Entry",
555 "label": _("Loyalty Point Entry"),
556 "description": _("To view logs of Loyalty Points assigned to a Customer.")
557 }
558 ]
559 }
560 subscriptions = {
561 "label": _("Subscription Management"),
562 "icon": "fa fa-microchip ",
563 "items": [
564 {
565 "type": "doctype",
566 "name": "Subscriber",
567 },
568 {
569 "type": "doctype",
570 "name": "Subscription Plan",
571 },
572 {
573 "type": "doctype",
574 "name": "Subscription"
575 },
576 {
577 "type": "doctype",
578 "name": "Subscription Settings"
579 }
580 ]
581 }
582 countries = frappe.get_all("Company", fields="country")
583 countries = [country["country"] for country in countries]
584 if "India" in countries:
585 config.insert(7, gst)
586 domains = frappe.get_active_domains()
587 if "Retail" in domains:
588 config.insert(2, retail)
589 else:
590 config.insert(7, retail)
591 if "Services" in domains:
592 config.insert(2, subscriptions)
593 else:
594 config.insert(7, subscriptions)
595 return config