blob: 7461a63791abf95331e38705e2df0fa47e3e651e [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",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500168 "name": "Tax Category",
169 "description": _("Tax Category for overriding tax rates.")
170 },
171 {
172 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530173 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530174 "description": _("Tax template for selling transactions.")
175 },
176 {
177 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530178 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530179 "description": _("Tax template for buying transactions.")
180 },
181 {
182 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500183 "name": "Item Tax Template",
184 "description": _("Tax template for item tax rates.")
185 },
186 {
187 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530188 "name": "Tax Rule",
189 "description": _("Tax Rule for transactions.")
190 },
191 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530192 "type": "doctype",
193 "name": "Tax Withholding Category",
194 "description": _("Tax Withholding rates to be applied on transactions.")
195 },
196 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530197 "type": "report",
198 "name": "Sales Register",
199 "doctype": "Sales Invoice",
200 "is_query_report": True
201 },
202 {
203 "type": "report",
204 "name": "Purchase Register",
205 "doctype": "Purchase Invoice",
206 "is_query_report": True
207 },
208 ]
209 },
210 {
211 "label": _("Budget and Cost Center"),
212 "items": [
213 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530214 "type": "doctype",
215 "name": "Cost Center",
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530216 "icon": "fa fa-sitemap",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530217 "label": _("Chart of Cost Centers"),
Saurabhec8babe2016-06-21 15:55:54 +0530218 "route": "Tree/Cost Center",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530219 "description": _("Tree of financial Cost Centers."),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530220 },
221 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530222 "type": "doctype",
223 "name": "Budget",
224 "description": _("Define budget for a financial year.")
225 },
226 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530227 "type": "report",
228 "name": "Budget Variance Report",
229 "is_query_report": True,
230 "doctype": "Cost Center"
231 },
232 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500233 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530234 "name": "Monthly Distribution",
235 "description": _("Seasonality for setting budgets, targets etc.")
236 },
237 ]
238 },
239 {
240 "label": _("Tools"),
241 "items": [
242 {
243 "type": "doctype",
244 "name": "Period Closing Voucher",
245 "description": _("Close Balance Sheet and book Profit or Loss.")
246 },
Nabin Hait70f05df2016-04-25 18:49:17 +0530247 {
248 "type": "doctype",
Saurabh066ae8e2016-07-05 12:41:20 +0530249 "name": "Cheque Print Template",
250 "description": _("Setup cheque dimensions for printing")
251 },
Rushabh Mehtad3f5d092017-11-15 16:29:53 +0530252 {
253 "type": "doctype",
254 "name": "Opening Invoice Creation Tool",
Suraj Shettyb2965002018-12-23 13:25:58 +0530255 "description": _("Create Opening Sales and Purchase Invoices")
Rushabh Mehtad3f5d092017-11-15 16:29:53 +0530256 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530257 ]
258 },
259 {
260 "label": _("Setup"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530261 "icon": "fa fa-cog",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530262 "items": [
263 {
264 "type": "doctype",
265 "name": "Accounts Settings",
266 "description": _("Default settings for accounting transactions.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530267 },
268 {
269 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530270 "name": "Fiscal Year",
271 "description": _("Financial / accounting year.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530272 },
273 {
274 "type": "doctype",
275 "name": "Currency",
276 "description": _("Enable / disable currencies.")
277 },
278 {
279 "type": "doctype",
280 "name": "Currency Exchange",
281 "description": _("Currency exchange rate master.")
282 },
283 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530284 "type": "doctype",
285 "name": "Payment Gateway Account",
286 "description": _("Setup Gateway accounts.")
287 },
288 {
289 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500290 "name": "Terms and Conditions",
Anand Doshi08ef4672014-05-08 11:43:18 +0530291 "label": _("Terms and Conditions Template"),
292 "description": _("Template of terms or contract.")
293 },
294 {
295 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500296 "name": "Mode of Payment",
Anand Doshi08ef4672014-05-08 11:43:18 +0530297 "description": _("e.g. Bank, Cash, Credit Card")
298 },
299 {
300 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500301 "name": "Auto Repeat",
302 "label": _("Auto Repeat"),
303 "description": _("To make recurring documents")
304 },
305 {
306 "type": "doctype",
307 "name": "C-Form",
Anand Doshi08ef4672014-05-08 11:43:18 +0530308 "description": _("C-Form records"),
309 "country": "India"
310 }
311 ]
312 },
313 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530314 "label": _("To Bill"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530315 "items": [
316 {
317 "type": "report",
Anand Doshi08ef4672014-05-08 11:43:18 +0530318 "name": "Ordered Items To Be Billed",
319 "is_query_report": True,
320 "doctype": "Sales Invoice"
321 },
322 {
323 "type": "report",
324 "name": "Delivered Items To Be Billed",
325 "is_query_report": True,
326 "doctype": "Sales Invoice"
327 },
328 {
329 "type": "report",
330 "name": "Purchase Order Items To Be Billed",
331 "is_query_report": True,
332 "doctype": "Purchase Invoice"
333 },
334 {
335 "type": "report",
336 "name": "Received Items To Be Billed",
337 "is_query_report": True,
338 "doctype": "Purchase Invoice"
339 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530340 ]
341
342 },
343 {
344 "label": _("Analytics"),
345 "items": [
346 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530347 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530348 "name": "Gross Profit",
349 "doctype": "Sales Invoice",
350 "is_query_report": True
351 },
352 {
353 "type": "report",
354 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530355 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530356 "doctype": "Purchase Invoice"
357 },
358 {
359 "type": "report",
360 "name": "Sales Invoice Trends",
361 "is_query_report": True,
362 "doctype": "Sales Invoice"
363 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500364 {
365 "type": "report",
366 "name": "Item-wise Sales Register",
367 "is_query_report": True,
368 "doctype": "Sales Invoice"
369 },
370 {
371 "type": "report",
372 "name": "Item-wise Purchase Register",
373 "is_query_report": True,
374 "doctype": "Purchase Invoice"
375 },
376 {
377 "type": "report",
378 "name": "Profitability Analysis",
379 "doctype": "GL Entry",
380 "is_query_report": True,
381 },
382 {
383 "type": "report",
384 "name": "Customer Ledger Summary",
385 "doctype": "Sales Invoice",
386 "is_query_report": True,
387 },
388 {
389 "type": "report",
390 "name": "Supplier Ledger Summary",
391 "doctype": "Sales Invoice",
392 "is_query_report": True,
393 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530394 ]
395 },
396 {
397 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530398 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530399 "items": [
400 {
401 "type": "report",
402 "name": "Trial Balance for Party",
403 "doctype": "GL Entry",
404 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530405 },
406 {
407 "type": "report",
408 "name": "Payment Period Based On Invoice Date",
409 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530410 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530411 },
412 {
413 "type": "report",
414 "name": "Sales Partners Commission",
415 "is_query_report": True,
416 "doctype": "Sales Invoice"
417 },
418 {
419 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530420 "name": "Accounts Receivable Summary",
421 "doctype": "Sales Invoice",
422 "is_query_report": True
423 },
424 {
425 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530426 "name": "Accounts Payable Summary",
427 "doctype": "Purchase Invoice",
428 "is_query_report": True
429 },
430 {
431 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530432 "is_query_report": True,
433 "name": "Customer Credit Balance",
434 "doctype": "Customer"
435 },
pawane61a2752017-11-02 17:53:24 +0530436 {
437 "type": "report",
438 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530439 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530440 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530441 },
442 {
443 "type": "report",
444 "is_query_report": True,
445 "name": "Address And Contacts",
446 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530447 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530448 ]
449 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530450 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530451 "label": _("Share Management"),
452 "icon": "fa fa-microchip ",
453 "items": [
454 {
455 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500456 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530457 "description": _("List of available Shareholders with folio numbers")
458 },
459 {
460 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500461 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530462 "description": _("List of all share transactions"),
463 },
464 {
465 "type": "report",
466 "name": "Share Ledger",
467 "doctype": "Share Transfer",
468 "is_query_report": True
469 },
470 {
471 "type": "report",
472 "name": "Share Balance",
473 "doctype": "Share Transfer",
474 "is_query_report": True
475 }
476 ]
477 },
478 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530479 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530480 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530481 "items": [
482 {
483 "type": "help",
484 "label": _("Chart of Accounts"),
485 "youtube_id": "DyR-DST-PyA"
486 },
487 {
488 "type": "help",
489 "label": _("Opening Accounting Balance"),
490 "youtube_id": "kdgM20Q-q68"
491 },
492 {
493 "type": "help",
494 "label": _("Setting up Taxes"),
495 "youtube_id": "nQ1zZdPgdaQ"
496 }
497 ]
498 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530499 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530500
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500501 gst = {
502 "label": _("Goods and Services Tax (GST India)"),
503 "items": [
504 {
505 "type": "doctype",
506 "name": "GST Settings",
507 },
508 {
509 "type": "doctype",
510 "name": "GST HSN Code",
511 },
512 {
513 "type": "report",
514 "name": "GSTR-1",
515 "is_query_report": True
516 },
517 {
518 "type": "report",
519 "name": "GSTR-2",
520 "is_query_report": True
521 },
522 {
523 "type": "report",
524 "name": "GST Sales Register",
525 "is_query_report": True
526 },
527 {
528 "type": "report",
529 "name": "GST Purchase Register",
530 "is_query_report": True
531 },
532 {
533 "type": "report",
534 "name": "GST Itemised Sales Register",
535 "is_query_report": True
536 },
537 {
538 "type": "report",
539 "name": "GST Itemised Purchase Register",
540 "is_query_report": True
541 },
542 ]
543 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530544
545
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500546 retail = {
547 "label": _("Retail Operations"),
548 "items": [
549 {
550 "type": "page",
551 "name": "pos",
552 "label": _("POS"),
553 "description": _("Point of Sale")
554 },
555 {
556 "type": "doctype",
557 "name": "Cashier Closing",
558 "description": _("Cashier Closing")
559 },
560 {
561 "type": "doctype",
562 "name": "POS Settings",
563 "description": _("Setup mode of POS (Online / Offline)")
564 },
565 {
566 "type": "doctype",
567 "name": "POS Profile",
568 "label": _("Point-of-Sale Profile"),
569 "description": _("Setup default values for POS Invoices")
570 },
571 {
572 "type": "doctype",
573 "name": "Loyalty Program",
574 "label": _("Loyalty Program"),
575 "description": _("To make Customer based incentive schemes.")
576 },
577 {
578 "type": "doctype",
579 "name": "Loyalty Point Entry",
580 "label": _("Loyalty Point Entry"),
581 "description": _("To view logs of Loyalty Points assigned to a Customer.")
582 }
583 ]
584 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530585
586
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500587 subscriptions = {
588 "label": _("Subscription Management"),
589 "icon": "fa fa-microchip ",
590 "items": [
591 {
592 "type": "doctype",
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530593 "name": "Subscriber",
594 },
595 {
596 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500597 "name": "Subscription Plan",
598 },
599 {
600 "type": "doctype",
601 "name": "Subscription"
602 },
603 {
604 "type": "doctype",
605 "name": "Subscription Settings"
606 }
607 ]
608 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530609
610
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500611 countries = frappe.get_all("Company", fields="country")
612 countries = [country["country"] for country in countries]
613 if "India" in countries:
614 config.insert(7, gst)
615 domains = frappe.get_active_domains()
616 if "Retail" in domains:
617 config.insert(2, retail)
618 else:
619 config.insert(7, retail)
620 if "Services" in domains:
621 config.insert(2, subscriptions)
622 else:
623 config.insert(7, subscriptions)
624 return config