Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 1 | frappe.provide('erpnext.stock'); |
| 2 | |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 3 | erpnext.stock.ItemDashboard = class ItemDashboard { |
| 4 | constructor(opts) { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 5 | $.extend(this, opts); |
| 6 | this.make(); |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 7 | } |
| 8 | make() { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 9 | var me = this; |
| 10 | this.start = 0; |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 11 | if (!this.sort_by) { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 12 | this.sort_by = 'projected_qty'; |
| 13 | this.sort_order = 'asc'; |
| 14 | } |
| 15 | |
| 16 | this.content = $(frappe.render_template('item_dashboard')).appendTo(this.parent); |
| 17 | this.result = this.content.find('.result'); |
| 18 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 19 | this.content.on('click', '.btn-move', function () { |
| 20 | handle_move_add($(this), "Move"); |
Shivam Mishra | 38b930b | 2019-07-05 10:38:48 +0530 | [diff] [blame] | 21 | }); |
| 22 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 23 | this.content.on('click', '.btn-add', function () { |
| 24 | handle_move_add($(this), "Add"); |
Shivam Mishra | 5738c93 | 2019-07-16 12:52:19 +0530 | [diff] [blame] | 25 | }); |
| 26 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 27 | this.content.on('click', '.btn-edit', function () { |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 28 | let item = unescape($(this).attr('data-item')); |
| 29 | let warehouse = unescape($(this).attr('data-warehouse')); |
| 30 | let company = unescape($(this).attr('data-company')); |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 31 | frappe.db.get_value('Putaway Rule', { |
| 32 | 'item_code': item, |
| 33 | 'warehouse': warehouse, |
| 34 | 'company': company |
| 35 | }, 'name', (r) => { |
| 36 | frappe.set_route("Form", "Putaway Rule", r.name); |
| 37 | }); |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 38 | }); |
| 39 | |
Shivam Mishra | 5738c93 | 2019-07-16 12:52:19 +0530 | [diff] [blame] | 40 | function handle_move_add(element, action) { |
| 41 | let item = unescape(element.attr('data-item')); |
| 42 | let warehouse = unescape(element.attr('data-warehouse')); |
| 43 | let actual_qty = unescape(element.attr('data-actual_qty')); |
| 44 | let disable_quick_entry = Number(unescape(element.attr('data-disable_quick_entry'))); |
s-aga-r | dc0ddf8 | 2023-02-03 18:08:34 +0530 | [diff] [blame] | 45 | let entry_type = action === "Move" ? "Material Transfer" : "Material Receipt"; |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 46 | |
Shivam Mishra | fd6ff62 | 2019-07-16 12:32:50 +0530 | [diff] [blame] | 47 | if (disable_quick_entry) { |
Shivam Mishra | 5738c93 | 2019-07-16 12:52:19 +0530 | [diff] [blame] | 48 | open_stock_entry(item, warehouse, entry_type); |
Shivam Mishra | fd6ff62 | 2019-07-16 12:32:50 +0530 | [diff] [blame] | 49 | } else { |
Shivam Mishra | 5738c93 | 2019-07-16 12:52:19 +0530 | [diff] [blame] | 50 | if (action === "Add") { |
| 51 | let rate = unescape($(this).attr('data-rate')); |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 52 | erpnext.stock.move_item(item, null, warehouse, actual_qty, rate, function () { |
| 53 | me.refresh(); |
| 54 | }); |
| 55 | } else { |
| 56 | erpnext.stock.move_item(item, warehouse, null, actual_qty, null, function () { |
| 57 | me.refresh(); |
| 58 | }); |
Shivam Mishra | 5738c93 | 2019-07-16 12:52:19 +0530 | [diff] [blame] | 59 | } |
Shivam Mishra | fd6ff62 | 2019-07-16 12:32:50 +0530 | [diff] [blame] | 60 | } |
Shivam Mishra | 5738c93 | 2019-07-16 12:52:19 +0530 | [diff] [blame] | 61 | } |
Shivam Mishra | 38b930b | 2019-07-05 10:38:48 +0530 | [diff] [blame] | 62 | |
| 63 | function open_stock_entry(item, warehouse, entry_type) { |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 64 | frappe.model.with_doctype('Stock Entry', function () { |
Shivam Mishra | 38b930b | 2019-07-05 10:38:48 +0530 | [diff] [blame] | 65 | var doc = frappe.model.get_new_doc('Stock Entry'); |
s-aga-r | dc0ddf8 | 2023-02-03 18:08:34 +0530 | [diff] [blame] | 66 | if (entry_type) { |
| 67 | doc.stock_entry_type = entry_type; |
| 68 | } |
Shivam Mishra | 38b930b | 2019-07-05 10:38:48 +0530 | [diff] [blame] | 69 | |
| 70 | var row = frappe.model.add_child(doc, 'items'); |
| 71 | row.item_code = item; |
s-aga-r | dc0ddf8 | 2023-02-03 18:08:34 +0530 | [diff] [blame] | 72 | |
| 73 | if (entry_type === "Material Transfer") { |
| 74 | row.s_warehouse = warehouse; |
| 75 | } |
| 76 | else { |
| 77 | row.t_warehouse = warehouse; |
| 78 | } |
Shivam Mishra | 38b930b | 2019-07-05 10:38:48 +0530 | [diff] [blame] | 79 | |
| 80 | frappe.set_route('Form', doc.doctype, doc.name); |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 81 | }); |
Shivam Mishra | 38b930b | 2019-07-05 10:38:48 +0530 | [diff] [blame] | 82 | } |
| 83 | |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 84 | // more |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 85 | this.content.find('.btn-more').on('click', function () { |
marination | a5d8d32 | 2020-12-09 16:27:18 +0530 | [diff] [blame] | 86 | me.start += me.page_length; |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 87 | me.refresh(); |
| 88 | }); |
| 89 | |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 90 | } |
| 91 | refresh() { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 92 | if(this.before_refresh) { |
| 93 | this.before_refresh(); |
| 94 | } |
| 95 | |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 96 | let args = { |
| 97 | item_code: this.item_code, |
| 98 | warehouse: this.warehouse, |
| 99 | parent_warehouse: this.parent_warehouse, |
| 100 | item_group: this.item_group, |
| 101 | company: this.company, |
| 102 | start: this.start, |
| 103 | sort_by: this.sort_by, |
| 104 | sort_order: this.sort_order |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 105 | }; |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 106 | |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 107 | var me = this; |
| 108 | frappe.call({ |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 109 | method: this.method, |
| 110 | args: args, |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 111 | callback: function (r) { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 112 | me.render(r.message); |
Devin Slauenwhite | 123920d | 2022-12-29 00:01:26 -0500 | [diff] [blame] | 113 | if(me.after_refresh) { |
| 114 | me.after_refresh(); |
| 115 | } |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 116 | } |
| 117 | }); |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 118 | } |
| 119 | render(data) { |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 120 | if (this.start===0) { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 121 | this.max_count = 0; |
| 122 | this.result.empty(); |
| 123 | } |
| 124 | |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 125 | let context = ""; |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 126 | if (this.page_name === "warehouse-capacity-summary") { |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 127 | context = this.get_capacity_dashboard_data(data); |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 128 | } else { |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 129 | context = this.get_item_dashboard_data(data, this.max_count, true); |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 130 | } |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 131 | |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 132 | // show more button |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 133 | if (data && data.length === (this.page_length + 1)) { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 134 | this.content.find('.more').removeClass('hidden'); |
| 135 | |
| 136 | // remove the last element |
| 137 | data.splice(-1); |
| 138 | } else { |
| 139 | this.content.find('.more').addClass('hidden'); |
| 140 | } |
| 141 | |
Vinayak Jethe | 2c8ce5a | 2018-01-24 13:51:26 +0530 | [diff] [blame] | 142 | // If not any stock in any warehouses provide a message to end user |
Stavros Anastasiadis | 58b5878 | 2017-10-05 16:14:50 +0300 | [diff] [blame] | 143 | if (context.data.length > 0) { |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 144 | this.content.find('.result').css('text-align', 'unset'); |
| 145 | $(frappe.render_template(this.template, context)).appendTo(this.result); |
Stavros Anastasiadis | 58b5878 | 2017-10-05 16:14:50 +0300 | [diff] [blame] | 146 | } else { |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 147 | var message = __("No Stock Available Currently"); |
| 148 | this.content.find('.result').css('text-align', 'center'); |
| 149 | |
marination | a97eb6a | 2021-02-07 22:27:40 +0530 | [diff] [blame] | 150 | $(`<div class='text-muted' style='margin: 20px 5px;'> |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 151 | ${message} </div>`).appendTo(this.result); |
Stavros Anastasiadis | 58b5878 | 2017-10-05 16:14:50 +0300 | [diff] [blame] | 152 | } |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 153 | } |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 154 | |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 155 | get_item_dashboard_data(data, max_count, show_item) { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 156 | if(!max_count) max_count = 0; |
Rushabh Mehta | 0dcb861 | 2016-05-31 07:22:37 +0530 | [diff] [blame] | 157 | if(!data) data = []; |
Vinayak Jethe | 549c196 | 2018-01-24 19:47:59 +0530 | [diff] [blame] | 158 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 159 | data.forEach(function (d) { |
Nabin Hait | a674640 | 2018-03-28 11:16:00 +0530 | [diff] [blame] | 160 | d.actual_or_pending = d.projected_qty + d.reserved_qty + d.reserved_qty_for_production + d.reserved_qty_for_sub_contract; |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 161 | d.pending_qty = 0; |
Nabin Hait | 2c7a6e6 | 2018-03-12 14:12:12 +0530 | [diff] [blame] | 162 | d.total_reserved = d.reserved_qty + d.reserved_qty_for_production + d.reserved_qty_for_sub_contract; |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 163 | if (d.actual_or_pending > d.actual_qty) { |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 164 | d.pending_qty = d.actual_or_pending - d.actual_qty; |
| 165 | } |
| 166 | |
| 167 | max_count = Math.max(d.actual_or_pending, d.actual_qty, |
| 168 | d.total_reserved, max_count); |
| 169 | }); |
Vinayak Jethe | 549c196 | 2018-01-24 19:47:59 +0530 | [diff] [blame] | 170 | |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 171 | let can_write = 0; |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 172 | if (frappe.boot.user.can_write.indexOf("Stock Entry") >= 0) { |
Vinayak Jethe | 549c196 | 2018-01-24 19:47:59 +0530 | [diff] [blame] | 173 | can_write = 1; |
| 174 | } |
| 175 | |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 176 | return { |
| 177 | data: data, |
| 178 | max_count: max_count, |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 179 | can_write: can_write, |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 180 | show_item: show_item || false |
marination | b8aeb9e | 2021-01-05 12:16:25 +0530 | [diff] [blame] | 181 | }; |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 182 | } |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 183 | |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 184 | get_capacity_dashboard_data(data) { |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 185 | if (!data) data = []; |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 186 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 187 | data.forEach(function (d) { |
| 188 | d.color = d.percent_occupied >= 80 ? "#f8814f" : "#2490ef"; |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 189 | }); |
| 190 | |
| 191 | let can_write = 0; |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 192 | if (frappe.boot.user.can_write.indexOf("Putaway Rule") >= 0) { |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 193 | can_write = 1; |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 194 | } |
marination | 1087d97 | 2020-11-26 10:45:44 +0530 | [diff] [blame] | 195 | |
| 196 | return { |
| 197 | data: data, |
| 198 | can_write: can_write, |
marination | 0f3cfc5 | 2020-12-08 19:11:51 +0530 | [diff] [blame] | 199 | }; |
Rushabh Mehta | 3d2622c | 2016-04-25 17:53:42 +0530 | [diff] [blame] | 200 | } |
Faris Ansari | 1fe891b | 2021-04-23 08:04:00 +0530 | [diff] [blame] | 201 | }; |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 202 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 203 | erpnext.stock.move_item = function (item, source, target, actual_qty, rate, callback) { |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 204 | var dialog = new frappe.ui.Dialog({ |
| 205 | title: target ? __('Add Item') : __('Move Item'), |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 206 | fields: [{ |
| 207 | fieldname: 'item_code', |
| 208 | label: __('Item'), |
| 209 | fieldtype: 'Link', |
| 210 | options: 'Item', |
| 211 | read_only: 1 |
| 212 | }, |
| 213 | { |
| 214 | fieldname: 'source', |
| 215 | label: __('Source Warehouse'), |
| 216 | fieldtype: 'Link', |
| 217 | options: 'Warehouse', |
| 218 | read_only: 1 |
| 219 | }, |
| 220 | { |
| 221 | fieldname: 'target', |
| 222 | label: __('Target Warehouse'), |
| 223 | fieldtype: 'Link', |
| 224 | options: 'Warehouse', |
Ankush Menat | 88a21ca | 2022-01-26 01:01:10 +0530 | [diff] [blame] | 225 | reqd: 1, |
| 226 | get_query() { |
| 227 | return { |
| 228 | filters: { |
| 229 | is_group: 0 |
| 230 | } |
| 231 | } |
| 232 | } |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 233 | }, |
| 234 | { |
| 235 | fieldname: 'qty', |
| 236 | label: __('Quantity'), |
| 237 | reqd: 1, |
| 238 | fieldtype: 'Float', |
| 239 | description: __('Available {0}', [actual_qty]) |
| 240 | }, |
| 241 | { |
| 242 | fieldname: 'rate', |
| 243 | label: __('Rate'), |
| 244 | fieldtype: 'Currency', |
| 245 | hidden: 1 |
| 246 | }, |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 247 | ], |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 248 | }); |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 249 | dialog.show(); |
| 250 | dialog.get_field('item_code').set_input(item); |
| 251 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 252 | if (source) { |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 253 | dialog.get_field('source').set_input(source); |
| 254 | } else { |
| 255 | dialog.get_field('source').df.hidden = 1; |
| 256 | dialog.get_field('source').refresh(); |
| 257 | } |
| 258 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 259 | if (rate) { |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 260 | dialog.get_field('rate').set_value(rate); |
| 261 | dialog.get_field('rate').df.hidden = 0; |
| 262 | dialog.get_field('rate').refresh(); |
| 263 | } |
| 264 | |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 265 | if (target) { |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 266 | dialog.get_field('target').df.read_only = 1; |
| 267 | dialog.get_field('target').value = target; |
| 268 | dialog.get_field('target').refresh(); |
| 269 | } |
| 270 | |
Ankush Menat | 0bed592 | 2022-01-26 01:01:33 +0530 | [diff] [blame] | 271 | dialog.set_primary_action(__('Create Stock Entry'), function () { |
Devin Slauenwhite | cdf631b | 2022-06-29 02:36:47 -0400 | [diff] [blame] | 272 | if (source && (dialog.get_value("qty") == 0 || dialog.get_value("qty") > actual_qty)) { |
| 273 | frappe.msgprint(__("Quantity must be greater than zero, and less or equal to {0}", [actual_qty])); |
| 274 | return; |
| 275 | } |
| 276 | |
| 277 | if (dialog.get_value("source") === dialog.get_value("target")) { |
| 278 | frappe.msgprint(__("Source and target warehouse must be different")); |
| 279 | return; |
| 280 | } |
| 281 | |
Ankush Menat | 0bed592 | 2022-01-26 01:01:33 +0530 | [diff] [blame] | 282 | frappe.model.with_doctype('Stock Entry', function () { |
| 283 | let doc = frappe.model.get_new_doc('Stock Entry'); |
| 284 | doc.from_warehouse = dialog.get_value('source'); |
| 285 | doc.to_warehouse = dialog.get_value('target'); |
| 286 | doc.stock_entry_type = doc.from_warehouse ? "Material Transfer" : "Material Receipt"; |
| 287 | let row = frappe.model.add_child(doc, 'items'); |
| 288 | row.item_code = dialog.get_value('item_code'); |
Ankush Menat | 3cc47d5 | 2022-02-28 13:04:24 +0530 | [diff] [blame] | 289 | row.s_warehouse = dialog.get_value('source'); |
Ankush Menat | 0bed592 | 2022-01-26 01:01:33 +0530 | [diff] [blame] | 290 | row.t_warehouse = dialog.get_value('target'); |
| 291 | row.qty = dialog.get_value('qty'); |
| 292 | row.conversion_factor = 1; |
| 293 | row.transfer_qty = dialog.get_value('qty'); |
| 294 | row.basic_rate = dialog.get_value('rate'); |
| 295 | frappe.set_route('Form', doc.doctype, doc.name); |
Shivam Mishra | 444091b | 2019-07-10 10:22:08 +0530 | [diff] [blame] | 296 | }); |
| 297 | }); |
Anurag Mishra | abf974d | 2021-03-17 18:40:21 +0530 | [diff] [blame] | 298 | }; |