unstaged chagnes.
This commit is contained in:
parent
173fc13567
commit
5bda3e721d
@ -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) {
|
||||
|
||||
// },
|
||||
@ -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",
|
||||
@ -5,5 +5,5 @@
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
class LMNCustomerTableItem(Document):
|
||||
class ContactInfo(Document):
|
||||
pass
|
||||
@ -5,5 +5,5 @@
|
||||
from frappe.tests.utils import FrappeTestCase
|
||||
|
||||
|
||||
class TestLMNCustomerTableItem(FrappeTestCase):
|
||||
class TestContactInfo(FrappeTestCase):
|
||||
pass
|
||||
0
snw_ui/snw_ui/page/install/install.
Normal file
0
snw_ui/snw_ui/page/install/install.
Normal file
@ -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<frappe_data.length; i++) {
|
||||
const row = frappe_data[i]
|
||||
let row_data = []
|
||||
row_data.push(row['full_name'])
|
||||
row_data.push(row['name1'])
|
||||
row_data.push(row['address'])
|
||||
row_data.push("")
|
||||
row_data.push(row['full_name'])
|
||||
row_data.push(row['email_id'])
|
||||
row_data.push(row['name1'])
|
||||
row_data.push(row['email'])
|
||||
row_data.push(row['phone'])
|
||||
data.push(row_data)
|
||||
}
|
||||
@ -77,7 +77,7 @@ class View {
|
||||
}
|
||||
|
||||
handleNewButton() {
|
||||
frappe.new_doc('Customer');
|
||||
frappe.new_doc('Contact Info');
|
||||
}
|
||||
|
||||
setDisplayContent(content) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user