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