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