Hi.
I have custom entity: "Kredyty". I want to filter this entity so I edit:
/application/Espo/Modules/Crm/SelectManagers/Kredyty.php:
and /custom/Espo/Custom/Resources/metadata/clientDefs/Kredyty.json:
These filters apears in CRM but when I click on one nothings happens. Why?
I have custom entity: "Kredyty". I want to filter this entity so I edit:
/application/Espo/Modules/Crm/SelectManagers/Kredyty.php:
Code:
namespace Espo\Modules\Crm\SelectManagers;
class Kredyty extends \Espo\Core\SelectManagers\Base
{
protected function filterAktualne(&$result)
{
$result['whereClause'][] = array(
'status=' => ['Oferta', 'Wniosek', 'Analiza', 'Odroczenie', 'Decyzja pozytywna', 'Umowa podpisana']
);
}
protected function filterArchiwum(&$result)
{
$result['whereClause'][] = array(
'status=' => ['Decyzja negatywna', 'Rezygnacja klienta', 'Wypłacony']
);
}
}
and /custom/Espo/Custom/Resources/metadata/clientDefs/Kredyty.json:
Code:
{
"controller": "Controllers.Record",
"boolFilterList": [
"onlyMy"
],
"filterList": [
{
"name":"Aktualne",
"style": "success"
},
{
"name":"Archiwum",
"style": "danger"
}
]
}
These filters apears in CRM but when I click on one nothings happens. Why?

Comment