Landline extension number

In Contact docType, there is no way to mention extension number. Ideally

  1. “Contact Phone” child table should have column for mentioning extension number.
  2. When a number is selected as primary phone number, it should be save in Phone data field with its extension number.

Kindly help how we can mention landline extension number in contact doctype

You have to add a new field called Extension (type: Data) in table. Then write a custom script for the Contact doctype. The script will check the Contact Phone table, find the primary phone, and include its extension in the Phone field of the Contact.