blob: 0ab1f52e29799a24362a3c5dc2a5e4e35a9ce3ae [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 },
deepeshgarg007705c03c2019-05-17 10:23:00 +0530177 {
178 "type": "doctype",
179 "name": "Accounting Dimension",
180 "description": _("Setup custom dimensions for accounting")
181 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530182 ]
183 },
184 {
185 "label": _("Financial Statements"),
186 "items": [
187 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530188 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500189 "name": "General Ledger",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530190 "doctype": "GL Entry",
191 "is_query_report": True,
192 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530193 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530194 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500195 "name": "Accounts Receivable",
196 "doctype": "Sales Invoice",
197 "is_query_report": True
198 },
199 {
200 "type": "report",
201 "name": "Accounts Payable",
202 "doctype": "Purchase Invoice",
203 "is_query_report": True
204 },
205 {
206 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530207 "name": "Trial Balance",
208 "doctype": "GL Entry",
209 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530210 },
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530211 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530212 "type": "report",
213 "name": "Balance Sheet",
214 "doctype": "GL Entry",
215 "is_query_report": True
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530216 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530217 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530218 "type": "report",
219 "name": "Cash Flow",
220 "doctype": "GL Entry",
221 "is_query_report": True
Anand Doshi08ef4672014-05-08 11:43:18 +0530222 },
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530223 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530224 "type": "report",
225 "name": "Profit and Loss Statement",
226 "doctype": "GL Entry",
227 "is_query_report": True
228 },
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530229 {
230 "type": "report",
231 "name": "Consolidated Financial Statement",
232 "doctype": "GL Entry",
233 "is_query_report": True
234 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530235 ]
236 },
237 {
238 "label": _("Banking and Payments"),
239 "items": [
240 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530241 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530242 "label": _("Bank"),
243 "name": "Bank",
244 },
245 {
246 "type": "doctype",
247 "label": _("Bank Account"),
248 "name": "Bank Account",
249 },
250 {
251 "type": "doctype",
Nabin Hait36bb3f52019-04-18 14:47:44 +0530252 "label": _("Invoice Discounting"),
253 "name": "Invoice Discounting",
254 },
255 {
256 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530257 "label": _("Bank Statement Transaction Entry List"),
258 "name": "Bank Statement Transaction Entry",
259 "route": "#List/Bank Statement Transaction Entry",
260 },
261 {
262 "type": "doctype",
263 "label": _("Bank Statement Transaction Entry Report"),
264 "name": "Bank Statement Transaction Entry",
265 "route": "#Report/Bank Statement Transaction Entry",
266 },
267 {
268 "type": "doctype",
269 "label": _("Bank Statement Settings"),
270 "name": "Bank Statement Settings",
271 },
272
273 {
274 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530275 "label": _("Update Bank Transaction Dates"),
276 "name": "Bank Reconciliation",
277 "description": _("Update bank payment dates with journals.")
278 },
279 {
280 "type": "doctype",
281 "label": _("Match Payments with Invoices"),
282 "name": "Payment Reconciliation",
283 "description": _("Match non-linked Invoices and Payments.")
284 },
285 {
286 "type": "report",
287 "name": "Bank Reconciliation Statement",
288 "is_query_report": True,
289 "doctype": "Journal Entry"
290 },
291 {
292 "type": "report",
293 "name": "Bank Clearance Summary",
294 "is_query_report": True,
295 "doctype": "Journal Entry"
296 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530297 {
298 "type": "doctype",
299 "name": "Bank Guarantee",
300 "doctype": "Bank Guarantee"
301 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530302 ]
303 },
304 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530305 "label": _("Cost Center and Budgeting"),
306 "items": [
307 {
308 "type": "doctype",
309 "name": "Cost Center",
310 "icon": "fa fa-sitemap",
311 "label": _("Chart of Cost Centers"),
312 "route": "#Tree/Cost Center",
313 "description": _("Tree of financial Cost Centers."),
314 },
315 {
316 "type": "doctype",
317 "name": "Budget",
318 "description": _("Define budget for a financial year.")
319 },
320 {
321 "type": "report",
322 "name": "Budget Variance Report",
323 "is_query_report": True,
324 "doctype": "Cost Center"
325 },
326 {
327 "type": "doctype",
328 "name": "Monthly Distribution",
329 "description": _("Seasonality for setting budgets, targets etc.")
330 },
331 {
332 "type": "doctype",
333 "name": "Period Closing Voucher",
334 "description": _("Close Balance Sheet and book Profit or Loss.")
335 },
336 ]
337 },
338 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530339 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530340 "items": [
341 {
342 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500343 "name": "Tax Category",
344 "description": _("Tax Category for overriding tax rates.")
345 },
346 {
347 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530348 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530349 "description": _("Tax template for selling transactions.")
350 },
351 {
352 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530353 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530354 "description": _("Tax template for buying transactions.")
355 },
356 {
357 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500358 "name": "Item Tax Template",
359 "description": _("Tax template for item tax rates.")
360 },
361 {
362 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530363 "name": "Tax Rule",
364 "description": _("Tax Rule for transactions.")
365 },
366 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530367 "type": "doctype",
368 "name": "Tax Withholding Category",
369 "description": _("Tax Withholding rates to be applied on transactions.")
370 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530371 ]
372 },
373 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530374 "label": _("Subscription Management"),
375 "icon": "fa fa-microchip ",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530376 "items": [
377 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530378 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530379 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530380 },
381 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530382 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530383 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530384 },
385 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500386 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530387 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530388 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530389 {
390 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530391 "name": "Subscription Settings"
392 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530393 ]
394 },
395 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530396 "label": _("Key Reports"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530397 "items": [
398 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530399 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530400 "name": "Gross Profit",
401 "doctype": "Sales Invoice",
402 "is_query_report": True
403 },
404 {
405 "type": "report",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530406 "name": "Sales Register",
407 "doctype": "Sales Invoice",
408 "is_query_report": True
409 },
410 {
411 "type": "report",
412 "name": "Purchase Register",
413 "doctype": "Purchase Invoice",
414 "is_query_report": True
415 },
416 {
417 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530418 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530419 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530420 "doctype": "Purchase Invoice"
421 },
422 {
423 "type": "report",
424 "name": "Sales Invoice Trends",
425 "is_query_report": True,
426 "doctype": "Sales Invoice"
427 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500428 {
429 "type": "report",
430 "name": "Item-wise Sales Register",
431 "is_query_report": True,
432 "doctype": "Sales Invoice"
433 },
434 {
435 "type": "report",
436 "name": "Item-wise Purchase Register",
437 "is_query_report": True,
438 "doctype": "Purchase Invoice"
439 },
440 {
441 "type": "report",
442 "name": "Profitability Analysis",
443 "doctype": "GL Entry",
444 "is_query_report": True,
445 },
446 {
447 "type": "report",
448 "name": "Customer Ledger Summary",
449 "doctype": "Sales Invoice",
450 "is_query_report": True,
451 },
452 {
453 "type": "report",
454 "name": "Supplier Ledger Summary",
455 "doctype": "Sales Invoice",
456 "is_query_report": True,
457 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530458 ]
459 },
460 {
461 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530462 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530463 "items": [
464 {
465 "type": "report",
466 "name": "Trial Balance for Party",
467 "doctype": "GL Entry",
468 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530469 },
470 {
471 "type": "report",
472 "name": "Payment Period Based On Invoice Date",
473 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530474 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530475 },
476 {
477 "type": "report",
478 "name": "Sales Partners Commission",
479 "is_query_report": True,
480 "doctype": "Sales Invoice"
481 },
482 {
483 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530484 "name": "Accounts Receivable Summary",
485 "doctype": "Sales Invoice",
486 "is_query_report": True
487 },
488 {
489 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530490 "name": "Accounts Payable Summary",
491 "doctype": "Purchase Invoice",
492 "is_query_report": True
493 },
494 {
495 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530496 "is_query_report": True,
497 "name": "Customer Credit Balance",
498 "doctype": "Customer"
499 },
pawane61a2752017-11-02 17:53:24 +0530500 {
501 "type": "report",
502 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530503 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530504 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530505 },
506 {
507 "type": "report",
508 "is_query_report": True,
509 "name": "Address And Contacts",
510 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530511 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530512 ]
513 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530514 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530515 "label": _("Share Management"),
516 "icon": "fa fa-microchip ",
517 "items": [
518 {
519 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500520 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530521 "description": _("List of available Shareholders with folio numbers")
522 },
523 {
524 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500525 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530526 "description": _("List of all share transactions"),
527 },
528 {
529 "type": "report",
530 "name": "Share Ledger",
531 "doctype": "Share Transfer",
532 "is_query_report": True
533 },
534 {
535 "type": "report",
536 "name": "Share Balance",
537 "doctype": "Share Transfer",
538 "is_query_report": True
539 }
540 ]
541 },
542 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530543 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530544 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530545 "items": [
546 {
547 "type": "help",
548 "label": _("Chart of Accounts"),
549 "youtube_id": "DyR-DST-PyA"
550 },
551 {
552 "type": "help",
553 "label": _("Opening Accounting Balance"),
554 "youtube_id": "kdgM20Q-q68"
555 },
556 {
557 "type": "help",
558 "label": _("Setting up Taxes"),
559 "youtube_id": "nQ1zZdPgdaQ"
560 }
561 ]
562 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530563 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530564
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500565 gst = {
566 "label": _("Goods and Services Tax (GST India)"),
567 "items": [
568 {
569 "type": "doctype",
570 "name": "GST Settings",
571 },
572 {
573 "type": "doctype",
574 "name": "GST HSN Code",
575 },
576 {
577 "type": "report",
578 "name": "GSTR-1",
579 "is_query_report": True
580 },
581 {
582 "type": "report",
583 "name": "GSTR-2",
584 "is_query_report": True
585 },
586 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530587 "type": "doctype",
588 "name": "GSTR 3B Report",
589 },
590 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500591 "type": "report",
592 "name": "GST Sales Register",
593 "is_query_report": True
594 },
595 {
596 "type": "report",
597 "name": "GST Purchase Register",
598 "is_query_report": True
599 },
600 {
601 "type": "report",
602 "name": "GST Itemised Sales Register",
603 "is_query_report": True
604 },
605 {
606 "type": "report",
607 "name": "GST Itemised Purchase Register",
608 "is_query_report": True
609 },
610 ]
611 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530612
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530613
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500614 countries = frappe.get_all("Company", fields="country")
615 countries = [country["country"] for country in countries]
616 if "India" in countries:
617 config.insert(7, gst)
618 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500619 return config