From 19ce904030a1658411c37d9cc4fa6ddaedfcca7d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 21 May 2018 11:07:04 +0530 Subject: [PATCH] Report added in Selling module --- erpnext/config/selling.py | 6 ++++++ .../customers_without_any_sales_transactions.json | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/erpnext/config/selling.py b/erpnext/config/selling.py index b48cafc99a..496617ac77 100644 --- a/erpnext/config/selling.py +++ b/erpnext/config/selling.py @@ -285,6 +285,12 @@ def get_data(): "name": "Customer Credit Balance", "doctype": "Customer" }, + { + "type": "report", + "is_query_report": True, + "name": "Customers Without Any Sales Transactions", + "doctype": "Customer" + }, ] }, { diff --git a/erpnext/selling/report/customers_without_any_sales_transactions/customers_without_any_sales_transactions.json b/erpnext/selling/report/customers_without_any_sales_transactions/customers_without_any_sales_transactions.json index 1c2baca4ed..2a4c2ae85a 100644 --- a/erpnext/selling/report/customers_without_any_sales_transactions/customers_without_any_sales_transactions.json +++ b/erpnext/selling/report/customers_without_any_sales_transactions/customers_without_any_sales_transactions.json @@ -7,12 +7,12 @@ "doctype": "Report", "idx": 0, "is_standard": "Yes", - "modified": "2018-05-21 11:02:17.565039", + "modified": "2018-05-21 11:06:11.920622", "modified_by": "Administrator", "module": "Selling", "name": "Customers Without Any Sales Transactions", "owner": "Administrator", - "query": "SELECT\n\t`tabCustomer`.name as \"Customer Id:Link/Customer:120\",\n\t`tabCustomer`.customer_name as \"Customer Name::120\",\n\t`tabCustomer`.territory as \"Territory:Link/Territory:120\",\n\t`tabCustomer`.customer_group as \"Customer Group:Link/Customer Group:120\"\nFROM\n\t`tabCustomer`\nWHERE\n\tnot exists(select name from `tabSales Invoice` where `tabCustomer`.name = `tabSales Invoice`.customer and `tabSales Invoice`.docstatus=1 limit 1)\n\tand not exists(select name from `tabSales Order` where `tabCustomer`.name = `tabSales Order`.customer and `tabSales Order`.docstatus=1 limit 1)", + "query": "SELECT\n\t`tabCustomer`.name as \"Customer:Link/Customer:120\",\n\t`tabCustomer`.customer_name as \"Customer Name::120\",\n\t`tabCustomer`.territory as \"Territory:Link/Territory:120\",\n\t`tabCustomer`.customer_group as \"Customer Group:Link/Customer Group:120\"\nFROM\n\t`tabCustomer`\nWHERE\n\tnot exists(select name from `tabSales Invoice` where `tabCustomer`.name = `tabSales Invoice`.customer and `tabSales Invoice`.docstatus=1 limit 1)\n\tand not exists(select name from `tabSales Order` where `tabCustomer`.name = `tabSales Order`.customer and `tabSales Order`.docstatus=1 limit 1)", "ref_doctype": "Sales Invoice", "report_name": "Customers Without Any Sales Transactions", "report_type": "Query Report",