diff --git a/snw_ui/snw_ui/doctype/lmncustomertableitem/__init__.py b/snw_ui/snw_ui/doctype/contact_info/__init__.py similarity index 100% rename from snw_ui/snw_ui/doctype/lmncustomertableitem/__init__.py rename to snw_ui/snw_ui/doctype/contact_info/__init__.py diff --git a/snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.js b/snw_ui/snw_ui/doctype/contact_info/contact_info.js similarity index 75% rename from snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.js rename to snw_ui/snw_ui/doctype/contact_info/contact_info.js index 0522336..5d4803d 100644 --- a/snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.js +++ b/snw_ui/snw_ui/doctype/contact_info/contact_info.js @@ -1,7 +1,7 @@ // Copyright (c) 2025, Shiloh Code LLC and contributors // For license information, please see license.txt -// frappe.ui.form.on("LMNCustomerTableItem", { +// frappe.ui.form.on("Contact Info", { // refresh(frm) { // }, diff --git a/snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.json b/snw_ui/snw_ui/doctype/contact_info/contact_info.json similarity index 77% rename from snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.json rename to snw_ui/snw_ui/doctype/contact_info/contact_info.json index d8742f9..183d112 100644 --- a/snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.json +++ b/snw_ui/snw_ui/doctype/contact_info/contact_info.json @@ -7,7 +7,7 @@ "engine": "InnoDB", "field_order": [ "name1", - "location", + "address", "type", "contact", "email", @@ -18,12 +18,9 @@ { "fieldname": "name1", "fieldtype": "Data", - "label": "Name" - }, - { - "fieldname": "location", - "fieldtype": "Data", - "label": "Location" + "in_list_view": 1, + "label": "Name", + "reqd": 1 }, { "fieldname": "type", @@ -39,12 +36,16 @@ { "fieldname": "email", "fieldtype": "Data", - "label": "Email" + "in_list_view": 1, + "label": "Email", + "reqd": 1 }, { "fieldname": "phone", "fieldtype": "Phone", - "label": "Phone" + "in_list_view": 1, + "label": "Phone", + "reqd": 1 }, { "fieldname": "parent1", @@ -52,15 +53,22 @@ "hidden": 1, "label": "Parent", "options": "Customer" + }, + { + "fieldname": "address", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Address", + "reqd": 1 } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-10-20 18:19:59.427539", + "modified": "2025-10-21 12:53:39.535253", "modified_by": "Administrator", "module": "SNW UI", - "name": "LMNCustomerTableItem", + "name": "Contact Info", "owner": "Administrator", "permissions": [ { @@ -76,6 +84,7 @@ "write": 1 } ], + "quick_entry": 1, "row_format": "Dynamic", "rows_threshold_for_grid_search": 20, "sort_field": "modified", diff --git a/snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.py b/snw_ui/snw_ui/doctype/contact_info/contact_info.py similarity index 81% rename from snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.py rename to snw_ui/snw_ui/doctype/contact_info/contact_info.py index 75d19cc..03b20fd 100644 --- a/snw_ui/snw_ui/doctype/lmncustomertableitem/lmncustomertableitem.py +++ b/snw_ui/snw_ui/doctype/contact_info/contact_info.py @@ -5,5 +5,5 @@ from frappe.model.document import Document -class LMNCustomerTableItem(Document): +class ContactInfo(Document): pass diff --git a/snw_ui/snw_ui/doctype/lmncustomertableitem/test_lmncustomertableitem.py b/snw_ui/snw_ui/doctype/contact_info/test_contact_info.py similarity index 75% rename from snw_ui/snw_ui/doctype/lmncustomertableitem/test_lmncustomertableitem.py rename to snw_ui/snw_ui/doctype/contact_info/test_contact_info.py index 036fdb4..7377293 100644 --- a/snw_ui/snw_ui/doctype/lmncustomertableitem/test_lmncustomertableitem.py +++ b/snw_ui/snw_ui/doctype/contact_info/test_contact_info.py @@ -5,5 +5,5 @@ from frappe.tests.utils import FrappeTestCase -class TestLMNCustomerTableItem(FrappeTestCase): +class TestContactInfo(FrappeTestCase): pass diff --git a/snw_ui/snw_ui/page/install/install. b/snw_ui/snw_ui/page/install/install. new file mode 100644 index 0000000..e69de29 diff --git a/snw_ui/snw_ui/page/install/install.js b/snw_ui/snw_ui/page/install/install.js index 8bada79..30e0e87 100644 --- a/snw_ui/snw_ui/page/install/install.js +++ b/snw_ui/snw_ui/page/install/install.js @@ -17,7 +17,7 @@ class Model { } async getClientData() { - let frappe_data = await frappe.db.get_list('Contact', {fields: ['full_name', 'address', 'full_name', 'email_id', 'phone']}) + let frappe_data = await frappe.db.get_list('Contact Info', {fields: ['name1', 'address', 'type', 'name1', 'email', 'phone']}) console.log(frappe_data); @@ -26,11 +26,11 @@ class Model { for (let i=0; i