Booking API can't match customers that have a Company Name
Description
If a Customer has a Company Name specified, this is used for searching purposes instead of the First Name and Last Name. i.e. the indexed name column in the database is populated with the Company Name, rather than the concatenation of the Last Name and First Name.
This is a problem for online bookings, as the name column is used to locate matches. Any customer with a Company Name will not be matched. Searching on first name and last name isn't supported as it would involve an entity_details table scan.
If a Customer has a Company Name specified, this is used for searching purposes instead of the First Name and Last Name. i.e. the indexed name column in the database is populated with the Company Name, rather than the concatenation of the Last Name and First Name.
This is a problem for online bookings, as the name column is used to locate matches. Any customer with a Company Name will not be matched. Searching on first name and last name isn't supported as it would involve an entity_details table scan.