Merge pull request #17437 from deepeshgarg007/rename_report_develop
fix: Rename Inactive Items report to Inactive Sales Items
diff --git a/erpnext/stock/report/inactive_items/__init__.py b/erpnext/accounts/report/inactive_sales_items/__init__.py
similarity index 100%
rename from erpnext/stock/report/inactive_items/__init__.py
rename to erpnext/accounts/report/inactive_sales_items/__init__.py
diff --git a/erpnext/stock/report/inactive_items/inactive_items.js b/erpnext/accounts/report/inactive_sales_items/inactive_sales_items.js
similarity index 91%
rename from erpnext/stock/report/inactive_items/inactive_items.js
rename to erpnext/accounts/report/inactive_sales_items/inactive_sales_items.js
index 39dfd5c..36bd29e 100644
--- a/erpnext/stock/report/inactive_items/inactive_items.js
+++ b/erpnext/accounts/report/inactive_sales_items/inactive_sales_items.js
@@ -2,7 +2,7 @@
// For license information, please see license.txt
/* eslint-disable */
-frappe.query_reports["Inactive Items"] = {
+frappe.query_reports["Inactive Sales Items"] = {
"filters": [
{
fieldname: "item",
@@ -31,4 +31,4 @@
default: 30
},
]
-}
+};
diff --git a/erpnext/accounts/report/inactive_sales_items/inactive_sales_items.json b/erpnext/accounts/report/inactive_sales_items/inactive_sales_items.json
new file mode 100644
index 0000000..c97f824
--- /dev/null
+++ b/erpnext/accounts/report/inactive_sales_items/inactive_sales_items.json
@@ -0,0 +1,21 @@
+{
+ "add_total_row": 0,
+ "creation": "2019-05-01 13:46:23.044979",
+ "disable_prepared_report": 0,
+ "disabled": 0,
+ "docstatus": 0,
+ "doctype": "Report",
+ "idx": 0,
+ "is_standard": "Yes",
+ "letter_head": "Test Letter Head 1",
+ "modified": "2019-05-01 13:46:23.044979",
+ "modified_by": "Administrator",
+ "module": "Accounts",
+ "name": "Inactive Sales Items",
+ "owner": "Administrator",
+ "prepared_report": 0,
+ "ref_doctype": "Sales Invoice",
+ "report_name": "Inactive Sales Items",
+ "report_type": "Script Report",
+ "roles": []
+}
\ No newline at end of file
diff --git a/erpnext/stock/report/inactive_items/inactive_items.py b/erpnext/accounts/report/inactive_sales_items/inactive_sales_items.py
similarity index 99%
rename from erpnext/stock/report/inactive_items/inactive_items.py
rename to erpnext/accounts/report/inactive_sales_items/inactive_sales_items.py
index 8d87912..844942f 100644
--- a/erpnext/stock/report/inactive_items/inactive_items.py
+++ b/erpnext/accounts/report/inactive_sales_items/inactive_sales_items.py
@@ -145,4 +145,3 @@
items = frappe.get_all("Item", fields=["name", "item_group", "item_name"], filters=filters_dict, order_by="name")
return items
-
diff --git a/erpnext/stock/report/inactive_items/inactive_items.json b/erpnext/stock/report/inactive_items/inactive_items.json
deleted file mode 100644
index b9eb05e..0000000
--- a/erpnext/stock/report/inactive_items/inactive_items.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "add_total_row": 0,
- "creation": "2019-04-16 16:05:00.647308",
- "disable_prepared_report": 0,
- "disabled": 0,
- "docstatus": 0,
- "doctype": "Report",
- "idx": 0,
- "is_standard": "Yes",
- "letter_head": "Test Letter Head 1",
- "modified": "2019-04-16 16:06:33.630043",
- "modified_by": "Administrator",
- "module": "Stock",
- "name": "Inactive Items",
- "owner": "Administrator",
- "prepared_report": 0,
- "ref_doctype": "Sales Invoice",
- "report_name": "Inactive Items",
- "report_type": "Script Report",
- "roles": [
- {
- "role": "Accounts User"
- },
- {
- "role": "Accounts Manager"
- },
- {
- "role": "Auditor"
- }
- ]
-}
\ No newline at end of file