1
0
forked from test/crm

fix: mobile no is not added when created new contact

This commit is contained in:
Shariq Ansari 2025-02-03 13:37:21 +05:30
parent 9491539773
commit de422f68e1

View File

@ -85,9 +85,9 @@ async function createContact() {
delete _contact.value.email_id
}
if (_contact.value.actual_mobile_no) {
_contact.value.phone_nos = [{ phone: _contact.value.actual_mobile_no }]
delete _contact.value.actual_mobile_no
if (_contact.value.mobile_no) {
_contact.value.phone_nos = [{ phone: _contact.value.mobile_no }]
delete _contact.value.mobile_no
}
const doc = await call('frappe.client.insert', {