<?php

//  REPORT FILTERS ////////////////////////////////////////////////////////////////////////////////
$CFG['reportsManagement']['adminReport']['filtersList']['corporateContacts']=[

	'contactDate'=>[
		'type'=>"dateInterval",
		'mandatory' => true
	],

	'contactOfficeUser' => [
		'type' => "autocomplete",
		'data' => "officesAndUsers",
		'refactorCompat'=> [
			'reformat_officesAndUsers' => ['users'=>'idUsers', 'offices'=>'idOffices']
		],
	],
	'contactDept' => [
		'type' => "autocomplete",
		'data' => "departments",
		'refactorCompat'=> [
			'renameTo'	=> 'idDepartments',
			'reformat'	=> 'scalarToList',
		],
	],

	'corporate'=>[
		'type'=>"autocomplete",
		'data'=>"corporate",
		'refactorCompat'=> [
			'renameTo'	=> 'idCorporates',
			'reformat'	=> 'scalarToList',
		],
	],

	'contactPerson'=>[
		'type'=>"autocomplete",
		'data'=>"corpContactPerson",
		'refactorCompat'=> [
			'renameTo'	=> 'idContactPersons',
			'reformat'	=> 'scalarToList',
		],
	],

	'addDate'=>[
		'type'=>"dateInterval",
	],

];

