Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 1 | frappe.provide("erpnext.setup"); |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 2 | |
| 3 | frappe.pages['setup-wizard'].on_page_load = function(wrapper) { |
Faris Ansari | ab74ca7 | 2017-05-30 12:54:42 +0530 | [diff] [blame] | 4 | if(frappe.sys_defaults.company) { |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 5 | frappe.set_route("desk"); |
| 6 | return; |
| 7 | } |
Anand Doshi | 1ed8283 | 2015-11-16 12:58:14 +0530 | [diff] [blame] | 8 | }; |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 9 | |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 10 | frappe.setup.on("before_load", function () { |
| 11 | erpnext.setup.slides_settings.map(frappe.setup.add_slide); |
| 12 | }); |
| 13 | |
| 14 | erpnext.setup.slides_settings = [ |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 15 | { |
| 16 | // Domain |
| 17 | name: 'domain', |
Prateeksha Singh | 7351709 | 2017-12-06 13:28:06 +0530 | [diff] [blame] | 18 | title: __('Select your Domains'), |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 19 | fields: [ |
| 20 | { |
Prateeksha Singh | 7351709 | 2017-12-06 13:28:06 +0530 | [diff] [blame] | 21 | fieldname: 'domains', |
| 22 | label: __('Domains'), |
| 23 | fieldtype: 'MultiCheck', |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 24 | options: [ |
| 25 | { "label": __("Distribution"), "value": "Distribution" }, |
Ameya Shenoy | cc05c0b | 2017-12-13 18:50:39 +0530 | [diff] [blame] | 26 | { "label": __("Education"), "value": "Education" }, |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 27 | { "label": __("Manufacturing"), "value": "Manufacturing" }, |
| 28 | { "label": __("Retail"), "value": "Retail" }, |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 29 | { "label": __("Services"), "value": "Services" }, |
Ameya Shenoy | cc05c0b | 2017-12-13 18:50:39 +0530 | [diff] [blame] | 30 | { "label": __("Agriculture (beta)"), "value": "Agriculture" }, |
Ameya Shenoy | 5c62368 | 2017-12-06 18:36:27 +0530 | [diff] [blame] | 31 | { "label": __("Healthcare (beta)"), "value": "Healthcare" }, |
Ameya Shenoy | cc05c0b | 2017-12-13 18:50:39 +0530 | [diff] [blame] | 32 | { "label": __("Non Profit (beta)"), "value": "Non Profit" } |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 33 | ], reqd: 1 |
Rushabh Mehta | 20038ad | 2016-07-21 16:01:59 +0530 | [diff] [blame] | 34 | }, |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 35 | ], |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 36 | // help: __('Select the nature of your business.'), |
Prateeksha Singh | 7351709 | 2017-12-06 13:28:06 +0530 | [diff] [blame] | 37 | validate: function () { |
| 38 | if (this.values.domains.length === 0) { |
| 39 | frappe.msgprint(__("Please select at least one domain.")); |
| 40 | return false; |
| 41 | } |
| 42 | frappe.setup.domains = this.values.domains; |
| 43 | return true; |
Rushabh Mehta | 20038ad | 2016-07-21 16:01:59 +0530 | [diff] [blame] | 44 | }, |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 45 | }, |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 46 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 47 | { |
| 48 | // Brand |
| 49 | name: 'brand', |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 50 | icon: "fa fa-bookmark", |
| 51 | title: __("The Brand"), |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 52 | // help: __('Upload your letter head and logo. (you can edit them later).'), |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 53 | fields: [ |
| 54 | { |
| 55 | fieldtype: "Attach Image", fieldname: "attach_logo", |
| 56 | label: __("Attach Logo"), |
| 57 | description: __("100px by 100px"), |
Makarand Bauskar | 1d9fd9a | 2017-07-26 18:19:41 +0530 | [diff] [blame] | 58 | is_private: 0, |
| 59 | align: 'center' |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 60 | }, |
| 61 | { |
| 62 | fieldname: 'company_name', |
Prateeksha Singh | 7351709 | 2017-12-06 13:28:06 +0530 | [diff] [blame] | 63 | label: frappe.setup.domains.includes('Education') ? |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 64 | __('Institute Name') : __('Company Name'), |
Makarand Bauskar | 1d9fd9a | 2017-07-26 18:19:41 +0530 | [diff] [blame] | 65 | fieldtype: 'Data', |
| 66 | reqd: 1 |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 67 | }, |
| 68 | { |
| 69 | fieldname: 'company_abbr', |
Prateeksha Singh | 7351709 | 2017-12-06 13:28:06 +0530 | [diff] [blame] | 70 | label: frappe.setup.domains.includes('Education') ? |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 71 | __('Institute Abbreviation') : __('Company Abbreviation'), |
| 72 | fieldtype: 'Data' |
| 73 | } |
| 74 | ], |
| 75 | onload: function(slide) { |
| 76 | this.bind_events(slide); |
| 77 | }, |
| 78 | bind_events: function (slide) { |
| 79 | slide.get_input("company_name").on("change", function () { |
| 80 | var parts = slide.get_input("company_name").val().split(" "); |
| 81 | var abbr = $.map(parts, function (p) { return p ? p.substr(0, 1) : null }).join(""); |
Makarand Bauskar | 30f2bcb | 2017-07-11 12:36:57 +0530 | [diff] [blame] | 82 | slide.get_field("company_abbr").set_value(abbr.slice(0, 5).toUpperCase()); |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 83 | }).val(frappe.boot.sysdefaults.company_name || "").trigger("change"); |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 84 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 85 | slide.get_input("company_abbr").on("change", function () { |
| 86 | if (slide.get_input("company_abbr").val().length > 5) { |
Nabin Hait | e6d65bc | 2018-02-14 17:44:06 +0530 | [diff] [blame] | 87 | frappe.msgprint(__("Company Abbreviation cannot have more than 5 characters")); |
Makarand Bauskar | 30f2bcb | 2017-07-11 12:36:57 +0530 | [diff] [blame] | 88 | slide.get_field("company_abbr").set_value(""); |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 89 | } |
| 90 | }); |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 91 | }, |
| 92 | validate: function() { |
Makarand Bauskar | b1bf502 | 2017-10-02 11:38:03 +0530 | [diff] [blame] | 93 | if ((this.values.company_name || "").toLowerCase() == "company") { |
| 94 | frappe.msgprint(__("Company Name cannot be Company")); |
| 95 | return false; |
| 96 | } |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 97 | if (!this.values.company_abbr) { |
| 98 | return false; |
| 99 | } |
Faris Ansari | 40c1534 | 2018-12-06 07:37:32 +0530 | [diff] [blame] | 100 | if (this.values.company_abbr.length > 5) { |
| 101 | return false; |
| 102 | } |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 103 | return true; |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 104 | } |
| 105 | }, |
| 106 | { |
| 107 | // Organisation |
| 108 | name: 'organisation', |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 109 | title: __("Your Organization"), |
| 110 | icon: "fa fa-building", |
Prateeksha Singh | 7351709 | 2017-12-06 13:28:06 +0530 | [diff] [blame] | 111 | // help: frappe.setup.domains.includes('Education') ? |
Prateeksha Singh | 95d8fd3 | 2017-09-04 11:14:04 +0530 | [diff] [blame] | 112 | // __('The name of the institute for which you are setting up this system.') : |
| 113 | // __('The name of your company for which you are setting up this system.')), |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 114 | fields: [ |
| 115 | { |
| 116 | fieldname: 'company_tagline', |
| 117 | label: __('What does it do?'), |
| 118 | fieldtype: 'Data', |
Prateeksha Singh | 7351709 | 2017-12-06 13:28:06 +0530 | [diff] [blame] | 119 | placeholder: frappe.setup.domains.includes('Education') ? |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 120 | __('e.g. "Primary School" or "University"') : |
| 121 | __('e.g. "Build tools for builders"'), |
| 122 | reqd: 1 |
| 123 | }, |
| 124 | { fieldname: 'bank_account', label: __('Bank Name'), fieldtype: 'Data', reqd: 1 }, |
| 125 | { |
| 126 | fieldname: 'chart_of_accounts', label: __('Chart of Accounts'), |
| 127 | options: "", fieldtype: 'Select' |
Anand Doshi | 1ed8283 | 2015-11-16 12:58:14 +0530 | [diff] [blame] | 128 | }, |
Zarrar | 254ce64 | 2018-06-28 14:15:34 +0530 | [diff] [blame] | 129 | { fieldname: 'view_coa', label: __('View Chart of Accounts'), fieldtype: 'Button' }, |
Anand Doshi | 1ed8283 | 2015-11-16 12:58:14 +0530 | [diff] [blame] | 130 | |
strixaluco | 372a881 | 2017-07-17 14:36:25 +0800 | [diff] [blame] | 131 | { fieldtype: "Section Break", label: __('Financial Year') }, |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 132 | { fieldname: 'fy_start_date', label: __('Start Date'), fieldtype: 'Date', reqd: 1 }, |
| 133 | { fieldtype: "Column Break" }, |
| 134 | { fieldname: 'fy_end_date', label: __('End Date'), fieldtype: 'Date', reqd: 1 }, |
| 135 | ], |
| 136 | |
| 137 | onload: function (slide) { |
| 138 | this.load_chart_of_accounts(slide); |
| 139 | this.bind_events(slide); |
| 140 | this.set_fy_dates(slide); |
| 141 | }, |
| 142 | |
| 143 | validate: function () { |
Zarrar | 441a1e1 | 2018-02-16 14:44:42 +0530 | [diff] [blame] | 144 | let me = this; |
| 145 | let exist; |
| 146 | |
Faris Ansari | aa856c4 | 2018-09-18 10:42:04 +0530 | [diff] [blame] | 147 | if (!this.validate_fy_dates()) { |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 148 | return false; |
| 149 | } |
Zarrar | 441a1e1 | 2018-02-16 14:44:42 +0530 | [diff] [blame] | 150 | |
| 151 | // Validate bank name |
| 152 | if(me.values.bank_account){ |
| 153 | frappe.call({ |
| 154 | async: false, |
| 155 | method: "erpnext.accounts.doctype.account.chart_of_accounts.chart_of_accounts.validate_bank_account", |
| 156 | args: { |
| 157 | "coa": me.values.chart_of_accounts, |
| 158 | "bank_account": me.values.bank_account |
| 159 | }, |
| 160 | callback: function (r) { |
| 161 | if(r.message){ |
| 162 | exist = r.message; |
| 163 | me.get_field("bank_account").set_value(""); |
| 164 | frappe.msgprint(__(`Account ${me.values.bank_account} already exists, enter a different name for your bank account`)); |
| 165 | } |
| 166 | } |
| 167 | }); |
| 168 | return !exist; // Return False if exist = true |
| 169 | } |
| 170 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 171 | return true; |
| 172 | }, |
| 173 | |
Faris Ansari | aa856c4 | 2018-09-18 10:42:04 +0530 | [diff] [blame] | 174 | validate_fy_dates: function() { |
| 175 | // validate fiscal year start and end dates |
| 176 | const invalid = this.values.fy_start_date == 'Invalid date' || |
| 177 | this.values.fy_end_date == 'Invalid date'; |
| 178 | const start_greater_than_end = this.values.fy_start_date > this.values.fy_end_date; |
| 179 | |
| 180 | if (invalid || start_greater_than_end) { |
| 181 | frappe.msgprint(__("Please enter valid Financial Year Start and End Dates")); |
| 182 | return false; |
| 183 | } |
| 184 | |
| 185 | return true; |
| 186 | }, |
| 187 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 188 | set_fy_dates: function (slide) { |
| 189 | var country = frappe.wizard.values.country; |
| 190 | |
| 191 | if (country) { |
| 192 | var fy = erpnext.setup.fiscal_years[country]; |
| 193 | var current_year = moment(new Date()).year(); |
| 194 | var next_year = current_year + 1; |
| 195 | if (!fy) { |
Makarand Bauskar | bf66d7e | 2017-07-05 17:26:34 +0530 | [diff] [blame] | 196 | fy = ["01-01", "12-31"]; |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 197 | next_year = current_year; |
Anand Doshi | 5c3469a | 2015-11-24 17:06:54 +0530 | [diff] [blame] | 198 | } |
| 199 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 200 | var year_start_date = current_year + "-" + fy[0]; |
| 201 | if (year_start_date > frappe.datetime.get_today()) { |
Rushabh Mehta | 63b0642 | 2017-07-05 17:56:04 +0530 | [diff] [blame] | 202 | next_year = current_year; |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 203 | current_year -= 1; |
Anand Doshi | 5c3469a | 2015-11-24 17:06:54 +0530 | [diff] [blame] | 204 | } |
Rushabh Mehta | 63b0642 | 2017-07-05 17:56:04 +0530 | [diff] [blame] | 205 | slide.get_field("fy_start_date").set_value(current_year + '-' + fy[0]); |
| 206 | slide.get_field("fy_end_date").set_value(next_year + '-' + fy[1]); |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 207 | } |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 208 | }, |
Anand Doshi | 5c3469a | 2015-11-24 17:06:54 +0530 | [diff] [blame] | 209 | |
Anand Doshi | 1ed8283 | 2015-11-16 12:58:14 +0530 | [diff] [blame] | 210 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 211 | load_chart_of_accounts: function (slide) { |
| 212 | var country = frappe.wizard.values.country; |
Anand Doshi | 1ed8283 | 2015-11-16 12:58:14 +0530 | [diff] [blame] | 213 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 214 | if (country) { |
| 215 | frappe.call({ |
| 216 | method: "erpnext.accounts.doctype.account.chart_of_accounts.chart_of_accounts.get_charts_for_country", |
Zarrar | 254ce64 | 2018-06-28 14:15:34 +0530 | [diff] [blame] | 217 | args: { "country": country, with_standard: true }, |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 218 | callback: function (r) { |
| 219 | if (r.message) { |
| 220 | slide.get_input("chart_of_accounts").empty() |
| 221 | .add_options(r.message); |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 222 | } |
Anand Doshi | 1ed8283 | 2015-11-16 12:58:14 +0530 | [diff] [blame] | 223 | } |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 224 | }) |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 225 | } |
| 226 | }, |
Rushabh Mehta | 37b4d75 | 2015-11-09 16:53:11 +0530 | [diff] [blame] | 227 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 228 | bind_events: function (slide) { |
Zarrar | 254ce64 | 2018-06-28 14:15:34 +0530 | [diff] [blame] | 229 | let me = this; |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 230 | slide.get_input("fy_start_date").on("change", function () { |
Rushabh Mehta | 63b0642 | 2017-07-05 17:56:04 +0530 | [diff] [blame] | 231 | var start_date = slide.form.fields_dict.fy_start_date.get_value(); |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 232 | var year_end_date = |
Rushabh Mehta | 63b0642 | 2017-07-05 17:56:04 +0530 | [diff] [blame] | 233 | frappe.datetime.add_days(frappe.datetime.add_months(start_date, 12), -1); |
| 234 | slide.form.fields_dict.fy_end_date.set_value(year_end_date); |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 235 | }); |
Zarrar | 254ce64 | 2018-06-28 14:15:34 +0530 | [diff] [blame] | 236 | |
| 237 | slide.get_input("view_coa").on("click", function() { |
| 238 | let chart_template = slide.form.fields_dict.chart_of_accounts.get_value(); |
| 239 | if(!chart_template) return; |
| 240 | |
| 241 | me.charts_modal(slide, chart_template); |
| 242 | }); |
| 243 | }, |
| 244 | |
| 245 | charts_modal: function(slide, chart_template) { |
| 246 | let parent = __('All Accounts'); |
| 247 | |
| 248 | var dialog = new frappe.ui.Dialog({ |
| 249 | title: chart_template, |
| 250 | fields: [ |
| 251 | {'fieldname': 'expand_all', 'label': __('Expand All'), 'fieldtype': 'Button', |
| 252 | click: function() { |
| 253 | // expand all nodes on button click |
| 254 | coa_tree.load_children(coa_tree.root_node, true); |
| 255 | } |
| 256 | }, |
| 257 | {'fieldname': 'collapse_all', 'label': __('Collapse All'), 'fieldtype': 'Button', |
| 258 | click: function() { |
| 259 | // collapse all nodes |
| 260 | coa_tree.get_all_nodes(coa_tree.root_node.data.value, coa_tree.root_node.is_root) |
| 261 | .then(data_list => { |
| 262 | data_list.map(d => { coa_tree.toggle_node(coa_tree.nodes[d.parent]); }); |
| 263 | }); |
| 264 | } |
| 265 | } |
| 266 | ] |
| 267 | }); |
| 268 | |
| 269 | // render tree structure in the dialog modal |
| 270 | let coa_tree = new frappe.ui.Tree({ |
| 271 | parent: $(dialog.body), |
| 272 | label: parent, |
| 273 | expandable: true, |
| 274 | method: 'erpnext.accounts.utils.get_coa', |
| 275 | args: { |
| 276 | chart: chart_template, |
| 277 | parent: parent, |
| 278 | doctype: 'Account' |
| 279 | }, |
| 280 | onclick: function(node) { |
| 281 | parent = node.value; |
| 282 | } |
| 283 | }); |
| 284 | |
| 285 | // add class to show buttons side by side |
Zarrar | c1225a8 | 2018-07-03 10:35:31 +0530 | [diff] [blame] | 286 | const form_container = $(dialog.body).find('form'); |
| 287 | const buttons = $(form_container).find('.frappe-control'); |
| 288 | form_container.addClass('flex'); |
| 289 | buttons.map((index, button) => { |
| 290 | $(button).css({"margin-right": "1em"}); |
| 291 | }) |
Zarrar | 254ce64 | 2018-06-28 14:15:34 +0530 | [diff] [blame] | 292 | |
| 293 | dialog.show(); |
| 294 | coa_tree.load_children(coa_tree.root_node, true); // expand all node trigger |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 295 | } |
Anand Doshi | 3177138 | 2016-07-05 21:34:21 +0530 | [diff] [blame] | 296 | } |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 297 | ]; |
Anand Doshi | 3177138 | 2016-07-05 21:34:21 +0530 | [diff] [blame] | 298 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 299 | // Source: https://en.wikipedia.org/wiki/Fiscal_year |
| 300 | // default 1st Jan - 31st Dec |
Rushabh Mehta | 20038ad | 2016-07-21 16:01:59 +0530 | [diff] [blame] | 301 | |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 302 | erpnext.setup.fiscal_years = { |
Shreya Shah | db499dc | 2017-12-12 14:19:35 +0530 | [diff] [blame] | 303 | "Afghanistan": ["12-21", "12-20"], |
Makarand Bauskar | bf66d7e | 2017-07-05 17:26:34 +0530 | [diff] [blame] | 304 | "Australia": ["07-01", "06-30"], |
| 305 | "Bangladesh": ["07-01", "06-30"], |
| 306 | "Canada": ["04-01", "03-31"], |
| 307 | "Costa Rica": ["10-01", "09-30"], |
| 308 | "Egypt": ["07-01", "06-30"], |
| 309 | "Hong Kong": ["04-01", "03-31"], |
| 310 | "India": ["04-01", "03-31"], |
| 311 | "Iran": ["06-23", "06-22"], |
| 312 | "Italy": ["07-01", "06-30"], |
| 313 | "Myanmar": ["04-01", "03-31"], |
| 314 | "New Zealand": ["04-01", "03-31"], |
| 315 | "Pakistan": ["07-01", "06-30"], |
| 316 | "Singapore": ["04-01", "03-31"], |
| 317 | "South Africa": ["03-01", "02-28"], |
| 318 | "Thailand": ["10-01", "09-30"], |
| 319 | "United Kingdom": ["04-01", "03-31"], |
Prateeksha Singh | 5e4c8ec | 2017-07-03 18:23:57 +0530 | [diff] [blame] | 320 | }; |