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 _ |
| 3 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 4 | def get_data(): |
| 5 | return [ |
| 6 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 7 | "label": _("Purchasing"), |
| 8 | "icon": "fa fa-star", |
| 9 | "items": [ |
| 10 | { |
| 11 | "type": "doctype", |
| 12 | "name": "Purchase Order", |
| 13 | "onboard": 1, |
| 14 | "dependencies": ["Item", "Supplier"], |
| 15 | "description": _("Purchase Orders given to Suppliers."), |
| 16 | }, |
| 17 | { |
| 18 | "type": "doctype", |
| 19 | "name": "Material Request", |
| 20 | "onboard": 1, |
| 21 | "dependencies": ["Item"], |
| 22 | "description": _("Request for purchase."), |
| 23 | }, |
| 24 | { |
| 25 | "type": "doctype", |
| 26 | "name": "Request for Quotation", |
| 27 | "onboard": 1, |
| 28 | "dependencies": ["Item", "Supplier"], |
| 29 | "description": _("Request for quotation."), |
| 30 | }, |
| 31 | { |
| 32 | "type": "doctype", |
| 33 | "name": "Supplier Quotation", |
| 34 | "dependencies": ["Item", "Supplier"], |
| 35 | "description": _("Quotations received from Suppliers."), |
| 36 | }, |
| 37 | ] |
| 38 | }, |
| 39 | { |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 40 | "label": _("Items and Pricing"), |
| 41 | "items": [ |
| 42 | { |
| 43 | "type": "doctype", |
| 44 | "name": "Item", |
| 45 | "onboard": 1, |
| 46 | "description": _("All Products or Services."), |
| 47 | }, |
| 48 | { |
| 49 | "type": "doctype", |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 50 | "name": "Item Price", |
| 51 | "description": _("Multiple Item prices."), |
| 52 | "onboard": 1, |
Himanshu Warekar | 3315a9f | 2019-02-28 11:51:36 +0530 | [diff] [blame] | 53 | "route": "#Report/Item Price" |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 54 | }, |
| 55 | { |
| 56 | "type": "doctype", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 57 | "name": "Price List", |
| 58 | "description": _("Price List master.") |
| 59 | }, |
| 60 | { |
| 61 | "type": "doctype", |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 62 | "name": "Product Bundle", |
| 63 | "description": _("Bundle items at time of sale."), |
| 64 | }, |
| 65 | { |
| 66 | "type": "doctype", |
| 67 | "name": "Item Group", |
| 68 | "icon": "fa fa-sitemap", |
| 69 | "label": _("Item Group"), |
| 70 | "link": "Tree/Item Group", |
| 71 | "description": _("Tree of Item Groups."), |
| 72 | }, |
| 73 | { |
| 74 | "type": "doctype", |
Rohit Waghchaure | 1ecc782 | 2019-06-14 17:29:26 +0530 | [diff] [blame] | 75 | "name": "Promotional Scheme", |
| 76 | "description": _("Rules for applying different promotional schemes.") |
| 77 | }, |
| 78 | { |
| 79 | "type": "doctype", |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 80 | "name": "Pricing Rule", |
| 81 | "description": _("Rules for applying pricing and discount.") |
Rohit Waghchaure | 1ecc782 | 2019-06-14 17:29:26 +0530 | [diff] [blame] | 82 | } |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 83 | ] |
| 84 | }, |
| 85 | { |
Prateeksha Singh | 9d4a183 | 2019-02-11 15:14:50 +0530 | [diff] [blame] | 86 | "label": _("Settings"), |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 87 | "icon": "fa fa-cog", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 88 | "items": [ |
| 89 | { |
| 90 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 91 | "name": "Buying Settings", |
Prateeksha Singh | 8aa4594 | 2019-03-04 14:00:02 +0530 | [diff] [blame] | 92 | "settings": 1, |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 93 | "description": _("Default settings for buying transactions.") |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 94 | }, |
| 95 | { |
| 96 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 97 | "name": "Purchase Taxes and Charges Template", |
| 98 | "description": _("Tax template for buying transactions.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 99 | }, |
| 100 | { |
| 101 | "type": "doctype", |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 102 | "name":"Terms and Conditions", |
| 103 | "label": _("Terms and Conditions Template"), |
| 104 | "description": _("Template of terms or contract.") |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 105 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 106 | ] |
| 107 | }, |
| 108 | { |
| 109 | "label": _("Supplier"), |
| 110 | "items": [ |
| 111 | { |
| 112 | "type": "doctype", |
| 113 | "name": "Supplier", |
Prateeksha Singh | b5eb16f | 2019-01-31 14:50:22 +0530 | [diff] [blame] | 114 | "onboard": 1, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 115 | "description": _("Supplier database."), |
| 116 | }, |
| 117 | { |
| 118 | "type": "doctype", |
Zlash65 | 8907078 | 2018-04-19 18:37:29 +0530 | [diff] [blame] | 119 | "name": "Supplier Group", |
| 120 | "description": _("Supplier Group master.") |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 121 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 122 | { |
| 123 | "type": "doctype", |
| 124 | "name": "Contact", |
| 125 | "description": _("All Contacts."), |
| 126 | }, |
| 127 | { |
| 128 | "type": "doctype", |
| 129 | "name": "Address", |
| 130 | "description": _("All Addresses."), |
| 131 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 132 | |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 133 | ] |
| 134 | }, |
| 135 | { |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 136 | "label": _("Key Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 137 | "icon": "fa fa-table", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 138 | "items": [ |
| 139 | { |
Deepesh Garg | a057f4c | 2018-11-12 17:01:02 +0530 | [diff] [blame] | 140 | "type": "report", |
| 141 | "is_query_report": True, |
| 142 | "name": "Purchase Analytics", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 143 | "reference_doctype": "Purchase Order", |
| 144 | "onboard": 1 |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 145 | }, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 146 | { |
| 147 | "type": "report", |
| 148 | "is_query_report": True, |
| 149 | "name": "Supplier-Wise Sales Analytics", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 150 | "reference_doctype": "Stock Ledger Entry", |
| 151 | "onboard": 1 |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 152 | }, |
| 153 | { |
| 154 | "type": "report", |
| 155 | "is_query_report": True, |
| 156 | "name": "Purchase Order Trends", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 157 | "reference_doctype": "Purchase Order", |
| 158 | "onboard": 1, |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 159 | }, |
Prateeksha Singh | 3423407 | 2019-02-07 09:18:24 +0530 | [diff] [blame] | 160 | { |
| 161 | "type": "report", |
| 162 | "is_query_report": True, |
| 163 | "name": "Requested Items To Be Ordered", |
| 164 | "reference_doctype": "Material Request", |
| 165 | "onboard": 1, |
| 166 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 167 | ] |
| 168 | }, |
| 169 | { |
bcornwellmott | 96381da | 2017-07-24 10:12:30 -0700 | [diff] [blame] | 170 | "label": _("Supplier Scorecard"), |
| 171 | "items": [ |
| 172 | { |
| 173 | "type": "doctype", |
| 174 | "name": "Supplier Scorecard", |
| 175 | "description": _("All Supplier scorecards."), |
| 176 | }, |
| 177 | { |
| 178 | "type": "doctype", |
| 179 | "name": "Supplier Scorecard Variable", |
| 180 | "description": _("Templates of supplier scorecard variables.") |
| 181 | }, |
| 182 | { |
| 183 | "type": "doctype", |
| 184 | "name": "Supplier Scorecard Criteria", |
| 185 | "description": _("Templates of supplier scorecard criteria."), |
| 186 | }, |
| 187 | { |
| 188 | "type": "doctype", |
| 189 | "name": "Supplier Scorecard Standing", |
| 190 | "description": _("Templates of supplier standings."), |
| 191 | }, |
| 192 | |
| 193 | ] |
| 194 | }, |
| 195 | { |
Rushabh Mehta | d1e1c52 | 2016-03-08 18:06:21 +0530 | [diff] [blame] | 196 | "label": _("Other Reports"), |
Rushabh Mehta | 2167ff5 | 2016-12-07 11:08:48 +0530 | [diff] [blame] | 197 | "icon": "fa fa-list", |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 198 | "items": [ |
| 199 | { |
| 200 | "type": "report", |
| 201 | "is_query_report": True, |
| 202 | "name": "Items To Be Requested", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 203 | "reference_doctype": "Item", |
| 204 | "onboard": 1, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 205 | }, |
| 206 | { |
| 207 | "type": "report", |
| 208 | "is_query_report": True, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 209 | "name": "Item-wise Purchase History", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 210 | "reference_doctype": "Item", |
| 211 | "onboard": 1, |
| 212 | }, |
| 213 | { |
| 214 | "type": "report", |
| 215 | "is_query_report": True, |
| 216 | "name": "Material Requests for which Supplier Quotations are not created", |
| 217 | "reference_doctype": "Material Request" |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 218 | }, |
| 219 | { |
| 220 | "type": "report", |
| 221 | "is_query_report": True, |
Shreya Shah | 5103454 | 2018-06-05 10:44:36 +0530 | [diff] [blame] | 222 | "name": "Address And Contacts", |
mbauskar | cbc49e2 | 2017-01-19 17:45:22 +0530 | [diff] [blame] | 223 | "label": "Supplier Addresses And Contacts", |
Prateeksha Singh | 063af4e | 2019-02-06 17:02:41 +0530 | [diff] [blame] | 224 | "reference_doctype": "Address", |
mbauskar | cbc49e2 | 2017-01-19 17:45:22 +0530 | [diff] [blame] | 225 | "route_options": { |
| 226 | "party_type": "Supplier" |
| 227 | } |
Shreya Shah | 5103454 | 2018-06-05 10:44:36 +0530 | [diff] [blame] | 228 | } |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 229 | ] |
| 230 | }, |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 231 | { |
| 232 | "label": _("Help"), |
| 233 | "items": [ |
| 234 | { |
| 235 | "type": "help", |
| 236 | "label": _("Customer and Supplier"), |
| 237 | "youtube_id": "anoGi_RpQ20" |
| 238 | }, |
Sambhaji Kolate | fd53991 | 2015-10-27 17:01:27 +0530 | [diff] [blame] | 239 | { |
| 240 | "type": "help", |
| 241 | "label": _("Material Request to Purchase Order"), |
| 242 | "youtube_id": "4TN9kPyfIqM" |
| 243 | }, |
| 244 | { |
| 245 | "type": "help", |
| 246 | "label": _("Purchase Order to Payment"), |
| 247 | "youtube_id": "EK65tLdVUDk" |
| 248 | }, |
| 249 | { |
| 250 | "type": "help", |
| 251 | "label": _("Managing Subcontracting"), |
| 252 | "youtube_id": "ThiMCC2DtKo" |
| 253 | }, |
Rushabh Mehta | 6771240 | 2015-05-25 18:30:53 +0530 | [diff] [blame] | 254 | ] |
| 255 | }, |
Anand Doshi | 08ef467 | 2014-05-08 11:43:18 +0530 | [diff] [blame] | 256 | ] |