<?php

// TODO: move this to _customLoad

///////////////////////////////////////////////////////////////////////////////////////////////////
// CONFIG FOR EACH CRITERIA ON OFFER PROFILES - it sets the list of valid operations per field ////
// For one value check: 'anyValue', 'notSet', 'equal', 'notEqual'; for multiple values (eg. ///////
// class name on itinerary segments): 'containsInclusive', 'containsExclusive', 'containsOne', ////
// 'containsNone') ////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
$CFG['offerProfileRules']['criteriaOperations'] = [

		'ExtResSystem' =>					['anyValue', 'notSet', 'equal', 'notEqual'],
		'FormOfPayment' =>					['anyValue', 'notSet', 'equal', 'notEqual'],
		'ImportedServiceBookOffice' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'ImportedServiceIssueOffice' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'ItineraryServiceClassCode' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'ItineraryServiceClassName' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'ItineraryTripType' =>				['anyValue', 'notSet', 'equal', 'notEqual'],
		'ServiceCode' =>					['equal', 'notEqual'],
		'OfferStartDate' =>					['between'],
		'Operation' =>						['equal', 'notEqual'],
		'OwnerCorporate' =>					['anyValue', 'notSet', 'notEqual'],
		'OwnerCorporateSegment' =>			['anyValue', 'notSet', 'equal', 'notEqual'],
		'FirstCustomer' =>					['anyValue', 'notSet', 'equal', 'notEqual'],
		'FirstCustomerSegment' =>			['anyValue', 'notSet', 'equal', 'notEqual'],
		'FirstCustomerType' =>				['equal', 'notEqual'],
		'ServiceResponsibleUser' =>			['equal', 'notEqual'],
		'Supplier' =>						['equal', 'notEqual'],
		'SupplierCategory' =>               ['anyValue', 'notSet', 'equal', 'notEqual'],
		'MiceProject' =>					['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferTotalCurrency' =>				['equal', 'notEqual'],
		'Reissue' =>						['equal'],
		'FareBasis' =>						['containsInclusive', 'containsExclusive', 'containsOne', 'containsNone'],

		'OfferDeparture_CityId' =>			['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferDeparture_CountryCode' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferDeparture_CountryZone' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferDeparture_StationCode' =>		['anyValue', 'notSet', 'equal', 'notEqual'],

		'OfferDestination_CityId' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferDestination_CountryCode' =>	['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferDestination_CountryZone' =>	['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferDestination_StationCode' =>	['anyValue', 'notSet', 'equal', 'notEqual'],

		'OfferLocation' =>					['anyValue', 'notSet', 'equal', 'notEqual'],
		'GlobalArea' => 					['anyValue', 'notSet', 'equal', 'notEqual'],
		'GlobalDestination' => 				['anyValue', 'notSet', 'equal', 'notEqual'],

		'OfferAttribute_Category' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferAttribute_ProductType' =>		['anyValue', 'notSet', 'equal', 'notEqual'],
		'OfferAttribute_Multiplier' =>		['containsInclusive', 'containsExclusive', 'containsOne', 'containsNone'],
		'OfferAttribute_SupplierProduct' =>	['anyValue', 'notSet', 'equal', 'notEqual'],

		'ServicePrice' =>					['smaller', 'smallerOrEqual', 'equal', 'greater', 'greaterOrEqual'],
		'TotalPrice' =>			 			['smaller', 'smallerOrEqual', 'equal', 'greater', 'greaterOrEqual'],

		'ServiceRemarks' =>					['anyValue', 'notSet', 'equal', 'notEqual'],
];
