mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-06-26 22:57:18 +02:00
Add managed saved searches
This commit is contained in:
parent
d5ee875aef
commit
699436c75b
16 changed files with 1035 additions and 0 deletions
73
managed/SavedSearch_ContactCategories_Locus_2_2.mgd.php
Normal file
73
managed/SavedSearch_ContactCategories_Locus_2_2.mgd.php
Normal file
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
use CRM_Contactcats_ExtensionUtil as E;
|
||||
|
||||
return [
|
||||
[
|
||||
'name' => 'SavedSearch_ContactCategories_Locus_2_2',
|
||||
'entity' => 'SavedSearch',
|
||||
'cleanup' => 'unused',
|
||||
'update' => 'unmodified',
|
||||
'params' => [
|
||||
'version' => 4,
|
||||
'values' => [
|
||||
'name' => 'ContactCategories_Locus_2_2',
|
||||
'label' => E::ts('ContactCategories Locus 2.2'),
|
||||
'api_entity' => 'Contact',
|
||||
'api_params' => [
|
||||
'version' => 4,
|
||||
'select' => [
|
||||
'id',
|
||||
'sort_name',
|
||||
'contact_type:label',
|
||||
'contact_sub_type:label',
|
||||
'Contact_ContributionRecur_contact_id_01_ContributionRecur_Contribution_contribution_recur_id_01.total_amount',
|
||||
],
|
||||
'orderBy' => [],
|
||||
'where' => [],
|
||||
'groupBy' => ['id'],
|
||||
'join' => [
|
||||
[
|
||||
'ContributionRecur AS Contact_ContributionRecur_contact_id_01',
|
||||
'INNER',
|
||||
[
|
||||
'id',
|
||||
'=',
|
||||
'Contact_ContributionRecur_contact_id_01.contact_id',
|
||||
],
|
||||
[
|
||||
'Contact_ContributionRecur_contact_id_01.contribution_status_id:name',
|
||||
'=',
|
||||
'"In Progress"',
|
||||
],
|
||||
[
|
||||
'Contact_ContributionRecur_contact_id_01.start_date',
|
||||
'>',
|
||||
'"now - 12 month"',
|
||||
],
|
||||
],
|
||||
[
|
||||
'Contribution AS Contact_ContributionRecur_contact_id_01_ContributionRecur_Contribution_contribution_recur_id_01',
|
||||
'INNER',
|
||||
[
|
||||
'Contact_ContributionRecur_contact_id_01.id',
|
||||
'=',
|
||||
'Contact_ContributionRecur_contact_id_01_ContributionRecur_Contribution_contribution_recur_id_01.contribution_recur_id',
|
||||
],
|
||||
[
|
||||
'Contact_ContributionRecur_contact_id_01_ContributionRecur_Contribution_contribution_recur_id_01.contribution_status_id:name',
|
||||
'=',
|
||||
'"Completed"',
|
||||
],
|
||||
],
|
||||
],
|
||||
'having' => [],
|
||||
],
|
||||
'description' => E::ts('new regular donor
|
||||
|
||||
- started giving regular donations max. 12 months ago
|
||||
- at least one completed contribution.'),
|
||||
],
|
||||
'match' => ['name'],
|
||||
],
|
||||
],
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue