blob: 1b8bf2717b0669a8b46d2cfa727c53528f74d50b [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 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +05309 "label": _("Masters and Accounts"),
Anand Doshi08ef4672014-05-08 11:43:18 +053010 "items": [
11 {
12 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053013 "name": "Item",
14 "onboard": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053015 },
16 {
17 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053018 "name": "Customer",
19 "description": _("Customer database."),
20 "onboard": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053021 },
22 {
23 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053024 "name": "Supplier",
25 "description": _("Supplier database."),
26 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053027 },
28 {
Nabin Haite4bbb692016-07-04 16:16:24 +053029 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053030 "name": "Company",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053031 "description": _("Company (not Customer or Supplier) master."),
32 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053033 },
34 {
Saurabh52ec0ed2016-07-05 18:02:38 +053035 "type": "doctype",
36 "name": "Account",
Rushabh Mehta2167ff52016-12-07 11:08:48 +053037 "icon": "fa fa-sitemap",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053038 "label": _("Chart of Accounts"),
Prateeksha Singh34234072019-02-07 09:18:24 +053039 "route": "#Tree/Account",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053040 "description": _("Tree of financial accounts."),
Prateeksha Singh063af4e2019-02-06 17:02:41 +053041 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053042 },
43 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +053044 "type": "doctype",
45 "name": "Journal Entry",
46 "description": _("Accounting journal entries."),
47 "onboard": 1,
48 },
49 {
50 "type": "doctype",
51 "name": "Opening Invoice Creation Tool",
52 "description": _("Create Opening Sales and Purchase Invoices")
53 },
54 ]
55 },
56 {
57 "label": _("Billing"),
58 "items": [
59 {
60 "type": "doctype",
61 "name": "Sales Invoice",
62 "description": _("Bills raised to Customers."),
63 "onboard": 1,
64 },
65 {
66 "type": "doctype",
67 "name": "Purchase Invoice",
68 "description": _("Bills raised by Suppliers."),
69 "onboard": 1
70 },
71 {
72 "type": "doctype",
73 "name": "Payment Request",
74 "description": _("Payment Request"),
75 },
76 {
77 "type": "doctype",
78 "name": "Payment Entry",
79 "description": _("Bank/Cash transactions against party or for internal transfer")
80 },
81
82 # Reports
83 {
84 "type": "report",
85 "name": "Ordered Items To Be Billed",
86 "is_query_report": True,
87 "reference_doctype": "Sales Invoice"
88 },
89 {
90 "type": "report",
91 "name": "Delivered Items To Be Billed",
92 "is_query_report": True,
93 "reference_doctype": "Sales Invoice"
94 },
95 {
96 "type": "report",
97 "name": "Purchase Order Items To Be Billed",
98 "is_query_report": True,
99 "reference_doctype": "Purchase Invoice"
100 },
101 {
102 "type": "report",
103 "name": "Received Items To Be Billed",
104 "is_query_report": True,
105 "reference_doctype": "Purchase Invoice"
106 },
107 ]
108
109 },
110 {
Prateeksha Singh9d4a1832019-02-11 15:14:50 +0530111 "label": _("Settings"),
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530112 "icon": "fa fa-cog",
113 "items": [
114 {
115 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530116 "name": "Accounts Settings",
117 "description": _("Default settings for accounting transactions.")
118 },
119 {
120 "type": "doctype",
121 "name": "Fiscal Year",
122 "description": _("Financial / accounting year.")
123 },
124 {
125 "type": "doctype",
126 "name": "Currency",
127 "description": _("Enable / disable currencies.")
128 },
129 {
130 "type": "doctype",
131 "name": "Currency Exchange",
132 "description": _("Currency exchange rate master.")
133 },
134 {
135 "type": "doctype",
136 "name": "Payment Gateway Account",
137 "description": _("Setup Gateway accounts.")
138 },
139 {
140 "type": "doctype",
141 "name": "Terms and Conditions",
142 "label": _("Terms and Conditions Template"),
143 "description": _("Template of terms or contract.")
144 },
145 {
146 "type": "doctype",
147 "name": "Mode of Payment",
148 "description": _("e.g. Bank, Cash, Credit Card")
149 },
150 {
151 "type": "doctype",
152 "name": "Auto Repeat",
153 "label": _("Auto Repeat"),
154 "description": _("To make recurring documents")
155 },
156 {
157 "type": "doctype",
158 "name": "C-Form",
159 "description": _("C-Form records"),
160 "country": "India"
Prateeksha Singh34234072019-02-07 09:18:24 +0530161 },
162 {
163 "type": "doctype",
164 "name": "Cheque Print Template",
165 "description": _("Setup cheque dimensions for printing")
166 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530167 ]
168 },
169 {
170 "label": _("Financial Statements"),
171 "items": [
172 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530173 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500174 "name": "General Ledger",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530175 "doctype": "GL Entry",
176 "is_query_report": True,
177 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530178 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530179 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500180 "name": "Accounts Receivable",
181 "doctype": "Sales Invoice",
182 "is_query_report": True
183 },
184 {
185 "type": "report",
186 "name": "Accounts Payable",
187 "doctype": "Purchase Invoice",
188 "is_query_report": True
189 },
190 {
191 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530192 "name": "Trial Balance",
193 "doctype": "GL Entry",
194 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530195 },
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530196 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530197 "type": "report",
198 "name": "Balance Sheet",
199 "doctype": "GL Entry",
200 "is_query_report": True
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530201 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530202 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530203 "type": "report",
204 "name": "Cash Flow",
205 "doctype": "GL Entry",
206 "is_query_report": True
Anand Doshi08ef4672014-05-08 11:43:18 +0530207 },
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530208 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530209 "type": "report",
210 "name": "Profit and Loss Statement",
211 "doctype": "GL Entry",
212 "is_query_report": True
213 },
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530214 {
215 "type": "report",
216 "name": "Consolidated Financial Statement",
217 "doctype": "GL Entry",
218 "is_query_report": True
219 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530220 ]
221 },
222 {
223 "label": _("Banking and Payments"),
224 "items": [
225 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530226 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530227 "label": _("Bank"),
228 "name": "Bank",
229 },
230 {
231 "type": "doctype",
232 "label": _("Bank Account"),
233 "name": "Bank Account",
234 },
235 {
236 "type": "doctype",
Nabin Hait36bb3f52019-04-18 14:47:44 +0530237 "label": _("Invoice Discounting"),
238 "name": "Invoice Discounting",
239 },
240 {
241 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530242 "label": _("Bank Statement Transaction Entry List"),
243 "name": "Bank Statement Transaction Entry",
244 "route": "#List/Bank Statement Transaction Entry",
245 },
246 {
247 "type": "doctype",
248 "label": _("Bank Statement Transaction Entry Report"),
249 "name": "Bank Statement Transaction Entry",
250 "route": "#Report/Bank Statement Transaction Entry",
251 },
252 {
253 "type": "doctype",
254 "label": _("Bank Statement Settings"),
255 "name": "Bank Statement Settings",
256 },
257
258 {
259 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530260 "label": _("Update Bank Transaction Dates"),
261 "name": "Bank Reconciliation",
262 "description": _("Update bank payment dates with journals.")
263 },
264 {
265 "type": "doctype",
266 "label": _("Match Payments with Invoices"),
267 "name": "Payment Reconciliation",
268 "description": _("Match non-linked Invoices and Payments.")
269 },
270 {
271 "type": "report",
272 "name": "Bank Reconciliation Statement",
273 "is_query_report": True,
274 "doctype": "Journal Entry"
275 },
276 {
277 "type": "report",
278 "name": "Bank Clearance Summary",
279 "is_query_report": True,
280 "doctype": "Journal Entry"
281 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530282 {
283 "type": "doctype",
284 "name": "Bank Guarantee",
285 "doctype": "Bank Guarantee"
286 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530287 ]
288 },
289 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530290 "label": _("Cost Center and Budgeting"),
291 "items": [
292 {
293 "type": "doctype",
294 "name": "Cost Center",
295 "icon": "fa fa-sitemap",
296 "label": _("Chart of Cost Centers"),
297 "route": "#Tree/Cost Center",
298 "description": _("Tree of financial Cost Centers."),
299 },
300 {
301 "type": "doctype",
302 "name": "Budget",
303 "description": _("Define budget for a financial year.")
304 },
305 {
306 "type": "report",
307 "name": "Budget Variance Report",
308 "is_query_report": True,
309 "doctype": "Cost Center"
310 },
311 {
312 "type": "doctype",
313 "name": "Monthly Distribution",
314 "description": _("Seasonality for setting budgets, targets etc.")
315 },
316 {
317 "type": "doctype",
318 "name": "Period Closing Voucher",
319 "description": _("Close Balance Sheet and book Profit or Loss.")
320 },
321 ]
322 },
323 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530324 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530325 "items": [
326 {
327 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500328 "name": "Tax Category",
329 "description": _("Tax Category for overriding tax rates.")
330 },
331 {
332 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530333 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530334 "description": _("Tax template for selling transactions.")
335 },
336 {
337 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530338 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530339 "description": _("Tax template for buying transactions.")
340 },
341 {
342 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500343 "name": "Item Tax Template",
344 "description": _("Tax template for item tax rates.")
345 },
346 {
347 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530348 "name": "Tax Rule",
349 "description": _("Tax Rule for transactions.")
350 },
351 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530352 "type": "doctype",
353 "name": "Tax Withholding Category",
354 "description": _("Tax Withholding rates to be applied on transactions.")
355 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530356 ]
357 },
358 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530359 "label": _("Subscription Management"),
360 "icon": "fa fa-microchip ",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530361 "items": [
362 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530363 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530364 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530365 },
366 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530367 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530368 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530369 },
370 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500371 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530372 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530373 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530374 {
375 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530376 "name": "Subscription Settings"
377 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530378 ]
379 },
380 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530381 "label": _("Key Reports"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530382 "items": [
383 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530384 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530385 "name": "Gross Profit",
386 "doctype": "Sales Invoice",
387 "is_query_report": True
388 },
389 {
390 "type": "report",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530391 "name": "Sales Register",
392 "doctype": "Sales Invoice",
393 "is_query_report": True
394 },
395 {
396 "type": "report",
397 "name": "Purchase Register",
398 "doctype": "Purchase Invoice",
399 "is_query_report": True
400 },
401 {
402 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530403 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530404 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530405 "doctype": "Purchase Invoice"
406 },
407 {
408 "type": "report",
409 "name": "Sales Invoice Trends",
410 "is_query_report": True,
411 "doctype": "Sales Invoice"
412 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500413 {
414 "type": "report",
415 "name": "Item-wise Sales Register",
416 "is_query_report": True,
417 "doctype": "Sales Invoice"
418 },
419 {
420 "type": "report",
421 "name": "Item-wise Purchase Register",
422 "is_query_report": True,
423 "doctype": "Purchase Invoice"
424 },
425 {
426 "type": "report",
427 "name": "Profitability Analysis",
428 "doctype": "GL Entry",
429 "is_query_report": True,
430 },
431 {
432 "type": "report",
433 "name": "Customer Ledger Summary",
434 "doctype": "Sales Invoice",
435 "is_query_report": True,
436 },
437 {
438 "type": "report",
439 "name": "Supplier Ledger Summary",
440 "doctype": "Sales Invoice",
441 "is_query_report": True,
442 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530443 ]
444 },
445 {
446 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530447 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530448 "items": [
449 {
450 "type": "report",
451 "name": "Trial Balance for Party",
452 "doctype": "GL Entry",
453 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530454 },
455 {
456 "type": "report",
457 "name": "Payment Period Based On Invoice Date",
458 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530459 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530460 },
461 {
462 "type": "report",
463 "name": "Sales Partners Commission",
464 "is_query_report": True,
465 "doctype": "Sales Invoice"
466 },
467 {
468 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530469 "name": "Accounts Receivable Summary",
470 "doctype": "Sales Invoice",
471 "is_query_report": True
472 },
473 {
474 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530475 "name": "Accounts Payable Summary",
476 "doctype": "Purchase Invoice",
477 "is_query_report": True
478 },
479 {
480 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530481 "is_query_report": True,
482 "name": "Customer Credit Balance",
483 "doctype": "Customer"
484 },
pawane61a2752017-11-02 17:53:24 +0530485 {
486 "type": "report",
487 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530488 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530489 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530490 },
491 {
492 "type": "report",
493 "is_query_report": True,
494 "name": "Address And Contacts",
495 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530496 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530497 ]
498 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530499 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530500 "label": _("Share Management"),
501 "icon": "fa fa-microchip ",
502 "items": [
503 {
504 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500505 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530506 "description": _("List of available Shareholders with folio numbers")
507 },
508 {
509 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500510 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530511 "description": _("List of all share transactions"),
512 },
513 {
514 "type": "report",
515 "name": "Share Ledger",
516 "doctype": "Share Transfer",
517 "is_query_report": True
518 },
519 {
520 "type": "report",
521 "name": "Share Balance",
522 "doctype": "Share Transfer",
523 "is_query_report": True
524 }
525 ]
526 },
527 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530528 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530529 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530530 "items": [
531 {
532 "type": "help",
533 "label": _("Chart of Accounts"),
534 "youtube_id": "DyR-DST-PyA"
535 },
536 {
537 "type": "help",
538 "label": _("Opening Accounting Balance"),
539 "youtube_id": "kdgM20Q-q68"
540 },
541 {
542 "type": "help",
543 "label": _("Setting up Taxes"),
544 "youtube_id": "nQ1zZdPgdaQ"
545 }
546 ]
547 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530548 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530549
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500550 gst = {
551 "label": _("Goods and Services Tax (GST India)"),
552 "items": [
553 {
554 "type": "doctype",
555 "name": "GST Settings",
556 },
557 {
558 "type": "doctype",
559 "name": "GST HSN Code",
560 },
561 {
562 "type": "report",
563 "name": "GSTR-1",
564 "is_query_report": True
565 },
566 {
567 "type": "report",
568 "name": "GSTR-2",
569 "is_query_report": True
570 },
571 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530572 "type": "doctype",
573 "name": "GSTR 3B Report",
574 },
575 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500576 "type": "report",
577 "name": "GST Sales Register",
578 "is_query_report": True
579 },
580 {
581 "type": "report",
582 "name": "GST Purchase Register",
583 "is_query_report": True
584 },
585 {
586 "type": "report",
587 "name": "GST Itemised Sales Register",
588 "is_query_report": True
589 },
590 {
591 "type": "report",
592 "name": "GST Itemised Purchase Register",
593 "is_query_report": True
594 },
595 ]
596 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530597
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530598
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500599 countries = frappe.get_all("Company", fields="country")
600 countries = [country["country"] for country in countries]
601 if "India" in countries:
602 config.insert(7, gst)
603 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500604 return config