blob: 08711fc09ead254139579df56d7228d4e35ebd40 [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 {
Michelle Alva6abb63b2019-07-15 14:00:00 +05309 "label": _("Accounts Receivable"),
Anand Doshi08ef4672014-05-08 11:43:18 +053010 "items": [
11 {
12 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +053013 "name": "Sales Invoice",
14 "description": _("Bills raised to Customers."),
Prateeksha Singh063af4e2019-02-06 17:02:41 +053015 "onboard": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053016 },
17 {
18 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053019 "name": "Customer",
20 "description": _("Customer database."),
21 "onboard": 1,
Anand Doshi08ef4672014-05-08 11:43:18 +053022 },
23 {
24 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +053025 "name": "Payment Entry",
26 "description": _("Bank/Cash transactions against party or for internal transfer")
27 },
28 {
29 "type": "doctype",
30 "name": "Payment Request",
31 "description": _("Payment Request"),
32 },
33 {
34 "type": "report",
35 "name": "Accounts Receivable",
36 "doctype": "Sales Invoice",
37 "is_query_report": True
38 },
39 {
40 "type": "report",
41 "name": "Accounts Receivable Summary",
42 "doctype": "Sales Invoice",
43 "is_query_report": True
44 },
45 {
46 "type": "report",
47 "name": "Sales Register",
48 "doctype": "Sales Invoice",
49 "is_query_report": True
50 },
51 {
52 "type": "report",
53 "name": "Item-wise Sales Register",
54 "is_query_report": True,
55 "doctype": "Sales Invoice"
56 },
57 {
58 "type": "report",
59 "name": "Ordered Items To Be Billed",
60 "is_query_report": True,
61 "doctype": "Sales Invoice"
62 },
63 {
64 "type": "report",
65 "name": "Delivered Items To Be Billed",
66 "is_query_report": True,
67 "doctype": "Sales Invoice"
68 },
69 ]
70 },
71 {
72 "label": _("Accounts Payable"),
73 "items": [
74 {
75 "type": "doctype",
76 "name": "Purchase Invoice",
77 "description": _("Bills raised by Suppliers."),
78 "onboard": 1
79 },
80 {
81 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +053082 "name": "Supplier",
83 "description": _("Supplier database."),
84 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +053085 },
86 {
Nabin Haite4bbb692016-07-04 16:16:24 +053087 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +053088 "name": "Payment Entry",
89 "description": _("Bank/Cash transactions against party or for internal transfer")
90 },
91 {
92 "type": "report",
93 "name": "Accounts Payable",
94 "doctype": "Purchase Invoice",
95 "is_query_report": True
96 },
97 {
98 "type": "report",
99 "name": "Accounts Payable Summary",
100 "doctype": "Purchase Invoice",
101 "is_query_report": True
102 },
103 {
104 "type": "report",
105 "name": "Purchase Register",
106 "doctype": "Purchase Invoice",
107 "is_query_report": True
108 },
109 {
110 "type": "report",
111 "name": "Item-wise Purchase Register",
112 "is_query_report": True,
113 "doctype": "Purchase Invoice"
114 },
115 {
116 "type": "report",
117 "name": "Purchase Order Items To Be Billed",
118 "is_query_report": True,
119 "doctype": "Purchase Invoice"
120 },
121 {
122 "type": "report",
123 "name": "Received Items To Be Billed",
124 "is_query_report": True,
125 "doctype": "Purchase Invoice"
126 },
127 ]
128 },
129 {
130 "label": _("Accounting Masters"),
131 "items": [
132 {
133 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530134 "name": "Company",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530135 "description": _("Company (not Customer or Supplier) master."),
136 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530137 },
138 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530139 "type": "doctype",
140 "name": "Account",
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530141 "icon": "fa fa-sitemap",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530142 "label": _("Chart of Accounts"),
Prateeksha Singh34234072019-02-07 09:18:24 +0530143 "route": "#Tree/Account",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530144 "description": _("Tree of financial accounts."),
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530145 "onboard": 1,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530146 },
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530147 {
148 "type": "doctype",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530149 "name": "Accounts Settings",
Prateeksha Singh063af4e2019-02-06 17:02:41 +0530150 },
151 {
152 "type": "doctype",
153 "name": "Fiscal Year",
154 "description": _("Financial / accounting year.")
155 },
156 {
157 "type": "doctype",
deepeshgarg007705c03c2019-05-17 10:23:00 +0530158 "name": "Accounting Dimension",
deepeshgarg007705c03c2019-05-17 10:23:00 +0530159 },
Faris Ansari2ab8d3e2019-06-26 13:32:41 +0530160 {
161 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530162 "name": "Finance Book",
Faris Ansari2ab8d3e2019-06-26 13:32:41 +0530163 },
164 {
165 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530166 "name": "Accounting Period",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530167 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530168 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530169 "type": "doctype",
170 "name": "Payment Term",
171 "description": _("Payment Terms based on conditions")
rohitwaghchaureefff6e52018-04-18 10:52:07 +0530172 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530173 ]
174 },
175 {
176 "label": _("Banking and Payments"),
177 "items": [
178 {
Ankit Javalkar8e7ca412014-09-12 15:18:53 +0530179 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530180 "label": _("Match Payments with Invoices"),
181 "name": "Payment Reconciliation",
182 "description": _("Match non-linked Invoices and Payments.")
Prateeksha Singh34234072019-02-07 09:18:24 +0530183 },
184 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530185 "type": "doctype",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530186 "label": _("Update Bank Transaction Dates"),
187 "name": "Bank Reconciliation",
188 "description": _("Update bank payment dates with journals.")
189 },
190 {
191 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530192 "label": _("Invoice Discounting"),
193 "name": "Invoice Discounting",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530194 },
195 {
196 "type": "report",
197 "name": "Bank Reconciliation Statement",
198 "is_query_report": True,
199 "doctype": "Journal Entry"
Anurag Mishra935517d2019-11-29 18:08:42 +0530200 },{
201 "type": "page",
202 "name": "bank-reconciliation",
203 "label": _("Bank Reconciliation"),
204 "icon": "fa fa-bar-chart"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530205 },
206 {
207 "type": "report",
208 "name": "Bank Clearance Summary",
209 "is_query_report": True,
210 "doctype": "Journal Entry"
211 },
Ishan Loya09fe8e02017-04-25 14:26:33 +0530212 {
213 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530214 "name": "Bank Guarantee"
215 },
216 {
217 "type": "doctype",
218 "name": "Cheque Print Template",
219 "description": _("Setup cheque dimensions for printing")
220 },
221 ]
222 },
223 {
224 "label": _("General Ledger"),
225 "items": [
226 {
227 "type": "doctype",
228 "name": "Journal Entry",
229 "description": _("Accounting journal entries.")
230 },
231 {
232 "type": "report",
233 "name": "General Ledger",
234 "doctype": "GL Entry",
235 "is_query_report": True,
236 },
237 {
238 "type": "report",
239 "name": "Customer Ledger Summary",
240 "doctype": "Sales Invoice",
241 "is_query_report": True,
242 },
243 {
244 "type": "report",
245 "name": "Supplier Ledger Summary",
246 "doctype": "Sales Invoice",
247 "is_query_report": True,
248 }
249 ]
250 },
251 {
252 "label": _("Taxes"),
253 "items": [
254 {
255 "type": "doctype",
256 "name": "Sales Taxes and Charges Template",
257 "description": _("Tax template for selling transactions.")
258 },
259 {
260 "type": "doctype",
261 "name": "Purchase Taxes and Charges Template",
262 "description": _("Tax template for buying transactions.")
263 },
264 {
265 "type": "doctype",
266 "name": "Item Tax Template",
267 "description": _("Tax template for item tax rates.")
268 },
269 {
270 "type": "doctype",
271 "name": "Tax Category",
272 "description": _("Tax Category for overriding tax rates.")
273 },
274 {
275 "type": "doctype",
276 "name": "Tax Rule",
277 "description": _("Tax Rule for transactions.")
278 },
279 {
280 "type": "doctype",
281 "name": "Tax Withholding Category",
282 "description": _("Tax Withholding rates to be applied on transactions.")
Ishan Loya09fe8e02017-04-25 14:26:33 +0530283 },
Anand Doshi08ef4672014-05-08 11:43:18 +0530284 ]
285 },
286 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530287 "label": _("Cost Center and Budgeting"),
288 "items": [
289 {
290 "type": "doctype",
291 "name": "Cost Center",
292 "icon": "fa fa-sitemap",
293 "label": _("Chart of Cost Centers"),
294 "route": "#Tree/Cost Center",
295 "description": _("Tree of financial Cost Centers."),
296 },
297 {
298 "type": "doctype",
299 "name": "Budget",
300 "description": _("Define budget for a financial year.")
301 },
302 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530303 "type": "doctype",
304 "name": "Accounting Dimension",
305 },
306 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530307 "type": "report",
308 "name": "Budget Variance Report",
309 "is_query_report": True,
310 "doctype": "Cost Center"
311 },
312 {
313 "type": "doctype",
314 "name": "Monthly Distribution",
315 "description": _("Seasonality for setting budgets, targets etc.")
316 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530317 ]
318 },
319 {
320 "label": _("Financial Statements"),
321 "items": [
322 {
323 "type": "report",
324 "name": "Trial Balance",
325 "doctype": "GL Entry",
326 "is_query_report": True,
327 },
328 {
329 "type": "report",
330 "name": "Profit and Loss Statement",
331 "doctype": "GL Entry",
332 "is_query_report": True
333 },
334 {
335 "type": "report",
336 "name": "Balance Sheet",
337 "doctype": "GL Entry",
338 "is_query_report": True
339 },
340 {
341 "type": "report",
342 "name": "Cash Flow",
343 "doctype": "GL Entry",
344 "is_query_report": True
345 },
346 {
347 "type": "report",
348 "name": "Consolidated Financial Statement",
349 "doctype": "GL Entry",
350 "is_query_report": True
351 },
352 ]
353 },
354 {
355 "label": _("Opening and Closing"),
356 "items": [
357 {
358 "type": "doctype",
359 "name": "Opening Invoice Creation Tool",
360 },
361 {
362 "type": "doctype",
363 "name": "Chart of Accounts Importer",
364 },
Prateeksha Singh34234072019-02-07 09:18:24 +0530365 {
366 "type": "doctype",
367 "name": "Period Closing Voucher",
368 "description": _("Close Balance Sheet and book Profit or Loss.")
369 },
370 ]
Michelle Alva6abb63b2019-07-15 14:00:00 +0530371
Prateeksha Singh34234072019-02-07 09:18:24 +0530372 },
373 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530374 "label": _("Multi Currency"),
Anand Doshi08ef4672014-05-08 11:43:18 +0530375 "items": [
376 {
377 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530378 "name": "Currency",
379 "description": _("Enable / disable currencies.")
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500380 },
381 {
382 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530383 "name": "Currency Exchange",
384 "description": _("Currency exchange rate master.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530385 },
386 {
387 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530388 "name": "Exchange Rate Revaluation",
389 "description": _("Exchange Rate Revaluation master.")
390 },
391 ]
392 },
393 {
394 "label": _("Settings"),
395 "icon": "fa fa-cog",
396 "items": [
397 {
398 "type": "doctype",
399 "name": "Payment Gateway Account",
400 "description": _("Setup Gateway accounts.")
Anand Doshi08ef4672014-05-08 11:43:18 +0530401 },
402 {
403 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530404 "name": "Terms and Conditions",
405 "label": _("Terms and Conditions Template"),
406 "description": _("Template of terms or contract.")
Saif Ur Rehman8ac26172018-11-25 00:53:54 +0500407 },
408 {
409 "type": "doctype",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530410 "name": "Mode of Payment",
411 "description": _("e.g. Bank, Cash, Credit Card")
Zarrar2cadb1e2018-08-06 14:46:16 +0530412 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530413 ]
414 },
415 {
Prateeksha Singh34234072019-02-07 09:18:24 +0530416 "label": _("Subscription Management"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530417 "items": [
418 {
Saurabh52ec0ed2016-07-05 18:02:38 +0530419 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530420 "name": "Subscriber",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530421 },
422 {
Nabin Haitb9bc7d62016-05-16 14:38:47 +0530423 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530424 "name": "Subscription Plan",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530425 },
426 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500427 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530428 "name": "Subscription"
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530429 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530430 {
431 "type": "doctype",
Prateeksha Singh34234072019-02-07 09:18:24 +0530432 "name": "Subscription Settings"
433 }
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530434 ]
435 },
436 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530437 "label": _("Bank Statement"),
438 "items": [
439 {
440 "type": "doctype",
441 "label": _("Bank"),
442 "name": "Bank",
443 },
444 {
445 "type": "doctype",
446 "label": _("Bank Account"),
447 "name": "Bank Account",
448 },
449 {
450 "type": "doctype",
451 "name": "Bank Statement Transaction Entry",
452 },
453 {
454 "type": "doctype",
455 "label": _("Bank Statement Settings"),
456 "name": "Bank Statement Settings",
457 },
458 ]
459 },
460 {
461 "label": _("Profitability"),
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530462 "items": [
463 {
Anand Doshi08ef4672014-05-08 11:43:18 +0530464 "type": "report",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530465 "name": "Gross Profit",
466 "doctype": "Sales Invoice",
467 "is_query_report": True
468 },
469 {
470 "type": "report",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530471 "name": "Profitability Analysis",
472 "doctype": "GL Entry",
Anand Doshi08ef4672014-05-08 11:43:18 +0530473 "is_query_report": True,
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530474 },
475 {
476 "type": "report",
477 "name": "Sales Invoice Trends",
478 "is_query_report": True,
479 "doctype": "Sales Invoice"
480 },
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500481 {
482 "type": "report",
Michelle Alva6abb63b2019-07-15 14:00:00 +0530483 "name": "Purchase Invoice Trends",
Saif Ur Rehmanb5323152018-12-12 15:46:50 +0500484 "is_query_report": True,
485 "doctype": "Purchase Invoice"
486 },
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530487 ]
488 },
489 {
Michelle Alva6abb63b2019-07-15 14:00:00 +0530490 "label": _("Reports"),
Rushabh Mehta2167ff52016-12-07 11:08:48 +0530491 "icon": "fa fa-table",
Rushabh Mehtad1e1c522016-03-08 18:06:21 +0530492 "items": [
493 {
494 "type": "report",
495 "name": "Trial Balance for Party",
496 "doctype": "GL Entry",
497 "is_query_report": True,
Anand Doshi08ef4672014-05-08 11:43:18 +0530498 },
499 {
500 "type": "report",
501 "name": "Payment Period Based On Invoice Date",
502 "is_query_report": True,
Nabin Hait23d2a532014-12-25 17:14:18 +0530503 "doctype": "Journal Entry"
Anand Doshi08ef4672014-05-08 11:43:18 +0530504 },
505 {
506 "type": "report",
507 "name": "Sales Partners Commission",
508 "is_query_report": True,
509 "doctype": "Sales Invoice"
510 },
511 {
512 "type": "report",
Nabin Haite6370862014-10-30 15:50:03 +0530513 "is_query_report": True,
514 "name": "Customer Credit Balance",
515 "doctype": "Customer"
516 },
pawane61a2752017-11-02 17:53:24 +0530517 {
518 "type": "report",
519 "is_query_report": True,
pawan8d1d64a2017-11-03 21:52:07 +0530520 "name": "Sales Payment Summary",
pawane61a2752017-11-02 17:53:24 +0530521 "doctype": "Sales Invoice"
Shreya Shah51034542018-06-05 10:44:36 +0530522 },
523 {
524 "type": "report",
525 "is_query_report": True,
526 "name": "Address And Contacts",
527 "doctype": "Address"
pawane61a2752017-11-02 17:53:24 +0530528 }
Anand Doshi08ef4672014-05-08 11:43:18 +0530529 ]
530 },
Rushabh Mehta67712402015-05-25 18:30:53 +0530531 {
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530532 "label": _("Share Management"),
533 "icon": "fa fa-microchip ",
534 "items": [
535 {
536 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500537 "name": "Shareholder",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530538 "description": _("List of available Shareholders with folio numbers")
539 },
540 {
541 "type": "doctype",
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500542 "name": "Share Transfer",
Ameya Shenoy5c33a042018-02-12 11:32:47 +0530543 "description": _("List of all share transactions"),
544 },
545 {
546 "type": "report",
547 "name": "Share Ledger",
548 "doctype": "Share Transfer",
549 "is_query_report": True
550 },
551 {
552 "type": "report",
553 "name": "Share Balance",
554 "doctype": "Share Transfer",
555 "is_query_report": True
556 }
557 ]
558 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530559
Anand Doshi08ef4672014-05-08 11:43:18 +0530560 ]
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530561
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500562 gst = {
563 "label": _("Goods and Services Tax (GST India)"),
564 "items": [
565 {
566 "type": "doctype",
567 "name": "GST Settings",
568 },
569 {
570 "type": "doctype",
571 "name": "GST HSN Code",
572 },
573 {
574 "type": "report",
575 "name": "GSTR-1",
576 "is_query_report": True
577 },
578 {
579 "type": "report",
580 "name": "GSTR-2",
581 "is_query_report": True
582 },
583 {
Deepesh Garg22b61602019-03-21 20:47:47 +0530584 "type": "doctype",
585 "name": "GSTR 3B Report",
586 },
587 {
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500588 "type": "report",
589 "name": "GST Sales Register",
590 "is_query_report": True
591 },
592 {
593 "type": "report",
594 "name": "GST Purchase Register",
595 "is_query_report": True
596 },
597 {
598 "type": "report",
599 "name": "GST Itemised Sales Register",
600 "is_query_report": True
601 },
602 {
603 "type": "report",
604 "name": "GST Itemised Purchase Register",
605 "is_query_report": True
606 },
Michelle Alva6abb63b2019-07-15 14:00:00 +0530607 {
608 "type": "doctype",
609 "name": "C-Form",
610 "description": _("C-Form records"),
611 "country": "India"
612 },
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500613 ]
614 }
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530615
Prateeksha Singh7cd6ebe2019-01-24 07:15:53 +0530616
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500617 countries = frappe.get_all("Company", fields="country")
618 countries = [country["country"] for country in countries]
619 if "India" in countries:
Michelle Alva6abb63b2019-07-15 14:00:00 +0530620 config.insert(9, gst)
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500621 domains = frappe.get_active_domains()
Tyler Mattesonafc55ca2018-12-10 07:33:19 -0500622 return config