blob: 39d625e3d0f600054f78a7882d83fe09386682cb [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 },
Prasad R198c7ae2019-04-19 12:17:19 +053081 {
82 "type": "doctype",
83 "name": "Payment Term",
84 "description": _("Payment Terms based on conditions")
Nabin Hait28a7aec2019-04-22 15:35:13 +053085 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +053086
87 # Reports
88 {
89 "type": "report",
90 "name": "Ordered Items To Be Billed",
91 "is_query_report": True,
92 "reference_doctype": "Sales Invoice"
93 },
94 {
95 "type": "report",
96 "name": "Delivered Items To Be Billed",
97 "is_query_report": True,
98 "reference_doctype": "Sales Invoice"
99 },
100 {
101 "type": "report",
102 "name": "Purchase Order Items To Be Billed",
103 "is_query_report": True,
104 "reference_doctype": "Purchase Invoice"
105 },
106 {
107 "type": "report",
108 "name": "Received Items To Be Billed",
109 "is_query_report": True,
110 "reference_doctype": "Purchase Invoice"
111 },
112 ]
113
114 },
115 {
Prateeksha Singh9d4a1832019-02-11 15:14:50 +0530116 "label": _("Settings"),
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530117 "icon": "fa fa-cog",
118 "items": [
119 {
120 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530121 "name": "Accounts Settings",
122 "description": _("Default settings for accounting transactions.")
123 },
124 {
125 "type": "doctype",
126 "name": "Fiscal Year",
127 "description": _("Financial / accounting year.")
128 },
129 {
130 "type": "doctype",
131 "name": "Currency",
132 "description": _("Enable / disable currencies.")
133 },
134 {
135 "type": "doctype",
136 "name": "Currency Exchange",
137 "description": _("Currency exchange rate master.")
138 },
139 {
140 "type": "doctype",
Prasad R198c7ae2019-04-19 12:17:19 +0530141 "name": "Exchange Rate Revaluation",
142 "description": _("Exchange Rate Revaluation master.")
143 },
144 {
145 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530146 "name": "Payment Gateway Account",
147 "description": _("Setup Gateway accounts.")
148 },
149 {
150 "type": "doctype",
151 "name": "Terms and Conditions",
152 "label": _("Terms and Conditions Template"),
153 "description": _("Template of terms or contract.")
154 },
155 {
156 "type": "doctype",
157 "name": "Mode of Payment",
158 "description": _("e.g. Bank, Cash, Credit Card")
159 },
160 {
161 "type": "doctype",
162 "name": "Auto Repeat",
163 "label": _("Auto Repeat"),
164 "description": _("To make recurring documents")
165 },
166 {
167 "type": "doctype",
168 "name": "C-Form",
169 "description": _("C-Form records"),
170 "country": "India"
Prateeksha Singh34234072019-02-07 09:18:24 +0530171 },
172 {
173 "type": "doctype",
174 "name": "Cheque Print Template",
175 "description": _("Setup cheque dimensions for printing")
176 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530177 ]
178 },
179 {
180 "label": _("Financial Statements"),
181 "items": [
182 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530183 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500184 "name": "General Ledger",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530185 "doctype": "GL Entry",
186 "is_query_report": True,
187 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530188 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530189 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500190 "name": "Accounts Receivable",
191 "doctype": "Sales Invoice",
192 "is_query_report": True
193 },
194 {
195 "type": "report",
196 "name": "Accounts Payable",
197 "doctype": "Purchase Invoice",
198 "is_query_report": True
199 },
200 {
201 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530202 "name": "Trial Balance",
203 "doctype": "GL Entry",
204 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530205 },
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530206 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530207 "type": "report",
208 "name": "Balance Sheet",
209 "doctype": "GL Entry",
210 "is_query_report": True
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530211 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530212 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530213 "type": "report",
214 "name": "Cash Flow",
215 "doctype": "GL Entry",
216 "is_query_report": True
Anand Doshi08ef4672014-05-08 11:43:18 +0530217 },
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530218 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530219 "type": "report",
220 "name": "Profit and Loss Statement",
221 "doctype": "GL Entry",
222 "is_query_report": True
223 },
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530224 {
225 "type": "report",
226 "name": "Consolidated Financial Statement",
227 "doctype": "GL Entry",
228 "is_query_report": True
229 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530230 ]
231 },
232 {
233 "label": _("Banking and Payments"),
234 "items": [
235 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530236 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530237 "label": _("Bank"),
238 "name": "Bank",
239 },
240 {
241 "type": "doctype",
242 "label": _("Bank Account"),
243 "name": "Bank Account",
244 },
245 {
246 "type": "doctype",
247 "label": _("Bank Statement Transaction Entry List"),
248 "name": "Bank Statement Transaction Entry",
249 "route": "#List/Bank Statement Transaction Entry",
250 },
251 {
252 "type": "doctype",
253 "label": _("Bank Statement Transaction Entry Report"),
254 "name": "Bank Statement Transaction Entry",
255 "route": "#Report/Bank Statement Transaction Entry",
256 },
257 {
258 "type": "doctype",
259 "label": _("Bank Statement Settings"),
260 "name": "Bank Statement Settings",
261 },
262
263 {
264 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530265 "label": _("Update Bank Transaction Dates"),
266 "name": "Bank Reconciliation",
267 "description": _("Update bank payment dates with journals.")
268 },
269 {
270 "type": "doctype",
271 "label": _("Match Payments with Invoices"),
272 "name": "Payment Reconciliation",
273 "description": _("Match non-linked Invoices and Payments.")
274 },
275 {
276 "type": "report",
277 "name": "Bank Reconciliation Statement",
278 "is_query_report": True,
279 "doctype": "Journal Entry"
280 },
281 {
282 "type": "report",
283 "name": "Bank Clearance Summary",
284 "is_query_report": True,
285 "doctype": "Journal Entry"
286 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530287 {
288 "type": "doctype",
289 "name": "Bank Guarantee",
290 "doctype": "Bank Guarantee"
291 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530292 ]
293 },
294 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530295 "label": _("Cost Center and Budgeting"),
296 "items": [
297 {
298 "type": "doctype",
299 "name": "Cost Center",
300 "icon": "fa fa-sitemap",
301 "label": _("Chart of Cost Centers"),
302 "route": "#Tree/Cost Center",
303 "description": _("Tree of financial Cost Centers."),
304 },
305 {
306 "type": "doctype",
307 "name": "Budget",
308 "description": _("Define budget for a financial year.")
309 },
310 {
311 "type": "report",
312 "name": "Budget Variance Report",
313 "is_query_report": True,
314 "doctype": "Cost Center"
315 },
316 {
317 "type": "doctype",
318 "name": "Monthly Distribution",
319 "description": _("Seasonality for setting budgets, targets etc.")
320 },
321 {
322 "type": "doctype",
323 "name": "Period Closing Voucher",
324 "description": _("Close Balance Sheet and book Profit or Loss.")
325 },
326 ]
327 },
328 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530329 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530330 "items": [
331 {
332 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500333 "name": "Tax Category",
334 "description": _("Tax Category for overriding tax rates.")
335 },
336 {
337 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530338 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530339 "description": _("Tax template for selling transactions.")
340 },
341 {
342 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530343 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530344 "description": _("Tax template for buying transactions.")
345 },
346 {
347 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500348 "name": "Item Tax Template",
349 "description": _("Tax template for item tax rates.")
350 },
351 {
352 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530353 "name": "Tax Rule",
354 "description": _("Tax Rule for transactions.")
355 },
356 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530357 "type": "doctype",
358 "name": "Tax Withholding Category",
359 "description": _("Tax Withholding rates to be applied on transactions.")
360 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530361 ]
362 },
363 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530364 "label": _("Subscription Management"),
365 "icon": "fa fa-microchip ",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530366 "items": [
367 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530368 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530369 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530370 },
371 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530372 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530373 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530374 },
375 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500376 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530377 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530378 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530379 {
380 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530381 "name": "Subscription Settings"
382 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530383 ]
384 },
385 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530386 "label": _("Key Reports"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530387 "items": [
388 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530389 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530390 "name": "Gross Profit",
391 "doctype": "Sales Invoice",
392 "is_query_report": True
393 },
394 {
395 "type": "report",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530396 "name": "Sales Register",
397 "doctype": "Sales Invoice",
398 "is_query_report": True
399 },
400 {
401 "type": "report",
402 "name": "Purchase Register",
403 "doctype": "Purchase Invoice",
404 "is_query_report": True
405 },
406 {
407 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530408 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530409 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530410 "doctype": "Purchase Invoice"
411 },
412 {
413 "type": "report",
414 "name": "Sales Invoice Trends",
415 "is_query_report": True,
416 "doctype": "Sales Invoice"
417 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500418 {
419 "type": "report",
420 "name": "Item-wise Sales Register",
421 "is_query_report": True,
422 "doctype": "Sales Invoice"
423 },
424 {
425 "type": "report",
426 "name": "Item-wise Purchase Register",
427 "is_query_report": True,
428 "doctype": "Purchase Invoice"
429 },
430 {
431 "type": "report",
432 "name": "Profitability Analysis",
433 "doctype": "GL Entry",
434 "is_query_report": True,
435 },
436 {
437 "type": "report",
438 "name": "Customer Ledger Summary",
439 "doctype": "Sales Invoice",
440 "is_query_report": True,
441 },
442 {
443 "type": "report",
444 "name": "Supplier Ledger Summary",
445 "doctype": "Sales Invoice",
446 "is_query_report": True,
447 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530448 ]
449 },
450 {
451 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530452 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530453 "items": [
454 {
455 "type": "report",
456 "name": "Trial Balance for Party",
457 "doctype": "GL Entry",
458 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530459 },
460 {
461 "type": "report",
462 "name": "Payment Period Based On Invoice Date",
463 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530464 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530465 },
466 {
467 "type": "report",
468 "name": "Sales Partners Commission",
469 "is_query_report": True,
470 "doctype": "Sales Invoice"
471 },
472 {
473 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530474 "name": "Accounts Receivable Summary",
475 "doctype": "Sales Invoice",
476 "is_query_report": True
477 },
478 {
479 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530480 "name": "Accounts Payable Summary",
481 "doctype": "Purchase Invoice",
482 "is_query_report": True
483 },
484 {
485 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530486 "is_query_report": True,
487 "name": "Customer Credit Balance",
488 "doctype": "Customer"
489 },
pawane61a2752017-11-02 17:53:24 +0530490 {
491 "type": "report",
492 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530493 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530494 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530495 },
496 {
497 "type": "report",
498 "is_query_report": True,
499 "name": "Address And Contacts",
500 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530501 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530502 ]
503 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530504 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530505 "label": _("Share Management"),
506 "icon": "fa fa-microchip ",
507 "items": [
508 {
509 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500510 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530511 "description": _("List of available Shareholders with folio numbers")
512 },
513 {
514 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500515 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530516 "description": _("List of all share transactions"),
517 },
518 {
519 "type": "report",
520 "name": "Share Ledger",
521 "doctype": "Share Transfer",
522 "is_query_report": True
523 },
524 {
525 "type": "report",
526 "name": "Share Balance",
527 "doctype": "Share Transfer",
528 "is_query_report": True
529 }
530 ]
531 },
532 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530533 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530534 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530535 "items": [
536 {
537 "type": "help",
538 "label": _("Chart of Accounts"),
539 "youtube_id": "DyR-DST-PyA"
540 },
541 {
542 "type": "help",
543 "label": _("Opening Accounting Balance"),
544 "youtube_id": "kdgM20Q-q68"
545 },
546 {
547 "type": "help",
548 "label": _("Setting up Taxes"),
549 "youtube_id": "nQ1zZdPgdaQ"
550 }
551 ]
552 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530553 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530554
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500555 gst = {
556 "label": _("Goods and Services Tax (GST India)"),
557 "items": [
558 {
559 "type": "doctype",
560 "name": "GST Settings",
561 },
562 {
563 "type": "doctype",
564 "name": "GST HSN Code",
565 },
566 {
567 "type": "report",
568 "name": "GSTR-1",
569 "is_query_report": True
570 },
571 {
572 "type": "report",
573 "name": "GSTR-2",
574 "is_query_report": True
575 },
576 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530577 "type": "doctype",
578 "name": "GSTR 3B Report",
579 },
580 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500581 "type": "report",
582 "name": "GST Sales Register",
583 "is_query_report": True
584 },
585 {
586 "type": "report",
587 "name": "GST Purchase Register",
588 "is_query_report": True
589 },
590 {
591 "type": "report",
592 "name": "GST Itemised Sales Register",
593 "is_query_report": True
594 },
595 {
596 "type": "report",
597 "name": "GST Itemised Purchase Register",
598 "is_query_report": True
599 },
600 ]
601 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530602
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530603
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500604 countries = frappe.get_all("Company", fields="country")
605 countries = [country["country"] for country in countries]
606 if "India" in countries:
607 config.insert(7, gst)
608 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500609 return config