diff --git a/crm/api/session.py b/crm/api/session.py index e40a769b..c5fb5c4e 100644 --- a/crm/api/session.py +++ b/crm/api/session.py @@ -25,7 +25,7 @@ def get_contacts(): contacts = frappe.qb.get_query( "Contact", - fields=['name', 'full_name', 'image', 'email_id', 'mobile_no', 'phone', 'salutation'], + fields=['name', 'first_name', 'last_name', 'full_name', 'image', 'email_id', 'mobile_no', 'phone', 'salutation', 'company_name'], order_by="first_name asc", distinct=True, ).run(as_dict=1) diff --git a/frontend/src/components/ContactModal.vue b/frontend/src/components/ContactModal.vue new file mode 100644 index 00000000..5fd0d6ce --- /dev/null +++ b/frontend/src/components/ContactModal.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/frontend/src/pages/Contact.vue b/frontend/src/pages/Contact.vue index 2d9a4ba9..62acd92b 100644 --- a/frontend/src/pages/Contact.vue +++ b/frontend/src/pages/Contact.vue @@ -11,18 +11,31 @@ {{ contact.salutation + ' ' + contact.full_name }}