fix: Update received_by if "to" is changed

This commit is contained in:
Suraj Shetty
2022-04-13 20:12:08 +05:30
parent cef28df8db
commit ff41b8da4e
2 changed files with 11 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ class TestExotel(FrappeAPITestCase):
cls.test_employee_name = make_employee(
user="test_employee_exotel@company.com", cell_number="9999999999"
)
frappe.db.set_value("Exotel Settings", "Exotel Settings", "enabled", 1)
phones = [{"phone": "+91 9999999991", "is_primary_phone": 0, "is_primary_mobile_no": 1}]
create_contact(name="Test Contact", salutation="Mr", phones=phones)
frappe.db.commit()