blob: 6664c4d4afd29dd6dbd15377fd813cb58c1f8785 [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",
Nabin Hait36bb3f52019-04-18 14:47:44 +0530247 "label": _("Invoice Discounting"),
248 "name": "Invoice Discounting",
249 },
250 {
251 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530252 "label": _("Bank Statement Transaction Entry List"),
253 "name": "Bank Statement Transaction Entry",
254 "route": "#List/Bank Statement Transaction Entry",
255 },
256 {
257 "type": "doctype",
258 "label": _("Bank Statement Transaction Entry Report"),
259 "name": "Bank Statement Transaction Entry",
260 "route": "#Report/Bank Statement Transaction Entry",
261 },
262 {
263 "type": "doctype",
264 "label": _("Bank Statement Settings"),
265 "name": "Bank Statement Settings",
266 },
267
268 {
269 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530270 "label": _("Update Bank Transaction Dates"),
271 "name": "Bank Reconciliation",
272 "description": _("Update bank payment dates with journals.")
273 },
274 {
275 "type": "doctype",
276 "label": _("Match Payments with Invoices"),
277 "name": "Payment Reconciliation",
278 "description": _("Match non-linked Invoices and Payments.")
279 },
280 {
281 "type": "report",
282 "name": "Bank Reconciliation Statement",
283 "is_query_report": True,
284 "doctype": "Journal Entry"
285 },
286 {
287 "type": "report",
288 "name": "Bank Clearance Summary",
289 "is_query_report": True,
290 "doctype": "Journal Entry"
291 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530292 {
293 "type": "doctype",
294 "name": "Bank Guarantee",
295 "doctype": "Bank Guarantee"
296 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530297 ]
298 },
299 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530300 "label": _("Cost Center and Budgeting"),
301 "items": [
302 {
303 "type": "doctype",
304 "name": "Cost Center",
305 "icon": "fa fa-sitemap",
306 "label": _("Chart of Cost Centers"),
307 "route": "#Tree/Cost Center",
308 "description": _("Tree of financial Cost Centers."),
309 },
310 {
311 "type": "doctype",
312 "name": "Budget",
313 "description": _("Define budget for a financial year.")
314 },
315 {
316 "type": "report",
317 "name": "Budget Variance Report",
318 "is_query_report": True,
319 "doctype": "Cost Center"
320 },
321 {
322 "type": "doctype",
323 "name": "Monthly Distribution",
324 "description": _("Seasonality for setting budgets, targets etc.")
325 },
326 {
327 "type": "doctype",
328 "name": "Period Closing Voucher",
329 "description": _("Close Balance Sheet and book Profit or Loss.")
330 },
331 ]
332 },
333 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530334 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530335 "items": [
336 {
337 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500338 "name": "Tax Category",
339 "description": _("Tax Category for overriding tax rates.")
340 },
341 {
342 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530343 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530344 "description": _("Tax template for selling transactions.")
345 },
346 {
347 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530348 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530349 "description": _("Tax template for buying transactions.")
350 },
351 {
352 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500353 "name": "Item Tax Template",
354 "description": _("Tax template for item tax rates.")
355 },
356 {
357 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530358 "name": "Tax Rule",
359 "description": _("Tax Rule for transactions.")
360 },
361 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530362 "type": "doctype",
363 "name": "Tax Withholding Category",
364 "description": _("Tax Withholding rates to be applied on transactions.")
365 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530366 ]
367 },
368 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530369 "label": _("Subscription Management"),
370 "icon": "fa fa-microchip ",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530371 "items": [
372 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530373 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530374 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530375 },
376 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530377 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530378 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530379 },
380 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500381 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530382 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530383 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530384 {
385 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530386 "name": "Subscription Settings"
387 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530388 ]
389 },
390 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530391 "label": _("Key Reports"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530392 "items": [
393 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530394 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530395 "name": "Gross Profit",
396 "doctype": "Sales Invoice",
397 "is_query_report": True
398 },
399 {
400 "type": "report",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530401 "name": "Sales Register",
402 "doctype": "Sales Invoice",
403 "is_query_report": True
404 },
405 {
406 "type": "report",
407 "name": "Purchase Register",
408 "doctype": "Purchase Invoice",
409 "is_query_report": True
410 },
411 {
412 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530413 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530414 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530415 "doctype": "Purchase Invoice"
416 },
417 {
418 "type": "report",
419 "name": "Sales Invoice Trends",
420 "is_query_report": True,
421 "doctype": "Sales Invoice"
422 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500423 {
424 "type": "report",
425 "name": "Item-wise Sales Register",
426 "is_query_report": True,
427 "doctype": "Sales Invoice"
428 },
429 {
430 "type": "report",
431 "name": "Item-wise Purchase Register",
432 "is_query_report": True,
433 "doctype": "Purchase Invoice"
434 },
435 {
436 "type": "report",
437 "name": "Profitability Analysis",
438 "doctype": "GL Entry",
439 "is_query_report": True,
440 },
441 {
442 "type": "report",
443 "name": "Customer Ledger Summary",
444 "doctype": "Sales Invoice",
445 "is_query_report": True,
446 },
447 {
448 "type": "report",
449 "name": "Supplier Ledger Summary",
450 "doctype": "Sales Invoice",
451 "is_query_report": True,
452 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530453 ]
454 },
455 {
456 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530457 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530458 "items": [
459 {
460 "type": "report",
461 "name": "Trial Balance for Party",
462 "doctype": "GL Entry",
463 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530464 },
465 {
466 "type": "report",
467 "name": "Payment Period Based On Invoice Date",
468 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530469 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530470 },
471 {
472 "type": "report",
473 "name": "Sales Partners Commission",
474 "is_query_report": True,
475 "doctype": "Sales Invoice"
476 },
477 {
478 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530479 "name": "Accounts Receivable Summary",
480 "doctype": "Sales Invoice",
481 "is_query_report": True
482 },
483 {
484 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530485 "name": "Accounts Payable Summary",
486 "doctype": "Purchase Invoice",
487 "is_query_report": True
488 },
489 {
490 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530491 "is_query_report": True,
492 "name": "Customer Credit Balance",
493 "doctype": "Customer"
494 },
pawane61a2752017-11-02 17:53:24 +0530495 {
496 "type": "report",
497 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530498 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530499 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530500 },
501 {
502 "type": "report",
503 "is_query_report": True,
504 "name": "Address And Contacts",
505 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530506 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530507 ]
508 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530509 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530510 "label": _("Share Management"),
511 "icon": "fa fa-microchip ",
512 "items": [
513 {
514 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500515 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530516 "description": _("List of available Shareholders with folio numbers")
517 },
518 {
519 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500520 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530521 "description": _("List of all share transactions"),
522 },
523 {
524 "type": "report",
525 "name": "Share Ledger",
526 "doctype": "Share Transfer",
527 "is_query_report": True
528 },
529 {
530 "type": "report",
531 "name": "Share Balance",
532 "doctype": "Share Transfer",
533 "is_query_report": True
534 }
535 ]
536 },
537 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530538 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530539 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530540 "items": [
541 {
542 "type": "help",
543 "label": _("Chart of Accounts"),
544 "youtube_id": "DyR-DST-PyA"
545 },
546 {
547 "type": "help",
548 "label": _("Opening Accounting Balance"),
549 "youtube_id": "kdgM20Q-q68"
550 },
551 {
552 "type": "help",
553 "label": _("Setting up Taxes"),
554 "youtube_id": "nQ1zZdPgdaQ"
555 }
556 ]
557 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530558 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530559
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500560 gst = {
561 "label": _("Goods and Services Tax (GST India)"),
562 "items": [
563 {
564 "type": "doctype",
565 "name": "GST Settings",
566 },
567 {
568 "type": "doctype",
569 "name": "GST HSN Code",
570 },
571 {
572 "type": "report",
573 "name": "GSTR-1",
574 "is_query_report": True
575 },
576 {
577 "type": "report",
578 "name": "GSTR-2",
579 "is_query_report": True
580 },
581 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530582 "type": "doctype",
583 "name": "GSTR 3B Report",
584 },
585 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500586 "type": "report",
587 "name": "GST Sales Register",
588 "is_query_report": True
589 },
590 {
591 "type": "report",
592 "name": "GST Purchase Register",
593 "is_query_report": True
594 },
595 {
596 "type": "report",
597 "name": "GST Itemised Sales Register",
598 "is_query_report": True
599 },
600 {
601 "type": "report",
602 "name": "GST Itemised Purchase Register",
603 "is_query_report": True
604 },
605 ]
606 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530607
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530608
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500609 countries = frappe.get_all("Company", fields="country")
610 countries = [country["country"] for country in countries]
611 if "India" in countries:
612 config.insert(7, gst)
613 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500614 return config