From 6d334b8135e1107a9e1d1b9eca0bf233b2f84f9a Mon Sep 17 00:00:00 2001 From: Basawaraj Date: Thu, 17 May 2018 16:54:03 +0530 Subject: [PATCH] Added Report : Customers Without Any Sales Transactions --- .../__init__.py | 0 ...tomers_without_any_sales_transactions.json | 29 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 erpnext/selling/report/customers_without_any_sales_transactions/__init__.py create mode 100644 erpnext/selling/report/customers_without_any_sales_transactions/customers_without_any_sales_transactions.json diff --git a/erpnext/selling/report/customers_without_any_sales_transactions/__init__.py b/erpnext/selling/report/customers_without_any_sales_transactions/__init__.py new file mode 100644 index 0000000000..e69de29bb2 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 new file mode 100644 index 0000000000..b1cc1f6538 --- /dev/null +++ b/erpnext/selling/report/customers_without_any_sales_transactions/customers_without_any_sales_transactions.json @@ -0,0 +1,29 @@ +{ + "add_total_row": 0, + "creation": "2018-05-17 15:25:06.015111", + "disabled": 0, + "docstatus": 0, + "doctype": "Report", + "idx": 0, + "is_standard": "Yes", + "modified": "2018-05-17 16:31:21.306588", + "modified_by": "Administrator", + "module": "Selling", + "name": "Customers Without Any Sales Transactions", + "owner": "Administrator", + "query": "SELECT\n `tabCustomer`.name as \"Customer Id:Link/Customer:120\",\n `tabCustomer`.customer_name as \"Customer Name::120\",\n `tabCustomer`.territory as \"Territory:Link/Territory:120\",\n `tabCustomer`.customer_group as \"Customer Group:Link/Customer Group:120\"\nFROM\n `tabCustomer` \nLEFT JOIN\n `tabSales Invoice` ON `tabCustomer`.name = `tabSales Invoice`.customer \nLEFT JOIN\n `tabSales Order` ON `tabCustomer`.name = `tabSales Order`.customer\nWHERE\n ( `tabSales Invoice`.customer IS NULL OR `tabSales Invoice`.docstatus != 1 ) AND (`tabSales Order`.customer IS NULL OR `tabSales Order`.docstatus != 1 )", + "ref_doctype": "Sales Invoice", + "report_name": "Customers Without Any Sales Transactions", + "report_type": "Query Report", + "roles": [ + { + "role": "Sales User" + }, + { + "role": "Sales Manager" + }, + { + "role": "System Manager" + } + ] +} \ No newline at end of file