From a660464cece4baa101908bfd095fa1ffd8419d38 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 4 Aug 2014 17:33:48 +0530 Subject: [PATCH] added for support --- .../customer_issue/customer_issue_list.html | 24 +++++++++++++++++++ .../customer_issue/customer_issue_list.js | 4 ++++ .../doctype/newsletter/newsletter.json | 4 ++-- .../doctype/newsletter/newsletter_list.html | 16 +++++++++++++ .../doctype/newsletter/newsletter_list.js | 3 +++ .../support_ticket/support_ticket_list.html | 18 ++++++++++++++ .../support_ticket/support_ticket_list.js | 4 ++++ 7 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 erpnext/support/doctype/customer_issue/customer_issue_list.html create mode 100644 erpnext/support/doctype/customer_issue/customer_issue_list.js create mode 100644 erpnext/support/doctype/newsletter/newsletter_list.html create mode 100644 erpnext/support/doctype/newsletter/newsletter_list.js create mode 100644 erpnext/support/doctype/support_ticket/support_ticket_list.html create mode 100644 erpnext/support/doctype/support_ticket/support_ticket_list.js diff --git a/erpnext/support/doctype/customer_issue/customer_issue_list.html b/erpnext/support/doctype/customer_issue/customer_issue_list.html new file mode 100644 index 0000000000..6a39f9f273 --- /dev/null +++ b/erpnext/support/doctype/customer_issue/customer_issue_list.html @@ -0,0 +1,24 @@ +
+
+
+ {%= list.get_avatar_and_id(doc) %} + + + {%= doc.customer %} + + + {%= doc.status %} + + + {% if(doc.item_code) { %} + + {%= doc.item_code %} + + {% } %} +
+
+
diff --git a/erpnext/support/doctype/customer_issue/customer_issue_list.js b/erpnext/support/doctype/customer_issue/customer_issue_list.js new file mode 100644 index 0000000000..f47934ce0b --- /dev/null +++ b/erpnext/support/doctype/customer_issue/customer_issue_list.js @@ -0,0 +1,4 @@ +frappe.listview_settings['Customer Issue'] = { + add_fields: ["status", "customer", "item_code"], + filters:[["status","=", "Open"]] +}; diff --git a/erpnext/support/doctype/newsletter/newsletter.json b/erpnext/support/doctype/newsletter/newsletter.json index 600ac3fad5..a30dc418b6 100644 --- a/erpnext/support/doctype/newsletter/newsletter.json +++ b/erpnext/support/doctype/newsletter/newsletter.json @@ -1,6 +1,6 @@ { "autoname": "naming_series:", - "creation": "2013-01-10 16:34:31.000000", + "creation": "2013-01-10 16:34:31", "description": "Create and Send Newsletters", "docstatus": 0, "doctype": "DocType", @@ -132,7 +132,7 @@ ], "icon": "icon-envelope", "idx": 1, - "modified": "2014-02-03 11:32:22.000000", + "modified": "2014-08-04 07:22:06.445634", "modified_by": "Administrator", "module": "Support", "name": "Newsletter", diff --git a/erpnext/support/doctype/newsletter/newsletter_list.html b/erpnext/support/doctype/newsletter/newsletter_list.html new file mode 100644 index 0000000000..5bbe104808 --- /dev/null +++ b/erpnext/support/doctype/newsletter/newsletter_list.html @@ -0,0 +1,16 @@ +
+
+
+ {%= list.get_avatar_and_id(doc) %} + + {%= cint(doc.email_sent) ? __("Sent") : __("Not Sent") %} + + + {%= doc.send_to_type %} + +
+
+
diff --git a/erpnext/support/doctype/newsletter/newsletter_list.js b/erpnext/support/doctype/newsletter/newsletter_list.js new file mode 100644 index 0000000000..096b83e4e9 --- /dev/null +++ b/erpnext/support/doctype/newsletter/newsletter_list.js @@ -0,0 +1,3 @@ +frappe.listview_settings['Newsletter'] = { + add_fields: ["subject", "send_to_type", "email_sent"] +}; diff --git a/erpnext/support/doctype/support_ticket/support_ticket_list.html b/erpnext/support/doctype/support_ticket/support_ticket_list.html new file mode 100644 index 0000000000..f2cf9b2603 --- /dev/null +++ b/erpnext/support/doctype/support_ticket/support_ticket_list.html @@ -0,0 +1,18 @@ +
+
+
+ {%= list.get_avatar_and_id(doc) %} + + {%= doc.status %} + +
+
+
+
+ + {%= doc.raised_by %} +
+
+
diff --git a/erpnext/support/doctype/support_ticket/support_ticket_list.js b/erpnext/support/doctype/support_ticket/support_ticket_list.js new file mode 100644 index 0000000000..1ae4d93708 --- /dev/null +++ b/erpnext/support/doctype/support_ticket/support_ticket_list.js @@ -0,0 +1,4 @@ +frappe.listview_settings['Support Ticket'] = { + add_fields: ["subject", "status", "raised_by"], + filters:[["status","=", "Open"]] +};