fix: mobile no was not created when contact is created
This commit is contained in:
parent
65b047c9f1
commit
f1f0ac7461
@ -219,9 +219,9 @@ async function callInsertDoc() {
|
||||
delete _contact.value.email_id
|
||||
}
|
||||
|
||||
if (_contact.value.mobile_no) {
|
||||
_contact.value.phone_nos = [{ phone: _contact.value.mobile_no }]
|
||||
delete _contact.value.mobile_no
|
||||
if (_contact.value.actual_mobile_no) {
|
||||
_contact.value.phone_nos = [{ phone: _contact.value.actual_mobile_no }]
|
||||
delete _contact.value.actual_mobile_no
|
||||
}
|
||||
|
||||
const doc = await call('frappe.client.insert', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user