blob: a8b944705b0ca7910eb8feadc32df37bbc525e72 [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 {
111 "label": _("Setup"),
112 "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,
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530177 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530178 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530179 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530180 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500181 "name": "Accounts Receivable",
182 "doctype": "Sales Invoice",
183 "is_query_report": True
184 },
185 {
186 "type": "report",
187 "name": "Accounts Payable",
188 "doctype": "Purchase Invoice",
189 "is_query_report": True
190 },
191 {
192 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530193 "name": "Trial Balance",
194 "doctype": "GL Entry",
195 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530196 },
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530197 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530198 "type": "report",
199 "name": "Balance Sheet",
200 "doctype": "GL Entry",
201 "is_query_report": True
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530202 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530203 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530204 "type": "report",
205 "name": "Cash Flow",
206 "doctype": "GL Entry",
207 "is_query_report": True
Anand Doshi08ef4672014-05-08 11:43:18 +0530208 },
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530209 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530210 "type": "report",
211 "name": "Profit and Loss Statement",
212 "doctype": "GL Entry",
213 "is_query_report": True
214 },
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530215 {
216 "type": "report",
217 "name": "Consolidated Financial Statement",
218 "doctype": "GL Entry",
219 "is_query_report": True
220 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530221 ]
222 },
223 {
224 "label": _("Banking and Payments"),
225 "items": [
226 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530227 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530228 "label": _("Bank"),
229 "name": "Bank",
230 },
231 {
232 "type": "doctype",
233 "label": _("Bank Account"),
234 "name": "Bank Account",
235 },
236 {
237 "type": "doctype",
238 "label": _("Bank Statement Transaction Entry List"),
239 "name": "Bank Statement Transaction Entry",
240 "route": "#List/Bank Statement Transaction Entry",
241 },
242 {
243 "type": "doctype",
244 "label": _("Bank Statement Transaction Entry Report"),
245 "name": "Bank Statement Transaction Entry",
246 "route": "#Report/Bank Statement Transaction Entry",
247 },
248 {
249 "type": "doctype",
250 "label": _("Bank Statement Settings"),
251 "name": "Bank Statement Settings",
252 },
253
254 {
255 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530256 "label": _("Update Bank Transaction Dates"),
257 "name": "Bank Reconciliation",
258 "description": _("Update bank payment dates with journals.")
259 },
260 {
261 "type": "doctype",
262 "label": _("Match Payments with Invoices"),
263 "name": "Payment Reconciliation",
264 "description": _("Match non-linked Invoices and Payments.")
265 },
266 {
267 "type": "report",
268 "name": "Bank Reconciliation Statement",
269 "is_query_report": True,
270 "doctype": "Journal Entry"
271 },
272 {
273 "type": "report",
274 "name": "Bank Clearance Summary",
275 "is_query_report": True,
276 "doctype": "Journal Entry"
277 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530278 {
279 "type": "doctype",
280 "name": "Bank Guarantee",
281 "doctype": "Bank Guarantee"
282 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530283 ]
284 },
285 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530286 "label": _("Cost Center and Budgeting"),
287 "items": [
288 {
289 "type": "doctype",
290 "name": "Cost Center",
291 "icon": "fa fa-sitemap",
292 "label": _("Chart of Cost Centers"),
293 "route": "#Tree/Cost Center",
294 "description": _("Tree of financial Cost Centers."),
295 },
296 {
297 "type": "doctype",
298 "name": "Budget",
299 "description": _("Define budget for a financial year.")
300 },
301 {
302 "type": "report",
303 "name": "Budget Variance Report",
304 "is_query_report": True,
305 "doctype": "Cost Center"
306 },
307 {
308 "type": "doctype",
309 "name": "Monthly Distribution",
310 "description": _("Seasonality for setting budgets, targets etc.")
311 },
312 {
313 "type": "doctype",
314 "name": "Period Closing Voucher",
315 "description": _("Close Balance Sheet and book Profit or Loss.")
316 },
317 ]
318 },
319 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530320 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530321 "items": [
322 {
323 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500324 "name": "Tax Category",
325 "description": _("Tax Category for overriding tax rates.")
326 },
327 {
328 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530329 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530330 "description": _("Tax template for selling transactions.")
331 },
332 {
333 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530334 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530335 "description": _("Tax template for buying transactions.")
336 },
337 {
338 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500339 "name": "Item Tax Template",
340 "description": _("Tax template for item tax rates.")
341 },
342 {
343 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530344 "name": "Tax Rule",
345 "description": _("Tax Rule for transactions.")
346 },
347 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530348 "type": "doctype",
349 "name": "Tax Withholding Category",
350 "description": _("Tax Withholding rates to be applied on transactions.")
351 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530352 ]
353 },
354 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530355 "label": _("Subscription Management"),
356 "icon": "fa fa-microchip ",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530357 "items": [
358 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530359 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530360 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530361 },
362 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530363 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530364 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530365 },
366 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500367 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530368 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530369 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530370 {
371 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530372 "name": "Subscription Settings"
373 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530374 ]
375 },
376 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530377 "label": _("Key Reports"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530378 "items": [
379 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530380 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530381 "name": "Gross Profit",
382 "doctype": "Sales Invoice",
383 "is_query_report": True
384 },
385 {
386 "type": "report",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530387 "name": "Sales Register",
388 "doctype": "Sales Invoice",
389 "is_query_report": True
390 },
391 {
392 "type": "report",
393 "name": "Purchase Register",
394 "doctype": "Purchase Invoice",
395 "is_query_report": True
396 },
397 {
398 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530399 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530400 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530401 "doctype": "Purchase Invoice"
402 },
403 {
404 "type": "report",
405 "name": "Sales Invoice Trends",
406 "is_query_report": True,
407 "doctype": "Sales Invoice"
408 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500409 {
410 "type": "report",
411 "name": "Item-wise Sales Register",
412 "is_query_report": True,
413 "doctype": "Sales Invoice"
414 },
415 {
416 "type": "report",
417 "name": "Item-wise Purchase Register",
418 "is_query_report": True,
419 "doctype": "Purchase Invoice"
420 },
421 {
422 "type": "report",
423 "name": "Profitability Analysis",
424 "doctype": "GL Entry",
425 "is_query_report": True,
426 },
427 {
428 "type": "report",
429 "name": "Customer Ledger Summary",
430 "doctype": "Sales Invoice",
431 "is_query_report": True,
432 },
433 {
434 "type": "report",
435 "name": "Supplier Ledger Summary",
436 "doctype": "Sales Invoice",
437 "is_query_report": True,
438 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530439 ]
440 },
441 {
442 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530443 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530444 "items": [
445 {
446 "type": "report",
447 "name": "Trial Balance for Party",
448 "doctype": "GL Entry",
449 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530450 },
451 {
452 "type": "report",
453 "name": "Payment Period Based On Invoice Date",
454 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530455 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530456 },
457 {
458 "type": "report",
459 "name": "Sales Partners Commission",
460 "is_query_report": True,
461 "doctype": "Sales Invoice"
462 },
463 {
464 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530465 "name": "Accounts Receivable Summary",
466 "doctype": "Sales Invoice",
467 "is_query_report": True
468 },
469 {
470 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530471 "name": "Accounts Payable Summary",
472 "doctype": "Purchase Invoice",
473 "is_query_report": True
474 },
475 {
476 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530477 "is_query_report": True,
478 "name": "Customer Credit Balance",
479 "doctype": "Customer"
480 },
pawane61a2752017-11-02 17:53:24 +0530481 {
482 "type": "report",
483 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530484 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530485 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530486 },
487 {
488 "type": "report",
489 "is_query_report": True,
490 "name": "Address And Contacts",
491 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530492 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530493 ]
494 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530495 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530496 "label": _("Share Management"),
497 "icon": "fa fa-microchip ",
498 "items": [
499 {
500 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500501 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530502 "description": _("List of available Shareholders with folio numbers")
503 },
504 {
505 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500506 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530507 "description": _("List of all share transactions"),
508 },
509 {
510 "type": "report",
511 "name": "Share Ledger",
512 "doctype": "Share Transfer",
513 "is_query_report": True
514 },
515 {
516 "type": "report",
517 "name": "Share Balance",
518 "doctype": "Share Transfer",
519 "is_query_report": True
520 }
521 ]
522 },
523 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530524 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530525 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530526 "items": [
527 {
528 "type": "help",
529 "label": _("Chart of Accounts"),
530 "youtube_id": "DyR-DST-PyA"
531 },
532 {
533 "type": "help",
534 "label": _("Opening Accounting Balance"),
535 "youtube_id": "kdgM20Q-q68"
536 },
537 {
538 "type": "help",
539 "label": _("Setting up Taxes"),
540 "youtube_id": "nQ1zZdPgdaQ"
541 }
542 ]
543 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530544 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530545
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500546 gst = {
547 "label": _("Goods and Services Tax (GST India)"),
548 "items": [
549 {
550 "type": "doctype",
551 "name": "GST Settings",
552 },
553 {
554 "type": "doctype",
555 "name": "GST HSN Code",
556 },
557 {
558 "type": "report",
559 "name": "GSTR-1",
560 "is_query_report": True
561 },
562 {
563 "type": "report",
564 "name": "GSTR-2",
565 "is_query_report": True
566 },
567 {
568 "type": "report",
569 "name": "GST Sales Register",
570 "is_query_report": True
571 },
572 {
573 "type": "report",
574 "name": "GST Purchase Register",
575 "is_query_report": True
576 },
577 {
578 "type": "report",
579 "name": "GST Itemised Sales Register",
580 "is_query_report": True
581 },
582 {
583 "type": "report",
584 "name": "GST Itemised Purchase Register",
585 "is_query_report": True
586 },
587 ]
588 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530589
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530590
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500591 countries = frappe.get_all("Company", fields="country")
592 countries = [country["country"] for country in countries]
593 if "India" in countries:
594 config.insert(7, gst)
595 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500596 return config