blob: 9de5b368db49c339fc3750932198f8543a0c3a5d [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",
237 "label": _("Bank Statement Transaction Entry List"),
238 "name": "Bank Statement Transaction Entry",
239 "route": "#List/Bank Statement Transaction Entry",
240 },
241 {
242 "type": "doctype",
243 "label": _("Bank Statement Transaction Entry Report"),
244 "name": "Bank Statement Transaction Entry",
245 "route": "#Report/Bank Statement Transaction Entry",
246 },
247 {
248 "type": "doctype",
249 "label": _("Bank Statement Settings"),
250 "name": "Bank Statement Settings",
251 },
252
253 {
254 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530255 "label": _("Update Bank Transaction Dates"),
256 "name": "Bank Reconciliation",
257 "description": _("Update bank payment dates with journals.")
258 },
259 {
260 "type": "doctype",
261 "label": _("Match Payments with Invoices"),
262 "name": "Payment Reconciliation",
263 "description": _("Match non-linked Invoices and Payments.")
264 },
265 {
266 "type": "report",
267 "name": "Bank Reconciliation Statement",
268 "is_query_report": True,
269 "doctype": "Journal Entry"
270 },
271 {
272 "type": "report",
273 "name": "Bank Clearance Summary",
274 "is_query_report": True,
275 "doctype": "Journal Entry"
276 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530277 {
278 "type": "doctype",
279 "name": "Bank Guarantee",
280 "doctype": "Bank Guarantee"
281 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530282 ]
283 },
284 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530285 "label": _("Cost Center and Budgeting"),
286 "items": [
287 {
288 "type": "doctype",
289 "name": "Cost Center",
290 "icon": "fa fa-sitemap",
291 "label": _("Chart of Cost Centers"),
292 "route": "#Tree/Cost Center",
293 "description": _("Tree of financial Cost Centers."),
294 },
295 {
296 "type": "doctype",
297 "name": "Budget",
298 "description": _("Define budget for a financial year.")
299 },
300 {
301 "type": "report",
302 "name": "Budget Variance Report",
303 "is_query_report": True,
304 "doctype": "Cost Center"
305 },
306 {
307 "type": "doctype",
308 "name": "Monthly Distribution",
309 "description": _("Seasonality for setting budgets, targets etc.")
310 },
311 {
312 "type": "doctype",
313 "name": "Period Closing Voucher",
314 "description": _("Close Balance Sheet and book Profit or Loss.")
315 },
316 ]
317 },
318 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530319 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530320 "items": [
321 {
322 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500323 "name": "Tax Category",
324 "description": _("Tax Category for overriding tax rates.")
325 },
326 {
327 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530328 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530329 "description": _("Tax template for selling transactions.")
330 },
331 {
332 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530333 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530334 "description": _("Tax template for buying transactions.")
335 },
336 {
337 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500338 "name": "Item Tax Template",
339 "description": _("Tax template for item tax rates.")
340 },
341 {
342 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530343 "name": "Tax Rule",
344 "description": _("Tax Rule for transactions.")
345 },
346 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530347 "type": "doctype",
348 "name": "Tax Withholding Category",
349 "description": _("Tax Withholding rates to be applied on transactions.")
350 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530351 ]
352 },
353 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530354 "label": _("Subscription Management"),
355 "icon": "fa fa-microchip ",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530356 "items": [
357 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530358 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530359 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530360 },
361 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530362 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530363 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530364 },
365 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500366 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530367 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530368 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530369 {
370 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530371 "name": "Subscription Settings"
372 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530373 ]
374 },
375 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530376 "label": _("Key Reports"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530377 "items": [
378 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530379 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530380 "name": "Gross Profit",
381 "doctype": "Sales Invoice",
382 "is_query_report": True
383 },
384 {
385 "type": "report",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530386 "name": "Sales Register",
387 "doctype": "Sales Invoice",
388 "is_query_report": True
389 },
390 {
391 "type": "report",
392 "name": "Purchase Register",
393 "doctype": "Purchase Invoice",
394 "is_query_report": True
395 },
396 {
397 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530398 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530399 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530400 "doctype": "Purchase Invoice"
401 },
402 {
403 "type": "report",
404 "name": "Sales Invoice Trends",
405 "is_query_report": True,
406 "doctype": "Sales Invoice"
407 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500408 {
409 "type": "report",
410 "name": "Item-wise Sales Register",
411 "is_query_report": True,
412 "doctype": "Sales Invoice"
413 },
414 {
415 "type": "report",
416 "name": "Item-wise Purchase Register",
417 "is_query_report": True,
418 "doctype": "Purchase Invoice"
419 },
420 {
421 "type": "report",
422 "name": "Profitability Analysis",
423 "doctype": "GL Entry",
424 "is_query_report": True,
425 },
426 {
427 "type": "report",
428 "name": "Customer Ledger Summary",
429 "doctype": "Sales Invoice",
430 "is_query_report": True,
431 },
432 {
433 "type": "report",
434 "name": "Supplier Ledger Summary",
435 "doctype": "Sales Invoice",
436 "is_query_report": True,
437 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530438 ]
439 },
440 {
441 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530442 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530443 "items": [
444 {
445 "type": "report",
446 "name": "Trial Balance for Party",
447 "doctype": "GL Entry",
448 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530449 },
450 {
451 "type": "report",
452 "name": "Payment Period Based On Invoice Date",
453 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530454 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530455 },
456 {
457 "type": "report",
458 "name": "Sales Partners Commission",
459 "is_query_report": True,
460 "doctype": "Sales Invoice"
461 },
462 {
463 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530464 "name": "Accounts Receivable Summary",
465 "doctype": "Sales Invoice",
466 "is_query_report": True
467 },
468 {
469 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530470 "name": "Accounts Payable Summary",
471 "doctype": "Purchase Invoice",
472 "is_query_report": True
473 },
474 {
475 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530476 "is_query_report": True,
477 "name": "Customer Credit Balance",
478 "doctype": "Customer"
479 },
pawane61a2752017-11-02 17:53:24 +0530480 {
481 "type": "report",
482 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530483 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530484 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530485 },
486 {
487 "type": "report",
488 "is_query_report": True,
489 "name": "Address And Contacts",
490 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530491 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530492 ]
493 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530494 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530495 "label": _("Share Management"),
496 "icon": "fa fa-microchip ",
497 "items": [
498 {
499 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500500 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530501 "description": _("List of available Shareholders with folio numbers")
502 },
503 {
504 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500505 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530506 "description": _("List of all share transactions"),
507 },
508 {
509 "type": "report",
510 "name": "Share Ledger",
511 "doctype": "Share Transfer",
512 "is_query_report": True
513 },
514 {
515 "type": "report",
516 "name": "Share Balance",
517 "doctype": "Share Transfer",
518 "is_query_report": True
519 }
520 ]
521 },
522 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530523 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530524 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530525 "items": [
526 {
527 "type": "help",
528 "label": _("Chart of Accounts"),
529 "youtube_id": "DyR-DST-PyA"
530 },
531 {
532 "type": "help",
533 "label": _("Opening Accounting Balance"),
534 "youtube_id": "kdgM20Q-q68"
535 },
536 {
537 "type": "help",
538 "label": _("Setting up Taxes"),
539 "youtube_id": "nQ1zZdPgdaQ"
540 }
541 ]
542 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530543 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530544
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500545 gst = {
546 "label": _("Goods and Services Tax (GST India)"),
547 "items": [
548 {
549 "type": "doctype",
550 "name": "GST Settings",
551 },
552 {
553 "type": "doctype",
554 "name": "GST HSN Code",
555 },
556 {
557 "type": "report",
558 "name": "GSTR-1",
559 "is_query_report": True
560 },
561 {
562 "type": "report",
563 "name": "GSTR-2",
564 "is_query_report": True
565 },
566 {
567 "type": "report",
568 "name": "GST Sales Register",
569 "is_query_report": True
570 },
571 {
572 "type": "report",
573 "name": "GST Purchase Register",
574 "is_query_report": True
575 },
576 {
577 "type": "report",
578 "name": "GST Itemised Sales Register",
579 "is_query_report": True
580 },
581 {
582 "type": "report",
583 "name": "GST Itemised Purchase Register",
584 "is_query_report": True
585 },
586 ]
587 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530588
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530589
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500590 countries = frappe.get_all("Company", fields="country")
591 countries = [country["country"] for country in countries]
592 if "India" in countries:
593 config.insert(7, gst)
594 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500595 return config