blob: 9a9ee7e963ec278fe5d59cb94fa3bb1a175780bf [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 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +053043 ]
44 },
45 {
46 "label": _("Billing"),
47 "items": [
48 {
49 "type": "doctype",
50 "name": "Sales Invoice",
51 "description": _("Bills raised to Customers."),
52 "onboard": 1,
53 },
54 {
55 "type": "doctype",
56 "name": "Purchase Invoice",
57 "description": _("Bills raised by Suppliers."),
58 "onboard": 1
59 },
60 {
61 "type": "doctype",
62 "name": "Payment Request",
63 "description": _("Payment Request"),
64 },
65 {
66 "type": "doctype",
Prasad R198c7ae2019-04-19 12:17:19 +053067 "name": "Payment Term",
68 "description": _("Payment Terms based on conditions")
Nabin Hait28a7aec2019-04-22 15:35:13 +053069 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +053070
71 # Reports
72 {
73 "type": "report",
74 "name": "Ordered Items To Be Billed",
75 "is_query_report": True,
76 "reference_doctype": "Sales Invoice"
77 },
78 {
79 "type": "report",
80 "name": "Delivered Items To Be Billed",
81 "is_query_report": True,
82 "reference_doctype": "Sales Invoice"
83 },
84 {
85 "type": "report",
86 "name": "Purchase Order Items To Be Billed",
87 "is_query_report": True,
88 "reference_doctype": "Purchase Invoice"
89 },
90 {
91 "type": "report",
92 "name": "Received Items To Be Billed",
93 "is_query_report": True,
94 "reference_doctype": "Purchase Invoice"
95 },
96 ]
97
98 },
99 {
Prateeksha Singh9d4a1832019-02-11 15:14:50 +0530100 "label": _("Settings"),
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530101 "icon": "fa fa-cog",
102 "items": [
103 {
104 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530105 "name": "Accounts Settings",
106 "description": _("Default settings for accounting transactions.")
107 },
108 {
109 "type": "doctype",
110 "name": "Fiscal Year",
111 "description": _("Financial / accounting year.")
112 },
113 {
114 "type": "doctype",
115 "name": "Currency",
116 "description": _("Enable / disable currencies.")
117 },
118 {
119 "type": "doctype",
120 "name": "Currency Exchange",
121 "description": _("Currency exchange rate master.")
122 },
123 {
124 "type": "doctype",
Prasad R198c7ae2019-04-19 12:17:19 +0530125 "name": "Exchange Rate Revaluation",
126 "description": _("Exchange Rate Revaluation master.")
127 },
128 {
129 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530130 "name": "Payment Gateway Account",
131 "description": _("Setup Gateway accounts.")
132 },
133 {
134 "type": "doctype",
135 "name": "Terms and Conditions",
136 "label": _("Terms and Conditions Template"),
137 "description": _("Template of terms or contract.")
138 },
139 {
140 "type": "doctype",
141 "name": "Mode of Payment",
142 "description": _("e.g. Bank, Cash, Credit Card")
143 },
144 {
145 "type": "doctype",
146 "name": "Auto Repeat",
147 "label": _("Auto Repeat"),
148 "description": _("To make recurring documents")
149 },
150 {
151 "type": "doctype",
152 "name": "C-Form",
153 "description": _("C-Form records"),
154 "country": "India"
Prateeksha Singh34234072019-02-07 09:18:24 +0530155 },
156 {
157 "type": "doctype",
158 "name": "Cheque Print Template",
159 "description": _("Setup cheque dimensions for printing")
160 },
deepeshgarg007705c03c2019-05-17 10:23:00 +0530161 {
162 "type": "doctype",
163 "name": "Accounting Dimension",
164 "description": _("Setup custom dimensions for accounting")
165 },
Faris Ansari2ab8d3e2019-06-26 13:32:41 +0530166 {
167 "type": "doctype",
168 "name": "Opening Invoice Creation Tool",
169 "description": _("Create Opening Sales and Purchase Invoices")
170 },
171 ]
172 },
173 {
174 "label": _("Accounting Entries"),
175 "items": [
176 {
177 "type": "doctype",
178 "name": "Payment Entry",
179 "description": _("Bank/Cash transactions against party or for internal transfer")
180 },
181 {
182 "type": "doctype",
183 "name": "Journal Entry",
184 "description": _("Accounting journal entries.")
185 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530186 ]
187 },
188 {
189 "label": _("Financial Statements"),
190 "items": [
191 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530192 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500193 "name": "General Ledger",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530194 "doctype": "GL Entry",
195 "is_query_report": True,
196 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530197 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530198 "type": "report",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500199 "name": "Accounts Receivable",
200 "doctype": "Sales Invoice",
201 "is_query_report": True
202 },
203 {
204 "type": "report",
205 "name": "Accounts Payable",
206 "doctype": "Purchase Invoice",
207 "is_query_report": True
208 },
209 {
210 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530211 "name": "Trial Balance",
212 "doctype": "GL Entry",
213 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530214 },
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530215 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530216 "type": "report",
217 "name": "Balance Sheet",
218 "doctype": "GL Entry",
219 "is_query_report": True
ankitjavalkarworkb0cffac2014-07-22 15:02:59 +0530220 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530221 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530222 "type": "report",
223 "name": "Cash Flow",
224 "doctype": "GL Entry",
225 "is_query_report": True
Anand Doshi08ef4672014-05-08 11:43:18 +0530226 },
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530227 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530228 "type": "report",
229 "name": "Profit and Loss Statement",
230 "doctype": "GL Entry",
231 "is_query_report": True
232 },
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530233 {
234 "type": "report",
235 "name": "Consolidated Financial Statement",
236 "doctype": "GL Entry",
237 "is_query_report": True
238 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530239 ]
240 },
241 {
242 "label": _("Banking and Payments"),
243 "items": [
244 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530245 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530246 "label": _("Bank"),
247 "name": "Bank",
248 },
249 {
250 "type": "doctype",
251 "label": _("Bank Account"),
252 "name": "Bank Account",
253 },
254 {
255 "type": "doctype",
Nabin Hait36bb3f52019-04-18 14:47:44 +0530256 "label": _("Invoice Discounting"),
257 "name": "Invoice Discounting",
258 },
259 {
260 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530261 "label": _("Bank Statement Transaction Entry List"),
262 "name": "Bank Statement Transaction Entry",
263 "route": "#List/Bank Statement Transaction Entry",
264 },
265 {
266 "type": "doctype",
267 "label": _("Bank Statement Transaction Entry Report"),
268 "name": "Bank Statement Transaction Entry",
269 "route": "#Report/Bank Statement Transaction Entry",
270 },
271 {
272 "type": "doctype",
273 "label": _("Bank Statement Settings"),
274 "name": "Bank Statement Settings",
275 },
276
277 {
278 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530279 "label": _("Update Bank Transaction Dates"),
280 "name": "Bank Reconciliation",
281 "description": _("Update bank payment dates with journals.")
282 },
283 {
284 "type": "doctype",
285 "label": _("Match Payments with Invoices"),
286 "name": "Payment Reconciliation",
287 "description": _("Match non-linked Invoices and Payments.")
288 },
289 {
290 "type": "report",
291 "name": "Bank Reconciliation Statement",
292 "is_query_report": True,
293 "doctype": "Journal Entry"
294 },
295 {
296 "type": "report",
297 "name": "Bank Clearance Summary",
298 "is_query_report": True,
299 "doctype": "Journal Entry"
300 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530301 {
302 "type": "doctype",
303 "name": "Bank Guarantee",
304 "doctype": "Bank Guarantee"
305 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530306 ]
307 },
308 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530309 "label": _("Cost Center and Budgeting"),
310 "items": [
311 {
312 "type": "doctype",
313 "name": "Cost Center",
314 "icon": "fa fa-sitemap",
315 "label": _("Chart of Cost Centers"),
316 "route": "#Tree/Cost Center",
317 "description": _("Tree of financial Cost Centers."),
318 },
319 {
320 "type": "doctype",
321 "name": "Budget",
322 "description": _("Define budget for a financial year.")
323 },
324 {
325 "type": "report",
326 "name": "Budget Variance Report",
327 "is_query_report": True,
328 "doctype": "Cost Center"
329 },
330 {
331 "type": "doctype",
332 "name": "Monthly Distribution",
333 "description": _("Seasonality for setting budgets, targets etc.")
334 },
335 {
336 "type": "doctype",
337 "name": "Period Closing Voucher",
338 "description": _("Close Balance Sheet and book Profit or Loss.")
339 },
340 ]
341 },
342 {
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530343 "label": _("Taxes"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530344 "items": [
345 {
346 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500347 "name": "Tax Category",
348 "description": _("Tax Category for overriding tax rates.")
349 },
350 {
351 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530352 "name": "Sales Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530353 "description": _("Tax template for selling transactions.")
354 },
355 {
356 "type": "doctype",
Rushabh Mehtabcdea3e2015-05-06 18:45:47 +0530357 "name": "Purchase Taxes and Charges Template",
Anand Doshi08ef4672014-05-08 11:43:18 +0530358 "description": _("Tax template for buying transactions.")
359 },
360 {
361 "type": "doctype",
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500362 "name": "Item Tax Template",
363 "description": _("Tax template for item tax rates.")
364 },
365 {
366 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530367 "name": "Tax Rule",
368 "description": _("Tax Rule for transactions.")
369 },
370 {
Zarrar2cadb1e2018-08-06 14:46:16 +0530371 "type": "doctype",
372 "name": "Tax Withholding Category",
373 "description": _("Tax Withholding rates to be applied on transactions.")
374 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530375 ]
376 },
377 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530378 "label": _("Subscription Management"),
379 "icon": "fa fa-microchip ",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530380 "items": [
381 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530382 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530383 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530384 },
385 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530386 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530387 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530388 },
389 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500390 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530391 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530392 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530393 {
394 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530395 "name": "Subscription Settings"
396 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530397 ]
398 },
399 {
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530400 "label": _("Key Reports"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530401 "items": [
402 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530403 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530404 "name": "Gross Profit",
405 "doctype": "Sales Invoice",
406 "is_query_report": True
407 },
408 {
409 "type": "report",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530410 "name": "Sales Register",
411 "doctype": "Sales Invoice",
412 "is_query_report": True
413 },
414 {
415 "type": "report",
416 "name": "Purchase Register",
417 "doctype": "Purchase Invoice",
418 "is_query_report": True
419 },
420 {
421 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530422 "name": "Purchase Invoice Trends",
Anand Doshi08ef4672014-05-08 11:43:18 +0530423 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530424 "doctype": "Purchase Invoice"
425 },
426 {
427 "type": "report",
428 "name": "Sales Invoice Trends",
429 "is_query_report": True,
430 "doctype": "Sales Invoice"
431 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500432 {
433 "type": "report",
434 "name": "Item-wise Sales Register",
435 "is_query_report": True,
436 "doctype": "Sales Invoice"
437 },
438 {
439 "type": "report",
440 "name": "Item-wise Purchase Register",
441 "is_query_report": True,
442 "doctype": "Purchase Invoice"
443 },
444 {
445 "type": "report",
446 "name": "Profitability Analysis",
447 "doctype": "GL Entry",
448 "is_query_report": True,
449 },
450 {
451 "type": "report",
452 "name": "Customer Ledger Summary",
453 "doctype": "Sales Invoice",
454 "is_query_report": True,
455 },
456 {
457 "type": "report",
458 "name": "Supplier Ledger Summary",
459 "doctype": "Sales Invoice",
460 "is_query_report": True,
461 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530462 ]
463 },
464 {
465 "label": _("Other Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530466 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530467 "items": [
468 {
469 "type": "report",
470 "name": "Trial Balance for Party",
471 "doctype": "GL Entry",
472 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530473 },
474 {
475 "type": "report",
476 "name": "Payment Period Based On Invoice Date",
477 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530478 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530479 },
480 {
481 "type": "report",
482 "name": "Sales Partners Commission",
483 "is_query_report": True,
484 "doctype": "Sales Invoice"
485 },
486 {
487 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530488 "name": "Accounts Receivable Summary",
489 "doctype": "Sales Invoice",
490 "is_query_report": True
491 },
492 {
493 "type": "report",
ankitjavalkarworke6e65b02014-11-04 14:36:50 +0530494 "name": "Accounts Payable Summary",
495 "doctype": "Purchase Invoice",
496 "is_query_report": True
497 },
498 {
499 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530500 "is_query_report": True,
501 "name": "Customer Credit Balance",
502 "doctype": "Customer"
503 },
pawane61a2752017-11-02 17:53:24 +0530504 {
505 "type": "report",
506 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530507 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530508 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530509 },
510 {
511 "type": "report",
512 "is_query_report": True,
513 "name": "Address And Contacts",
514 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530515 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530516 ]
517 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530518 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530519 "label": _("Share Management"),
520 "icon": "fa fa-microchip ",
521 "items": [
522 {
523 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500524 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530525 "description": _("List of available Shareholders with folio numbers")
526 },
527 {
528 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500529 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530530 "description": _("List of all share transactions"),
531 },
532 {
533 "type": "report",
534 "name": "Share Ledger",
535 "doctype": "Share Transfer",
536 "is_query_report": True
537 },
538 {
539 "type": "report",
540 "name": "Share Balance",
541 "doctype": "Share Transfer",
542 "is_query_report": True
543 }
544 ]
545 },
546 {
Rushabh Mehta67712402015-05-25 18:30:53 +0530547 "label": _("Help"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530548 "icon": "fa fa-facetime-video",
Rushabh Mehta67712402015-05-25 18:30:53 +0530549 "items": [
550 {
551 "type": "help",
552 "label": _("Chart of Accounts"),
553 "youtube_id": "DyR-DST-PyA"
554 },
555 {
556 "type": "help",
557 "label": _("Opening Accounting Balance"),
558 "youtube_id": "kdgM20Q-q68"
559 },
560 {
561 "type": "help",
562 "label": _("Setting up Taxes"),
563 "youtube_id": "nQ1zZdPgdaQ"
564 }
565 ]
566 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530567 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530568
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500569 gst = {
570 "label": _("Goods and Services Tax (GST India)"),
571 "items": [
572 {
573 "type": "doctype",
574 "name": "GST Settings",
575 },
576 {
577 "type": "doctype",
578 "name": "GST HSN Code",
579 },
580 {
581 "type": "report",
582 "name": "GSTR-1",
583 "is_query_report": True
584 },
585 {
586 "type": "report",
587 "name": "GSTR-2",
588 "is_query_report": True
589 },
590 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530591 "type": "doctype",
592 "name": "GSTR 3B Report",
593 },
594 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500595 "type": "report",
596 "name": "GST Sales Register",
597 "is_query_report": True
598 },
599 {
600 "type": "report",
601 "name": "GST Purchase Register",
602 "is_query_report": True
603 },
604 {
605 "type": "report",
606 "name": "GST Itemised Sales Register",
607 "is_query_report": True
608 },
609 {
610 "type": "report",
611 "name": "GST Itemised Purchase Register",
612 "is_query_report": True
613 },
614 ]
615 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530616
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530617
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500618 countries = frappe.get_all("Company", fields="country")
619 countries = [country["country"] for country in countries]
620 if "India" in countries:
621 config.insert(7, gst)
622 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500623 return config