Anand Doshi | d57e793 | 2015-02-24 12:24:53 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 2 | from frappe import _ |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 3 | import frappe |
| 4 | |
Anand Doshi | f5794f1 | 2014-03-03 15:05:28 +0530 | [diff] [blame] | 5 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 6 | def get_data(): |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 7 | config = [ |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 8 | { |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 9 | "label": _("Accounts Receivable"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 10 | "items": [ |
| 11 | { |
| 12 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 13 | "name": "Sales Invoice", |
| 14 | "description": _("Bills raised to Customers."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 15 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 16 | }, |
| 17 | { |
| 18 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 19 | "name": "Customer", |
| 20 | "description": _("Customer database."), |
| 21 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 22 | }, |
| 23 | { |
| 24 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 25 | "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 Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 82 | "name": "Supplier", |
| 83 | "description": _("Supplier database."), |
| 84 | "onboard": 1, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 85 | }, |
| 86 | { |
Nabin Hait | e4bbb69 | 2016-07-04 16:16:24 +0530 | [diff] [blame] | 87 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 88 | "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 Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 134 | "name": "Company", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 135 | "description": _("Company (not Customer or Supplier) master."), |
| 136 | "onboard": 1, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 137 | }, |
| 138 | { |
Saurabh | 52ec0ed | 2016-07-05 18:02:38 +0530 | [diff] [blame] | 139 | "type": "doctype", |
| 140 | "name": "Account", |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 141 | "icon": "fa fa-sitemap", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 142 | "label": _("Chart of Accounts"), |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 143 | "route": "#Tree/Account", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 144 | "description": _("Tree of financial accounts."), |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 145 | "onboard": 1, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 146 | }, |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 147 | { |
| 148 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 149 | "name": "Accounts Settings", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 150 | }, |
| 151 | { |
| 152 | "type": "doctype", |
| 153 | "name": "Fiscal Year", |
| 154 | "description": _("Financial / accounting year.") |
| 155 | }, |
| 156 | { |
| 157 | "type": "doctype", |
deepeshgarg007 | 705c03c | 2019-05-17 10:23:00 +0530 | [diff] [blame] | 158 | "name": "Accounting Dimension", |
deepeshgarg007 | 705c03c | 2019-05-17 10:23:00 +0530 | [diff] [blame] | 159 | }, |
Faris Ansari | 2ab8d3e | 2019-06-26 13:32:41 +0530 | [diff] [blame] | 160 | { |
| 161 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 162 | "name": "Finance Book", |
Faris Ansari | 2ab8d3e | 2019-06-26 13:32:41 +0530 | [diff] [blame] | 163 | }, |
| 164 | { |
| 165 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 166 | "name": "Accounting Period", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 167 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 168 | { |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 169 | "type": "doctype", |
| 170 | "name": "Payment Term", |
| 171 | "description": _("Payment Terms based on conditions") |
rohitwaghchaure | efff6e5 | 2018-04-18 10:52:07 +0530 | [diff] [blame] | 172 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 173 | ] |
| 174 | }, |
| 175 | { |
| 176 | "label": _("Banking and Payments"), |
| 177 | "items": [ |
| 178 | { |
Ankit Javalkar | 8e7ca41 | 2014-09-12 15:18:53 +0530 | [diff] [blame] | 179 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 180 | "label": _("Match Payments with Invoices"), |
| 181 | "name": "Payment Reconciliation", |
| 182 | "description": _("Match non-linked Invoices and Payments.") |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 183 | }, |
| 184 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 185 | "type": "doctype", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 186 | "label": _("Update Bank Transaction Dates"), |
| 187 | "name": "Bank Reconciliation", |
| 188 | "description": _("Update bank payment dates with journals.") |
| 189 | }, |
| 190 | { |
| 191 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 192 | "label": _("Invoice Discounting"), |
| 193 | "name": "Invoice Discounting", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 194 | }, |
| 195 | { |
| 196 | "type": "report", |
| 197 | "name": "Bank Reconciliation Statement", |
| 198 | "is_query_report": True, |
| 199 | "doctype": "Journal Entry" |
| 200 | }, |
| 201 | { |
| 202 | "type": "report", |
| 203 | "name": "Bank Clearance Summary", |
| 204 | "is_query_report": True, |
| 205 | "doctype": "Journal Entry" |
| 206 | }, |
Ishan Loya | 09fe8e0 | 2017-04-25 14:26:33 +0530 | [diff] [blame] | 207 | { |
| 208 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 209 | "name": "Bank Guarantee" |
| 210 | }, |
| 211 | { |
| 212 | "type": "doctype", |
| 213 | "name": "Cheque Print Template", |
| 214 | "description": _("Setup cheque dimensions for printing") |
| 215 | }, |
| 216 | ] |
| 217 | }, |
| 218 | { |
| 219 | "label": _("General Ledger"), |
| 220 | "items": [ |
| 221 | { |
| 222 | "type": "doctype", |
| 223 | "name": "Journal Entry", |
| 224 | "description": _("Accounting journal entries.") |
| 225 | }, |
| 226 | { |
| 227 | "type": "report", |
| 228 | "name": "General Ledger", |
| 229 | "doctype": "GL Entry", |
| 230 | "is_query_report": True, |
| 231 | }, |
| 232 | { |
| 233 | "type": "report", |
| 234 | "name": "Customer Ledger Summary", |
| 235 | "doctype": "Sales Invoice", |
| 236 | "is_query_report": True, |
| 237 | }, |
| 238 | { |
| 239 | "type": "report", |
| 240 | "name": "Supplier Ledger Summary", |
| 241 | "doctype": "Sales Invoice", |
| 242 | "is_query_report": True, |
| 243 | } |
| 244 | ] |
| 245 | }, |
| 246 | { |
| 247 | "label": _("Taxes"), |
| 248 | "items": [ |
| 249 | { |
| 250 | "type": "doctype", |
| 251 | "name": "Sales Taxes and Charges Template", |
| 252 | "description": _("Tax template for selling transactions.") |
| 253 | }, |
| 254 | { |
| 255 | "type": "doctype", |
| 256 | "name": "Purchase Taxes and Charges Template", |
| 257 | "description": _("Tax template for buying transactions.") |
| 258 | }, |
| 259 | { |
| 260 | "type": "doctype", |
| 261 | "name": "Item Tax Template", |
| 262 | "description": _("Tax template for item tax rates.") |
| 263 | }, |
| 264 | { |
| 265 | "type": "doctype", |
| 266 | "name": "Tax Category", |
| 267 | "description": _("Tax Category for overriding tax rates.") |
| 268 | }, |
| 269 | { |
| 270 | "type": "doctype", |
| 271 | "name": "Tax Rule", |
| 272 | "description": _("Tax Rule for transactions.") |
| 273 | }, |
| 274 | { |
| 275 | "type": "doctype", |
| 276 | "name": "Tax Withholding Category", |
| 277 | "description": _("Tax Withholding rates to be applied on transactions.") |
Ishan Loya | 09fe8e0 | 2017-04-25 14:26:33 +0530 | [diff] [blame] | 278 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 279 | ] |
| 280 | }, |
| 281 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 282 | "label": _("Cost Center and Budgeting"), |
| 283 | "items": [ |
| 284 | { |
| 285 | "type": "doctype", |
| 286 | "name": "Cost Center", |
| 287 | "icon": "fa fa-sitemap", |
| 288 | "label": _("Chart of Cost Centers"), |
| 289 | "route": "#Tree/Cost Center", |
| 290 | "description": _("Tree of financial Cost Centers."), |
| 291 | }, |
| 292 | { |
| 293 | "type": "doctype", |
| 294 | "name": "Budget", |
| 295 | "description": _("Define budget for a financial year.") |
| 296 | }, |
| 297 | { |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 298 | "type": "doctype", |
| 299 | "name": "Accounting Dimension", |
| 300 | }, |
| 301 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 302 | "type": "report", |
| 303 | "name": "Budget Variance Report", |
| 304 | "is_query_report": True, |
| 305 | "doctype": "Cost Center" |
| 306 | }, |
| 307 | { |
| 308 | "type": "doctype", |
| 309 | "name": "Monthly Distribution", |
| 310 | "description": _("Seasonality for setting budgets, targets etc.") |
| 311 | }, |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 312 | ] |
| 313 | }, |
| 314 | { |
| 315 | "label": _("Financial Statements"), |
| 316 | "items": [ |
| 317 | { |
| 318 | "type": "report", |
| 319 | "name": "Trial Balance", |
| 320 | "doctype": "GL Entry", |
| 321 | "is_query_report": True, |
| 322 | }, |
| 323 | { |
| 324 | "type": "report", |
| 325 | "name": "Profit and Loss Statement", |
| 326 | "doctype": "GL Entry", |
| 327 | "is_query_report": True |
| 328 | }, |
| 329 | { |
| 330 | "type": "report", |
| 331 | "name": "Balance Sheet", |
| 332 | "doctype": "GL Entry", |
| 333 | "is_query_report": True |
| 334 | }, |
| 335 | { |
| 336 | "type": "report", |
| 337 | "name": "Cash Flow", |
| 338 | "doctype": "GL Entry", |
| 339 | "is_query_report": True |
| 340 | }, |
| 341 | { |
| 342 | "type": "report", |
| 343 | "name": "Consolidated Financial Statement", |
| 344 | "doctype": "GL Entry", |
| 345 | "is_query_report": True |
| 346 | }, |
| 347 | ] |
| 348 | }, |
| 349 | { |
| 350 | "label": _("Opening and Closing"), |
| 351 | "items": [ |
| 352 | { |
| 353 | "type": "doctype", |
| 354 | "name": "Opening Invoice Creation Tool", |
| 355 | }, |
| 356 | { |
| 357 | "type": "doctype", |
| 358 | "name": "Chart of Accounts Importer", |
| 359 | }, |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 360 | { |
| 361 | "type": "doctype", |
| 362 | "name": "Period Closing Voucher", |
| 363 | "description": _("Close Balance Sheet and book Profit or Loss.") |
| 364 | }, |
| 365 | ] |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 366 | |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 367 | }, |
| 368 | { |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 369 | "label": _("Multi Currency"), |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 370 | "items": [ |
| 371 | { |
| 372 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 373 | "name": "Currency", |
| 374 | "description": _("Enable / disable currencies.") |
Saif Ur Rehman | 8ac2617 | 2018-11-25 00:53:54 +0500 | [diff] [blame] | 375 | }, |
| 376 | { |
| 377 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 378 | "name": "Currency Exchange", |
| 379 | "description": _("Currency exchange rate master.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 380 | }, |
| 381 | { |
| 382 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 383 | "name": "Exchange Rate Revaluation", |
| 384 | "description": _("Exchange Rate Revaluation master.") |
| 385 | }, |
| 386 | ] |
| 387 | }, |
| 388 | { |
| 389 | "label": _("Settings"), |
| 390 | "icon": "fa fa-cog", |
| 391 | "items": [ |
| 392 | { |
| 393 | "type": "doctype", |
| 394 | "name": "Payment Gateway Account", |
| 395 | "description": _("Setup Gateway accounts.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 396 | }, |
| 397 | { |
| 398 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 399 | "name": "Terms and Conditions", |
| 400 | "label": _("Terms and Conditions Template"), |
| 401 | "description": _("Template of terms or contract.") |
Saif Ur Rehman | 8ac2617 | 2018-11-25 00:53:54 +0500 | [diff] [blame] | 402 | }, |
| 403 | { |
| 404 | "type": "doctype", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 405 | "name": "Mode of Payment", |
| 406 | "description": _("e.g. Bank, Cash, Credit Card") |
Zarrar | 2cadb1e | 2018-08-06 14:46:16 +0530 | [diff] [blame] | 407 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 408 | ] |
| 409 | }, |
| 410 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 411 | "label": _("Subscription Management"), |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 412 | "items": [ |
| 413 | { |
Saurabh | 52ec0ed | 2016-07-05 18:02:38 +0530 | [diff] [blame] | 414 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 415 | "name": "Subscriber", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 416 | }, |
| 417 | { |
Nabin Hait | b9bc7d6 | 2016-05-16 14:38:47 +0530 | [diff] [blame] | 418 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 419 | "name": "Subscription Plan", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 420 | }, |
| 421 | { |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 422 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 423 | "name": "Subscription" |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 424 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 425 | { |
| 426 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 427 | "name": "Subscription Settings" |
| 428 | } |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 429 | ] |
| 430 | }, |
| 431 | { |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 432 | "label": _("Bank Statement"), |
| 433 | "items": [ |
| 434 | { |
| 435 | "type": "doctype", |
| 436 | "label": _("Bank"), |
| 437 | "name": "Bank", |
| 438 | }, |
| 439 | { |
| 440 | "type": "doctype", |
| 441 | "label": _("Bank Account"), |
| 442 | "name": "Bank Account", |
| 443 | }, |
| 444 | { |
| 445 | "type": "doctype", |
| 446 | "name": "Bank Statement Transaction Entry", |
| 447 | }, |
| 448 | { |
| 449 | "type": "doctype", |
| 450 | "label": _("Bank Statement Settings"), |
| 451 | "name": "Bank Statement Settings", |
| 452 | }, |
| 453 | ] |
| 454 | }, |
| 455 | { |
| 456 | "label": _("Profitability"), |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 457 | "items": [ |
| 458 | { |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 459 | "type": "report", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 460 | "name": "Gross Profit", |
| 461 | "doctype": "Sales Invoice", |
| 462 | "is_query_report": True |
| 463 | }, |
| 464 | { |
| 465 | "type": "report", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 466 | "name": "Profitability Analysis", |
| 467 | "doctype": "GL Entry", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 468 | "is_query_report": True, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 469 | }, |
| 470 | { |
| 471 | "type": "report", |
| 472 | "name": "Sales Invoice Trends", |
| 473 | "is_query_report": True, |
| 474 | "doctype": "Sales Invoice" |
| 475 | }, |
Saif Ur Rehman | b532315 | 2018-12-12 15:46:50 +0500 | [diff] [blame] | 476 | { |
| 477 | "type": "report", |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 478 | "name": "Purchase Invoice Trends", |
Saif Ur Rehman | b532315 | 2018-12-12 15:46:50 +0500 | [diff] [blame] | 479 | "is_query_report": True, |
| 480 | "doctype": "Purchase Invoice" |
| 481 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 482 | ] |
| 483 | }, |
| 484 | { |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 485 | "label": _("Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 486 | "icon": "fa fa-table", |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 487 | "items": [ |
| 488 | { |
| 489 | "type": "report", |
| 490 | "name": "Trial Balance for Party", |
| 491 | "doctype": "GL Entry", |
| 492 | "is_query_report": True, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 493 | }, |
| 494 | { |
| 495 | "type": "report", |
| 496 | "name": "Payment Period Based On Invoice Date", |
| 497 | "is_query_report": True, |
Nabin Hait | 23d2a53 | 2014-12-25 17:14:18 +0530 | [diff] [blame] | 498 | "doctype": "Journal Entry" |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 499 | }, |
| 500 | { |
| 501 | "type": "report", |
| 502 | "name": "Sales Partners Commission", |
| 503 | "is_query_report": True, |
| 504 | "doctype": "Sales Invoice" |
| 505 | }, |
| 506 | { |
| 507 | "type": "report", |
Nabin Hait | e637086 | 2014-10-30 15:50:03 +0530 | [diff] [blame] | 508 | "is_query_report": True, |
| 509 | "name": "Customer Credit Balance", |
| 510 | "doctype": "Customer" |
| 511 | }, |
pawan | e61a275 | 2017-11-02 17:53:24 +0530 | [diff] [blame] | 512 | { |
| 513 | "type": "report", |
| 514 | "is_query_report": True, |
pawan | 8d1d64a | 2017-11-03 21:52:07 +0530 | [diff] [blame] | 515 | "name": "Sales Payment Summary", |
pawan | e61a275 | 2017-11-02 17:53:24 +0530 | [diff] [blame] | 516 | "doctype": "Sales Invoice" |
Shreya Shah | 5103454 | 2018-06-05 10:44:36 +0530 | [diff] [blame] | 517 | }, |
| 518 | { |
| 519 | "type": "report", |
| 520 | "is_query_report": True, |
| 521 | "name": "Address And Contacts", |
| 522 | "doctype": "Address" |
pawan | e61a275 | 2017-11-02 17:53:24 +0530 | [diff] [blame] | 523 | } |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 524 | ] |
| 525 | }, |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 526 | { |
Ameya Shenoy | 5c33a04 | 2018-02-12 11:32:47 +0530 | [diff] [blame] | 527 | "label": _("Share Management"), |
| 528 | "icon": "fa fa-microchip ", |
| 529 | "items": [ |
| 530 | { |
| 531 | "type": "doctype", |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 532 | "name": "Shareholder", |
Ameya Shenoy | 5c33a04 | 2018-02-12 11:32:47 +0530 | [diff] [blame] | 533 | "description": _("List of available Shareholders with folio numbers") |
| 534 | }, |
| 535 | { |
| 536 | "type": "doctype", |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 537 | "name": "Share Transfer", |
Ameya Shenoy | 5c33a04 | 2018-02-12 11:32:47 +0530 | [diff] [blame] | 538 | "description": _("List of all share transactions"), |
| 539 | }, |
| 540 | { |
| 541 | "type": "report", |
| 542 | "name": "Share Ledger", |
| 543 | "doctype": "Share Transfer", |
| 544 | "is_query_report": True |
| 545 | }, |
| 546 | { |
| 547 | "type": "report", |
| 548 | "name": "Share Balance", |
| 549 | "doctype": "Share Transfer", |
| 550 | "is_query_report": True |
| 551 | } |
| 552 | ] |
| 553 | }, |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 554 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 555 | ] |
Prateeksha Singh | 7cd6ebe | 2019-01-24 07:15:53 +0530 | [diff] [blame] | 556 | |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 557 | gst = { |
| 558 | "label": _("Goods and Services Tax (GST India)"), |
| 559 | "items": [ |
| 560 | { |
| 561 | "type": "doctype", |
| 562 | "name": "GST Settings", |
| 563 | }, |
| 564 | { |
| 565 | "type": "doctype", |
| 566 | "name": "GST HSN Code", |
| 567 | }, |
| 568 | { |
| 569 | "type": "report", |
| 570 | "name": "GSTR-1", |
| 571 | "is_query_report": True |
| 572 | }, |
| 573 | { |
| 574 | "type": "report", |
| 575 | "name": "GSTR-2", |
| 576 | "is_query_report": True |
| 577 | }, |
| 578 | { |
Deepesh Garg | 22b6160 | 2019-03-21 20:47:47 +0530 | [diff] [blame] | 579 | "type": "doctype", |
| 580 | "name": "GSTR 3B Report", |
| 581 | }, |
| 582 | { |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 583 | "type": "report", |
| 584 | "name": "GST Sales Register", |
| 585 | "is_query_report": True |
| 586 | }, |
| 587 | { |
| 588 | "type": "report", |
| 589 | "name": "GST Purchase Register", |
| 590 | "is_query_report": True |
| 591 | }, |
| 592 | { |
| 593 | "type": "report", |
| 594 | "name": "GST Itemised Sales Register", |
| 595 | "is_query_report": True |
| 596 | }, |
| 597 | { |
| 598 | "type": "report", |
| 599 | "name": "GST Itemised Purchase Register", |
| 600 | "is_query_report": True |
| 601 | }, |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 602 | { |
| 603 | "type": "doctype", |
| 604 | "name": "C-Form", |
| 605 | "description": _("C-Form records"), |
| 606 | "country": "India" |
| 607 | }, |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 608 | ] |
| 609 | } |
Prateeksha Singh | 7cd6ebe | 2019-01-24 07:15:53 +0530 | [diff] [blame] | 610 | |
Prateeksha Singh | 7cd6ebe | 2019-01-24 07:15:53 +0530 | [diff] [blame] | 611 | |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 612 | countries = frappe.get_all("Company", fields="country") |
| 613 | countries = [country["country"] for country in countries] |
| 614 | if "India" in countries: |
Michelle Alva | 6abb63b | 2019-07-15 14:00:00 +0530 | [diff] [blame] | 615 | config.insert(9, gst) |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 616 | domains = frappe.get_active_domains() |
Tyler Matteson | afc55ca | 2018-12-10 07:33:19 -0500 | [diff] [blame] | 617 | return config |