<?php
 $CFG['reportsManagement']['adminReport']['filtersList']['clientInvoices']=[ 'corporateId'=>[ 'type'=>"autocomplete", 'data'=>"corporate", 'refactorCompat'=> [ 'renameTo' => 'idCorporates', 'reformat' => 'scalarToList', ], ], 'customerId'=>[ 'type'=>"autocomplete", 'data'=>"customer", 'refactorCompat'=> [ 'renameTo' => 'idCustomers', 'reformat' => 'scalarToList', ], ], 'clientType'=>[ 'type'=>"checkbox", 'data'=>"clientType", ], 'invoiceDate'=>[ 'type'=>"dateInterval", 'mandatory' => true, ], 'invoiceDueDate'=>[ 'type'=>"dateInterval", ], 'invoiceCashedDate'=>[ 'type'=>"dateInterval", ], 'cashedStatus'=>[ 'type'=>"checkbox", 'data'=>"cashedStatus", ], 'issued'=>[ 'type'=>"checkbox", 'data'=>'boolean', ], 'temporary'=>[ 'type'=>"checkbox", 'data'=>'boolean', ], 'voided'=>[ 'type'=>"checkbox", 'data'=>'boolean', ], 'responsibleUser'=>[ 'type'=>"autocomplete", 'data'=>"officesAndUsers", 'refactorCompat'=> [ 'reformat_officesAndUsers' => ['users'=>'idRespUsers', 'offices'=>'idRespOffices'] ], ], 'responsibleDepartment'=>[ 'type'=>"autocomplete", 'data'=>"departments", 'refactorCompat'=> [ 'renameTo' => 'idRespDepartments', 'reformat' => 'scalarToList', ], ], 'corporateGroups'=>[ 'type'=>"selectMultiple", 'data'=>"corporateGroups" ], ]; 