<?php

// THESE CONFIGS ARE USED FOR CONTROLLING SEARCH TYPE (startsWith/contains) ///////////////////////
$CFG['RemoteData']['AutocompleteFieldData']['Supplier']['searchType'] =				'startsWith';
$CFG['RemoteData']['AutocompleteFieldData']['SupplierProduct']['searchType'] =		'startsWith';
$CFG['RemoteData']['AutocompleteFieldData']['SupplierAndProduct']['searchType'] =	'startsWith';

// EXTRA FIELDS TO BE USED WHEN SEARCHING FOR THE CUSTOMERS (array of fields) - check which fields are indexed
$CFG['RemoteData']['AutocompleteFieldData']['Customer']['extraSearchFields'] =	 	['telephone', 'email', 'PNC']; // 'telephone', 'email', 'PNC'

// EXTRA FIELDS TO BE USED WHEN SEARCHING FOR THE CORPORATES (array of fields)
$CFG['RemoteData']['AutocompleteFieldData']['Corporate']['extraSearchFields'] = 	[]; // 'fiscalCode', 'company'

// EXTRA FIELDS TO BE USED WHEN SEARCHING FOR THE CORPORATES&OFFICE (array of fields)
$CFG['RemoteData']['AutocompleteFieldData']['CorporateAndOffice']['extraSearchFields'] = 	[]; // 'company'
