diff --git a/erpnext/config/buying.py b/erpnext/config/buying.py index c8a74be2e5..bc6251982b 100644 --- a/erpnext/config/buying.py +++ b/erpnext/config/buying.py @@ -129,12 +129,6 @@ def get_data(): "name": "Material Requests for which Supplier Quotations are not created", "doctype": "Material Request" }, - { - "type": "report", - "is_query_report": True, - "name": "Purchase In Transit", - "doctype": "Purchase Order" - }, { "type": "report", "is_query_report": True, diff --git a/erpnext/config/stock.py b/erpnext/config/stock.py index 0f53288b95..ace83fc447 100644 --- a/erpnext/config/stock.py +++ b/erpnext/config/stock.py @@ -211,12 +211,6 @@ def get_data(): "name": "Serial No Warranty Expiry", "doctype": "Serial No" }, - { - "type": "report", - "is_query_report": True, - "name": "Purchase In Transit", - "doctype": "Purchase Order" - }, { "type": "report", "is_query_report": True, diff --git a/erpnext/patches.txt b/erpnext/patches.txt index e5e9e0ad15..b5e66d4b1a 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -44,3 +44,4 @@ execute:frappe.db.sql("delete from `tabWebsite Item Group` where ifnull(item_gro execute:frappe.delete_doc("Print Format", "SalesInvoice") execute:import frappe.defaults;frappe.defaults.clear_default("price_list_currency") erpnext.patches.v4_0.update_account_root_type +execute:frappe.delete_doc("Report", "Purchase In Transit") diff --git a/erpnext/stock/report/purchase_in_transit/__init__.py b/erpnext/stock/report/purchase_in_transit/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/stock/report/purchase_in_transit/purchase_in_transit.json b/erpnext/stock/report/purchase_in_transit/purchase_in_transit.json deleted file mode 100644 index 7ef63d4a9d..0000000000 --- a/erpnext/stock/report/purchase_in_transit/purchase_in_transit.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "apply_user_permissions": 1, - "creation": "2013-05-06 12:09:05", - "docstatus": 0, - "doctype": "Report", - "idx": 1, - "is_standard": "Yes", - "modified": "2014-06-03 07:18:17.234173", - "modified_by": "Administrator", - "module": "Stock", - "name": "Purchase In Transit", - "owner": "Administrator", - "query": "SELECT\n pi.name as \"Purchase Invoice:Link/Purchase Invoice:120\",\n\tpi.posting_date as \"Posting Date:Date:100\",\n\tpi.credit_to as \"Supplier Account:Link/Account:120\",\n\tpi_item.item_code as \"Item Code:Link/Item:120\",\n\tpi_item.description as \"Description:Data:140\",\n\tpi_item.qty as \"Qty:Float:120\",\n\tpi_item.base_amount as \"Amount:Currency:120\",\n\tpi_item.purchase_order as \"Purchase Order:Link/Purchase Order:120\",\n\tpi_item.purchase_receipt as \"Purchase Receipt:Link/Purchase Receipt:120\",\n\tpr.posting_date as \"PR Posting Date:Date:130\",\n\tpi.company as \"Company:Link/Company:120\"\nFROM\n\t`tabPurchase Invoice` pi, `tabPurchase Invoice Item` pi_item, `tabPurchase Receipt` pr\nWHERE\n\tpi.name = pi_item.parent and pi_item.purchase_receipt = pr.name\n\tand pi.docstatus = 1 and pr.posting_date > pi.posting_date\nORDER BY\n\tpi.name desc", - "ref_doctype": "Purchase Receipt", - "report_name": "Purchase In Transit", - "report_type": "Query Report" -} \ No newline at end of file